diff options
author | goodroot <9484709+goodroot@users.noreply.github.com> | 2021-07-03 08:47:21 +0300 |
---|---|---|
committer | goodroot <9484709+goodroot@users.noreply.github.com> | 2021-07-03 08:47:21 +0300 |
commit | ab4db7c7b8773aea436ef5c77ac1384cf6004e15 (patch) | |
tree | e8c0b2502ba4e3fe25ba97cc98b5c311ba87635f | |
parent | 621a8f65e228d1ed623ae34b812a48d576af4e03 (diff) |
Tune up
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | exampleSite/config.toml | 41 | ||||
-rw-r--r-- | layouts/partials/analytics/fathom.html | 13 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 | ||||
-rw-r--r-- | static/css/style.css | 4 |
5 files changed, 27 insertions, 46 deletions
@@ -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 @@ -<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; |