do not include contact and about page in general feed
This commit is contained in:
		
							parent
							
								
									7c2cc91cfc
								
							
						
					
					
						commit
						5656cf1743
					
				@ -34,6 +34,8 @@
 | 
			
		||||
        {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
 | 
			
		||||
        {{- end -}}
 | 
			
		||||
        {{ range $pages }}
 | 
			
		||||
        {{ if or (eq .Title "About") (eq .Title "Contact") }}<!-- do nothing -->
 | 
			
		||||
        {{else}}
 | 
			
		||||
        <item>
 | 
			
		||||
            <title>{{ .Title }}</title>
 | 
			
		||||
            <link>{{ .Permalink }}</link>
 | 
			
		||||
@ -43,7 +45,7 @@
 | 
			
		||||
            <!-- *** THE ENCLOSURE PARAMETER WILL BE TREATED AS A SIGNAL THAT THIS IS A PODCAST *** -->
 | 
			
		||||
            {{ if isset .Params "enclosure" }}
 | 
			
		||||
                {{ $cdnUrl := .Site.Params.podcastCdnUrl }}
 | 
			
		||||
                <category>{{ .Params.series }}</category>
 | 
			
		||||
                <category>Podcast: {{.Params.series }}</category>
 | 
			
		||||
                <enclosure url="{{$cdnUrl}}{{.Params.enclosure}}" type="audio/mpeg"/>
 | 
			
		||||
                <description>
 | 
			
		||||
                    {{`<![CDATA[ ` | safeHTML }}
 | 
			
		||||
@ -59,7 +61,10 @@
 | 
			
		||||
                    ]]>
 | 
			
		||||
                </content:encoded>
 | 
			
		||||
            {{ else }}
 | 
			
		||||
                {{ if isset .Params "topic" }}<category>Reading: {{ .Params.topic }}</category>{{ end }}
 | 
			
		||||
                {{ if isset .Params "topic" }}<category>Reading: {{ .Params.topic }}</category>
 | 
			
		||||
                {{else}}
 | 
			
		||||
                <category>Blog: {{.Params.topics }}</category>
 | 
			
		||||
                {{ end }}
 | 
			
		||||
                {{ if isset .Params "image" }}
 | 
			
		||||
                    {{ $cdnUrl := .Site.Params.blogCdnUrl }}
 | 
			
		||||
                    {{ with .Params.image }}<enclosure url="{{ $cdnUrl }}{{ . }}" type="image/jpg"/>{{ end }}
 | 
			
		||||
@ -75,6 +80,7 @@
 | 
			
		||||
                </description>
 | 
			
		||||
            {{ end }} <!-- IF ENCLOSURE / ELSE -->
 | 
			
		||||
        </item>
 | 
			
		||||
        {{ end }} <!-- if contact or about -->
 | 
			
		||||
        {{ end }} <!-- RANGE -->
 | 
			
		||||
    </channel>
 | 
			
		||||
</rss>
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user