diff --git a/wowchemy/assets/scss/main.scss b/wowchemy/assets/scss/main.scss index ac356359..c50e691e 100644 --- a/wowchemy/assets/scss/main.scss +++ b/wowchemy/assets/scss/main.scss @@ -20,6 +20,7 @@ $sta-primary-dark: darken($sta-primary, $sta-darken-percentage); $sta-link: {{ $scr.Get "link" }}; $sta-link-hover: {{ $scr.Get "link_hover" }}; +$sta-link-decoration: {{ $scr.Get "link_decoration" }}; $sta-dark-link: {{ $scr.Get "dark_link" }}; $sta-dark-link-hover: {{ $scr.Get "dark_link_hover" }}; diff --git a/wowchemy/assets/scss/wowchemy/_content.scss b/wowchemy/assets/scss/wowchemy/_content.scss index ce86434b..7cb0484f 100644 --- a/wowchemy/assets/scss/wowchemy/_content.scss +++ b/wowchemy/assets/scss/wowchemy/_content.scss @@ -158,6 +158,11 @@ article .article-metadata { @include word-wrap(); } +// Underline links if they are a similar color to the body text. +.article-style a { + text-decoration: $sta-link-decoration; +} + .article-style img, .article-style video { margin-left: auto; diff --git a/wowchemy/data/themes/earth.toml b/wowchemy/data/themes/earth.toml new file mode 100644 index 00000000..60a1dcb3 --- /dev/null +++ b/wowchemy/data/themes/earth.toml @@ -0,0 +1,25 @@ +# Theme metadata +name = "Earth" + +# Is theme light or dark? +is_light = true + +# Primary +primary = "#707070" + +# Menu +menu_primary = "#f6eee9" +menu_text = "#000" +menu_text_active = "#000" +menu_title = "#000" + +# Links +link = "#707070" +link_hover = "#000" +link_decoration = "underline" + +# Home sections +home_section_odd = "#f9f7f6" +home_section_even = "#ffffff" + +font = "rose" diff --git a/wowchemy/layouts/partials/functions/parse_theme.html b/wowchemy/layouts/partials/functions/parse_theme.html index 89b21e32..8293ff7f 100644 --- a/wowchemy/layouts/partials/functions/parse_theme.html +++ b/wowchemy/layouts/partials/functions/parse_theme.html @@ -59,6 +59,8 @@ {{- $scr.Set "dark_link" ($theme.dark.link | default $theme.primary) -}} {{- $scr.Set "dark_link_hover" ($theme.dark.link_hover | default $theme.primary) -}} +{{- $scr.Set "link_decoration" ($theme.link_decoration | default "inherit") -}} + {{- $scr.Set "primary" $theme.primary -}} {{- $scr.Set "menu_primary" $theme.menu_primary -}} diff --git a/wowchemy/layouts/partials/widgets/about.html b/wowchemy/layouts/partials/widgets/about.html index a54dd82c..21cefec3 100644 --- a/wowchemy/layouts/partials/widgets/about.html +++ b/wowchemy/layouts/partials/widgets/about.html @@ -72,7 +72,9 @@ {{/* Only display widget title in explicit instances of about widget, not in author pages. */}} {{ if and $page.Params.widget $page.Title }}

{{ $page.Title | markdownify | emojify }}

{{ end }} - {{ $person_page.Content }} +
+ {{ $person_page.Content }} +