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/page | |
parent | 25cfa83501cf9b0a1f79d7d94af13b0866c33aa7 (diff) | |
download | website-08c5bd21fa02e1b30fe2e4c194d9c615a4daf2c6.tar.gz |
website: switch to hugo
Diffstat (limited to 'layouts/page')
-rw-r--r-- | layouts/page/index.html | 16 | ||||
-rw-r--r-- | layouts/page/index.txt | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/layouts/page/index.html b/layouts/page/index.html new file mode 100644 index 0000000..e7e3bd8 --- /dev/null +++ b/layouts/page/index.html @@ -0,0 +1,16 @@ +{{define "main"}} +{{ .Content }} +<h2>Latest Blog Posts</h2> +<ul> + {{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }} + <li>{{.Date.Format "2006-02-01"}} | <a href="{{.Permalink}}">{{.Title}}</a></li> + {{ end }} +</ul> +<h2>News</h2> +<a href="{{"news.xml"|relURL}}">RSS Feed</a> | +<a href="{{"news"|relURL}}">See all news</a> +{{ range first 5 (where .Site.RegularPages.ByDate.Reverse "Section" "news") }} +<h3><a href="{{.Permalink}}">{{.Date.Format "Jan 02, 2006"}}</a></h3> +<p>{{ .Content }}</p> +{{ end }} +{{ end }} diff --git a/layouts/page/index.txt b/layouts/page/index.txt new file mode 100644 index 0000000..d2cdac2 --- /dev/null +++ b/layouts/page/index.txt @@ -0,0 +1,3 @@ +{{- define "main" -}} +{{- .RawContent}} +{{- end}} |