Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/goodroot/hugo-classic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKellen <9484709+goodroot@users.noreply.github.com>2021-07-03 08:58:32 +0300
committerGitHub <noreply@github.com>2021-07-03 08:58:32 +0300
commitb0a5a9be1ac8d633abb1a66f9dd3976794ee6de6 (patch)
tree6b2a19c81071f0e84f8639f5eebc3d0869434f11
parent4c7d76034fcbc8af5d13ab13117eef903fc8b09b (diff)
parentc886df070b2efe9b65874489391244652d2387a0 (diff)
Merge pull request #18 from goodroot/polish
Polish
-rw-r--r--README.md21
-rw-r--r--exampleSite/config.toml41
-rw-r--r--images/dark.pngbin0 -> 729160 bytes
-rw-r--r--images/light.pngbin0 -> 745478 bytes
-rw-r--r--images/screenshot.pngbin366422 -> 0 bytes
-rw-r--r--images/tn.pngbin130371 -> 745478 bytes
-rw-r--r--layouts/partials/analytics/fathom.html13
-rw-r--r--layouts/partials/footer.html3
-rw-r--r--static/css/style.css4
9 files changed, 33 insertions, 49 deletions
diff --git a/README.md b/README.md
index 40bee80..27a9f0f 100644
--- a/README.md
+++ b/README.md
@@ -32,13 +32,21 @@ 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
-To make new posts, simply use the command line:
+Make new posts:
```
hugo new post/good-to-great.md
@@ -46,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 {
@@ -68,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
@@ -86,7 +96,8 @@ Change `color:` to a nice matching colour.
#### Screenshot
-![Screenshot of Hugo Classic](/images/screenshot.png)
+![Hugo Classic dark mode](/images/dark.png)
+![Hugo Classic light mode](/images/light.png)
## Blog 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/images/dark.png b/images/dark.png
new file mode 100644
index 0000000..93b02a2
--- /dev/null
+++ b/images/dark.png
Binary files differ
diff --git a/images/light.png b/images/light.png
new file mode 100644
index 0000000..9ddd2ea
--- /dev/null
+++ b/images/light.png
Binary files differ
diff --git a/images/screenshot.png b/images/screenshot.png
deleted file mode 100644
index 0dc8a8c..0000000
--- a/images/screenshot.png
+++ /dev/null
Binary files differ
diff --git a/images/tn.png b/images/tn.png
index f58c780..9ddd2ea 100644
--- a/images/tn.png
+++ b/images/tn.png
Binary files differ
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 @@
-<script>
-(function(f, a, t, h, o, m){
- a[h]=a[h]||function(){
- (a[h].q=a[h].q||[]).push(arguments)
- };
- o=f.createElement('script'),
- m=f.getElementsByTagName('script')[0];
- o.async=1; o.src=t; o.id='fathom-script';
- m.parentNode.insertBefore(o,m)
-})(document, window, '//{{ .Site.Params.fathomAnalytics.serverURL | default "cdn.usefathom.com" }}/tracker.js', 'fathom');
-fathom('set', 'siteId', '{{ .Site.Params.fathomAnalytics.siteID }}');
-fathom('trackPageview');
-</script>
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 }}
</footer>
- {{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }}
- {{- partial "analytics/fathom" . -}}
- {{ end }}
</body>
</html>
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;