From 45891eec00833649729f2995fda86627954a6ff6 Mon Sep 17 00:00:00 2001 From: Carson Ip Date: Sun, 1 Dec 2019 22:55:22 +0800 Subject: [PATCH] Add param for custom CSS Fix #36 --- README.md | 6 ++++++ layouts/partials/head.html | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 90e53d1..668a7f9 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,12 @@ disqusShortname = "xxxxxx" This option enables the KaTeX auto-render extension. To render block math, use `$$ ... $$`. For inline math, use `\\( ... \\)`. For more details, please refer to https://github.com/KaTeX/KaTeX/blob/v0.7.1/contrib/auto-render/auto-render.js#L73 . +### Custom CSS +``` +[params] + customCss = ["css/foo.css"] +``` + ### Others For other configuration variables, visit [Hugo documentation](https://gohugo.io/overview/configuration/#configuration-variables). diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e2b9c57..de28d1b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,6 +15,9 @@ + {{ range .Site.Params.customCss -}} + + {{- end }} {{ hugo.Generator }}