diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/list.txt | 3 | ||||
-rw-r--r-- | layouts/_default/page.txt | 3 | ||||
-rw-r--r-- | layouts/_default/single.txt | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/layouts/_default/list.txt b/layouts/_default/list.txt new file mode 100644 index 0000000..3dbd917 --- /dev/null +++ b/layouts/_default/list.txt @@ -0,0 +1,3 @@ +{{ range .Pages.ByPublishDate.Reverse }} +{{ .Date.Format "2006-01-02" }} {{ .Title }} {{ with .OutputFormats.Get "txt" -}} {{ .RelPermalink }}{{ end }} +{{ end }}
\ No newline at end of file diff --git a/layouts/_default/page.txt b/layouts/_default/page.txt deleted file mode 100644 index 8df585d..0000000 --- a/layouts/_default/page.txt +++ /dev/null @@ -1,3 +0,0 @@ -{{ .Title }} - -{{ .Plain }}
\ No newline at end of file diff --git a/layouts/_default/single.txt b/layouts/_default/single.txt new file mode 100644 index 0000000..51f0239 --- /dev/null +++ b/layouts/_default/single.txt @@ -0,0 +1,8 @@ +{{ .Title }} + +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE "(?s:< !--more-- >)" "" -}} +{{ $content }} + +--- +NeonXP at {{ .Date.Format "2006-01-02" }} |