From 7280a5cc7ffdbdea3085ea745c05377f725be24b Mon Sep 17 00:00:00 2001 From: Sebastian Bugge Date: Tue, 26 Dec 2023 15:30:19 +0100 Subject: [PATCH] Initial configuration. --- .gitignore | 3 ++ .gitmodules | 3 ++ archetypes/default.md | 6 ++++ content/about.md | 8 +++++ deploy.sh | 2 ++ hugo.toml | 72 ++++++++++++++++++++++++++++++++++++++++++ themes/hello-friend-ng | 1 + 7 files changed, 95 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 content/about.md create mode 100755 deploy.sh create mode 100644 hugo.toml create mode 160000 themes/hello-friend-ng diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..21730f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.hugo_build.lock +public/ +resources/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5e5c87e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hello-friend-ng"] + path = themes/hello-friend-ng + url = git@github.com:Kaholaz/hugo-theme-hello-friend-ng.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..460eb2a --- /dev/null +++ b/content/about.md @@ -0,0 +1,8 @@ +--- +title: "About" +date: 2023-12-26T14:12:12+01:00 +draft: false +--- + +Hei! + diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..6737e75 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,2 @@ +hugo || exit +rsync public/ vsbugge@navi.samfundet.no:/var/www/kaholaz.net/ -r --delete -P diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..1bbf57f --- /dev/null +++ b/hugo.toml @@ -0,0 +1,72 @@ +baseurl = "https://kaholaz.net" +title = "Min blogg" +languageCode = "nb-NO" +theme = "hello-friend-ng" +paginate = 10 + +PygmentsCodeFences = true +PygmentsStyle = "monokai" + +archetypeDir = "archetypes" +contentDir = "content" +dataDir = "data" +layoutDir = "layouts" +publishDir = "public" + +buildDrafts = false +buildFuture = false +buildExpired = false +canonifyURLs = true + +enableRobotsTXT = true +enableGitInfo = false +enableEmoji = true +enableMissingTranslationPlaceholders = false +disableRSS = false +disableSitemap = false +disable404 = false +disableHugoGeneratorInject = false + +[permalinks] + posts = "/posts/:year/:month/:title/" + +[params] + dateform = "Jan 2, 2006" + dateformShort = "Jan 2" + dateformNum = "2006-01-02" + dateformNumTime = "2006-01-02 15:04" + + # Subtitle for home + homeSubtitle = "A simple and beautiful blog" + + # Set disableReadOtherPosts to true in order to hide the links to other posts. + disableReadOtherPosts = false + + # Enable sharing buttons, if you like + enableSharingButtons = true + + # Show a global language switcher in the navigation bar + # enableGlobalLanguageMenu = true + + # Metadata mostly used in document's head + description = "My new homepage or blog" + keywords = "homepage, blog" + images = [""] + +[taxonomies] + category = "blog" + tag = "tags" + series = "series" + +defaultContentLanguage = "no" +defaultContentLanguageInSubdir = true + +[menu] + [[menu.main]] + identifier = "about" + name = "About" + url = "about/" + [[menu.main]] + identifier = "posts" + name = "Posts" + url = "posts/" diff --git a/themes/hello-friend-ng b/themes/hello-friend-ng new file mode 160000 index 0000000..cac4c54 --- /dev/null +++ b/themes/hello-friend-ng @@ -0,0 +1 @@ +Subproject commit cac4c547ca697d29f87355980d3e7839589e2d5b