Optional feedlinks in footer.
This commit is contained in:
parent
6748dd5aaf
commit
43abc37088
5 changed files with 31 additions and 13 deletions
30
README.md
30
README.md
|
|
@ -48,23 +48,25 @@ baseurl: "https://example.org/"
|
|||
title: "SiteTitle"
|
||||
|
||||
params:
|
||||
logo: false
|
||||
copyright: "This site is licensed under a
|
||||
[Creative Commons Attribution-ShareAlike 4.0 International License]
|
||||
(https://creativecommons.org/licenses/by-sa/4.0/)."
|
||||
contact: "info@example.org"
|
||||
footer: "A [example.org](https://example.org/) production."
|
||||
poweredby: true # Show powered by hugo in footer
|
||||
jquery: true # Add jQuery
|
||||
slicknav: true # Activates SlickNav, a nice mobile menu.
|
||||
search: true # Site search with DuckDuckGo.
|
||||
searchSize: 20 # Search field size, default 20.
|
||||
cacheBustCSS: true # Add a cache busting hash on styles.css
|
||||
cacheBustJS: true # Add a cache busting hash on script.js
|
||||
sidebar: true # Show a sidebar to the right
|
||||
submitted: false # Show author and date information for a post.
|
||||
contact: "info@example.org"
|
||||
copyright: "This site is licensed under a
|
||||
(https://creativecommons.org/licenses/by-sa/4.0/)."
|
||||
[Creative Commons Attribution-ShareAlike 4.0 International License]
|
||||
dateformat: "" # Set the date format, default to "2 January, 2006"
|
||||
|
||||
favicon: "" # Relative path to favicon in json feed, no leading slash.
|
||||
feedlinks: true # Show feed links in the footer.
|
||||
footer: "A [example.org](https://example.org/) production."
|
||||
icon: "" # Relative path to icon in json feed, no leading slash.
|
||||
jquery: true # Add jQuery
|
||||
logo: false
|
||||
poweredby: true # Show powered by hugo in footer
|
||||
search: true # Site search with DuckDuckGo.
|
||||
searchSize: 20 # Search field size, default 20.
|
||||
sidebar: true # Show a sidebar to the right
|
||||
slicknav: true # Activates SlickNav, a nice mobile menu.
|
||||
submitted: true # Show author and date information for a post.
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@
|
|||
</div>
|
||||
|
||||
<footer class="footer" role="contentinfo">
|
||||
<p>{{ with $.Param "copyright" }}{{ . | markdownify }}{{ else }}<span>© {{ .Site.Title }}</span>{{ end }}</p>
|
||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . -}}{{ end }}
|
||||
<p>{{ with $.Param "copyright" }}{{ . | markdownify }}{{ else }}<span>© {{ .Site.Title }}</span>{{ end }}</p>
|
||||
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end -}}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a></p>{{ end -}}
|
||||
</footer>
|
||||
|
|
|
|||
6
layouts/partials/feedlinks.html
Normal file
6
layouts/partials/feedlinks.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ $list := .AlternativeOutputFormats -}}
|
||||
{{ $length := (len $list) -}}
|
||||
<p>Subscribe{{ with .Section }} to section {{ . }}{{ end }}: {{ range $index, $element := $list -}}
|
||||
<a href="{{ .Permalink | safeURL }}">{{ .Name }}</a>{{ if ne (add $index 1) $length }} | {{ end }}
|
||||
{{- end -}}
|
||||
</p>
|
||||
|
|
@ -62,6 +62,15 @@ aside,
|
|||
}
|
||||
}
|
||||
|
||||
.blog-archive {
|
||||
a {
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
article {
|
||||
|
||||
& > header {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue