diff options
author | elioat@tilde.institute <eli@newstartmobile.com> | 2023-01-16 15:06:41 -0500 |
---|---|---|
committer | elioat@tilde.institute <eli@newstartmobile.com> | 2023-01-16 15:06:41 -0500 |
commit | 2ef3a6b3dca69e42b7edba66f8eaaf6187775827 (patch) | |
tree | a28a4f7b88f90c9e13189bd18d49e684dd34f3e9 | |
parent | 3a9909a366aa4517f0b88cea920e7620f1b78c84 (diff) | |
download | wiki-2ef3a6b3dca69e42b7edba66f8eaaf6187775827.tar.gz |
*
-rwxr-xr-x | mynah | 5 | ||||
-rw-r--r-- | styles.css | 5 |
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; } |