CSS: Fix path

This commit is contained in:
PapaTutuWawa 2020-09-21 22:23:46 +02:00
parent d29fe2542a
commit 2f73bfae47
2 changed files with 9 additions and 4 deletions

View File

@ -1,12 +1,12 @@
/* Fonts */
@font-face {
font-family: roboto;
src: url(/assets/fonts/Roboto-Regular.ttf)
src: url(/fonts/Roboto-Regular.ttf)
}
@font-face {
font-family: overpass;
src: url(/assets/fonts/OpenSans-Regular.ttf)
src: url(/fonts/OpenSans-Regular.ttf)
}
/* Element styling */

View File

@ -1,3 +1,4 @@
import re
import sys
import subprocess
@ -7,9 +8,13 @@ if len(sys.argv) <= 1:
for file_ in sys.argv[1:]:
print(f'Signing {file_} ...')
with open(file_, 'r') as fh:
content = fh.read()
content = re.sub(r'^\s*<!doctype[^>]*>', '', content)
proc = subprocess.run(['gpg', '--armor', '--detach-sign', '--output', '-', '--local-user', 'papatutuwawa@polynom.me', file_],
capture_output=True, check=True)
signature = proc.stdout.decode('utf-8')[:-1]
capture_output=True, check=True, input=content, encoding='utf-8')
signature = proc.stdout[:-1]
print(signature)
with open(file_, 'r') as fh:
content = fh.read().replace('%%%SIGNED_PAGES_PGP_SIGNATURE%%%', signature)
with open(file_, 'w') as fh: