diff --git a/.gitmodules b/.gitmodules index a7813d0..df6bbf0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "content/posts"] path = content/posts url = https://git.theoswalds.com/private/hugo-richard-posts.git +[submodule "themes/terminal"] + path = themes/terminal + url = https://github.com/panr/hugo-theme-terminal.git diff --git a/hugo.toml b/hugo.toml index 11bb9c3..2179c74 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,5 +1,115 @@ +publishDir = '/public' baseURL = 'https://blog.theoswalds.com/' -languageCode = 'en-us' -title = 'Richard Blog' -theme = 'PaperMod' -publishDir = '/public' \ No newline at end of file +languageCode = "en-us" +# Add it only if you keep the theme in the `themes` directory. +# Remove it if you use the theme as a remote Hugo Module. +theme = "terminal" +pagination.pagerSize = 5 + +# Required for Chroma and the custom syntax highlighting. +[markup.highlight] + noClasses = false + +[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" + + # if you set this to 0, only submenu trigger will be visible + showMenuItems = 2 + + # show selector to switch language + showLanguageSelector = false + + # set theme to full screen width + fullWidthTheme = false + + # center theme with default width + centerTheme = false + + # if your resource directory contains an image called `cover.(jpg|png|webp)`, + # then the file will be used as a cover automatically. + # With this option you don't have to put the `cover` param in a front-matter. + autoCover = true + + # 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 = false + + # 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" + + # whether to show a page's estimated reading time + # readingTime = false # default + + # whether to show a table of contents + # can be overridden in a page's front-matter + # Toc = false # default + + # set title for the table of contents + # can be overridden in a page's front-matter + # TocTitle = "Table of Contents" # default + + # Set date/time format for posts + # This will impact the date/time displayed on + # index.html, the posts list page, and on posts themselves + # This value can also be configured per-post on front matter + # If you have any issues with the timezone rendering differently + # than you expected, please ensure your timezone is correctly set + # on your server. + # This value can be customized according to Hugo documentation: + # https://gohugo.io/functions/time/format/ + # Default value (no changes needed): + # dateFormat = "2006-01-02" + # Example format, with date, time, and timezone abbreviation: + # dateFormat = "2006-01-02 3:04:06 PM MST" + + +[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 = "Richard's Blog" + + [languages.en.params] + #subtitle = "" + owner = "" + 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" + minuteReadingTime = "min read" + words = "words" + + [languages.en.params.logo] + logoText = "Terminal" + logoHomeLink = "/" + + [languages.en.menu] + [[languages.en.menu.main]] + identifier = "about" + name = "About" + url = "/about" + [[languages.en.menu.main]] + identifier = "showcase" + name = "Showcase" + url = "/showcase" + +[module] + # In case you would like to make changes to the theme and keep it locally in you repository, + # uncomment the line below (and correct the local path if necessary). + # -- + # replacements = "github.com/panr/hugo-theme-terminal/v4 -> themes/terminal" +[[module.imports]] + path = 'github.com/panr/hugo-theme-terminal/v4' \ No newline at end of file diff --git a/themes/terminal b/themes/terminal new file mode 160000 index 0000000..5a2b4c0 --- /dev/null +++ b/themes/terminal @@ -0,0 +1 @@ +Subproject commit 5a2b4c0f1fdb9180d525930b2c8f68a90221d245