RSS of each section are always shown
the "Feed Of ALL" is removed and "Feed Of 'Section'" is always shown
This commit is contained in:
		
							parent
							
								
									e2ca0c5332
								
							
						
					
					
						commit
						0ce04d50c7
					
				| 
						 | 
				
			
			@ -21,6 +21,9 @@ noHl = false
 | 
			
		|||
style = 'monokailight'
 | 
			
		||||
tabWidth = 4
 | 
			
		||||
 | 
			
		||||
[params]
 | 
			
		||||
mainSections = ['posts']
 | 
			
		||||
 | 
			
		||||
## uncomment belows and set proper values to enable remark42
 | 
			
		||||
# [params.remark42]
 | 
			
		||||
# host=''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,23 +1,6 @@
 | 
			
		|||
<footer class="footer">
 | 
			
		||||
    <div class="footer-row">
 | 
			
		||||
        <a class="footer-item" href="{{ "/index.xml" | relURL }}">
 | 
			
		||||
            Feed of ALL
 | 
			
		||||
            <i class="icofont-rss"></i>
 | 
			
		||||
        </a>
 | 
			
		||||
 | 
			
		||||
        {{ if gt (len .Site.Sections) 1 }}
 | 
			
		||||
            {{ range .Site.Sections }}
 | 
			
		||||
                {{ $section := . }}
 | 
			
		||||
                {{ with .OutputFormats.Get "rss" }}
 | 
			
		||||
                    <a class="footer-item" href="{{ .Permalink }}">
 | 
			
		||||
                        Feed of {{ $section.Section | humanize }}
 | 
			
		||||
                        <i class="icofont-rss"></i>
 | 
			
		||||
                    </a>
 | 
			
		||||
                {{ end }}
 | 
			
		||||
            {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
        {{ if not (or .IsHome .IsSection) }}
 | 
			
		||||
        {{ range .Site.Sections }}
 | 
			
		||||
            {{ $section := . }}
 | 
			
		||||
            {{ with .OutputFormats.Get "rss" }}
 | 
			
		||||
                <a class="footer-item" href="{{ .Permalink }}">
 | 
			
		||||
| 
						 | 
				
			
			@ -26,7 +9,18 @@
 | 
			
		|||
                </a>
 | 
			
		||||
            {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
        {{ if not (or .IsHome .IsSection) }}
 | 
			
		||||
            {{ $term := . }}
 | 
			
		||||
            {{ with .OutputFormats.Get "rss" }}
 | 
			
		||||
                <a class="footer-item" href="{{ .Permalink }}">
 | 
			
		||||
                    Feed of "{{ $term.Title }}"
 | 
			
		||||
                    <i class="icofont-rss"></i>
 | 
			
		||||
                </a>
 | 
			
		||||
            {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    {{ range .Site.Params.footer_rows }}
 | 
			
		||||
        <div class="footer-row">
 | 
			
		||||
            {{ range .items }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue