diff options
| author | leo <azuminha1@gmail.co> | 2025-10-16 20:02:39 -0300 |
|---|---|---|
| committer | leo <azuminha1@gmail.co> | 2025-10-16 20:02:39 -0300 |
| commit | 8e7996214af853803c4dd04534b1f5646b0ac1c5 (patch) | |
| tree | 14a30d462b47b54d41613347782da6e48b71d082 /themes/hugo-classic/README.md | |
first
Diffstat (limited to 'themes/hugo-classic/README.md')
| -rw-r--r-- | themes/hugo-classic/README.md | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/themes/hugo-classic/README.md b/themes/hugo-classic/README.md new file mode 100644 index 0000000..756b9c6 --- /dev/null +++ b/themes/hugo-classic/README.md @@ -0,0 +1,106 @@ +# Hugo.io - Classic Theme + +Classic is a stylized fork of the **XMin** theme, written by [Yihui Xie](https://yihui.name). + +Provides `highlight.js` for syntax highlighting, emoji support, Inter and optional **_darkmode_**. + +[**View live demo**](https://goodroot.ca) + +### Instructions + +1: Install Hugo. + +``` +brew install hugo +``` + +2: Create a new site. + +``` +hugo new site classic +``` + +3: Change to themes dir. + +``` +cd classic/themes +``` + +4: Clone the repo + +``` +git clone git@github.com:goodroot/hugo-classic.git +``` + +5: Copy files within the `exampleSite` directory + +``` +cp -a hugo-classic/exampleSite/. ../ +``` + +6: Run `hugo server` within `classic/` + +``` +cd .. && hugo server +``` + +### New Posts + +Make new posts: + +``` +hugo new post/good-to-great.md +``` + +### Header Colour + +Adjust header colour within `static/css/style.css` + +``` +header { + background: #613DC1; +} +``` + +... `background:` to any colour value you'd like! + +For header font: + +``` +header a { + color: #fff; +} +``` + +Change `color:` to a nice matching colour. + +### Darkmode + +Match or over-ride system-wide dark/light settings + +1. Open `static/css/style.css` + +2. Edit the following attributes to match light/dark + +```css +/* darkmode */ +@media (prefers-color-scheme: dark) { + ... +} + +/* lightmode */ +@media (prefers-color-scheme: light) { + ... +} +``` + +#### Screenshot + + + + +## Blog Posts + +hugo-classic has appeared in... + +[15 Hugo Framework blog themes](https://terrty.net/2018/15-hugo-framework-blog-themes/) by [paskal](https://github.com/paskal) |
