From 08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 31 Aug 2021 01:13:15 +0300 Subject: website: switch to hugo --- layouts/news/list.html | 7 +++++++ layouts/news/list.txt | 12 ++++++++++++ layouts/news/single.html | 6 ++++++ layouts/news/single.txt | 6 ++++++ 4 files changed, 31 insertions(+) create mode 100644 layouts/news/list.html create mode 100644 layouts/news/list.txt create mode 100644 layouts/news/single.html create mode 100644 layouts/news/single.txt (limited to 'layouts/news') 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"}} +

News Index

+{{ range .Pages }} +

{{.Date.Format "Jan 02, 2006"}}

+

{{ .Content }}

+{{ 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"}} +
+

{{.PublishDate.Format "Jan 02, 2006"}}

+
+{{ .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 }} -- cgit v1.2.3