From d178091ccdc0f0c4444525abadef110b28a2fe29 Mon Sep 17 00:00:00 2001 From: vimux Date: Fri, 18 Jan 2019 11:53:31 -0500 Subject: [PATCH] Add possibility to include custom CSS files --- README.md | 1 + layouts/partials/head.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 621e039..662f7fd 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id mainSections = ["post"] # Set main page sections post_meta = ["date", "categories"] # Enable post meta fields in given order dateFormat = "January 02, 2006" # Change the format of dates + customCSS = ["css/custom.css"] # Include custom CSS files authorbox = true # Show authorbox at bottom of single pages if true toc = true # Enable Table of Contents for all site pages tocOpen = true # Open Table of Contents block. Optional diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 71c1090..80c3080 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,6 +13,9 @@ {{ template "_internal/twitter_cards.html" . }} {{- end }} + {{- range .Site.Params.customCSS }} + + {{- end }} {{- with .OutputFormats.Get "rss" }}