Jelajahi Sumber

feat: add Earth theme pack

George Cushen 4 tahun lalu
induk
melakukan
e47738df59

+ 1 - 0
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" }};

+ 5 - 0
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;

+ 25 - 0
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"

+ 2 - 0
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 -}}

+ 3 - 1
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 }}<h1>{{ $page.Title | markdownify | emojify }}</h1>{{ end }}
 
-    {{ $person_page.Content }}
+    <div class="article-style">
+      {{ $person_page.Content }}
+    </div>
 
     <div class="row">