From e27a5df3b4f3d2a58d282394362f9ef1371ab97f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 15 Oct 2023 11:10:47 +0000 Subject: [PATCH] Theme Files Update --- README.md | 7 ------- hugo.toml | 3 --- layouts/_default/baseof.html | 3 --- 3 files changed, 13 deletions(-) diff --git a/README.md b/README.md index 1b11ab9..457ca86 100644 --- a/README.md +++ b/README.md @@ -121,13 +121,6 @@ If you prefer to use different analytics system other than google analytics, the If you'd like to customize theme color or fonts, you can simply override `assets/scss/_predefined.scss`, by simply copy it to site's root (keep the same relative path) then edit those variables. But keep in mind, you'll need **Hugo extended version** which has the ability to rebuild SCSS. You don't have to use extended version in production but in this case it's necessary to make sure the `resources` folder is committed and "up to date" (by running `hugo` or `hugo server` locally using the extended version). But anyway, always use the extended version if you can. -For adding other custom CSS to the theme, you can assign an array of references in `config.toml` like following: -``` -[params] - customCSS = ["css/foo.css", "css/bar.css"] -``` -You may reference as many stylesheets as you want. Their paths need to be relative to the `static` folder or it can be a full URL for external resources. - #### Code injection You can inject any html code to every page's document head or right above the closing body tag. This makes it easier to add any html meta data, custom css/js, dns-prefetch etc. To do this you simply need to create a file at site's `layouts/partials/extra-head.html` or `layouts/partials/extra-foot.html`, code inside will be injected to every page. diff --git a/hugo.toml b/hugo.toml index 4f58bfa..0e09bed 100644 --- a/hugo.toml +++ b/hugo.toml @@ -89,9 +89,6 @@ enableEmoji = true relatedPosts = true # Add a related content section to all single posts page code_copy_button = true # Turn on/off the code-copy-button for code-fields - - # Add custom css - # customCSS = ["css/foo.css", "css/bar.css"] # Social Icons # Check https://github.com/Track3/hermit#social-icons for more info. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f8d1a84..c8de89b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,9 +18,6 @@ {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} {{- block "head" . -}}{{- end }} - {{- range .Site.Params.customCSS }} - - {{- end }} {{- if templates.Exists "partials/extra-head.html" -}} {{ partial "extra-head.html" . }} {{- end }}