From 11168b0255760d0e8519b522f8c284fd22efb740 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 25 Dec 2020 11:28:07 +0530 Subject: [PATCH] papermod: faq Bundling Custom css with theme's assets --- .../{papermod-how-to.md => papermod-faq.md} | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) rename content/posts/papermod/{papermod-how-to.md => papermod-faq.md} (87%) diff --git a/content/posts/papermod/papermod-how-to.md b/content/posts/papermod/papermod-faq.md similarity index 87% rename from content/posts/papermod/papermod-how-to.md rename to content/posts/papermod/papermod-faq.md index 9d2d88ab..c9139456 100644 --- a/content/posts/papermod/papermod-how-to.md +++ b/content/posts/papermod/papermod-faq.md @@ -8,6 +8,7 @@ aliases: ["/papermod-how-to-guide"] tags: ["PaperMod"] author: "Aditya Telange" draft: true +aliases: [/posts/papermod/papermod-how-to] --- ## Intro @@ -103,6 +104,34 @@ summary: archives --- +## Bundling Custom css with theme's assets + +- For adding custom css to be bundled inside one minimized css + +Create folder in yout project directory as + +``` +.(site root) +├── config.yml +├── content/ +├── theme/hugo-PaperMod/ +└── assets/ + └── css/ + └── extended/ <--- + │ ├── custom_css1.css <--- + │ └── any_name.css <--- +``` + +All `css` files inside `assets/css/extended` will be bundled ! + +**Note**: blank.css is just the placeholder so that it doesn't break the theme when no files are present under `assets/css/extended` + + +Linked Issues: + +- [Papermod Theme: How to add custom CSS?](https://discourse.gohugo.io/t/papermod-theme-how-to-add-custom-css/30165) +--- + ## Custom Head / Footer Custom css/js can be added by way mentioned below.