From 5878f158c38e936d6c4f5799c1be01e5a5362bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sun, 3 Oct 2021 17:53:22 +0200 Subject: [PATCH] Basic list rendering. --- _scripts/generate.py | 3 ++- static/style.css | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/_scripts/generate.py b/_scripts/generate.py index edeae3f..0425b41 100644 --- a/_scripts/generate.py +++ b/_scripts/generate.py @@ -137,7 +137,8 @@ def render_code_block(element, acc): def render_text(element, acc): - pass + for chunk in element.content.contents: + acc.append("{} ".format(chunk)) def render_tag(element, acc): diff --git a/static/style.css b/static/style.css index 1574183..1c2daf6 100644 --- a/static/style.css +++ b/static/style.css @@ -1,7 +1,17 @@ .node .node { - margin-left: 1ex; + margin: 1ex; padding-left: 1ex; - border-left: 1px solid #444; + border-left: 3px solid #444; +} + +h1.title .state { + font-style: italic; + font-size: 50%; + vertical-align: middle; +} +h1.title a { + color: black; + text-decoration: underline dotted 2px; } li .tag {