diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ef61d45..184c95e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,7 +10,7 @@ on:
jobs:
build:
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-22.04
steps:
- name: Checkout
@@ -20,6 +20,7 @@ jobs:
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: latest
+ extended: true
- name: Build local ./exampleSite
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://zjedi.github.io/hugo-scroll/
diff --git a/.gitignore b/.gitignore
index 643ea68..eeba886 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
public
exampleSite/public
+exampleSite/resources
node_modules
-*.lock
+*.lock
\ No newline at end of file
diff --git a/README.md b/README.md
index 55f48bf..32f6847 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
Hugo Scroll Demo
+Hugo Scroll π Demo
Clean, responsive, single-page [Hugo](https://gohugo.io/) website theme.
@@ -9,7 +9,19 @@ Clean, responsive, single-page [Hugo](https://gohugo.io/) website theme.
Promo image which may be a bit outdated:

-## Installation
+## β Feature highlights
+- Responseive to screen size/shape
+- SEO friendly
+- Customizable
+- [Fork Awesome Icons][fork-awesome-icons] out of the box
+- Header logo
+- Visual guards to guarantee readability
+- External links
+- JS/CSS Assets optimized (Minification, Fingerpriting, pipeline-processed
+into single file)
+- git info in footer (opt-in)
+
+## π Installation
If you already have a Hugo site on your machine, you can simply add this theme via
```
git submodule add https://github.com/zjedi/hugo-scroll.git themes/hugo-scroll
@@ -35,7 +47,20 @@ You can add **a new section to the homepage** by running `hugo new homepage/my-n
To create **a page separate from the homepage**, run `hugo new my-new-page.md`
-## Features
+
+## π§ Feature details π¨
+
+### Customizing CSS
+Add a [`custom_head.html`](https://github.com/zjedi/hugo-scroll/blob/master/exampleSite/layouts/partials/custom_head.html) file to your `layouts/partials` directory.
+- You can use `
+-->
- /* Header Buttons on Startpage */
- a.btn {
- color: white;
- background-color: #ced067;
- }
- a.btn:hover {
- background-color: #b6b84c;
- }
-
- /* Scroll Menu on Startpage */
- a.fn-item.active {
- color: #b6b84c;
- }
- a.fn-item:hover {
- color: #ced067;
- }
-
- /* Content / Sections */
- .post-holder.odd {
- background: #B80135;
- color: white;
- }
- .post-holder {
- background: #f2efe8;
- }
- body {
- color: #3A4145;
- }
-
- /* Footer */
- .site-footer {
- color: #BBC7CC;
- background-color: #22343A;
- }
- -->
+
{{ $scriptIcons := resources.Get "js/icons.js" }}
{{ $scriptIndex := resources.Get "js/index.js" }}
- {{ $js := slice $scriptJquery $scriptIcons $scriptIndex | resources.Concat "js/script.js" | resources.Minify | resources.Fingerprint }}
+ {{ $scriptPolyfill := resources.Get "js/css-vars-ponyfill.min.js" }}
+ {{ $js := slice $scriptJquery $scriptIcons $scriptIndex $scriptPolyfill | resources.Concat "js/script.js" | resources.Minify | resources.Fingerprint }}
+
+
+
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8dfd6bc..c8da16c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -19,12 +19,14 @@
-{{ $stylesheetFA := resources.Get "css/fork-awesome.css" }}
{{ $stylesheetNormalize := resources.Get "css/normalize.css" }}
+{{ $stylesheetFA := resources.Get "css/fork-awesome.css" }}
{{ $stylesheetFonts := resources.Get "css/fonts.css" }}
-{{ $stylesheetScreen := resources.Get "css/screen.css" }}
-{{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFonts $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
+{{ $stylesheetGeneric := resources.Get "css/generic.css" }}
+{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | resources.ToCSS ) }}
+
+{{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFonts $stylesheetGeneric $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
{{ template "_internal/opengraph.html" . }}