From ab4db7c7b8773aea436ef5c77ac1384cf6004e15 Mon Sep 17 00:00:00 2001 From: goodroot <9484709+goodroot@users.noreply.github.com> Date: Fri, 2 Jul 2021 22:47:21 -0700 Subject: Tune up --- README.md | 12 ++++++++-- exampleSite/config.toml | 41 ++++++++++++++-------------------- layouts/partials/analytics/fathom.html | 13 ----------- layouts/partials/footer.html | 3 --- static/css/style.css | 4 ---- 5 files changed, 27 insertions(+), 46 deletions(-) delete mode 100644 layouts/partials/analytics/fathom.html diff --git a/README.md b/README.md index 40bee80..b1fd3cb 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,17 @@ cd classic/themes git clone git@github.com:goodroot/hugo-classic.git ``` -5: Copy files within the `exampleSite` directory into the classic directory. Overwrite the existing `content/`, `static/`, and `config.toml` files. +5: Copy files within the `exampleSite` directory -6: Run `hugo server` within `classic/` and enjoy and customize to your hearts content! +``` +cp -a hugo-classic/exampleSite/. ../ +``` + +6: Run `hugo server` within `classic/` + +``` +cd .. && hugo server +``` ### New Posts diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6af5db1..c5ce703 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,35 +1,28 @@ baseurl = "/" -languageCode = "en-us" -title = "Classic" -theme = "hugo-classic" -googleAnalytics = "" -ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"] enableEmoji = true footnotereturnlinkcontents = "↩" +googleAnalytics = "" +ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"] +languageCode = "en-us" +theme = "hugo-classic" +title = "Classic" [permalinks] - post = "/post/:year/:month/:day/:slug/" +post = "/post/:year/:month/:day/:slug/" [[menu.main]] - name = "Categories" - url = "/categories/" - weight = 1 +name = "Categories" +url = "/categories/" +weight = 1 [[menu.main]] - name = "Tags" - url = "/tags/" - weight = 2 +name = "Tags" +url = "/tags/" +weight = 2 [[menu.feed]] - name = "Subscribe" - url = "/index.xml" +name = "Subscribe" +url = "/index.xml" [params] - description = "A simple, minimal blog for those who love text." - footer = "Open-Source | [Github](https://github.com/goodroot/hugo-classic) | [Keybase](https://keybase.io/goodroot)" - custom_css = ["css/theme-override.css"] - -# If you want to use Fathom (https://usefathom.com) for analytics, add this section -[params.fathomAnalytics] - siteID = "ABCDE" - # Default value is cdn.usefathom.com, overwrite this if you are self-hosting - serverURL = "analytics.example.com" - +custom_css = ["css/theme-override.css"] +description = "A simple, minimal blog for those who love text." +footer = "Open-Source | [Github](https://github.com/goodroot/hugo-classic) | [Keybase](https://keybase.io/goodroot)" diff --git a/layouts/partials/analytics/fathom.html b/layouts/partials/analytics/fathom.html deleted file mode 100644 index 13e7cfc..0000000 --- a/layouts/partials/analytics/fathom.html +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 57ef8f3..0a6c3f0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,8 +5,5 @@ {{ . | markdownify }} {{ end }} - {{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }} - {{- partial "analytics/fathom" . -}} - {{ end }} diff --git a/static/css/style.css b/static/css/style.css index e6cb00f..5186d9f 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -24,8 +24,6 @@ color: white; } - code { background: #black; } - table { margin: auto; border-top: 1px solid #666; @@ -38,7 +36,6 @@ } - /* Light mode */ @media (prefers-color-scheme: light) { blockquote { @@ -158,7 +155,6 @@ header .current a { /* Code Boxes */ pre { border: 1px solid #ddd; - box-shadow: 5px 5px 5px #eee; background: #f8f8f8; padding: 1em; overflow-x: auto; -- cgit v1.2.3 From 202b5e81d3cb0ffbe332504e4c1f42dc70234ad0 Mon Sep 17 00:00:00 2001 From: goodroot <9484709+goodroot@users.noreply.github.com> Date: Fri, 2 Jul 2021 22:56:45 -0700 Subject: tidy --- README.md | 9 ++++++--- images/dark.png | Bin 0 -> 729160 bytes images/light.png | Bin 0 -> 745478 bytes images/screenshot.png | Bin 366422 -> 0 bytes images/tn.png | Bin 130371 -> 745478 bytes 5 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 images/dark.png create mode 100644 images/light.png delete mode 100644 images/screenshot.png diff --git a/README.md b/README.md index b1fd3cb..35a4b88 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ cd .. && hugo server ### New Posts -To make new posts, simply use the command line: +Make new posts: ``` hugo new post/good-to-great.md @@ -54,7 +54,7 @@ hugo new post/good-to-great.md ### Header Colour -To adjust the header colour, head to `static/css/style.css` and change... +Adjust header colour within `static/css/style.css` ``` header { @@ -76,6 +76,8 @@ 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 @@ -94,7 +96,8 @@ Change `color:` to a nice matching colour. #### Screenshot -![Screenshot of Hugo Classic](/images/screenshot.png) +![Hugo Classic light mode](/images/light.png) +![Hugo Classic dark mode](/images/dark.png) ## Blog Posts diff --git a/images/dark.png b/images/dark.png new file mode 100644 index 0000000..93b02a2 Binary files /dev/null and b/images/dark.png differ diff --git a/images/light.png b/images/light.png new file mode 100644 index 0000000..9ddd2ea Binary files /dev/null and b/images/light.png differ diff --git a/images/screenshot.png b/images/screenshot.png deleted file mode 100644 index 0dc8a8c..0000000 Binary files a/images/screenshot.png and /dev/null differ diff --git a/images/tn.png b/images/tn.png index f58c780..9ddd2ea 100644 Binary files a/images/tn.png and b/images/tn.png differ -- cgit v1.2.3 From c886df070b2efe9b65874489391244652d2387a0 Mon Sep 17 00:00:00 2001 From: goodroot <9484709+goodroot@users.noreply.github.com> Date: Fri, 2 Jul 2021 22:56:58 -0700 Subject: dark first --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 35a4b88..27a9f0f 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ Match or over-ride system-wide dark/light settings #### Screenshot -![Hugo Classic light mode](/images/light.png) ![Hugo Classic dark mode](/images/dark.png) +![Hugo Classic light mode](/images/light.png) ## Blog Posts -- cgit v1.2.3