mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Configurable webfonts file name
This commit is contained in:
@@ -52,7 +52,7 @@ $ hugo new fixed/about.md
|
|||||||
|
|
||||||
## Fonts and Colors
|
## Fonts and Colors
|
||||||
|
|
||||||
The primary font face is Proxima Nova in 400 and 700 weights. If you own the font, create a font face declarations like in the example below, and place it in `static/css/webfonts.css`:
|
The primary font face is Proxima Nova in 400 and 700 weights. If you own the font, create a font face declarations like in the example below, and place it in the path specified in [`.Site.Params.WebfontsFile`](#site-variables):
|
||||||
|
|
||||||
````css
|
````css
|
||||||
@font-face {
|
@font-face {
|
||||||
@@ -108,6 +108,7 @@ GitHub = "//github.com/username"
|
|||||||
Lang = "en" # <body lang="en">
|
Lang = "en" # <body lang="en">
|
||||||
LinkedIn = "//linkedin.com/in/username"
|
LinkedIn = "//linkedin.com/in/username"
|
||||||
Twitter = "//twitter.com/username"
|
Twitter = "//twitter.com/username"
|
||||||
|
WebfontsFile = "/css/mywebfontsfile.css" # relative to static directory, defaults to /css/webfonts.css
|
||||||
````
|
````
|
||||||
|
|
||||||
# Extras
|
# Extras
|
||||||
|
@@ -2,7 +2,11 @@
|
|||||||
<link rel="stylesheet" href="/css/reset.css">
|
<link rel="stylesheet" href="/css/reset.css">
|
||||||
<link rel="stylesheet" href="/css/pygments.css">
|
<link rel="stylesheet" href="/css/pygments.css">
|
||||||
<link rel="stylesheet" href="/css/main.css">
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
{{ if .Site.Params.WebfontsFile }}
|
||||||
|
<link rel="stylesheet" href="{{ .Site.Params.WebfontsFile }}">
|
||||||
|
{{ else }}
|
||||||
<link rel="stylesheet" href="/css/webfonts.css">
|
<link rel="stylesheet" href="/css/webfonts.css">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<!-- Icon -->
|
<!-- Icon -->
|
||||||
<link rel="shortcut icon"
|
<link rel="shortcut icon"
|
||||||
|
Reference in New Issue
Block a user