From 7d4f8d9f1ba743be20ee714926c7fbe7f0114dbb Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 18 Apr 2021 20:48:02 -0500 Subject: [PATCH] [WIP] Migrate to hugo-bearblog theme --- .gitmodules | 6 +- archetypes/default.md | 6 - archetypes/posts.md | 1 + config.toml | 133 ++--- layouts/partials/nav.html | 10 + static/img/bbaovanc-1024.png | Bin 0 -> 6670 bytes static/img/favicon.svg | 922 +++++++++++++++++++++++++++++++++++ themes/hugo-bearblog | 1 + themes/terminal | 1 - 9 files changed, 974 insertions(+), 106 deletions(-) delete mode 100644 archetypes/default.md create mode 120000 archetypes/posts.md create mode 100644 layouts/partials/nav.html create mode 100644 static/img/bbaovanc-1024.png create mode 100644 static/img/favicon.svg create mode 160000 themes/hugo-bearblog delete mode 160000 themes/terminal diff --git a/.gitmodules b/.gitmodules index a6851ba..ab9dfc3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "themes/terminal"] - path = themes/terminal - url = https://github.com/panr/hugo-theme-terminal.git +[submodule "themes/hugo-bearblog"] + path = themes/hugo-bearblog + url = git@github.com:janraasch/hugo-bearblog.git diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index 00e77bd..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - diff --git a/archetypes/posts.md b/archetypes/posts.md new file mode 120000 index 0000000..ba97bad --- /dev/null +++ b/archetypes/posts.md @@ -0,0 +1 @@ +../themes/hugo-bearblog/archetypes/blog.md \ No newline at end of file diff --git a/config.toml b/config.toml index e9c795f..9902a31 100644 --- a/config.toml +++ b/config.toml @@ -1,105 +1,46 @@ baseURL = "https://bbaovanc.com/blog/" -languageCode = "en-us" -theme = "terminal" -paginate = 5 -enableGitInfo = true +theme = "hugo-bearblog" -# [permalinks] -# posts = "/:year/:month/:title/" +title = "bbaovanc's blog" +author = "bbaovanc" +copyright = "Copyright © 2021, bbaovanc." +languageCode = "en-US" + +# Generate a nice robots.txt for SEO +enableRobotsTXT = true + +#disableKinds = ["taxonomy"] +#ignoreErrors = ["error-disable-taxonomy"] +[permalinks] + blog = "/:slug/" + tags = "/posts/:slug" [params] - # dir name of your main content (default is `content/posts`). - # the list of set content will show up on your index page (baseurl). - contentTypeName = "posts" + # The "description" of your website. This is used in the meta data of your generated html. + description = "My personal blog site" - # ["orange", "blue", "red", "green", "pink"] - themeColor = "blue" + # 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 = "img/favicon.svg" - # if you set this to 0, only submenu trigger will be visible - showMenuItems = 6 + # 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 = ["img/bbaovanc-1024.png"] - # show selector to switch language - showLanguageSelector = false + # 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 = "bbaovanc's blog" - # set theme to full screen width - fullWidthTheme = false + # 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 - # center theme with default width - centerTheme = true - - # set a custom favicon (default is a `themeColor` square) - favicon = "img/favicon.ico" - - # set post to show the last updated - # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated - showLastUpdated = true - # Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author - # updatedDatePrefix = "Updated" - - # set all headings to their default size (depending on browser settings) - # it's set to `true` by default - # oneHeadingSize = false - -[params.twitter] - # set Twitter handles for Twitter cards - # see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution - # do not include @ - creator = "" - site = "" - -[languages] - [languages.en] - languageName = "English" - title = "bbaovanc's blog" - subtitle = "My personal blog site" - owner = "bbaovanc" - keywords = "" - copyright = "" - menuMore = "Show more" - readMore = "Read more" - readOtherPosts = "Read other posts" - newerPosts = "Newer posts" - olderPosts = "Older posts" - missingContentMessage = "Page not found..." - missingBackButtonLabel = "Back to home page" - - [languages.en.params.logo] - logoText = "bbaovanc's blog" - logoHomeLink = "/blog/" - - [languages.en.menu] - [[languages.en.menu.main]] - identifier = "tags" - name = "Tags" - url = "/tags" - weight = 10 - - [[languages.en.menu.main]] - identifier = "links" - name = "Links" - url = "/links" - weight = 20 - - [[languages.en.menu.main]] - identifier = "rss" - name = "RSS Feed" - url = "/posts/index.xml" - weight = 30 - - [[languages.en.menu.main]] - identifier = "email-me" - name = "Email Me" - url = "mailto:contact@bbaovanc.com" - weight = 40 - - [[languages.en.menu.main]] - identifier = "main-website" - name = "Main Website" - url = "https://bbaovanc.com/" - weight = 50 - - [[languages.en.menu.main]] - identifier = "source-code" - name = "Source Code" - url = "https://git.bbaovanc.com/bbaovanc.com/blog" - weight = 60 + # 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 = "Jan 02, 2006" diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..d01dabe --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,10 @@ + +Home +{{ range .Site.Menus.main }} +{{ .Name }} +{{ end }} +{{ with .Site.GetPage "/posts" }} +Blog +{{ end }} diff --git a/static/img/bbaovanc-1024.png b/static/img/bbaovanc-1024.png new file mode 100644 index 0000000000000000000000000000000000000000..c0a80408d502aef93f08dfd5510f2c8cd0e0c36c GIT binary patch literal 6670 zcmeHJ3pCXE7atmoSH>eUEaOczB9Eys#+%3^8t>G2hP+0eVT{Lm4oT$wD37g0QcWpY ztVcu=m8tPwTA~z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G_ZewBkJx+RUX zRSCc8=sEmeAqTmRJK1Sj`vra)EzP;XeKDy3^*UIMxlr-JXK}zRb$3VKVLDG9y_Y&N9AM zWGkK)CFARL0;7*X8Btg+B6lp6^#+8oJAe1NPwgg^*^T#dn-xj5}eexb0Zy{%{LZ!S@R>#YZ$hmgIvUs)2oDf z#$moOk^fAP<}^x5zC2>*_s+R?dSvYTYcbd0kVyQ&Lx<(+4HMUm*%4UvgLCco!qe^r zINI)`jqW;(vvgc4XQ=#C23yGm)(ArC0r^@1N zhx!vL5?Zd7TRup?TGttxT!-0L*QT+;9wQjxnlq!!!rdaC1=ort9AJ}e){n&$@UgR! z)54Zn92#}y;~bb20`?VyId9Cctj7#f>;@kuh8W_pu4**sP*ml)a=4nmrO1mRS0=@u+})!U$}if{Jy2g?DZ!l-C`+x zkB?`2^g4$Mo2BJ;v zEs)>dfz$9`IMb&8*LSvr{T1>>!e4j3p81P}Uk|&*`5(p!4+1`Pa6;4Yf3Z$@T8>Rl z_^_XE#$Vi(QD4TH@hNIu)Z@zA8m?66g5OdiH^Bh_qG@P47{O_HIy$$Fo^F9`>GqbL zuV>yY^xw>h4*BsL@}C4ewxP`y$e$9n-=tyyQI)Rzy?6S=xRe8;o0-c~iH{p1i?=}Sc zm-hh;REY;{JEd-_fu`Z<&T6|Nh_w@pin?UsG0Z!No#Xtg#K`uMB` z+A)Tn*{X*1Ro?0O>r*cvTC3SnzRcokf_ZDj^Xs5FSV$pq303SGD+r7Mh z+_SB1rQ=ON11#`>(bMn^+W#<4Xj%<)aDszO=ySl+68srq@wsx<^291M?v}BTBn6`i z$!%!#0ppqfn|6S(8|s3A1st%i%lz9rc$&`_&i{|oZk-|U#L=wQ;AaZ7l8y9Cb*r^c G5`F==5u#TB literal 0 HcmV?d00001 diff --git a/static/img/favicon.svg b/static/img/favicon.svg new file mode 100644 index 0000000..2abac17 --- /dev/null +++ b/static/img/favicon.svg @@ -0,0 +1,922 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/hugo-bearblog b/themes/hugo-bearblog new file mode 160000 index 0000000..11d7e54 --- /dev/null +++ b/themes/hugo-bearblog @@ -0,0 +1 @@ +Subproject commit 11d7e54cb9467ecc27df791a9db9153fbc9b0c7f diff --git a/themes/terminal b/themes/terminal deleted file mode 160000 index aaaadaf..0000000 --- a/themes/terminal +++ /dev/null @@ -1 +0,0 @@ -Subproject commit aaaadafec9b6a754cb014e0436d5565d2c3c0fea