diff --git a/README.md b/README.md index a991476..e412882 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ date: the date description: "This is the subtext above the main heading in small letters" --- ``` +#### Overriding CSS +To override CSS, you should create file `project_root/assets/css/override.css` and place all your CSS inside it. This file will be merged with standard CSS when the site is generated. ## Helpful Links [Aether Blog Post](https://www.joehutch.com/post/aether-theme/) - See aether in action and learn more about the theme diff --git a/assets/css/override.css b/assets/css/override.css new file mode 100644 index 0000000..78b1517 --- /dev/null +++ b/assets/css/override.css @@ -0,0 +1,6 @@ +/* + * To override CSS, you should create + * project_root/assets/css/override.css + * and place all your CSS inside it. + * You should not modify this file. + */ \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 222fdc8..79eb808 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -24,7 +24,8 @@ {{ $mainStyle := resources.Get "css/style.css" }} {{ $xcodeStyle := resources.Get "css/xcode.css" }} {{ $fontStyle := resources.Get "css/latolatinfonts.css" }} - {{ $style := slice $xcodeStyle $fontStyle $mainStyle | resources.Concat "css/concated.css" | minify }} + {{ $overrideStyle := resources.Get "css/override.css" }} + {{ $style := slice $xcodeStyle $fontStyle $mainStyle $overrideStyle | resources.Concat "css/concated.css" | minify }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}