add tiny links to h4 in single
This commit is contained in:
parent
1dcb596976
commit
9846fe83cd
|
@ -1,11 +1,14 @@
|
|||
{{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
|
||||
{{ if $related }}
|
||||
<h4 class="page-header">
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<title>Related articles</title>
|
||||
<use xlink:href='#news'></use>
|
||||
</svg>Related Articles
|
||||
<h4 class="page-header" id="related">
|
||||
<a href="#related">
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<title>Related articles</title>
|
||||
<use xlink:href='#news'></use>
|
||||
</svg>
|
||||
</a>
|
||||
Related Articles
|
||||
</h4>
|
||||
|
||||
{{ range $related }}
|
||||
|
|
|
@ -3,11 +3,13 @@
|
|||
{{ $mentions := (where .Site.Data.webmentions "relativeTarget" "==" $.RelPermalink) }}
|
||||
|
||||
{{ if $mentions }}
|
||||
<h4 class="page-header">
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<title>Discussion</title>
|
||||
<use xlink:href='#discuss'></use>
|
||||
</svg>
|
||||
<h4 class="page-header" id="mentions">
|
||||
<a href="#mentions">
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<title>Discussion</title>
|
||||
<use xlink:href='#discuss'></use>
|
||||
</svg>
|
||||
</a>
|
||||
Mentions and Replies
|
||||
</h4>
|
||||
|
||||
|
|
Loading…
Reference in New Issue