Allow custom css files (#35)

This commit is contained in:
Hanzei 2018-03-25 17:09:30 +02:00 committed by Vicky Lai
parent f4568a4589
commit bd73c0f47b
2 changed files with 7 additions and 1 deletions

View file

@ -27,6 +27,7 @@ canonifyurls = true # Turns relative urls in
pygmentsCodeFences = true pygmentsCodeFences = true
footertext = "" # Text to show in footer (overrides default text) footertext = "" # Text to show in footer (overrides default text)
fadein = true # Turn on/off the fade-in effect fadein = true # Turn on/off the fade-in effect
customCSS = [] # Include custom css files e.g. ["css/foo.css", "css/bar.css"]
showblog = true # Show Blog section on home page showblog = true # Show Blog section on home page
showprojects = true # Show Projects section on home page showprojects = true # Show Projects section on home page
@ -55,4 +56,4 @@ canonifyurls = true # Turns relative urls in
[[params.social]] [[params.social]]
url = "https://linkedin.com/" url = "https://linkedin.com/"
icon = "linkedin" icon = "linkedin"

View file

@ -60,6 +60,11 @@ crossorigin="anonymous"></script>
{{ end }} {{ end }}
<!-- Custom css -->
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
<!-- Icon --> <!-- Icon -->
<link rel="shortcut icon" <link rel="shortcut icon"
{{ if .Site.Params.faviconFile }} {{ if .Site.Params.faviconFile }}