Further markdown implementation

This commit is contained in:
Stefan Friese 2023-07-12 00:08:49 +02:00
parent 3b11220b7c
commit b790e8fd8e
7 changed files with 17 additions and 13 deletions

View File

@ -1,3 +1,5 @@
2021-06-01
# Keep It Simple # Keep It Simple
While studying architecture not only had I so little money that I ate While studying architecture not only had I so little money that I ate
@ -21,8 +23,7 @@ using your product. In proxy, any room, place or inanimate object
created by a human speaks to the user. Even on an emotional level. created by a human speaks to the user. Even on an emotional level.
Psychologists or product designers like computer and car designers are Psychologists or product designers like computer and car designers are
no strangers to this. Donald Norman wrote multiple books about it no strangers to this. Donald Norman wrote multiple books about it
[[2]]{#references){style="text-decoration:none"}, [[2]](#references), [[3]](#references).
[[3]](#references){style="text-decoration:none"}. Some good reads.
Schulz von Thun defined the [four-ears Schulz von Thun defined the [four-ears
model](http://temp.chpfeiffer.de/Four-sides_model.pdf) in which a model](http://temp.chpfeiffer.de/Four-sides_model.pdf) in which a
sender's message is received on four different levels. These are Factual sender's message is received on four different levels. These are Factual

View File

@ -1,3 +1,5 @@
2022-05-29
# The Joy of One-Liners # The Joy of One-Liners
There is an engineering idiom which withstands time like no other. As There is an engineering idiom which withstands time like no other. As

View File

@ -19,13 +19,13 @@ app = Flask(__name__)
Markdown(app) Markdown(app)
meta_data = { meta_data = {
root[len("./blog/"):]: datetime.fromtimestamp( root[len("./blog/"):]: datetime.strptime(
os.path.getmtime( open(os.path.join(root, "index.md"), encoding='UTF-8')
os.path.join(root, "index.html") .readline().rstrip(),
) "%Y-%m-%d"
) )
for root, dirs, files in os.walk("./blog") for root, dirs, files in os.walk("./blog")
if "index.html" in files if "index.md" in files
} }
app.config["blog"] = toml.load("settings.toml") app.config["blog"] = toml.load("settings.toml")

View File

@ -1,2 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>Website of Stefan Friese</title><link>https://stefan.works</link><description>test</description><atom:link href="https://stefan.works" rel="self"/><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><language>en-us</language><lastBuildDate>Sat, 08 Jul 2023 11:34:36 +0000</lastBuildDate><item><title>The Joy of One-Liners</title><link>https://stefan.works/blog/The Joy of One-Liners/index.html</link><guid isPermaLink="false">https://stefan.works/blog/The Joy of One-Liners/index.html</guid><pubDate>Sun, 29 May 2022 22:52:44 +0200</pubDate></item><item><title>Keep It Simple</title><link>https://stefan.works/blog/Keep It Simple/index.html</link><guid isPermaLink="false">https://stefan.works/blog/Keep It Simple/index.html</guid><pubDate>Tue, 01 Jun 2021 22:47:04 +0200</pubDate></item></channel></rss> <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>Website of Stefan Friese</title><link>https://stefan.works</link><description>test</description><atom:link href="https://stefan.works" rel="self"/><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><language>en-us</language><lastBuildDate>Tue, 11 Jul 2023 21:32:56 +0000</lastBuildDate><item><title>The Joy of One-Liners</title><link>https://stefan.works/blog/The Joy of One-Liners/index.html</link><guid isPermaLink="false">https://stefan.works/blog/The Joy of One-Liners/index.html</guid><pubDate>Sun, 29 May 2022 00:00:00 +0200</pubDate></item><item><title>Keep It Simple</title><link>https://stefan.works/blog/Keep It Simple/index.html</link><guid isPermaLink="false">https://stefan.works/blog/Keep It Simple/index.html</guid><pubDate>Tue, 01 Jun 2021 00:00:00 +0200</pubDate></item></channel></rss>

View File

@ -25,11 +25,12 @@ h2 { font-size: 22px; margin-bottom: 2px; }
h3 { font-size: 14px; } h3 { font-size: 14px; }
p { font-size: 16px; } p { font-size: 16px; }
blockquote { text-align: center; font-size: 16px; font-style: normal; line-height: 30px;} blockquote { text-align: center; font-size: 16px; font-style: normal; line-height: 30px;}
pre { border: 1px solid #ddd; font-size: 14px; padding-left: 2ch; line-height: 18px; overflow: auto; } pre { border: 1px solid #ddd; font-size: 14px; padding: 1ch; line-height: 18px; overflow: auto; }
code { background-color: #282C34; color: #979FAD; } /* code { background-color: #282C34; color: #979FAD; } */
hr { height: 1px; border: 0px;} code {padding-left: 0.5ch; padding-right: 0.5ch;}
/* hr { height: 1px; border: 0px;} */
a {color: inherit; text-decoration: solid underline;} a {color: inherit; text-decoration: solid underline;}
img { max-width: 100%; } img { max-width: 100%; display: block; margin-left: auto; margin-right: auto; }
.menu { line-height: 1em; font-size: 24px; line-height: 1em; text-decoration: none; } .menu { line-height: 1em; font-size: 24px; line-height: 1em; text-decoration: none; }
.index { color: inherit; text-decoration: solid underline; } .index { color: inherit; text-decoration: solid underline; }
.references { text-decoration: solid underline; text-underline-position: under; } .references { text-decoration: solid underline; text-underline-position: under; }

View File

@ -4,7 +4,7 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<span class="body"> <span class="body">
{{ _date.date() }} <!-- {{ _date.date() }} -->
{{ md_doc|markdown }} {{ md_doc|markdown }}
</span> </span>
{% endblock %} {% endblock %}