Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@gmail.com>2017-04-19 20:47:35 +0300
committerGitHub <noreply@github.com>2017-04-19 20:47:35 +0300
commitae70a4021520ba06c81e049b5ad72ce96d659fb0 (patch)
tree9010f288e0e4ea8be71e5f85bd8102f7b6954862
parenta3e1ea36385bfc5f386d8e1fd2b13e6359ea4b14 (diff)
parentdb8f73edf681f3f0ce9fddcb501fb6350eaa28fd (diff)
Merge pull request #40 from Fweeb/customcss
Add capability for users to include their own custom CSS overrides.
-rw-r--r--README.md1
-rw-r--r--layouts/partials/head_includes.html4
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index de6d994..883a599 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,7 @@ You will need to add a handful of configuration items to your `config.toml` file
- `[params]`
- `site_theme` - the color scheme for the overall site. Currently the two options are `orange` and `blue`. Optional. Example: `"blue"`. Defaults to the `orange` theme if not set.
+ - `custom_css` - array of custom CSS files for over-riding theme settings or adding your own classes. Example: `["custom.css", "other_custom.css"]`. These files should be put into your `static` directory (not the `static` directory of the theme).
- `about_logo` - the logo (250px x 250px) you would like to appear on your About page. Optional. If not set, this will default to your iTunes image.
- `copyright_notice` - Your copyright information for the footer of the page. Can contain Markdown. Example: `"Copyright 2016 [Matt Stratton](https://www.mattstrattion.io)"`
- `itunes_subscribe` - The URL of your podcast in the iTunes store. Optional. Example: `"http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi"`
diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html
index f8464e5..5c3c329 100644
--- a/layouts/partials/head_includes.html
+++ b/layouts/partials/head_includes.html
@@ -10,3 +10,7 @@
<link href="https://fonts.googleapis.com/css?family=Lato|Raleway" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/jssocials.css" rel="stylesheet" type="text/css" />
<link href="{{ .Site.BaseURL }}css/jssocials-theme-plain.css" rel="stylesheet" type="text/css" />
+<!-- Custom CSS -->
+{{ range .Site.Params.custom_css }}
+ <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
+{{ end }}