From d61325be1161f444621ad58d9538f3df53630249 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 29 May 2016 19:32:14 +0200 Subject: Selfhosted fonts --- Makefile | 3 ++- static/abel.woff | Bin 0 -> 12392 bytes static/anonymouspro.woff | Bin 0 -> 11680 bytes static/fonts.css | 18 ++++++++++++++++++ static/raleway.woff | Bin 0 -> 16512 bytes template/root.tmpl | 2 +- 6 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 static/abel.woff create mode 100644 static/anonymouspro.woff create mode 100644 static/fonts.css create mode 100644 static/raleway.woff diff --git a/Makefile b/Makefile index 6713884..43c8d80 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ clean: install: install blog /usr/local/bin/ install template/*.tmpl /var/www/htdocs/template/ - install static/style.css /var/www/htdocs/static/ + install static/*.css /var/www/htdocs/static/ + install static/*.woff /var/www/htdocs/static/ restart: /etc/rc.d/blog restart diff --git a/static/abel.woff b/static/abel.woff new file mode 100644 index 0000000..c29c0a4 Binary files /dev/null and b/static/abel.woff differ diff --git a/static/anonymouspro.woff b/static/anonymouspro.woff new file mode 100644 index 0000000..f612cba Binary files /dev/null and b/static/anonymouspro.woff differ diff --git a/static/fonts.css b/static/fonts.css new file mode 100644 index 0000000..352030e --- /dev/null +++ b/static/fonts.css @@ -0,0 +1,18 @@ +@font-face { + font-family: 'Abel'; + font-style: normal; + font-weight: 400; + src: local('Abel'), url(/static/abel.woff) format('woff'); +} +@font-face { + font-family: 'Anonymous Pro'; + font-style: normal; + font-weight: 400; + src: local('Anonymous Pro'), url(/static/anonymouspro/.woff) format('woff'); +} +@font-face { + font-family: 'Raleway'; + font-style: normal; + font-weight: 400; + src: local('Raleway'), url(/static/raleway.woff) format('woff'); +} diff --git a/static/raleway.woff b/static/raleway.woff new file mode 100644 index 0000000..56478f2 Binary files /dev/null and b/static/raleway.woff differ diff --git a/template/root.tmpl b/template/root.tmpl index 52b90fb..a9b6a90 100644 --- a/template/root.tmpl +++ b/template/root.tmpl @@ -47,7 +47,7 @@ {{template "title" .}} - + -- cgit v1.2.3