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:
Jean-Philippe Evrard
2018-04-06 20:56:42 +01:00
committed by Michael Noronha
parent c74cf85db5
commit c78c8e7393

View File

@@ -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;