diff options
author | Andrew Schwartzmeyer <andrew@schwartzmeyer.com> | 2017-10-18 08:54:23 +0300 |
---|---|---|
committer | Andrew Schwartzmeyer <andrew@schwartzmeyer.com> | 2017-10-18 08:58:07 +0300 |
commit | e4065531f6227c46b5cef61cb5cf765fb89a4c63 (patch) | |
tree | 79057e994b31734b5ef1ec946ef618b55a268ddb /layouts | |
parent | 7a058f8b4fd3b4ab2226e72ce82feff7f92d230a (diff) |
Use CSS to uppercase name
Previously this used the `upper` template directive, which injected
UPPERCASE text into the HTML. Unfortunately, the `text-transform` CSS
property cannot lowercase or Capitalize UPPERCASE text. However,
`text-transform` can UPPERCASE text that is lowercased or Capitalized,
so by switching from `upper` to `text-transform` on `#user-name` in
`nix.css`, we can allow users to customize how their name is displayed.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 3be672f..30c6910 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -18,7 +18,7 @@ {{ end }} <div class="row"> <div class="col-xs-12 user-profile text-center"> - <h1 id="user-name">{{ upper .Site.Params.Name }}</h1> + <h1 id="user-name">{{ .Site.Params.Name }}</h1> </div> </div> <div class="row"> |