Merge pull request #80 from thisni1s/main

Footer-extra, pagination-extra, post-info, webmention-url
This commit is contained in:
Dmitry Kolosov 2021-02-25 10:41:22 +03:00 committed by GitHub
commit c443fceaef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 4 deletions

View File

@ -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.

View File

@ -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>

View File

@ -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="">

View File

@ -0,0 +1 @@
<!--for overriding-->

View File

@ -11,4 +11,6 @@
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
{{ partial "pagination-extra.html" . }}

View File

@ -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 }}