diff options
author | Angelo Stavrow <contact@angelostavrow.com> | 2020-07-13 17:49:42 +0300 |
---|---|---|
committer | Angelo Stavrow <contact@angelostavrow.com> | 2020-07-13 17:49:42 +0300 |
commit | 856a36b210311bc549ef0e8226ab741b3c389504 (patch) | |
tree | 477546fe08181a00bb4223aa8816082977679439 | |
parent | b33420b3265cf21709c10992ee23ed905c5020a8 (diff) |
Add web monetization to theme
-rw-r--r-- | config.toml.example | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/config.toml.example b/config.toml.example index 9c365d2..4fff165 100644 --- a/config.toml.example +++ b/config.toml.example @@ -13,6 +13,8 @@ theme = "indigo" ShowBio = true PermalinkText = "🔗" mainSections = ["post"] + # Web Monetization only works on secure pages served over HTTPS. + paymentPointer = "" # Contact/social-network identifiers for social icons EmailAddress = "email.address@example.com" diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c07bcd..5900d2c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,6 +26,10 @@ <link rel="microsub" href="{{ . }}" />{{ end }} {{ with .Site.Params.endpoints.Webmention}} <link rel="webmention" href="{{ . }}" />{{ end }} + {{ with .Site.Params.paymentPointer }} + <!-- Web Monetization payment pointer --> + <meta name="monetization" content={{ . }}> + {{ end }} <!-- Other stuff to make the site work --> <link rel="stylesheet" href={{ "css/fonts.css" | absURL }} /> <link rel="stylesheet" href={{ "css/style.css" | absURL }} /> |