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/page/index.html | 16 ++++++++++++++++ layouts/page/index.txt | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 layouts/page/index.html create mode 100644 layouts/page/index.txt (limited to 'layouts/page') 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 }} +

Latest Blog Posts

+ +

News

+RSS Feed | +See all news +{{ range first 5 (where .Site.RegularPages.ByDate.Reverse "Section" "news") }} +

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

+

{{ .Content }}

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