Skip to content

Commit 4f7046c

Browse files
committed
Introducing ENABLE_INDIEAUTH
1 parent 605997d commit 4f7046c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ Also enable comments on `pages/`. Disabled by default.
159159
**WEBMENTION_IO_API_KEY**
160160
An optional API key for https://webmention.io service, to display webmentions using [webmention.js](https://github.com/PlaidWeb/webmention.js).
161161

162+
**ENABLE_INDIEAUTH**
163+
Insert the [IndieAuth tags in every page `<head>`](https://indieauth.com), _cf._ [Aperture documentation on using IndieAuth](https://aperture.p3k.io/docs). Disabled by default.
164+
162165
**MG_DISABLE_SUMMARY**
163166
If you do not manually provide a summary on your articles, set this to `True` so that that the articles summary is not included on the index / search result pages.
164167

templates/base.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
<meta name="twitter:dnt" content="on">
7373
{% endblock %}
7474

75+
{% if ENABLE_INDIEAUTH %}
76+
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
77+
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
78+
{% endif %}
79+
7580
<link rel="stylesheet" type="text/css" href="{{SITEURL}}/theme/bundle-SHORTSHA1-e331880.css">
7681
</head>
7782
<body>

0 commit comments

Comments
 (0)