fix nav/footer
This commit is contained in:
parent
e57adb1121
commit
27ae3773ba
|
@ -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"-->
|
||||
<!--#include file="/footer.cgi"-->
|
||||
|
|
4
sed.sh
4
sed.sh
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
sed -i -e 's/<header>//'\
|
||||
-e 's/<\/header>//'\
|
||||
-e 's/<body>/<body>\n<\!--#include file=\"\/nav\"-->\n/'\
|
||||
-e 's/<\/body>/<\/body>\n<!--#include file=\"\/footer\"-->\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
|
||||
|
|
Loading…
Reference in New Issue