From f3cfd8ef9d395153fa6d3ea902d161bada030be1 Mon Sep 17 00:00:00 2001 From: Renken Date: Sat, 17 Aug 2024 00:10:06 +0200 Subject: [PATCH] build: fork bearblog into bunnyblog Silly fork to add more stuff I like. --- .gitmodules | 3 -- hugo.toml | 60 +++++++++++++++++++++++- themes/{hugo-bearblog => hugo-bunnyblog} | 0 3 files changed, 59 insertions(+), 4 deletions(-) rename themes/{hugo-bearblog => hugo-bunnyblog} (100%) diff --git a/.gitmodules b/.gitmodules index c53b474..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "themes/hugo-bearblog"] - path = themes/hugo-bearblog - url = https://github.com/janraasch/hugo-bearblog.git diff --git a/hugo.toml b/hugo.toml index de11d1d..1b935bf 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,12 +1,70 @@ baseURL = "https://shione.net/" +theme = "hugo-bunnyblog" title = "shione" +author = "renken" +copyright = "Copyright © 2024, renken." pygmentsUseClasses = true uglyurls = true disablePathToLower = true rssLimit = 10 +languageCode = "en-US" +enableRobotsTXT = true + +# Generate "Bearblog"-like URLs !only!, see https://bearblog.dev/. +# disableKinds = ["taxonomy"] +# ignoreErrors = ["error-disable-taxonomy"] + +[params] + # The "description" of your website. This is used in the meta data of your generated html. + description = "renken's weblog" + + # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. + # Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder. + favicon = "avatar.png" + + # These "images" are used for the structured data templates. This will show up, when + # services like Twitter or Slack want to generate a preview of a link to your site. + # See https://gohugo.io/templates/internal#twitter-cards and + # https://gohugo.io/templates/internal#open-graph. + images = ["avatar.png"] + + # Another "title" :-). This one is used as the site_name on the Hugo's internal + # opengraph structured data template. + # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph. + title = "renken's weblog" + + # This theme will, by default, inject a made-with-line at the bottom of the page. + # You can turn it off, but we would really appreciate if you don’t :-). + hideMadeWithLine = true + + # By default, this theme displays dates with a format like "02 Jan, 2006", but + # you can customize it by setting the `dateFormat` param in your site's config + # file. See [Hugo's Format function docs](https://gohugo.io/functions/format/) + # for details. An example TOML config that uses [ISO + # 8601](https://en.wikipedia.org/wiki/ISO_8601) format: + dateFormat = "02 Jan 2006" [permalinks] -blog = "/:year/:month/:day/:slugorfilename" + blog = "/blog/:slug/" + tags = "/blog/tags/:slug" + +[menus] + [[menus.main]] + name = "home" + pageRef = "/" + weight = 10 + [[menus.main]] + name = "blog" + pageRef = "/blog" + weight = 20 + [[menus.main]] + name = "services" + pageRef = "/services" + weight = 30 + [[menus.main]] + name = "misc" + pageRef = "/misc" + weight = 40 [markup.goldmark.renderer] unsafe = true diff --git a/themes/hugo-bearblog b/themes/hugo-bunnyblog similarity index 100% rename from themes/hugo-bearblog rename to themes/hugo-bunnyblog