mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +02:00
Allow css transformations of title in config
By default the style uppercases the title, which forces a style choice to the user. We can add extra css but that might be overkill for just one change: For example, not capitalizing the title default. This allows the title to be fully lowercase, by simply overriding the theme configuration.
This commit is contained in:

committed by
Michael Noronha

parent
c74cf85db5
commit
c78c8e7393
@@ -165,7 +165,15 @@ div.header .name {
|
||||
font-size: 28px;
|
||||
font-family: 'Nexa Bold', 'Helvetica Neue', 'Arial', sans-serif;
|
||||
letter-spacing: -0.005rem;
|
||||
{{ if isset .Site.Params "title_style" }}
|
||||
{{ if in "capitalize uppercase lowercase none full-width" .Site.Params.title_style }}
|
||||
text-transform: {{ .Site.Params.title_style }};
|
||||
{{ else }}
|
||||
{{ errorf "This title_style is not a valid text-transform css parameter: %s" .Site.Params.title_style }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
text-transform: uppercase;
|
||||
{{ end }}
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-smoothing: antialiased;
|
||||
|
Reference in New Issue
Block a user