diff --git a/README.md b/README.md index 9c744ed..c6463f3 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 826dbe2..fcc84a4 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,7 +15,8 @@ {{ end }} @@ -23,5 +24,4 @@ {{ partial "h-card.html" . }} - {{ partial "footer-extra.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 04c6338..a4ec55c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,6 +29,9 @@ {{ end }} {{ end }} +{{ if isset .Site.Params.webmentions "url" }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/paginationPost.html b/layouts/partials/paginationPost.html index 7a073a0..92582d3 100644 --- a/layouts/partials/paginationPost.html +++ b/layouts/partials/paginationPost.html @@ -11,4 +11,6 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end }} + +{{ partial "pagination-extra.html" . }} diff --git a/layouts/partials/postInfo.html b/layouts/partials/postInfo.html index e10fc38..86d710a 100644 --- a/layouts/partials/postInfo.html +++ b/layouts/partials/postInfo.html @@ -9,7 +9,8 @@ {{ end }} {{ .Permalink }} -
{{ .Params.author | default .Site.Params.author }}
+ {{ .Params.author | default .Site.Params.author }} +
{{ if .Params.categories }}