diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-24 09:47:55 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-24 09:47:55 +0300 |
commit | f3b37a35e8e5a2e54061b5f344b32730e6f14c59 (patch) | |
tree | 3e2b5e477c14c8526db52030ee89c2cef59074eb | |
parent | c7b4727e3ec4fbd76a692a6d00a8abdb5969972a (diff) |
Add Webmention support
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 | ||||
-rw-r--r-- | theme.toml | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 337945c..e5c4e07 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -46,6 +46,10 @@ disqusShortname = "bento-hugo-theme" linkedin = "https://linkedin.com/in/XXXX" email = "email@xxxx.com" + # Learn more about webmention + # https://sebastiandedeyne.com/adding-webmentions-to-my-blog/ + # webmention = "" + # Avatar (shown in the homepage) avatar = "images/avatar.jpg" # Bio is shown in the end of posts diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a0ce26a..fef91e6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -106,7 +106,7 @@ {{end}} {{end}} - {{with .Site.Params.googleAnalyticsUserID }} + {{with .Site.Params.googleAnalyticsUserID }} <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), @@ -119,4 +119,8 @@ </script> {{end}} <script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js"></script> + {{with .Site.Params.webmention }} + <link rel="webmention" href="https://webmention.io/{{.}}/webmention"> + <link rel="pingback" href="https://webmention.io/{{.}}/xmlrpc"> + {{end}} </head> @@ -6,7 +6,7 @@ license = "MIT" licenselink = "https://github.com/leonardofaria/bento/blob/master/LICENSE" description = "A minimalist theme for Hugo, build with Tailwind CSS." homepage = "https://github.com/leonardofaria/bento" -tags = ["Hugo", "TailwindCSS", "minimal", "minimalist", "clean", "simple", "personal", "Google analytics", "Disqus", "Mobile", "Fast", "Syntax highlighting", "white", "modern"] +tags = ["Hugo", "TailwindCSS", "minimal", "minimalist", "clean", "simple", "personal", "Google analytics", "Disqus", "Mobile", "Fast", "Syntax highlighting", "white", "modern", "webmention"] features = ["responsive", "fast"] min_version = "0.41" |