Skip to content

Commit

Permalink
Merge pull request #3 from jlumbroso/master
Browse files Browse the repository at this point in the history
Add ability to import custom CSS files without overwriting templates
  • Loading branch information
goodroot committed Mar 25, 2018
2 parents 66353e0 + 3af39a4 commit e28d1cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Expand Up @@ -30,3 +30,4 @@ footnotereturnlinkcontents = "↩"
[params]
description = "A simple, minimal blog for those who love text."
footer = "Open-Source | [Github](https://github.com/goodroot/hugo-classic) | [Twitter](https://twitter.com/thegoodroot)"
custom_css = ["css/theme-override.css"]
1 change: 1 addition & 0 deletions exampleSite/static/css/theme-override.css
@@ -0,0 +1 @@
footer { font-size: 90%; font-family: monospace; }
3 changes: 3 additions & 0 deletions layouts/partials/header.html
Expand Up @@ -6,6 +6,9 @@
<title>{{ .Title }} | {{ .Site.Title }}</title>
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
<link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" />
{{ range .Site.Params.custom_css -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
{{ partial "head_custom.html" . }}
</head>

Expand Down

0 comments on commit e28d1cb

Please sign in to comment.