diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-29 06:47:25 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-29 06:47:25 +0300 |
commit | b8e2fa37b0dcb7d7786471705ff6ae90c7eaef99 (patch) | |
tree | c610e71d664e20c90b12fb82bc09bdad6d80982c /layouts/_default | |
parent | 8075a7db53ceadd32ebb6a6fdc3129112eb68a90 (diff) |
Add webmentions in posts
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/single.html | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6765bd5..3c67c9f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -59,9 +59,21 @@ {{ end }} {{if not .Params.hideComments }} - <section class="my-5 py-5 "> - <h2>Comments</h2> - {{ template "_internal/disqus.html" . }} + <section class="my-5 py-5 relative"> + <h2>Interactions</h2> + + {{if .Site.Params.webmention }} + <h3>Webmentions</h3> + {{ partial "webmentions.html" . }} + + <h3>Comments</h3> + {{end}} + + {{ if not .Site.IsServer }} + {{ template "_internal/disqus.html" . }} + {{ else }} + Disqus doesn't load in development mode + {{ end }} </section> {{ end }} </article> |