aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md46
1 files changed, 23 insertions, 23 deletions
diff --git a/README.md b/README.md
index 7965c94..a94a9b9 100644
--- a/README.md
+++ b/README.md
@@ -95,12 +95,12 @@ This is my first post. It ain't much but it's an honest post.
95 95
96```txt 96```txt
97Config { 97Config {
98 Title string 98 Title string
99 Description string 99 Description string
100 BaseURL string 100 BaseURL string
101 Language string 101 Language string
102 Highlighting string 102 Highlighting string
103 Minify bool 103 Minify bool
104} 104}
105``` 105```
106 106
@@ -114,17 +114,17 @@ Using it inside of a template.
114 114
115```txt 115```txt
116Page { 116Page {
117 Filepath string 117 Filepath string
118 Raw string 118 Raw string
119 HTML template.HTML 119 HTML template.HTML
120 Text string 120 Text string
121 Summary string 121 Summary string
122 Meta map[string]interface{} 122 Meta map[string]interface{}
123 Title string 123 Title string
124 Type string 124 RelPermalink string
125 RelPermalink string 125 Type string
126 Created time.Time 126 Created time.Time
127 Draft bool 127 Draft bool
128} 128}
129``` 129```
130 130
@@ -132,12 +132,12 @@ Using it inside of a template.
132 132
133```html 133```html
134{{ range .Pages }} 134{{ range .Pages }}
135 {{ if eq .Type "post" }} 135 {{ if eq .Type "post" }}
136 <li> 136 <li>
137 <a href="/{{ .RelPermalink }}">{{ .Title }}</a> 137 <a href="/{{ .RelPermalink }}">{{ .Title }}</a>
138 <div>{{ .Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div> 138 <div>{{ .Created.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
139 </li> 139 </li>
140 {{ end }} 140 {{ end }}
141{{ end }} 141{{ end }}
142``` 142```
143 143