diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-16 11:41:36 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-16 11:41:36 -0400 |
commit | f36ca347c53f173204bda6f9d93e90a655d596ac (patch) | |
tree | 18bed51f88ea8086c414269ae87d615380387c4e | |
parent | 3558c8b6d2cb59121e5295b7ae2505bb5d829acf (diff) | |
download | pablotron.org-f36ca347c53f173204bda6f9d93e90a655d596ac.tar.bz2 pablotron.org-f36ca347c53f173204bda6f9d93e90a655d596ac.zip |
s/page_id/menu/, do not highlight menu entry when viewing content in section
-rw-r--r-- | content/_index.md | 3 | ||||
-rw-r--r-- | content/articles/_index.md | 2 | ||||
-rw-r--r-- | content/articles/about.md | 2 | ||||
-rw-r--r-- | content/articles/ev-crash-course.md | 1 | ||||
-rw-r--r-- | content/projects/_index.md | 2 | ||||
-rw-r--r-- | themes/hugo-pt2021/archetypes/articles.md | 2 | ||||
-rw-r--r-- | themes/hugo-pt2021/archetypes/projects.md | 2 | ||||
-rw-r--r-- | themes/hugo-pt2021/layouts/partials/header.html | 4 |
8 files changed, 8 insertions, 10 deletions
diff --git a/content/_index.md b/content/_index.md index 56b1aed..22c0eb7 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,7 +1,6 @@ --- -page_id: "home" +menu: "home" title: "pablotron.org" layout: "blog" -# type: "post" summary: "Blog posts" --- diff --git a/content/articles/_index.md b/content/articles/_index.md index b524277..2474091 100644 --- a/content/articles/_index.md +++ b/content/articles/_index.md @@ -1,3 +1,3 @@ --- -page_id: "articles" +menu: "articles" --- diff --git a/content/articles/about.md b/content/articles/about.md index bc5384c..55ae424 100644 --- a/content/articles/about.md +++ b/content/articles/about.md @@ -1,5 +1,5 @@ --- -"page_id": "about" +menu: "about" slug: "about" show: false title: "About" diff --git a/content/articles/ev-crash-course.md b/content/articles/ev-crash-course.md index b8a8a96..e0d817e 100644 --- a/content/articles/ev-crash-course.md +++ b/content/articles/ev-crash-course.md @@ -1,7 +1,6 @@ --- title: "EV Crash Course" slug: ev-crash-course -page_id: "articles" --- ## Reading Electric Vehicle Specs diff --git a/content/projects/_index.md b/content/projects/_index.md index edc89ed..7cd5fd8 100644 --- a/content/projects/_index.md +++ b/content/projects/_index.md @@ -1,3 +1,3 @@ --- -page_id: "projects" +menu: "projects" --- diff --git a/themes/hugo-pt2021/archetypes/articles.md b/themes/hugo-pt2021/archetypes/articles.md index 6229a7c..023684c 100644 --- a/themes/hugo-pt2021/archetypes/articles.md +++ b/themes/hugo-pt2021/archetypes/articles.md @@ -1,5 +1,5 @@ --- -slug: {{.Name}} +slug: "{{.Name}}" title: "{{ replace .Name "-" " " | title }}" # draft articles are not visible on live site diff --git a/themes/hugo-pt2021/archetypes/projects.md b/themes/hugo-pt2021/archetypes/projects.md index 4e81c4b..cb4bd7f 100644 --- a/themes/hugo-pt2021/archetypes/projects.md +++ b/themes/hugo-pt2021/archetypes/projects.md @@ -1,7 +1,7 @@ --- slug: {{.Name}} title: "{{ replace .Name "-" " " | title }}" -text: "Brief description of {{.Name}}" +text: "Sentence describing of {{.Name}}" # draft projects are not visible on live site draft: true diff --git a/themes/hugo-pt2021/layouts/partials/header.html b/themes/hugo-pt2021/layouts/partials/header.html index a51197b..20abe46 100644 --- a/themes/hugo-pt2021/layouts/partials/header.html +++ b/themes/hugo-pt2021/layouts/partials/header.html @@ -35,7 +35,7 @@ {{- range $.Site.Data.menu.start -}} <a href='{{.href}}' - class='navbar-item {{if eq .id $.Params.page_id}}has-text-weight-bold{{end}}' + class='navbar-item {{if eq .id $.Params.menu}}has-text-weight-bold{{end}}' title='{{.help}}' aria-label='{{.help}}' > @@ -61,7 +61,7 @@ {{- range $.Site.Data.menu.end -}} <a href='{{.href}}' - class='navbar-item {{if eq .id $.Params.page_id}}is-active{{end}}' + class='navbar-item {{if eq .id $.Params.menu}}is-active{{end}}' title='{{.help}}' aria-label='{{.help}}' > |