Skip to content
Permalink
Browse files

Add param for custom CSS

Fix #36
  • Loading branch information
carsonip committed Dec 1, 2019
1 parent 4856422 commit 45891eec00833649729f2995fda86627954a6ff6
Showing with 9 additions and 0 deletions.
  1. +6 −0 README.md
  2. +3 −0 layouts/partials/head.html
@@ -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).
@@ -15,6 +15,9 @@
<link href="{{ "webfonts/source-code-pro/main.css" | absURL }}" rel="stylesheet" type="text/css">

<link rel="stylesheet" href="{{ "css/style.css" | absURL }}">
{{ range .Site.Params.customCss -}}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}

{{ hugo.Generator }}
</head>

0 comments on commit 45891ee

Please sign in to comment.
You can’t perform that action at this time.