mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Add RSS link
This commit is contained in:
parent
919fcfe7cc
commit
9af039619e
@ -24,6 +24,15 @@
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.rss-link {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.rss-link a svg {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Header formatting (website title and article section headers) */
|
||||
|
@ -1,8 +1,24 @@
|
||||
{{ define "main" }}
|
||||
{{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
|
||||
<h1>Filtering for "{{ .Title }}"</h1>
|
||||
<h1>
|
||||
Filtering for "{{ .Title }}"
|
||||
{{ if eq .Kind "term" }}
|
||||
<span class="rss-link">
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</h1>
|
||||
{{ else }}
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
<h1>
|
||||
{{ .Title | markdownify }}
|
||||
<span class="rss-link">
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
|
@ -7,6 +7,7 @@
|
||||
<div class="post-metadata">
|
||||
{{ if .Date }}
|
||||
|
||||
<span class="date">
|
||||
{{ partial "icon.html" "calendar" }}
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
@ -19,6 +20,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</span>
|
||||
|
||||
<span class="tags">
|
||||
{{ range (.GetTerms "tags") }}
|
||||
|
Loading…
Reference in New Issue
Block a user