diff options
author | Cem Keylan <cem@ckyln.com> | 2021-08-31 01:13:15 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-08-31 01:13:15 +0300 |
commit | 08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6 (patch) | |
tree | b471d65a2ad20665dc0e0e8f91aa67ac4c0949b1 /layouts/news | |
parent | 25cfa83501cf9b0a1f79d7d94af13b0866c33aa7 (diff) | |
download | website-08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6.tar.gz |
website: switch to hugo
Diffstat (limited to 'layouts/news')
-rw-r--r-- | layouts/news/list.html | 7 | ||||
-rw-r--r-- | layouts/news/list.txt | 12 | ||||
-rw-r--r-- | layouts/news/single.html | 6 | ||||
-rw-r--r-- | layouts/news/single.txt | 6 |
4 files changed, 31 insertions, 0 deletions
diff --git a/layouts/news/list.html b/layouts/news/list.html new file mode 100644 index 0000000..67eb4fb --- /dev/null +++ b/layouts/news/list.html @@ -0,0 +1,7 @@ +{{define "main"}} +<h1>News Index</h1> +{{ range .Pages }} +<h2><a href="{{.Permalink}}">{{.Date.Format "Jan 02, 2006"}}</a></h2> +<p>{{ .Content }}</p> +{{ end }} +{{ end }} diff --git a/layouts/news/list.txt b/layouts/news/list.txt new file mode 100644 index 0000000..ab0a732 --- /dev/null +++ b/layouts/news/list.txt @@ -0,0 +1,12 @@ +{{define "main"}} +NEWS INDEX +========== + +{{ range .Pages }} +{{.Date.Format "Jan 02, 2006"}} +------------------------------- + +{{ .RawContent }} + +{{ end }} +{{ end }} diff --git a/layouts/news/single.html b/layouts/news/single.html new file mode 100644 index 0000000..2a2d481 --- /dev/null +++ b/layouts/news/single.html @@ -0,0 +1,6 @@ +{{define "main"}} +<header> +<h2 class="title">{{.PublishDate.Format "Jan 02, 2006"}}</h2> +</header> +{{ .Content }} +{{ end }} diff --git a/layouts/news/single.txt b/layouts/news/single.txt new file mode 100644 index 0000000..e59d69f --- /dev/null +++ b/layouts/news/single.txt @@ -0,0 +1,6 @@ +{{define "main"}} +{{.PublishDate.Format "Jan 02, 2006"}} +============ + +{{ .RawContent }} +{{ end }} |