From c4ce90ce987a0f93fd2a4c70f1d42886cdb34534 Mon Sep 17 00:00:00 2001 From: Blake Gearin <blakegearin@pm.me> Date: Mon, 04 Apr 2022 01:07:04 +0000 Subject: [PATCH] Add custom SASS and JS support --- exampleSite/content/docs/compose/customize.md | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/docs/compose/customize.md b/exampleSite/content/docs/compose/customize.md index be85383..05f0e65 100644 --- a/exampleSite/content/docs/compose/customize.md +++ b/exampleSite/content/docs/compose/customize.md @@ -3,6 +3,7 @@ title = "Customize layouts & components" weight = 10 +++ + ### Shortcodes modifiers These modifiers are classes you can use with shortcodes to customize the look and feel of your layouts and components. @@ -43,7 +44,7 @@ ### How do I change the theme color? -If the theme is a git submodule, you can copy the file `assets/sass/_variables.sass` from the theme into your own site. +If the theme is a git submodule, you can copy the file `assets/sass/_variables.sass` from the theme into your own site. The location must be exactly the same as in the theme, so put it in `YourFancySite/assets/sass/`. You can then edit the file to customize the theme color in your site without having to modify the theme itself. @@ -78,4 +79,6 @@ ... ``` -### I want to add custom sass \ No newline at end of file +### I want to add custom SASS or JS + +Add custom SASS and JS via [this custom SASS file](https://github.com/onweru/compose/blob/master/assets/sass/_custom.sass) and [this custom JavaScript file](https://github.com/onweru/compose/hugo-compose/blob/master/assets/js/custom.js). -- Gitblit v1.10.0