From bd73c0f47bc83e88ce08e2a51cc2d9bc63368cd9 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Sun, 25 Mar 2018 17:09:30 +0200 Subject: [PATCH] Allow custom css files (#35) --- exampleSite/config.toml | 3 ++- layouts/partials/header.html | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7348219..c0d2472 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -27,6 +27,7 @@ canonifyurls = true # Turns relative urls in pygmentsCodeFences = true footertext = "" # Text to show in footer (overrides default text) 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 showprojects = true # Show Projects section on home page @@ -55,4 +56,4 @@ canonifyurls = true # Turns relative urls in [[params.social]] url = "https://linkedin.com/" - icon = "linkedin" \ No newline at end of file + icon = "linkedin" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c8eb9ee..67e122d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -60,6 +60,11 @@ crossorigin="anonymous"> {{ end }} + +{{ range .Site.Params.customCSS -}} + +{{- end }} +