Merge pull request #80 from thisni1s/main
Footer-extra, pagination-extra, post-info, webmention-url
This commit is contained in:
commit
c443fceaef
@ -80,6 +80,7 @@ params:
|
||||
utterancesIssue: "" # optional
|
||||
utterancesLabel: "" # optional
|
||||
webmentions:
|
||||
url: https://yourdomain.com/webemntions/receive
|
||||
login: hugo-theme-anubis
|
||||
pingback: true
|
||||
|
||||
@ -130,6 +131,10 @@ To hide a post from the RSS feed, just add `disable_feed: true` to its front mat
|
||||
### Pagination on post single page
|
||||
Enabled by `paginationSinglePost` param in `params` section of config.
|
||||
|
||||
### Webmentions
|
||||
To provide webmention support you can **either** specify your webmention.io username with `login: webmentionusername` **or** specify a link to your custom webmention endpoint with `url: https://yourdomain.com/webemntions/receive`.
|
||||
If you use webmention.io you can also enable pingback with `pingback: true`
|
||||
|
||||
## Contributing
|
||||
|
||||
If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues) or make a PR.
|
||||
|
@ -15,7 +15,8 @@
|
||||
{{ end }}
|
||||
<div class="copyright">
|
||||
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
|
||||
{{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.
|
||||
{{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
|
||||
{{ partial "footer-extra.html" . }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -23,5 +24,4 @@
|
||||
</div>
|
||||
|
||||
{{ partial "h-card.html" . }}
|
||||
{{ partial "footer-extra.html" . }}
|
||||
</footer>
|
||||
|
@ -29,6 +29,9 @@
|
||||
<link rel="pingback" href="https://webmention.io/{{.Site.Params.webmentions.login}}/xmlrpc" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if isset .Site.Params.webmentions "url" }}
|
||||
<link rel="webmention" href="{{.Site.Params.webmentions.url}}" />
|
||||
{{ end }}
|
||||
|
||||
<!-- Article tags -->
|
||||
<!-- <meta property="article:published_time" content="">
|
||||
|
1
layouts/partials/pagination-extra.html
Normal file
1
layouts/partials/pagination-extra.html
Normal file
@ -0,0 +1 @@
|
||||
<!--for overriding-->
|
@ -11,4 +11,6 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination-extra.html" . }}
|
||||
|
@ -9,7 +9,8 @@
|
||||
{{ end }}
|
||||
|
||||
<a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a>
|
||||
<div class="post-hidden-author p-author">{{ .Params.author | default .Site.Params.author }}</div>
|
||||
<a href={{ .Site.BaseURL }} class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a>
|
||||
|
||||
|
||||
<div class="post-taxonomies">
|
||||
{{ if .Params.categories }}
|
||||
|
Loading…
Reference in New Issue
Block a user