mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
feat: add Earth theme pack
This commit is contained in:
parent
ce5b08f719
commit
e47738df59
5 changed files with 36 additions and 1 deletions
|
@ -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" }};
|
||||
|
|
|
@ -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
wowchemy/data/themes/earth.toml
Normal file
25
wowchemy/data/themes/earth.toml
Normal file
|
@ -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"
|
|
@ -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 -}}
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue