summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/html7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/html b/bin/html
index 2554287..d5aa145 100644
--- a/bin/html
+++ b/bin/html
@@ -138,6 +138,13 @@ def markdown(c):
return r.stdout
+def lhref(sec, s, l):
+ if l == 'en':
+ return '<a href="/{}/{}">{}</a>'.format(sec, s, l)
+ else:
+ return '<a href="/{}/{}/{}">{}</a>'.format(sec, s, l, l)
+
+
def html(sec, f):
c = read(f.path)
s, l = slug(f.path)