From 5ee07dcb4bb94bbd6795b549ad331445681340e5 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 18:09:26 +0200 Subject: [PATCH 1/7] switch basic things - change git submodule - rm usless .gitkeep - rm old theme - change global config to get theme terminal to work --- .gitmodules | 6 +++--- config.toml | 22 +++++++++++++--------- themes/.gitkeep | 0 themes/nofancy | 1 - themes/terminal | 1 + 5 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 themes/.gitkeep delete mode 160000 themes/nofancy create mode 160000 themes/terminal diff --git a/.gitmodules b/.gitmodules index 88adc6a..778d1e4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "themes/nofancy"] - path = themes/nofancy - url = https://github.com/gizak/nofancy +[submodule "themes/terminal"] + path = themes/terminal + url = https://github.com/panr/hugo-theme-terminal diff --git a/config.toml b/config.toml index 7efc122..b3d770a 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ baseURL = "https://mh.obermui.de/" languageCode = "de-de" title = "MH Site" -theme = "nofancy" +theme = "terminal" #copyright = "CC-By-NC-4.0" @@ -11,11 +11,15 @@ theme = "nofancy" gitea = "https://git.altinsystems.d" [params] - # See themes/nofancy/static/highlight/styles for available options - # i.e. "default", "github", "monokai". - highlight="Assign a syntax highlight style" - - # Controls what items are listed in the top nav menu - # "none", or "categories" - # If you have too many categories to fit in the top nav menu, set this to "none" - topmenu="categories" + # dir name of your blog content (default is `content/posts`) + contentTypeName = "post" + # ["orange", "blue", "red", "green", "pink"] + themeColor = "orange" + # if you set this to 0, only submenu trigger will be visible + showMenuItems = 4 + # set theme to full screen width + fullWidthTheme = false + # center theme with default width + centerTheme = true + # set a custom favicon (default is a `themeColor` square) + # favicon = "favicon.ico" diff --git a/themes/.gitkeep b/themes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/themes/nofancy b/themes/nofancy deleted file mode 160000 index ae46702..0000000 --- a/themes/nofancy +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ae4670287c71f4c4aed91be9b3d3919846fd62c9 diff --git a/themes/terminal b/themes/terminal new file mode 160000 index 0000000..016f54c --- /dev/null +++ b/themes/terminal @@ -0,0 +1 @@ +Subproject commit 016f54c162a41d3e21c8d68a2c7794d5c0f8e08c From 9f0e6c4c17c2821718012edf9fdfbd2fcb3f00cd Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 18:11:28 +0200 Subject: [PATCH 2/7] restruct config header --- config.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index b3d770a..5d8a1ce 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ baseURL = "https://mh.obermui.de/" -languageCode = "de-de" title = "MH Site" + +languageCode = "en-en" theme = "terminal" #copyright = "CC-By-NC-4.0" From 083e2d796e7ac619d30877e056324288e6829f54 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 18:14:08 +0200 Subject: [PATCH 3/7] global config: set lang & page max content --- config.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.toml b/config.toml index 5d8a1ce..6f6bd23 100644 --- a/config.toml +++ b/config.toml @@ -4,6 +4,8 @@ title = "MH Site" languageCode = "en-en" theme = "terminal" +paginate = 5 #entrys per site +defaultContentLanguage = "en" #copyright = "CC-By-NC-4.0" [author] From ee091182e4a768022c996a0b19c662085e7d329c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 18:20:47 +0200 Subject: [PATCH 4/7] config theme Menue & title --- config.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/config.toml b/config.toml index 6f6bd23..9a59d19 100644 --- a/config.toml +++ b/config.toml @@ -26,3 +26,26 @@ defaultContentLanguage = "en" centerTheme = true # set a custom favicon (default is a `themeColor` square) # favicon = "favicon.ico" + + [languages] + [languages.en] + title = "MH Site" + subtitle = "A simple Homepage" + keywords = "Homepage 6543" + menuMore = "Show more" + readMore = "Read more" + readOtherPosts = "Read other posts" + + [languages.en.params.logo] + logoText = "[MH @ Obermui ~]#" + logoHomeLink = "/" + + [languages.en.menu] + [[languages.en.menu.main]] + identifier = "about" + name = "About" + url = "/about" + [[languages.en.menu.main]] + identifier = "post" + name = "Posts" + url = "/post" From 26304bdce6dacfc205e88a4ceab59e49d5633147 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 18:21:20 +0200 Subject: [PATCH 5/7] rm usless .gitkeep --- archetypes/.gitkeep | 0 content/.gitkeep | 0 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 archetypes/.gitkeep delete mode 100644 content/.gitkeep diff --git a/archetypes/.gitkeep b/archetypes/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/content/.gitkeep b/content/.gitkeep deleted file mode 100644 index e69de29..0000000 From 25e364c628e45ade3d1937613299ca79d1d22112 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 18:42:06 +0200 Subject: [PATCH 6/7] archetype change syncax to toml --- archetypes/default.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..4f0d590 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,5 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - ++++ +title = "{{ replace .Name "-" " " | title }}" +date = {{ .Date }} +draft = true ++++ From 034d9c10dd301623d4498472d7a7b9bd96a5d49d Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 1 Jul 2019 19:14:42 +0200 Subject: [PATCH 7/7] add archetype for posts --- archetypes/post.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 archetypes/post.md diff --git a/archetypes/post.md b/archetypes/post.md new file mode 100644 index 0000000..2f4da9e --- /dev/null +++ b/archetypes/post.md @@ -0,0 +1,10 @@ ++++ +title = "{{ replace .Name "-" " " | title }}" +date = {{ .Date }} +author = "{{.Site.Author.name}}" +cover = "" +tags = ["", ""] +description = "" +showFullContent = false +draft = true ++++