Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2020-07-13 17:53:05 +0300
committerGitHub <noreply@github.com>2020-07-13 17:53:05 +0300
commit7e43288c9dd56eb015d54dfda829ebe2b1711ddf (patch)
tree477546fe08181a00bb4223aa8816082977679439
parentb33420b3265cf21709c10992ee23ed905c5020a8 (diff)
parent856a36b210311bc549ef0e8226ab741b3c389504 (diff)
Merge pull request #88 from AngeloStavrow/add-web-monetization
Add web monetization to theme
-rw-r--r--config.toml.example2
-rw-r--r--layouts/partials/head.html4
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 }} />