diff options
author | parsiya@gmail.com <parsiya@gmail.com> | 2016-07-31 22:17:38 +0300 |
---|---|---|
committer | parsiya@gmail.com <parsiya@gmail.com> | 2016-07-31 22:21:03 +0300 |
commit | f39bc51ba6c3dd3cafd85081fa7fa5d80f6904e2 (patch) | |
tree | 62970357d3b8f3a387903b3220b6a7a1ba7db214 | |
parent | ec419361f2d29a3e74ac53e96a883640578a7e5b (diff) |
Substitute custom_css with customCSS
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | sample-config.toml | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -111,7 +111,7 @@ post = "/blog/:year-:month-:day-:title/" # defaultKeywords = ["keyword1" , "keyword2" , "keyword3" , "keyword4"] # override the built-in css - # custom_css = ["css/custom.css","css/custom2.css"] + # customCSS = ["css/custom.css","css/custom2.css"] # enable/disable Table of Contents in each page - tableOfContents = false @@ -163,12 +163,12 @@ Blackfriday is Hugo's markdown engine. For a list of options visit [https://gohu fractions = false ## <a name="cssoverride"></a>CSS override -You can override the built-in css by using your own. Just put your own css files in the `static` directory of your website (the one in the theme directory also works but is not recommended) and modify the `custom_css` parameter in your config file. The path referenced in the parameter should be relative to the `static` folder. These css files will be added through the `header` partial after the built-in css file. +You can override the built-in css by using your own. Just put your own css files in the `static` directory of your website (the one in the theme directory also works but is not recommended) and modify the `customCSS` parameter in your config file. The path referenced in the parameter should be relative to the `static` folder. These css files will be added through the `header` partial after the built-in css file. For example, if your css files are `static/css/custom.css` and `static/css/custom2.css` then add the following to the config file: [params] - custom_css = ["css/custom.css","css/custom2.css"] + customCSS = ["css/custom.css","css/custom2.css"] ## <a name="menu"></a>Navigation menu Links to the left of the navigation menu (everything other than Google search and RSS icon) can be configured here. Navigation menu is generated using the `hugo-octopress/layouts/partials/navigation.html` template. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 31c9198..30326ff 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,7 +23,7 @@ <link rel="stylesheet" href="{{ "/css/hugo-octopress.css" | absURL }}"> <!-- css overrides --> - {{ range .Site.Params.custom_css }} + {{ range .Site.Params.customCSS }} <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> {{ end }} diff --git a/sample-config.toml b/sample-config.toml index 18f7255..f1342bd 100644 --- a/sample-config.toml +++ b/sample-config.toml @@ -46,7 +46,7 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the # sidebar menus -# enable with "sidebarMenuEnabled = true" in [oarams] +# enable with "sidebarMenuEnabled = true" in [params] # header text is "sidebarMenuHeader" in [params] [[menu.sidebar]] Name = "Google" @@ -136,7 +136,7 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the # css override files # paths should be relative to the `static` directory (either the website static directory or the theme one) - # custom_css = ["css/custom.css","css/custom2.css"] + # customCSS = ["css/custom.css","css/custom2.css"] # 404.html header and text -both support markdown notFoundHeader = "There's nothing here" |