diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-23 23:42:22 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-23 23:42:22 +0300 |
commit | bc0389208b62a74c1c7b1067ebeb0f3532d0cdaa (patch) | |
tree | 83c42f8b7cef3ee20f5b02deb5d6436ebea9e1f7 /layouts | |
parent | 945246c56093b022cfcbd1f5897c5671adab391f (diff) |
Edit fonts
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | layouts/partials/head/style.html | 31 |
2 files changed, 30 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 29d4c62..eb129ee 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,6 @@ <title>{{ .Site.Title }}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="utf-8" /> - <link rel="stylesheet" media="all" href="https://fontlibrary.org/face/cmu-serif" type="text/css" /> {{ partial "head/style.html" . }} </head> diff --git a/layouts/partials/head/style.html b/layouts/partials/head/style.html index 99499b1..b1af278 100644 --- a/layouts/partials/head/style.html +++ b/layouts/partials/head/style.html @@ -1,6 +1,35 @@ <style type="text/css"> + @font-face { + font-family: 'Computer Modern Serif'; + src: url('/font/cmunrm.woff') format('woff'),; + font-weight: normal; + font-style: normal; + } + + @font-face { + font-family: 'Computer Modern Serif'; + src: url('/font/cmunbx.woff') format('woff'); + font-weight: bold; + font-style: normal; + } + + @font-face { + font-family: 'Computer Modern Serif'; + src: url('cmunti.woff') format('woff'); + font-weight: normal; + font-style: italic; + } + + + @font-face { + font-family: 'Computer Modern Serif'; + src: url('cmunbi.woff') format('woff'); + font-weight: bold; + font-style: italic; + } + body { - font-family: 'CMUSerifRoman', serif; + font-family: 'Computer Modern Serif', serif; font-size: 13pt; line-height: 120%; background: white; |