Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-07-22 08:11:45 +0300
committerHanzei <hanzei@mailbox.org>2018-07-22 08:11:45 +0300
commit9b08324593c35da21299ef74cecca7e330efcb20 (patch)
tree96acfbc5c64e367cf45954b7925a87cbb2ed7746
parentb2bfdb95cf25dc6f8eff96b490e0e4db91eb26bb (diff)
Fix more build problems
-rw-r--r--exampleSite/static/img/workday.jpgbin0 -> 59645 bytes
-rw-r--r--layouts/partials/nav.html6
2 files changed, 3 insertions, 3 deletions
diff --git a/exampleSite/static/img/workday.jpg b/exampleSite/static/img/workday.jpg
new file mode 100644
index 0000000..2e5eea4
--- /dev/null
+++ b/exampleSite/static/img/workday.jpg
Binary files differ
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index a40fd79..65a775d 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -54,9 +54,9 @@
{{ $totalProjects := (len .Pages) }}
{{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }}
{{ if $isHome }}
- <a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a>
{{ else if le $totalProjects $numberOfProjectsToShow }}
- <a class="navbar-item" href="/#{{ .Title | urlize }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "/#%s" (.Title | urlize) | relLangURL }}">{{ .Title }}</a>
{{ else }}
<a class="navbar-item" href="{{ .Permalink }}">
{{ if $pageIsInProjects }}
@@ -73,7 +73,7 @@
{{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }}
{{ with .Site.GetPage "section" "/blog" }}
{{ if $isHome }}
- <a class="navbar-item" href="#{{ .Title | urlize }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "#%s" (.Title | urlize) }}">{{ .Title }}</a>
{{ else }}
<a class="navbar-item" href="{{ .Permalink }}">
{{ if $pageIsInBlog }}