change template init to include rss link in blog posts

This commit is contained in:
gutmet 2020-11-27 19:07:18 +01:00
parent 748ebaed8e
commit d50d922c8d

View File

@ -29,7 +29,7 @@ var defaultTemplate string = `<!DOCTYPE html>
<!-- Tell "smart" phones that they are as wide as they are wide... -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
{{if .PostCollection}}
{{if or .PostCollection .Blogpost}}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/{{.Blogdir}}/feed.rss">
{{end}}
<style>
@ -140,7 +140,7 @@ var bsStarterTemplate string = `
<!-- Tell "smart" phones that they are as wide as they are wide... -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
{{if .PostCollection}}
{{if or .PostCollection .Blogpost}}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/{{.Blogdir}}/feed.rss">
{{end}}
<title>{{.Title}}</title>