From 9f5454bda6299db43a4e9de5b3716471388b81d9 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 27 Aug 2022 14:05:48 +0200 Subject: Move blog to Hugo --- themes/simple/layouts/_default/baseof.html | 11 +++++++ themes/simple/layouts/_default/list.html | 32 +++++++++++++++++++++ themes/simple/layouts/_default/rss.xml | 27 ++++++++++++++++++ themes/simple/layouts/_default/single.html | 46 ++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 themes/simple/layouts/_default/baseof.html create mode 100644 themes/simple/layouts/_default/list.html create mode 100644 themes/simple/layouts/_default/rss.xml create mode 100644 themes/simple/layouts/_default/single.html (limited to 'themes/simple/layouts/_default') diff --git a/themes/simple/layouts/_default/baseof.html b/themes/simple/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/simple/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/simple/layouts/_default/list.html b/themes/simple/layouts/_default/list.html new file mode 100644 index 0000000..e194063 --- /dev/null +++ b/themes/simple/layouts/_default/list.html @@ -0,0 +1,32 @@ +{{ define "main" }} +
+ +

Blog posts

+ + + + + +
+

Side projects I work/worked on

+ +
+ +
+{{ end }} diff --git a/themes/simple/layouts/_default/rss.xml b/themes/simple/layouts/_default/rss.xml new file mode 100644 index 0000000..38c8755 --- /dev/null +++ b/themes/simple/layouts/_default/rss.xml @@ -0,0 +1,27 @@ + + + + + {{ .Site.Author.name }} + {{ .Permalink }} + {{ .Site.Params.description }} + en-us + + {{ range (where .Site.RegularPages "Section" "posts") }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + + {{ " + {{ " + + + {{end}} + + + + + diff --git a/themes/simple/layouts/_default/single.html b/themes/simple/layouts/_default/single.html new file mode 100644 index 0000000..7142f1b --- /dev/null +++ b/themes/simple/layouts/_default/single.html @@ -0,0 +1,46 @@ +{{ define "main" }} +
+ + +
+
+

{{.Title}}

+ +
+ +
+ {{.Content}} +
+
+ +
+ + +
+

+ Comment, contact: The easiest way to contact me is by writing me a message on Telegram (https://t.me/mitjafelicijan). +

+

You can also just write me an email at m@mitjafelicijan.com.

+
+ +
+ + +
+

Read more from this site

+ +
+ +
+{{ end }} -- cgit v1.2.3