From e47afe1394317578c4150167a5770688b679b043 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 12 Feb 2026 14:18:30 -0500 Subject: [PATCH] added a theme --- .gitmodules | 3 ++ hugo.toml | 45 ++++++++++++++++++- themes/hello-friend-ng | 1 + .../{_partials => partials}/footer.html | 0 .../layouts/{_partials => partials}/head.html | 0 .../{_partials => partials}/head/css.html | 0 .../{_partials => partials}/head/js.html | 0 .../{_partials => partials}/header.html | 0 .../layouts/{_partials => partials}/menu.html | 2 +- .../{_partials => partials}/terms.html | 0 10 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 themes/hello-friend-ng rename themes/personal/layouts/{_partials => partials}/footer.html (100%) rename themes/personal/layouts/{_partials => partials}/head.html (100%) rename themes/personal/layouts/{_partials => partials}/head/css.html (100%) rename themes/personal/layouts/{_partials => partials}/head/js.html (100%) rename themes/personal/layouts/{_partials => partials}/header.html (100%) rename themes/personal/layouts/{_partials => partials}/menu.html (96%) rename themes/personal/layouts/{_partials => partials}/terms.html (100%) diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..179cb0c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hello-friend-ng"] + path = themes/hello-friend-ng + url = https://github.com/rhazdon/hugo-theme-hello-friend-ng.git diff --git a/hugo.toml b/hugo.toml index d39e2fd..b7b9fda 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,15 +1,58 @@ baseURL = 'https://dustin.coffee/' languageCode = 'en-us' title = 'd@n tech' -theme = 'personal' +theme = 'hello-friend-ng' [params] description = "Personal website of Dustin" author = "dustin" + dateform = "Jan 2, 2006" + dateformShort = "Jan 2" + dateformNum = "2006-01-02" + dateformNumTime = "2006-01-02 15:04" + + # Subtitle for home + homeSubtitle = "how did YOU get here?" + + # 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 = false + + # Metadata mostly used in document's head + description = "...it's my blog." + keywords = "homepage, blog" + images = [""] + [taxonomies] tag = "tags" category = "categories" + series = "series" + +[languages] + [languages.en] + title = "d@n tech" + keywords = "" + copyright = 'CC BY-NC 4.0' + readOtherPosts = "Read other posts" + + [languages.en.params] + subtitle = "how did YOU get here?" + + [languages.en.params.logo] + logoText = "hello friend ng" + logoHomeLink = "/" + # or + # + # path = "/img/your-example-logo.svg" + # alt = "Your example logo alt text" + + # And you can even create generic menu [[menu.main]] name = "home" diff --git a/themes/hello-friend-ng b/themes/hello-friend-ng new file mode 160000 index 0000000..1a0a16f --- /dev/null +++ b/themes/hello-friend-ng @@ -0,0 +1 @@ +Subproject commit 1a0a16f39c40b8f282f55d0ae988fe4234a432da diff --git a/themes/personal/layouts/_partials/footer.html b/themes/personal/layouts/partials/footer.html similarity index 100% rename from themes/personal/layouts/_partials/footer.html rename to themes/personal/layouts/partials/footer.html diff --git a/themes/personal/layouts/_partials/head.html b/themes/personal/layouts/partials/head.html similarity index 100% rename from themes/personal/layouts/_partials/head.html rename to themes/personal/layouts/partials/head.html diff --git a/themes/personal/layouts/_partials/head/css.html b/themes/personal/layouts/partials/head/css.html similarity index 100% rename from themes/personal/layouts/_partials/head/css.html rename to themes/personal/layouts/partials/head/css.html diff --git a/themes/personal/layouts/_partials/head/js.html b/themes/personal/layouts/partials/head/js.html similarity index 100% rename from themes/personal/layouts/_partials/head/js.html rename to themes/personal/layouts/partials/head/js.html diff --git a/themes/personal/layouts/_partials/header.html b/themes/personal/layouts/partials/header.html similarity index 100% rename from themes/personal/layouts/_partials/header.html rename to themes/personal/layouts/partials/header.html diff --git a/themes/personal/layouts/_partials/menu.html b/themes/personal/layouts/partials/menu.html similarity index 96% rename from themes/personal/layouts/_partials/menu.html rename to themes/personal/layouts/partials/menu.html index 14245b5..7183180 100644 --- a/themes/personal/layouts/_partials/menu.html +++ b/themes/personal/layouts/partials/menu.html @@ -18,7 +18,7 @@ Renders a menu for the given menu ID. {{- end }} -{{- define "_partials/inline/menu/walk.html" }} +{{- define "partials/inline/menu/walk.html" }} {{- $page := .page }} {{- range .menuEntries }} {{- $attrs := dict "href" .URL }} diff --git a/themes/personal/layouts/_partials/terms.html b/themes/personal/layouts/partials/terms.html similarity index 100% rename from themes/personal/layouts/_partials/terms.html rename to themes/personal/layouts/partials/terms.html