mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-11-03 18:27:55 -06:00 
			
		
		
		
	Add RSS link
This commit is contained in:
		@@ -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,18 +7,20 @@
 | 
			
		||||
<div class="post-metadata">
 | 
			
		||||
    {{ if .Date }}
 | 
			
		||||
 | 
			
		||||
    {{ partial "icon.html" "calendar" }}
 | 
			
		||||
    <time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
 | 
			
		||||
        {{ .Date.Format "January 2, 2006" }}
 | 
			
		||||
    </time>
 | 
			
		||||
    <span class="date">
 | 
			
		||||
        {{ partial "icon.html" "calendar" }}
 | 
			
		||||
        <time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
 | 
			
		||||
            {{ .Date.Format "January 2, 2006" }}
 | 
			
		||||
        </time>
 | 
			
		||||
 | 
			
		||||
    {{ if ne .Lastmod .Date }}
 | 
			
		||||
    <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
 | 
			
		||||
        (Modified {{ .Lastmod.Format "January 2, 2006" }})
 | 
			
		||||
    </time>
 | 
			
		||||
    {{ end }}
 | 
			
		||||
        {{ if ne .Lastmod .Date }}
 | 
			
		||||
        <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
 | 
			
		||||
            (Modified {{ .Lastmod.Format "January 2, 2006" }})
 | 
			
		||||
        </time>
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
    {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
    </span>
 | 
			
		||||
 | 
			
		||||
    <span class="tags">
 | 
			
		||||
        {{ range (.GetTerms "tags") }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user