Add RSS links to home page and list template
							parent
							
								
									d7f52b0d64
								
							
						
					
					
						commit
						ab951ced60
					
				|  | @ -3,7 +3,10 @@ | |||
| {{ .Title }} – {{ .Site.Title }} | ||||
| {{ end }} | ||||
| {{ define "content-header" }} | ||||
| <h1 class="p-name">{{ .Title }}</h1> | ||||
| <h1> | ||||
|     <span class="p-name">{{ .Title }}</span> | ||||
|     <a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a> | ||||
| </h1> | ||||
| {{ end }} | ||||
| {{ define "content" }} | ||||
| {{ if .Content }} | ||||
|  |  | |||
|  | @ -5,7 +5,10 @@ | |||
| </article> | ||||
| <section class="h-feed"> | ||||
|   {{ if .Site.Params.homepageSectionTitle }} | ||||
|   <h2 class="p-name u-url"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.homepageSectionTitle }}</a></h2> | ||||
|   <h2> | ||||
|     <a class="u-url" href="{{ .Site.BaseURL }}"><span class="p-name">{{ .Site.Params.homepageSectionTitle }}</span></a> | ||||
|     <a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a> | ||||
|   </h2> | ||||
|   {{ end }} | ||||
|   <!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. --> | ||||
|   {{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue