aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 15:20:36 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 15:20:36 +0200
commit8b02c345ed76ea4b68d8f583f2b3a0a769674cd1 (patch)
tree1dab2c8776f810fc791716365f0108f5ab8f9f68
parentFix current-time marker. (diff)
downloadcalp-staben.tar.gz
calp-staben.tar.xz
STABEN.staben
-rw-r--r--config.scm11
-rw-r--r--static/style.css7
2 files changed, 18 insertions, 0 deletions
diff --git a/config.scm b/config.scm
index fb09deb3..f234c81e 100644
--- a/config.scm
+++ b/config.scm
@@ -66,6 +66,17 @@
(parse-html (regexp-substitute/global
#f "<br>" str
'pre "<br/>" 'post))]
+ [(member (attr (parent ev) 'NAME)
+ '("Nolle-P"))
+ (parse-html
+ (regexp-substitute/global
+ #f "STAB(EN)?\\w*" str
+ 'pre
+ (lambda (m)
+ (string-append "<span class='staben'>"
+ (match:substring m)
+ "</span>"))
+ 'post))]
[else (parse-links str)])))
(set-config! 'week-start (@ (datetime util) mon))
diff --git a/static/style.css b/static/style.css
index e17f2715..2f499c56 100644
--- a/static/style.css
+++ b/static/style.css
@@ -678,5 +678,12 @@ along with their colors.
left: -1em;
}
+.staben {
+ font-family: Rocky AOE;
+ color: red;
+ font-size: 150%;
+ font-style: initial;
+}
+
/* vim:expandtab:softtabstop=4:shiftwidth=4:
*/