diff options
author | Nan Xiao <road2stat@gmail.com> | 2017-12-28 06:35:27 +0300 |
---|---|---|
committer | Nan Xiao <road2stat@gmail.com> | 2017-12-28 06:35:27 +0300 |
commit | 8ea662ec697e427be0a7553d2b07baa1dcbdc9f3 (patch) | |
tree | 5f381337e95091dec6fb450333d73668f83e719b | |
parent | 532567bef67d89a92e0160667992b87717a6cda2 (diff) |
decouple fonts
-rw-r--r-- | layouts/partials/font_body.html | 26 | ||||
-rw-r--r-- | layouts/partials/font_title.html | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 3 | ||||
-rw-r--r-- | layouts/partials/styles.html | 28 |
4 files changed, 29 insertions, 29 deletions
diff --git a/layouts/partials/font_body.html b/layouts/partials/font_body.html new file mode 100644 index 0000000..e79c1f4 --- /dev/null +++ b/layouts/partials/font_body.html @@ -0,0 +1,26 @@ +<style> + @font-face { + font-family: "TiemposText"; + src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular.eot"); + src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular.eot?#iefix") format("embedded-opentype"), + url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular.woff") format("woff"); + font-style: normal; + font-weight: 400; + } + @font-face { + font-family: "TiemposText"; + src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular-Italic.eot"); + src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular-Italic.eot?#iefix") format("embedded-opentype"), + url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular-Italic.woff") format("woff"); + font-style: italic; + font-weight: 400; + } + @font-face { + font-family: "TiemposText"; + src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Semibold.eot"); + src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Semibold.eot?#iefix") format("embedded-opentype"), + url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Semibold.woff") format("woff"); + font-style: normal; + font-weight: 600; + } + </style> diff --git a/layouts/partials/font_title.html b/layouts/partials/font_title.html new file mode 100644 index 0000000..fd22b86 --- /dev/null +++ b/layouts/partials/font_title.html @@ -0,0 +1 @@ +<link href="https://fonts.googleapis.com/css?family=EB+Garamond:500" rel="stylesheet"> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 57c2afa..9b7fd5e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,7 +9,8 @@ <meta name="referrer" content="no-referrer"> {{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }} - <link href="https://fonts.googleapis.com/css?family=EB+Garamond:500" rel="stylesheet"> + {{ partial "font_title.html" . }} + {{ partial "font_body.html" . }} <link rel="icon" type="image/png" href="/favicon.png"> diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 541be78..01b1005 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -1,32 +1,4 @@ <style> - - @font-face { - font-family: "TiemposText"; - src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular.eot"); - src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular.eot?#iefix") format("embedded-opentype"), - url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular.woff") format("woff"); - font-style: normal; - font-weight: 400; - } - - @font-face { - font-family: "TiemposText"; - src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular-Italic.eot"); - src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular-Italic.eot?#iefix") format("embedded-opentype"), - url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Regular-Italic.woff") format("woff"); - font-style: italic; - font-weight: 400; - } - - @font-face { - font-family: "TiemposText"; - src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Semibold.eot"); - src: url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Semibold.eot?#iefix") format("embedded-opentype"), - url("https://www.bu.edu/cdn/fonts/TiemposText/TiemposText-Semibold.woff") format("woff"); - font-style: normal; - font-weight: 600; - } - * { border: 0; font: inherit; |