Compare commits

...

2 Commits

Author SHA1 Message Date
veclav talica
78b50d27c2 adapt to mobile devices 2024-02-23 22:52:11 +05:00
veclav talica
5601ecb988 proper-er shell usage 2024-02-16 20:25:19 +05:00
6 changed files with 25 additions and 9 deletions

View File

@ -66,6 +66,7 @@ html {
font-size: 0.8em;
background-color: var(--bg-color);
border: 1px solid #bbbbdd;
overflow: scroll;
}
nav li:first-child {
border-left: none;
@ -100,3 +101,9 @@ html {
font-size: 13px;
}
}
img {
max-width: 100%;
height: auto;
width: auto;
}

View File

@ -1,9 +1,8 @@
#!/usr/bin/env bash
git submodule init
git submodule update
cd tools/mmd
make release
cd build
make
cd ../..
set +e
git submodule update --init --recursive
(cd tools/mmd && make release)
(cd tools/mmd/build && make)

View File

@ -53,6 +53,7 @@ article_head += "---\n\n"
header = f"""HTML header: <meta property="og:title" content="{title} on mjestečko"></meta>
<meta property="og:type" content="article"></meta>
<meta property="og:url" content="{argv[2]}/articles/{urllib.parse.quote(directory)}.html"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1">
"""
if not brief is None:
header += f"""<meta property="og:description" content="{brief}"></meta>\n"""

View File

@ -16,6 +16,7 @@ seed()
page_metadata = """Title: mjestečko
CSS: /style.css
HTML header: <meta name="viewport" content="width=device-width, initial-scale=1">
"""

View File

@ -10,8 +10,14 @@ import os.path as path
from article_utils import the_line_after_metadata, parse_metadata
from page_shares import wrap_page
tag_listing_header = "CSS: /style.css\n\n"
main_listing_header = "CSS: /style.css\n\n"
tag_listing_header = """CSS: /style.css
HTML header: <meta name="viewport" content="width=device-width, initial-scale=1">
"""
main_listing_header = """CSS: /style.css
HTML header: <meta name="viewport" content="width=device-width, initial-scale=1">
"""
if len(argv) <= 1:
print("No article directory was supplied")

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set +e
for cur in ./html/{*,*/*,*/*/*}; do
if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then
if [ -f "$cur.upload-checksum" ]; then