adding favicon support in index page
This commit is contained in:
parent
98615782a7
commit
01b968a688
3
make.sh
3
make.sh
@ -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
1
templates/favicon.html
Normal file
@ -0,0 +1 @@
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
Loading…
Reference in New Issue
Block a user