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/LICENSE | 20 ++++ themes/simple/archetypes/default.md | 2 + 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 +++ themes/simple/static/css/.gitkeep | 0 themes/simple/static/js/.gitkeep | 0 themes/simple/theme.toml | 16 +++ 13 files changed, 361 insertions(+) create mode 100644 themes/simple/LICENSE create mode 100644 themes/simple/archetypes/default.md 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 create mode 100644 themes/simple/static/css/.gitkeep create mode 100644 themes/simple/static/js/.gitkeep create mode 100644 themes/simple/theme.toml (limited to 'themes/simple') diff --git a/themes/simple/LICENSE b/themes/simple/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/themes/simple/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/simple/archetypes/default.md b/themes/simple/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/simple/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ 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 @@ +
+
+

+ +

+ + +
+
diff --git a/themes/simple/static/css/.gitkeep b/themes/simple/static/css/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/themes/simple/static/js/.gitkeep b/themes/simple/static/js/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/themes/simple/theme.toml b/themes/simple/theme.toml new file mode 100644 index 0000000..f958c89 --- /dev/null +++ b/themes/simple/theme.toml @@ -0,0 +1,16 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Simple" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "Mitja Felicijan" + homepage = "https://mitjafelicijan.com" + -- cgit v1.2.3