summaryrefslogtreecommitdiff
path: root/generate.sh
blob: 08d99162a4bd565d8dda4adb3aecc636e8f26ec3 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env sh

echo "Generate html"
mandoc -T html -O style=./style.css website.7 > website.7.html
echo "Changing Mastodon hyperlink style"
sed -i 's|<p class="Pp">- <a class="Lk" href="https://tech.lgbt/@axtlos">Mastodon</a></p>|<p class="Pp">- <i class="Em">Mastodon:</i> <a class="Lk" href="https://tech.lgbt/@axtlos">https://tech.lgbt/@axtlos</a></p>|g' website.7.html
echo "Adding Gifs"
sed -i 's|</body>|<img src="https://cyber.dabamos.de/88x31/delete-twitter.gif" alt="delete twitter, make a neocities!"/>\n<img src="https://cyber.dabamos.de/88x31/antinazi.gif" alt="No nazis! No fascists! No racism!"/>\n<img src="https://cyber.dabamos.de/88x31/rainbow_bev.gif" alt="Pride flag"/>\n</body>|g' website.7.html
echo "Succesfully generated website"