This commit is contained in:
Joe Hutchinson
2020-01-13 11:44:01 -05:00
3 changed files with 10 additions and 1 deletions

View File

@@ -128,6 +128,8 @@ date: the date
description: "This is the subtext above the main heading in small letters" 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 ## Helpful Links
[Aether Blog Post](https://www.joehutch.com/post/aether-theme/) - See aether in action and learn more about the theme [Aether Blog Post](https://www.joehutch.com/post/aether-theme/) - See aether in action and learn more about the theme

6
assets/css/override.css Normal file
View File

@@ -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.
*/

View File

@@ -24,7 +24,8 @@
{{ $mainStyle := resources.Get "css/style.css" }} {{ $mainStyle := resources.Get "css/style.css" }}
{{ $xcodeStyle := resources.Get "css/xcode.css" }} {{ $xcodeStyle := resources.Get "css/xcode.css" }}
{{ $fontStyle := resources.Get "css/latolatinfonts.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 }}
<link href="{{ $style.Permalink }}" rel="stylesheet"> <link href="{{ $style.Permalink }}" rel="stylesheet">
{{ range .AlternativeOutputFormats -}} {{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}