diff options
Diffstat (limited to 'themes/conspiracy/layouts')
-rw-r--r-- | themes/conspiracy/layouts/_default/single.html | 7 | ||||
-rw-r--r-- | themes/conspiracy/layouts/index.html | 17 | ||||
-rw-r--r-- | themes/conspiracy/layouts/partials/card.html | 2 | ||||
-rw-r--r-- | themes/conspiracy/layouts/partials/footer.html | 2 |
4 files changed, 19 insertions, 9 deletions
diff --git a/themes/conspiracy/layouts/_default/single.html b/themes/conspiracy/layouts/_default/single.html index 9f3ff8d..231daf7 100644 --- a/themes/conspiracy/layouts/_default/single.html +++ b/themes/conspiracy/layouts/_default/single.html @@ -7,6 +7,13 @@ </header> {{- end }} <main> + {{- if .Params.external_links }} + <div class="links"> + {{- range .Params.external_links }} + <a href="{{ .url | absURL }}">{{ .name }}</a> + {{- end }} + </div> + {{- end }} {{ .Content }} </main> {{- end }} diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html index 28b5cc5..ab68f27 100644 --- a/themes/conspiracy/layouts/index.html +++ b/themes/conspiracy/layouts/index.html @@ -9,14 +9,17 @@ </div> {{- end }} - <h2>Recently updated projects</h2> - {{ range first 2 (where site.RegularPages "Section" "==" "projects") }} - {{ partial "card.html" . }} - {{- end }} + {{- range site.Params.homepage_categories }} + <h2>{{ .title }}</h2> + {{- range first .count (where site.RegularPages "Section" "==" .key) }} + {{ partial "card.html" . }} + {{- end }} - <h2>Blog</h2> - {{ range (where site.RegularPages "Section" "==" "blog") }} - {{ partial "card.html" . }} + <div class="pagination-links"> + {{- with site.GetPage (printf "/%s" .key) }} + <a href="{{ .RelPermalink }}">See more<span class="arrow-right"></span></a> + {{- end }} + </div> {{- end }} </main> {{- end }} diff --git a/themes/conspiracy/layouts/partials/card.html b/themes/conspiracy/layouts/partials/card.html index 167a9d5..65ea2e7 100644 --- a/themes/conspiracy/layouts/partials/card.html +++ b/themes/conspiracy/layouts/partials/card.html @@ -10,7 +10,7 @@ {{- if .Params.external_links }} <div class="links"> {{- range .Params.external_links }} - <a href="{{ .url }}">{{ .name }}</a> + <a href="{{ .url | absURL }}">{{ .name }}</a> {{- end }} </div> {{- end }} diff --git a/themes/conspiracy/layouts/partials/footer.html b/themes/conspiracy/layouts/partials/footer.html index 6071d43..adf7aee 100644 --- a/themes/conspiracy/layouts/partials/footer.html +++ b/themes/conspiracy/layouts/partials/footer.html @@ -1,6 +1,6 @@ <footer> Copyright © {{ now.Year }} {{ site.Copyright }} {{- range site.Params.footer_links }} - / <a href="{{.url | absURL }}">{{ .name }}</a> + / <a href="{{.url | relURL }}">{{ .name }}</a> {{- end }} </footer> |