add tiny links to h4 in single

This commit is contained in:
Wouter Groeneveld 2021-03-19 20:58:59 +01:00
parent 1dcb596976
commit 9846fe83cd
2 changed files with 15 additions and 10 deletions

View File

@ -1,11 +1,14 @@
{{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} {{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ if $related }} {{ if $related }}
<h4 class="page-header"> <h4 class="page-header" id="related">
<svg class='icon icon-text' width='24' height='24'> <a href="#related">
<title>Related articles</title> <svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#news'></use> <title>Related articles</title>
</svg>Related Articles <use xlink:href='#news'></use>
</svg>
</a>
Related Articles
</h4> </h4>
{{ range $related }} {{ range $related }}

View File

@ -3,11 +3,13 @@
{{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }} {{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }}
{{ if $mentions }} {{ if $mentions }}
<h4 class="page-header"> <h4 class="page-header" id="mentions">
<svg class='icon icon-text' width='24' height='24'> <a href="#mentions">
<title>Discussion</title> <svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#discuss'></use> <title>Discussion</title>
</svg> <use xlink:href='#discuss'></use>
</svg>
</a>
Mentions and Replies Mentions and Replies
</h4> </h4>