From db98ff7573c72a59abde6aec30748597adac570e Mon Sep 17 00:00:00 2001 From: Hanzei Date: Wed, 27 Jun 2018 11:30:11 +0200 Subject: [PATCH] Render ancors from titles --- layouts/index.html | 4 ++-- layouts/partials/blogsection.html | 2 +- layouts/partials/nav.html | 9 ++++----- layouts/partials/projects.html | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 9af0899..3b8faaf 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -36,7 +36,7 @@ {{ with .Site.GetPage "page" "about" }} -
+

{{ .Title }}

@@ -66,7 +66,7 @@ {{ with .Site.GetPage "page" "contact" }} -
+

{{ .Title }}

diff --git a/layouts/partials/blogsection.html b/layouts/partials/blogsection.html index bec7529..bb323c9 100644 --- a/layouts/partials/blogsection.html +++ b/layouts/partials/blogsection.html @@ -1,5 +1,5 @@ {{ with .Site.GetPage "section" "blog" }} -
+
{{ if .Site.Params.showLatest }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 82981a2..e6cf4c9 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -14,16 +14,15 @@ {{ if not $isHome }} {{ i18n "nav_main" . }} {{ end }} - {{ with .Site.GetPage "page" "about" }} - {{ .Title }} + {{ .Title }} {{ end }} {{ $pageIsInProjects := eq .Page.Section "projects"}} {{ if not (and $pageIsInProjects (eq .Page.Kind "section")) }} {{ with .Site.GetPage "section" "projects" }} {{ if $isHome }} - {{ .Title }} + {{ .Title }} {{ else }} {{ if $pageIsInProjects }} @@ -40,7 +39,7 @@ {{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }} {{ with .Site.GetPage "section" "blog" }} {{ if $isHome }} - {{ .Title }} + {{ .Title }} {{ else }} {{ if $pageIsInBlog }} @@ -54,7 +53,7 @@ {{ end }} {{ with .Site.GetPage "page" "contact" }} - {{ .Title }} + {{ .Title }} {{ end }} {{ range $.Site.Home.AllTranslations.ByWeight }} diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html index 8e417b2..cd8e18b 100644 --- a/layouts/partials/projects.html +++ b/layouts/partials/projects.html @@ -1,5 +1,5 @@ {{ with .Site.GetPage "section" "projects" }} -
+