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

github.com/cowboysmall-tools/hugo-devresume-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Kiely <jerry@cowboysmall.com>2019-11-15 04:04:46 +0300
committerJerry Kiely <jerry@cowboysmall.com>2019-11-15 04:04:46 +0300
commit488eefe04ad9a2f5138e635b5272c9a9784c5e3c (patch)
treec18235f57416ce5efc2189d473a61ff8c05faefd
parent73727c0d4870513a667e2ee8a17d0b54db660057 (diff)
added the ability to change colours in config.toml - primary and text primary
-rw-r--r--assets/scss/devresume.scss22
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/head.html3
-rw-r--r--resources/_gen/assets/scss/scss/devresume.scss_1af9bff191e83fc88d3b3ecab7c86966.content (renamed from resources/_gen/assets/scss/scss/devresume.scss_4e8129317ce408c814b25d74811e3648.content)0
-rw-r--r--resources/_gen/assets/scss/scss/devresume.scss_1af9bff191e83fc88d3b3ecab7c86966.json (renamed from resources/_gen/assets/scss/scss/devresume.scss_4e8129317ce408c814b25d74811e3648.json)0
5 files changed, 14 insertions, 14 deletions
diff --git a/assets/scss/devresume.scss b/assets/scss/devresume.scss
index 2ca584e..9e5b307 100644
--- a/assets/scss/devresume.scss
+++ b/assets/scss/devresume.scss
@@ -1,4 +1,4 @@
-/*!
+/*!
* Template Name: DevResume - Bootstrap 4 Resume/CV Template for Software Developers
* Version: 1.0
* Author: Xiaoying Riley
@@ -10,8 +10,8 @@
/*************************** Theme Colours****************************/
// Define theme colour scheme
-$theme-color-primary: #54B689;
-$theme-text-color-primary: #292929;
+$theme-color-primary: {{ .Site.Params.primary_color | default "#54B689" }};
+$theme-text-color-primary: {{ .Site.Params.text_primary_color | default "#292929" }};
$theme-text-color-secondary: lighten($theme-text-color-primary, 15%);
$theme-text-color-light: lighten($theme-text-color-primary, 40%);
$theme-border-color: lighten($theme-text-color-primary, 60%);
@@ -29,8 +29,8 @@ $gray-800: lighten($theme-text-color-primary, 10%);
$gray-900: $theme-text-color-primary;
$theme-colors: (
- "primary": $theme-color-primary,
- "secondary": $theme-text-color-secondary,
+ "primary": $theme-color-primary,
+ "secondary": $theme-text-color-secondary,
);
/*************************** Import Bootstrap *****************************/
@@ -40,11 +40,11 @@ $theme-colors: (
/*************************** DevResume Styles ****************************/
/*********** Theme Generic **********/
-body {
+body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: $theme-text-color-secondary;
-
+
}
h1, h2, h3, h4, h5, h6 {
@@ -114,7 +114,7 @@ a.theme-link {
font-weight: 900;
letter-spacing: 0.4rem;
color: $theme-color-primary;
-
+
}
.resume-tagline {
@@ -145,7 +145,7 @@ a.resume-link {
.item-title {
font-size: 1rem;
}
-
+
.item-meta {
font-size: 0.75rem;
}
@@ -162,7 +162,7 @@ a.resume-link {
.item-title {
font-size: 1rem;
}
-
+
}
@@ -203,7 +203,7 @@ a.resume-link {
border-left: 0;
}
}
-
+
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 64a54c8..1e000e8 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -16,7 +16,8 @@ googleAnalytics = "UA-XXXXXXX-Y"
description = "DevResume - Bootstrap 4 Resume/CV Template For Software Developers"
-
+ primary_color = "#54B689"
+ text_primary_color = "#292929"
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5217803..005f5e6 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -13,6 +13,5 @@
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900">
<!-- Theme SCSS -->
- {{ $options := (dict "targetPath" "assets/css/devresume.css") }}
- {{ $style := resources.Get "scss/devresume.scss" | toCSS $options | minify | fingerprint }}
+ {{ $style := resources.Get "scss/devresume.scss" | resources.ExecuteAsTemplate "scss/devresume.scss" . | toCSS (dict "targetPath" "assets/css/devresume.css") | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
diff --git a/resources/_gen/assets/scss/scss/devresume.scss_4e8129317ce408c814b25d74811e3648.content b/resources/_gen/assets/scss/scss/devresume.scss_1af9bff191e83fc88d3b3ecab7c86966.content
index 8a81c03..8a81c03 100644
--- a/resources/_gen/assets/scss/scss/devresume.scss_4e8129317ce408c814b25d74811e3648.content
+++ b/resources/_gen/assets/scss/scss/devresume.scss_1af9bff191e83fc88d3b3ecab7c86966.content
diff --git a/resources/_gen/assets/scss/scss/devresume.scss_4e8129317ce408c814b25d74811e3648.json b/resources/_gen/assets/scss/scss/devresume.scss_1af9bff191e83fc88d3b3ecab7c86966.json
index d07c62f..d07c62f 100644
--- a/resources/_gen/assets/scss/scss/devresume.scss_4e8129317ce408c814b25d74811e3648.json
+++ b/resources/_gen/assets/scss/scss/devresume.scss_1af9bff191e83fc88d3b3ecab7c86966.json