guess i made it worse :D

This commit is contained in:
Arya Kiran 2022-11-23 20:49:38 +05:30
parent 27ae3773ba
commit 3848c78261
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
</article><!-- Do not remove this closing article element -->
<!-- Content placed here will appear directly before the closing </body> tag -->
<!--#include file="/footer.cgi"-->
<!--#include file="/en/footer.cgi"-->

4
sed.sh
View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
sed -i -e 's/<header>//'\
-e 's/<\/header>//'\
-e 's/<body>/<body>\n<\!--#include file=\"\/nav.php\"-->\n/'\
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/footer.cgi\"-->\n/'\
-e 's/<body>/<body>\n<\!--#include file=\"\/nav.php\" -->\n/'\
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/footer.cgi\" -->\n/'\
-e 's/..\/..\/style.css/\/blog\/style.css/'\
_output/blog/index.html
sed -i -n '1,/<style>/p;/<\/style>/,$p' _output/blog/index.html