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/blog | |
parent | 25cfa83501cf9b0a1f79d7d94af13b0866c33aa7 (diff) | |
download | website-08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6.tar.gz |
website: switch to hugo
Diffstat (limited to 'layouts/blog')
-rw-r--r-- | layouts/blog/list.html | 8 | ||||
-rw-r--r-- | layouts/blog/single.html | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..63388b7 --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,8 @@ +{{define "main"}} +{{.Content}} +<ul> +{{ range .Pages }} +<li>{{.Date.Format "2006-01-02"}} | <a href="{{.Permalink}}">{{.Title}}</a></li> +{{ end }} +</ul> +{{ end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..6a9f636 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,7 @@ +{{define "main"}} +<header> +<h1 class="title">{{.Title}}</h1> +<p class="subtitle">posted on {{.PublishDate.Format "Jan 02, 2006"}}</p> +</header> +{{ .Content }} +{{ end }} |