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

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpasztorpisti <pasztorpisti@gmail.com>2019-05-20 03:32:12 +0300
committerFabien <vaga@users.noreply.github.com>2019-05-22 10:30:46 +0300
commit0c2bcf83951a0ad69a34be52c24985b73cd25268 (patch)
treec9b6baca89d6e760307745ab82f2c2f78e2674e5
parent67c975eaba368fd7f0dccaad2682d1a258ea25fb (diff)
Allow addition of extra CSS easily
-rw-r--r--assets/css/_extra.scss2
-rw-r--r--assets/css/main.scss3
2 files changed, 5 insertions, 0 deletions
diff --git a/assets/css/_extra.scss b/assets/css/_extra.scss
new file mode 100644
index 0000000..8eaa4d4
--- /dev/null
+++ b/assets/css/_extra.scss
@@ -0,0 +1,2 @@
+// Do not add any CSS to this file in the theme sources.
+// This file can be overridden to add project-specific CSS.
diff --git a/assets/css/main.scss b/assets/css/main.scss
index bd35107..51712e1 100644
--- a/assets/css/main.scss
+++ b/assets/css/main.scss
@@ -14,3 +14,6 @@ $primary-color: {{ .Site.Params.style.primaryColor | default "#57cc8a" }};
@import 'components/posts_list';
@import 'components/tag';
+// The last 'extra' import can optionally be overridden on a per project
+// basis by creating a <HUGO_PROJECT>/assets/css/_extra.scss file.
+@import 'extra';