From dfa578bd26fb7a9965fd1ec3b5d8988bfc2a2ac3 Mon Sep 17 00:00:00 2001 From: Casual Date: Thu, 7 Mar 2024 09:15:35 +0300 Subject: [PATCH] init of a real website --- .gitmodules | 3 +++ archetypes/default.md | 11 +++++------ content/_index.md | 13 +++++++++++++ content/posts/hello-world.md | 10 ---------- content/posts/test.md | 10 ++++++++++ content/whoami/casual.md | 13 +++++++++++++ config.yaml => hugo.yaml | 21 +++++++++++++++++++-- themes/anubis | 1 - themes/anubis2 | 1 + 9 files changed, 64 insertions(+), 19 deletions(-) create mode 100644 content/_index.md delete mode 100644 content/posts/hello-world.md create mode 100644 content/posts/test.md create mode 100644 content/whoami/casual.md rename config.yaml => hugo.yaml (85%) delete mode 160000 themes/anubis create mode 160000 themes/anubis2 diff --git a/.gitmodules b/.gitmodules index 5a69223..810cb2c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/anubis"] path = themes/anubis url = https://github.com/mitrichius/hugo-theme-anubis.git +[submodule "themes/anubis2"] + path = themes/anubis2 + url = https://github.com/Junyi-99/hugo-theme-anubis2.git diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..c6f3fce 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,5 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..ad740c6 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,13 @@ ++++ +title = 'Index of Casual Blog' +date = 2024-03-07T09:01:06+03:00 +draft = false ++++ + +# Hi there + + +## About site + + +Powered with Hugo with Anubis2 theme. diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md deleted file mode 100644 index cbc8b66..0000000 --- a/content/posts/hello-world.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "Hello World" -date: 2023-07-23T17:56:22+03:00 -draft: false ---- - - -# Hello World! - -World Hello diff --git a/content/posts/test.md b/content/posts/test.md new file mode 100644 index 0000000..5c0be7d --- /dev/null +++ b/content/posts/test.md @@ -0,0 +1,10 @@ ++++ +title = 'Test' +date = 2024-03-07T08:45:04+03:00 +draft = false ++++ + + +Hello there! +It's first post and I'm doing it on an overcomplicated system in my homelab. + diff --git a/content/whoami/casual.md b/content/whoami/casual.md new file mode 100644 index 0000000..f0eaf50 --- /dev/null +++ b/content/whoami/casual.md @@ -0,0 +1,13 @@ ++++ +title = 'Who is Casual?' +date = 2024-03-06T22:36:30+03:00 +draft = false ++++ + +# Casual + +There will be some kind of resume and info about me in future :) + + + + diff --git a/config.yaml b/hugo.yaml similarity index 85% rename from config.yaml rename to hugo.yaml index d005ed8..56651db 100644 --- a/config.yaml +++ b/hugo.yaml @@ -1,7 +1,10 @@ +# baseURL = 'https://example.org/' +# languageCode = 'en-us' +# title = 'My New Hugo Site' languageCode: "en-us" baseUrl: "https://blog.ca.sual.in/" title: "Casual Blog" -theme: "anubis" +theme: "anubis2" paginate: 10 # disqusShortname: "yourdiscussshortname" # googleAnalytics: "G-12345" @@ -13,6 +16,11 @@ menu: name: Blog title: Blog url: /posts/ + weight: 10 + - identifier: whoami + name: About me + title: Whoami + url: /whoami/casual/ weight: 0 params: @@ -27,7 +35,8 @@ params: # - css/my.css # relative path to "assets" directory (don't use main.css filename) # customJS: # - js/main.js # relative path to "assets" directory - dateFormat: "2006-01-02" + # dateFormat: "29.01.2024" + # dateFormat: "29.01.2024" paginationSinglePost: true style: dark-without-switcher mainSections: [ "blog" ] # which sections should be on index/main page @@ -81,3 +90,11 @@ params: # goldmark: # renderer: # unsafe: true # enable raw HTML in Markdown +# module: +# imports: +# - disable: false +# ignoreConfig: false +# ignoreImports: false +# path: github.com/Junyi-99/hugo-theme-anubis2 +# - path: anubis2 +# diff --git a/themes/anubis b/themes/anubis deleted file mode 160000 index d5bd8c2..0000000 --- a/themes/anubis +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d5bd8c2848414141949fc1f97a4b13f72f3637d5 diff --git a/themes/anubis2 b/themes/anubis2 new file mode 160000 index 0000000..d2a0068 --- /dev/null +++ b/themes/anubis2 @@ -0,0 +1 @@ +Subproject commit d2a006804e774d014fe0065e860e374ebfe8d466