kaveh

a simple website generator, it aims to generate static html files from markdown files, no databases and bloat-web, just texts.
git clone git://mahdi.pw/kaveh.git
Log | Files | Refs | README | LICENSE

commit dfd55a984ad8d84e811ea24a027b7df16627cba8
parent 975ba450ec8c6c31a742e43944c3bd0539ecfc0b
Author: Mahdi Mirzade <me@mahdi.pw>
Date:   Mon,  6 Jun 2022 14:28:11 +0430

Minor changes

Diffstat:
Mkaveh | 44+++++++++++++++++++++++++++++++-------------
1 file changed, 31 insertions(+), 13 deletions(-)

diff --git a/kaveh b/kaveh @@ -64,7 +64,7 @@ find "${KVH_SRC}" -name "*.md" | while read FILE; do > "${KVH_DST}/${FILE_NAME%.md}.html" # Minify html files: (just removing characters within tags, not effecting JS,CSS) - sed -i ':a;N;$!ba;s/>\s*</></g' "${KVH_DST}/${FILE_NAME%.md}.html" + #sed -i ':a;N;$!ba;s/>\s*</></g' "${KVH_DST}/${FILE_NAME%.md}.html" done @@ -90,15 +90,34 @@ __HTML TEMPLATE__ <link rel="icon" href="%PAGE_ICON%"> <title>%PAGE_TITLE%</title> <style> - body{ - margin:1em auto; - max-width:40em; - padding:0 .62em; - font:1.2em/1.62 sans-serif + html { + overflow-y: scroll; } - blockquote, pre, code { - background-color: #f0f0f0; - border-color: #222; + body { + background-color: #fff; + color: #000; + margin: 0 auto; + padding: 1ex; + max-width: 80ex; + font-family: sans-serif; + } + /* Center Images */ + img { + display: block; + margin: 0 auto; + } + pre { + margin: 0; + } + code { + background-color: #eee; + border: 3px solid #aaa; + display: block; + font-family: monospace; + overflow-x: auto; + padding: 5px; + word-wrap: normal; + white-space: pre-wrap; } h1,h2,h3 { line-height:1.2 @@ -109,13 +128,11 @@ __HTML TEMPLATE__ } } @media (prefers-color-scheme: dark){ - body {color:#fff;background:#000} + body {color:#fff;background-color:#000} + code {border-color:#222;background-color:#111;} a:link {color:#cdf} a:hover, a:visited:hover {color:#def} a:visited {color:#dcf} - blockquote, pre, code { - background-color: #2f2f2f; - } } </style> </head> @@ -128,3 +145,4 @@ __HTML TEMPLATE__ </footer> </body> </html> +