diff --git a/README.md b/README.md index 4548299..8244d20 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,25 @@ git submodule add https://github.com/syedzayyan/shadharon themes/shadharon ``` cp -R themes/shadharon/content/. content ``` -4. For customization refer to config.toml files, which has comments. -5. For customizing the banner on the homepage the content/posts/_index.md needs modification. The desc variable under `extra`, specifically. You could delete this as well to remove banner. For an about page or any aditional page an .md file in the "content" directory will do. +## Customization + +1. For customization refer to config.toml files, which has comments. + +2. For customizing the banner on the homepage the content/posts/_index.md needs modification. The desc variable under `extra`, specifically. You could delete this as well to remove banner. For an about page or any aditional page an .md file in the "content" directory will do. + +You can add stylesheets to override the theme: + +```toml +[extra] +stylesheets = [ + "override.css", +] +``` -## Options These filenames are relative to the root of the site. In this example, the two CSS files would be in the `static` folder. + ## References This theme takes inspiration from diff --git a/sass/main.scss b/sass/main.scss index 1eb331b..17f6abe 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -37,13 +37,13 @@ --light-border-color: rgba(255, 255, 255, 0.1); --input-back: #4b4a4a; --input-color: #294797; + --meta-color: rgb(198, 197, 197); } [data-theme="light"] { --bg-0: #fff; --bg-1: #f2f2f2; --bg-2: #fefefe; - --primary-color: #ef5350; --hover-color: white; --background-color:#fff; --navbar-color:#e3e3e3; @@ -55,6 +55,7 @@ --input-color: #294797; --input-back: rgb(158, 158, 158); --input-color: #fbec48; + --meta-color: rgb(53, 53, 53); } html { diff --git a/sass/parts/_header.scss b/sass/parts/_header.scss index 55a30ff..06f9fd0 100644 --- a/sass/parts/_header.scss +++ b/sass/parts/_header.scss @@ -106,7 +106,7 @@ header .main { } .meta { - color: #999; + color: var(--meta-color); letter-spacing: -0.5px; } diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index 56ac472..ee55d18 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -49,11 +49,6 @@ a:hover { background-color: var(--primary-color); color: var(--hover-color); } - -time { - color: grey; -} - /* Remove post list padding */ @media screen and (max-width: 600px) { .list>ul { diff --git a/templates/base.html b/templates/base.html index 26050b1..e3bc474 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,7 +1,7 @@ {% import "macros/macros.html" as post_macros %} - + {% include "partials/header.html" %} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 042c23d..5e6c5a9 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -72,7 +72,7 @@
- +
{% endmacro content %} diff --git a/templates/partials/header.html b/templates/partials/header.html index 9128138..bdebc14 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -60,4 +60,6 @@ + \ No newline at end of file diff --git a/templates/partials/nav.html b/templates/partials/nav.html index d49ae3c..0d30b39 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -21,7 +21,7 @@