If you installed all needed npm dependencies, then you can run:
$ hugo server -t terminal
and go to localhost:1313 in your browser. From now on all the changes you make will go live, so you don’t need to refresh your browser every single time.
How to configure
The theme doesn’t require any advanced configuration. Just copy:
baseurl = "/"languageCode = "en-us"theme = "terminal"paginate = 5
# 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"# ["orange", "blue", "red", "green", "pink"]themeColor = "orange"# if you set this to 0, only submenu trigger will be visibleshowMenuItems = 2# show selector to switch languageshowLanguageSelector = false# set theme to full screen widthfullWidthTheme = false# center theme with default widthcenterTheme = false# set a custom favicon (default is a `themeColor` square)# favicon = "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 updatedshowLastUpdated = 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"# set all headings to their default size (depending on browser settings)# it's set to `true` by default# oneHeadingSize = false
# 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 = ""
languageName = "English"title = "Terminal"subtitle = "A simple, retro theme for Hugo"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"
logoText = "Terminal"logoHomeLink = "/"
identifier = "about"name = "About"url = "/about"
identifier = "showcase"name = "Showcase"url = "/showcase"
to config.toml file in your Hugo root directory and change params fields. In case you need, here’s a YAML version.
NOTE: Please keep in mind that currently main menu doesn’t support nesting.
The theme is in constant development since 2019 and has got many cool features that helped many of you and made the theme better. But there were also many features that I wasn’t sure about because I want to keep the theme as simple as possible.
So, let’s say you have an idea of how to extend the theme. That’s cool and you’re welcome to do that, just follow these steps:
fork the theme
implement the feature
write an instruction how to use the feature
give a working example of the implementation for other users
add info about your work to COMMUNITY-FEATURES.md
make a PR with edited COMMUNITY-FEATURES.md
This will help keeping the theme close to its roots, and also allow anyone who wishes to improve it and match their needs, to do whatever they want.
Sounds OK? Cool, let’s rock! 🤘
Terminal theme user?
I’d be happy to know more about you and what you are doing. If you want to share it, please make a contribution and add your site to the list! 🤗
If you like my work and want to support the development of the project, now you can! Just: