Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nico Paul
website
Commits
73fc4813
Verified
Commit
73fc4813
authored
Mar 23, 2020
by
Lorenzo "Palinuro" Faletra
Browse files
fix navigation and language bugs
parent
aa2f1212
Changes
5
Hide whitespace changes
Inline
Side-by-side
config.toml
View file @
73fc4813
...
...
@@ -65,7 +65,6 @@ weight = 10
[[menu.main]]
name
=
"Nest"
URL
=
"https://nest.parrot.sh"
external
=
true
weight
=
12
[[menu.main]]
...
...
data/goals.yml
→
data/
en/
goals.yml
View file @
73fc4813
File moved
data/goals2.yml
→
data/
en/
goals2.yml
View file @
73fc4813
File moved
layouts/partials/goals.html
View file @
73fc4813
{{ if .Site.Data.goals.enable }}
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ if $data.goals.enable }}
<section
class=
"section section-bg about-2"
id=
"goals"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"title text-center wow fadeIn"
data-wow-duration=
"1500ms"
>
<h2>
{{
.Site.D
ata.goals2.heading}}
<span
class=
"color"
>
{{
.Site.D
ata.goals2.headingSpan}}
</span>
</h2>
<h2>
{{
$d
ata.goals2.heading}}
<span
class=
"color"
>
{{
$d
ata.goals2.headingSpan}}
</span>
</h2>
<div
class=
"border-meghna"
></div>
</div>
</div>
<div
class=
"col-lg-6 padding-0 "
>
<img
class=
"img-fluid"
src=
"{{
.Site.D
ata.goals.image | absURL}}"
alt=
"image"
>
<img
class=
"img-fluid"
src=
"{{
$d
ata.goals.image | absURL}}"
alt=
"image"
>
</div>
<div
class=
"col-lg-6"
>
<div
class=
"content-block"
>
{{with
.Site.D
ata.goals.title}}
<h2>
{{ . }}
</h2>
{{ end }}
{{with
.Site.D
ata.goals.description}}
<p>
{{ . }}
</p>
{{ end }}
{{with
.Site.D
ata.goals.description2}}
<p>
{{ . }}
</p>
{{ end }}
{{with
$d
ata.goals.title}}
<h2>
{{ . }}
</h2>
{{ end }}
{{with
$d
ata.goals.description}}
<p>
{{ . }}
</p>
{{ end }}
{{with
$d
ata.goals.description2}}
<p>
{{ . }}
</p>
{{ end }}
<div
class=
"row"
>
{{ range
.Site.D
ata.goals.aboutItem }}
{{ range
$d
ata.goals.aboutItem }}
<div
class=
"col-lg-6"
>
<div
class=
"media"
>
<div
class=
"align-self-start mr-3"
>
...
...
@@ -39,12 +41,12 @@
{{ end }}
{{ if
.Site.D
ata.goals2.enable}}
{{ if
$d
ata.goals2.enable}}
<section
class=
"bg-one about section"
id=
"goals2"
>
<div
class=
"container"
>
<div
class=
"row"
>
{{ range
.Site.D
ata.goals2.aboutItem }}
{{ range
$d
ata.goals2.aboutItem }}
<div
class=
"col-lg-4 text-center wow fadeInUp"
data-wow-duration=
"500ms"
>
<div
class=
"block"
>
<div
class=
"icon-box"
>
...
...
layouts/partials/navigation.html
View file @
73fc4813
...
...
@@ -15,7 +15,7 @@
<div
class=
"collapse navbar-collapse"
id=
"navigation"
>
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"
#body
"
>
{{ .Site.Params.home }}
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"
/
"
>
{{ .Site.Params.home }}
</a></li>
{{ if .IsHome }}
{{ range .Site.Menus.main }}
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"{{ .URL }}"
>
{{ .Name }}
</a></li>
...
...
@@ -24,7 +24,11 @@
{{ else }}
{{ range .Site.Menus.main }}
{{ if hasPrefix .URL "http" }}
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"{{ .URL }}"
>
{{ .Name }}
</a>
{{ else }}
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"{{ $.Site.BaseURL | relLangURL }}{{ .URL }}"
>
{{ .Name }}
</a>
{{ end }}
</li>
{{ end }}
{{ end }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment