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

github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2019-08-18 19:00:35 +0300
committerSebastian Pech <windows@spech.de>2019-08-18 19:00:35 +0300
commitc3cbdcf116ae8ba20e2adb5144938cb5ccbe4b3e (patch)
treee72834e67e22fe8bbb9fbe7f5d28c122f632db4e
parent78be4528fe20b2adfe75e7d6ea00b181078f6cfe (diff)
fixed startpage selector, removed static footer menu entries
-rw-r--r--README.md12
-rw-r--r--layouts/index.html4
-rw-r--r--layouts/partials/footer.html2
3 files changed, 14 insertions, 4 deletions
diff --git a/README.md b/README.md
index ef4ebce..679c13e 100644
--- a/README.md
+++ b/README.md
@@ -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">