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/404.html | 0 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 ++++++++ themes/simple/layouts/partials/footer.html | 14 +++ themes/simple/layouts/partials/head.html | 175 +++++++++++++++++++++++++++++ themes/simple/layouts/partials/header.html | 18 +++ 8 files changed, 323 insertions(+) create mode 100644 themes/simple/layouts/404.html 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 create mode 100644 themes/simple/layouts/partials/footer.html create mode 100644 themes/simple/layouts/partials/head.html create mode 100644 themes/simple/layouts/partials/header.html (limited to 'themes/simple/layouts') diff --git a/themes/simple/layouts/404.html b/themes/simple/layouts/404.html new file mode 100644 index 0000000..e69de29 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 }} diff --git a/themes/simple/layouts/partials/footer.html b/themes/simple/layouts/partials/footer.html new file mode 100644 index 0000000..6e7ec9c --- /dev/null +++ b/themes/simple/layouts/partials/footer.html @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html new file mode 100644 index 0000000..716b1f0 --- /dev/null +++ b/themes/simple/layouts/partials/head.html @@ -0,0 +1,175 @@ + + + + + + + + + + +{{.Title}} + + + diff --git a/themes/simple/layouts/partials/header.html b/themes/simple/layouts/partials/header.html new file mode 100644 index 0000000..e234615 --- /dev/null +++ b/themes/simple/layouts/partials/header.html @@ -0,0 +1,18 @@ +
+
+

+ +

+ + +
+
-- cgit v1.2.3