change template init to include rss link in blog posts
This commit is contained in:
parent
748ebaed8e
commit
d50d922c8d
|
@ -29,7 +29,7 @@ var defaultTemplate string = `<!DOCTYPE html>
|
||||||
<!-- Tell "smart" phones that they are as wide as they are wide... -->
|
<!-- Tell "smart" phones that they are as wide as they are wide... -->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<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">
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/{{.Blogdir}}/feed.rss">
|
||||||
{{end}}
|
{{end}}
|
||||||
<style>
|
<style>
|
||||||
|
@ -140,7 +140,7 @@ var bsStarterTemplate string = `
|
||||||
<!-- Tell "smart" phones that they are as wide as they are wide... -->
|
<!-- 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">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<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">
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/{{.Blogdir}}/feed.rss">
|
||||||
{{end}}
|
{{end}}
|
||||||
<title>{{.Title}}</title>
|
<title>{{.Title}}</title>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user