From f3b37a35e8e5a2e54061b5f344b32730e6f14c59 Mon Sep 17 00:00:00 2001 From: Leonardo Faria Date: Mon, 23 Nov 2020 22:47:55 -0800 Subject: Add Webmention support --- exampleSite/config.toml | 4 ++++ layouts/partials/head.html | 6 +++++- 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 }} {{end}} + {{with .Site.Params.webmention }} + + + {{end}} diff --git a/theme.toml b/theme.toml index fa0c094..12c444c 100644 --- a/theme.toml +++ b/theme.toml @@ -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" -- cgit v1.2.3