CSS: Fix path
This commit is contained in:
parent
d29fe2542a
commit
2f73bfae47
@ -1,12 +1,12 @@
|
|||||||
/* Fonts */
|
/* Fonts */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: roboto;
|
font-family: roboto;
|
||||||
src: url(/assets/fonts/Roboto-Regular.ttf)
|
src: url(/fonts/Roboto-Regular.ttf)
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: overpass;
|
font-family: overpass;
|
||||||
src: url(/assets/fonts/OpenSans-Regular.ttf)
|
src: url(/fonts/OpenSans-Regular.ttf)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Element styling */
|
/* Element styling */
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import re
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
@ -7,9 +8,13 @@ if len(sys.argv) <= 1:
|
|||||||
|
|
||||||
for file_ in sys.argv[1:]:
|
for file_ in sys.argv[1:]:
|
||||||
print(f'Signing {file_} ...')
|
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_],
|
proc = subprocess.run(['gpg', '--armor', '--detach-sign', '--output', '-', '--local-user', 'papatutuwawa@polynom.me', file_],
|
||||||
capture_output=True, check=True)
|
capture_output=True, check=True, input=content, encoding='utf-8')
|
||||||
signature = proc.stdout.decode('utf-8')[:-1]
|
signature = proc.stdout[:-1]
|
||||||
|
print(signature)
|
||||||
with open(file_, 'r') as fh:
|
with open(file_, 'r') as fh:
|
||||||
content = fh.read().replace('%%%SIGNED_PAGES_PGP_SIGNATURE%%%', signature)
|
content = fh.read().replace('%%%SIGNED_PAGES_PGP_SIGNATURE%%%', signature)
|
||||||
with open(file_, 'w') as fh:
|
with open(file_, 'w') as fh:
|
||||||
|
Loading…
Reference in New Issue
Block a user