diff options
author | Sebastian Pech <windows@spech.de> | 2019-08-18 19:00:35 +0300 |
---|---|---|
committer | Sebastian Pech <windows@spech.de> | 2019-08-18 19:00:35 +0300 |
commit | c3cbdcf116ae8ba20e2adb5144938cb5ccbe4b3e (patch) | |
tree | e72834e67e22fe8bbb9fbe7f5d28c122f632db4e | |
parent | 78be4528fe20b2adfe75e7d6ea00b181078f6cfe (diff) |
fixed startpage selector, removed static footer menu entries
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
3 files changed, 14 insertions, 4 deletions
@@ -89,6 +89,18 @@ There are two menus in the theme. `main` and `footer`. Specify the entries in th name = "Imprint" url = "/imprint/" weight = 10 + + [[menu.footer]] + identifier = "categories" + name = "Categories" + url = "/categories/" + weight = 20 + + [[menu.footer]] + identifier = "tags" + name = "Tags" + url = "/tags/" + weight = 30 ``` ```yaml diff --git a/layouts/index.html b/layouts/index.html index 639612c..c81b12f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,12 +5,12 @@ {{ if .Site.Params.startPageColumns }} <div class="card-columns"> - {{ range where .Site.RegularPages.ByPublishDate.Reverse "Section" "post" }} + {{ range where .Site.RegularPages.ByPublishDate.Reverse "Type" "!=" "page" }} {{- partial "content_summary.html" . -}} {{ end }} </div> {{ else }} - {{ range where .Site.RegularPages.ByPublishDate.Reverse "Section" "post" }} + {{ range where .Site.RegularPages.ByPublishDate.Reverse "Type" "!=" "page" }} <div class="mb-3"> {{- partial "content_summary.html" . -}} </div> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 96c1890..d1d6187 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,8 +24,6 @@ <li><a class="text-muted" href="{{ .URL }}">{{ .Name }}</a></li> {{ end }} {{ end }} - <li><a class="text-muted" href="/categories/">Categories</a></li> - <li><a class="text-muted" href="/tags/">Tags</a></li> </ul> </div> <div class="col-3 col-md"> |