summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-05-29 19:32:14 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-05-29 19:32:14 +0200
commitd61325be1161f444621ad58d9538f3df53630249 (patch)
treefe8214632c83c31dfa4ab31bf5cc071b0a05137a
parente6ee1ce474f32a3cb710cf8d96f12f1b7e2b19df (diff)
Selfhosted fonts
-rw-r--r--Makefile3
-rw-r--r--static/abel.woffbin0 -> 12392 bytes
-rw-r--r--static/anonymouspro.woffbin0 -> 11680 bytes
-rw-r--r--static/fonts.css18
-rw-r--r--static/raleway.woffbin0 -> 16512 bytes
-rw-r--r--template/root.tmpl2
6 files changed, 21 insertions, 2 deletions
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
--- /dev/null
+++ b/static/abel.woff
Binary files differ
diff --git a/static/anonymouspro.woff b/static/anonymouspro.woff
new file mode 100644
index 0000000..f612cba
--- /dev/null
+++ b/static/anonymouspro.woff
Binary files 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
--- /dev/null
+++ b/static/raleway.woff
Binary files 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 @@
<head>
<meta charset="UTF-8">
<title>{{template "title" .}}</title>
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Abel|Raleway|Anonymous+Pro">
+ <link rel="stylesheet" type="text/css" href="/static/fonts.css">
<link rel="stylesheet" type="text/css" href="/static/style.css">
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.atom">
<meta name="google-site-verification" content="3cwuN4OwVfNZEGTw5Q9UotI2AJCTzr8F7QB8uhtfAWo">