New blog + CSS tweaking.
This commit is contained in:
parent
f4be1d60f8
commit
3995fc8c7c
|
@ -0,0 +1,14 @@
|
|||
Moving away from Wordpress
|
||||
==========================
|
||||
|
||||
My previous blog used to be powered by Wordpress. However, I've found
|
||||
out that I don't need most of the features that Wordpress offers and I
|
||||
don't have the time to maintain it.
|
||||
|
||||
Among other things, this also means considerable security risk,
|
||||
especially in the case of Wordpress. Hence, I switched to generating
|
||||
static HTML pages.
|
||||
|
||||
The `old blog`_ is still available as static HTML.
|
||||
|
||||
.. _old blog: https://ziman.functor.sk/oldblog/
|
14
build.sh
14
build.sh
|
@ -13,15 +13,17 @@ render() {
|
|||
-s -T "$BLOG_TITLE_PREFIX" \
|
||||
--base-header-level=2 \
|
||||
-f rst -t html5 \
|
||||
-H wrappers/art_header.html \
|
||||
-B wrappers/art_before_body.html \
|
||||
"$@"
|
||||
}
|
||||
|
||||
render_article() {
|
||||
render \
|
||||
-H wrappers/art_header.html \
|
||||
-B wrappers/art_before_body.html \
|
||||
-A wrappers/art_after_body.html \
|
||||
"$@"
|
||||
render -A wrappers/art_after_body.html "$@"
|
||||
}
|
||||
|
||||
render_index() {
|
||||
render -A wrappers/index_after_body.html "$@"
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,4 +47,4 @@ for root in $(cd articles; ls -1 | cut -d. -f1 | tac); do
|
|||
echo "- $date -- \`$title <${root}.html>\`_" >> $index.rst
|
||||
done
|
||||
|
||||
render "$index.rst" -o "$index.html"
|
||||
render_index "$index.rst" -o "$index.html"
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-size: 10pt;
|
||||
margin-top: 0px;
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
|
@ -12,7 +14,7 @@ h1 {
|
|||
margin-bottom: 1.25em;
|
||||
text-align: center;
|
||||
|
||||
border-bottom: 1px dotted gray;
|
||||
border-bottom: 1px dotted #ccc;
|
||||
padding-bottom: 0.75em;
|
||||
}
|
||||
|
||||
|
@ -24,11 +26,13 @@ h2 {
|
|||
article {
|
||||
width: 40em;
|
||||
margin: 0px auto;
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 4em;
|
||||
text-align: center;
|
||||
border-top: 1px dotted #ccc;
|
||||
}
|
||||
|
||||
p > img {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<footer>
|
||||
Reach me at <span class="foo">ziman</span><span class="baz">yuri</span><span class="foo">@functor</span><span class="baz">@mailinator</span><span class="foo">.sk</span><span class="baz">.com</span>.
|
||||
</footer>
|
||||
</article>
|
Loading…
Reference in New Issue