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 0000000..c0a8040 Binary files /dev/null and b/static/img/bbaovanc-1024.png differ 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