aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmynah5
-rw-r--r--styles.css5
2 files changed, 7 insertions, 3 deletions
diff --git a/mynah b/mynah
index cf9c876..1cf0164 100755
--- a/mynah
+++ b/mynah
@@ -45,7 +45,7 @@ build_logs() {
echo -e "$archive_entry" >> ../archive.md
done
cd ..
- pandoc -c styles.css -s archive.md -o public/archive.html
+ pandoc -c https://elioat.tilde.institute/wiki/styles.css -s archive.md -o public/archive.html
}
build() {
@@ -64,7 +64,7 @@ build() {
(( i++ ))
updated_at="- [${file%.*}](${SITEURL}/${file%.*}.html), ${RFC822}"
echo -e "$updated_at\n$(cat ../changelog.md)" > ../changelog.md
- pandoc -c ../styles.css -s "${file}" -o ../public/"${file%.*}".html
+ pandoc -c https://elioat.tilde.institute/wiki/styles.css -s "${file}" -o ../public/"${file%.*}".html
rss_entry='<item>
<title>
<![CDATA[ the page "'${file%.*}'" was updated! ]]>
@@ -126,6 +126,7 @@ elif [[ "${1-}" =~ ^-*s(earch)?$ ]]; then
exit
elif [[ "${1-}" =~ ^-*d(eploy)?$ ]]; then
scp -r public/* elioat@tilde.institute:~/public_html/wiki/
+ scp styles.css elioat@tilde.institute:~/public_html/wiki/
exit
elif [[ "${1-}" =~ ^-*n(est)?$ ]]; then
if [[ -f content ]]; then
diff --git a/styles.css b/styles.css
index 7983802..6ab385a 100644
--- a/styles.css
+++ b/styles.css
@@ -19,9 +19,12 @@ p {
line-height: 1.25;
}
-img {
+figure, img {
max-width: 100%;
margin: 0;
+}
+
+figcaption {
padding-bottom: 2em;
}