add simple roboto font

This commit is contained in:
Adrian Amaglio 2019-06-13 15:32:31 +02:00
parent 6bb4f85ebc
commit 69ad3ab7a0
10 changed files with 54 additions and 10 deletions

BIN
fonts/Roboto-Bold.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-BoldItalic.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Condensed.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Italic.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Regular.ttf Normal file

Binary file not shown.

10
main.py
View File

@ -1,10 +0,0 @@
#!/bin/python3
# Fetch article list
# generate menu
# generate 1 page per category
# generate 1 page per article
for file in article*.html ; do
sed -e "/-- body -->/r $file" index.html > static.$file
done

54
style/fonts.css Normal file
View File

@ -0,0 +1,54 @@
/* Roboto regular */
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-Regular.ttf);
}
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-Bold.ttf);
font-weight: bold;
}
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-Italic.ttf);
font-style: italic;
}
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-BoldItalic.ttf);
font-style: italic;
font-weight: bold;
}
/* Roboto condensed */
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-Condensed.ttf);
font-stretch: condensed;
}
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-BoldCondensed.ttf);
font-stretch: condensed;
font-weight: bold;
}
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-CondensedItalic.ttf);
font-stretch: condensed;
font-style: italic;
}
@font-face {
font-family: roboto;
src: url(../fonts/Roboto-BoldCondensedItalic.ttf);
font-stretch: condensed;
font-style: italic;
font-weight: bold;
}