-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from piazzai/develop
Improve theme customization
- Loading branch information
Showing
14 changed files
with
397 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
--- | ||
--- | ||
|
||
$color_bg: {{ site.color_bg | default: 'var(--oc-gray-9)' }}; | ||
$color_punct: {{ site.color_punct | default: 'var(--oc-green-9)' }}; | ||
$color_key: {{ site.color_key | default: 'var(--oc-green-4)' }}; | ||
$color_val: {{ site.color_val | default: 'var(--oc-green-4)' }}; | ||
$color_hover: {{ site.color_hover | default: 'var(--oc-green-5)' }}; | ||
$color_bg: var(--oc-{{ site.color_bg | default: 'gray-9' }}); | ||
$color_punct: var(--oc-{{ site.color_punct | default: 'green-9' }}); | ||
$color_key: var(--oc-{{ site.color_key | default: 'green-4' }}); | ||
$color_value: var(--oc-{{ site.color_value | default: 'green-4' }}); | ||
$color_hover: var(--oc-{{ site.color_hover | default: 'green-5' }}); | ||
|
||
{% if site.lowercase -%} | ||
$transform_case: lowercase; | ||
{% case site.lowercase -%} | ||
{% when 'keys' -%} | ||
$transform_key: lowercase; | ||
$transform_value: none; | ||
{% when 'values' -%} | ||
$transform_key: none; | ||
$transform_value: lowercase; | ||
{% when false -%} | ||
$transform_key: none; | ||
$transform_value: none; | ||
{% else -%} | ||
$transform_case: none; | ||
{% endif -%} | ||
$transform_key: lowercase; | ||
$transform_value: lowercase; | ||
{% endcase -%} | ||
|
||
@import "default"; | ||
@import "custom"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'hacked-jekyll', '~> 2.2' | ||
gem 'hacked-jekyll', '~> 3.0' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'hacked-jekyll', '~> 3.0' |
Oops, something went wrong.