adding favicon support in index page

This commit is contained in:
Medium Fries 2019-03-21 19:13:12 -07:00
parent 98615782a7
commit 01b968a688
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,6 @@ style() {
page() {
pandoc $mPageDir/$1 --css style.css -s -o $rootDir/page/${1%.*}.html
}
# literally just updates the index file nothing else
@ -35,6 +34,8 @@ index() {
pandoc ./markdown/index.md --css style.css -s -o $rootDir/index.html # typing succs
# next we inject the navbar html stuff
sed -i '7r ./templates/navbar.html' $rootDir/index.html
# finally inject the link for the favicon
sed -i '3r ./templates/favicon.html' $rootDir/index.html
}
# taking function names as param

1
templates/favicon.html Normal file
View File

@ -0,0 +1 @@
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>