aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtemplates/feed.xml30
-rwxr-xr-xtemplates/index.html20
-rwxr-xr-xtemplates/note.html4
-rwxr-xr-xtemplates/post.html2
4 files changed, 28 insertions, 28 deletions
diff --git a/templates/feed.xml b/templates/feed.xml
index 97106d9..ce6ca07 100755
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -1,23 +1,23 @@
1<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> 1<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
2 <channel> 2 <channel>
3 <title>{{ .Config.Title }}'s posts</title> 3 <title>{{ .Config.Title }}'s posts</title>
4 <link>{{ .Config.BaseURL }}</link> 4 <link>{{ .Config.BaseURL }}</link>
5 <description>{{ .Config.Description }}</description> 5 <description>{{ .Config.Description }}</description>
6 <language>{{ .Config.Language }}</language> 6 <language>{{ .Config.Language }}</language>
7 7
8 {{ range $idx, $page := .Pages }} 8 {{ range $idx, $page := .Pages }}
9 {{ if or (eq $page.Type "post") (eq $page.Type "note") }} 9 {{ if or (eq $page.Type "post") (eq $page.Type "note") }}
10 {{ if not .Draft }} 10 {{ if not .Draft }}
11 <item> 11 <item>
12 <title>{{ $page.Title }}</title> 12 <title>{{ $page.Title }}</title>
13 <link>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</link> 13 <link>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</link>
14 <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate> 14 <pubDate>{{ $page.Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</pubDate>
15 <guid>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</guid> 15 <guid>{{ $.Config.BaseURL }}/{{ $page.RelPermalink }}</guid>
16 <description>{{ $page.Summary }}</description> 16 <description>{{ $page.Summary }}</description>
17 <content:encoded>{{ $page.Raw }}</content:encoded> 17 <content:encoded>{{ $page.Raw }}</content:encoded>
18 </item> 18 </item>
19 {{ end }} 19 {{ end }}
20 {{ end }} 20 {{ end }}
21 {{ end }} 21 {{ end }}
22 </channel> 22 </channel>
23</rss> 23</rss>
diff --git a/templates/index.html b/templates/index.html
index da06fd7..39b3746 100755
--- a/templates/index.html
+++ b/templates/index.html
@@ -14,22 +14,22 @@
14<section> 14<section>
15 <h2>More long form, ramblings etc</h2> 15 <h2>More long form, ramblings etc</h2>
16 <ul> 16 <ul>
17 {{ range .Pages }} 17 {{ range .Pages }}
18 {{ if and (eq .Type "post") (not .Draft) }} 18 {{ if and (eq .Type "post") (not .Draft) }}
19 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> 19 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
20 {{ end }} 20 {{ end }}
21 {{ end }} 21 {{ end }}
22 </ul> 22 </ul>
23</section> 23</section>
24 24
25<section> 25<section>
26 <h2>Notes?! Maybe useful</h2> 26 <h2>Notes?! Maybe useful</h2>
27 <ul> 27 <ul>
28 {{ range .Pages }} 28 {{ range .Pages }}
29 {{ if and (eq .Type "note") (not .Draft) }} 29 {{ if and (eq .Type "note") (not .Draft) }}
30 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> 30 <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
31 {{ end }} 31 {{ end }}
32 {{ end }} 32 {{ end }}
33 </ul> 33 </ul>
34</section> 34</section>
35{{ end }} 35{{ end }}
diff --git a/templates/note.html b/templates/note.html
index 5289a5e..36c6a3c 100755
--- a/templates/note.html
+++ b/templates/note.html
@@ -8,7 +8,7 @@
8 <h1>{{ .Page.Title }}</h1> 8 <h1>{{ .Page.Title }}</h1>
9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p> 9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
10 <div> 10 <div>
11 {{ .Page.HTML }} 11 {{ .Page.HTML }}
12 </div>
12 </div> 13 </div>
13</div>
14{{ end }} 14{{ end }}
diff --git a/templates/post.html b/templates/post.html
index 1ed852c..a36fc53 100755
--- a/templates/post.html
+++ b/templates/post.html
@@ -8,7 +8,7 @@
8 <h1>{{ .Page.Title }}</h1> 8 <h1>{{ .Page.Title }}</h1>
9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p> 9 <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
10 <div> 10 <div>
11 {{ .Page.HTML }} 11 {{ .Page.HTML }}
12 </div> 12 </div>
13</section> 13</section>
14{{ end }} 14{{ end }}