diff options
author | Vitali64 <vitali64pmemail@protonmail.com> | 2021-12-19 15:22:01 +0100 |
---|---|---|
committer | Vitali64 <vitali64pmemail@protonmail.com> | 2021-12-19 15:22:01 +0100 |
commit | 6c208a927842cbfad2efceab790565a34d3d9d87 (patch) | |
tree | 3ee6ab58418772d2ef95964eed7cbefb3e2063e7 | |
parent | 16023c5b0b7ff748a5175d1f2a1aea0461cbe7ed (diff) | |
download | seen-6c208a927842cbfad2efceab790565a34d3d9d87.tar.gz seen-6c208a927842cbfad2efceab790565a34d3d9d87.zip |
Add CSS feature
It is now possible to add a css file into the templates/ directory, that css is gonna be copied to www/ and ready to use. You need to add <link rel=stylesheet href=<your css> in the header file however.
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | seen.sh | 1 |
2 files changed, 6 insertions, 1 deletions
@@ -22,8 +22,12 @@ And run the following: $ ./seen.sh Your blog is in the `www/` directory. You can make your webserver use it. +You can also use CSS files, just put them into the `templates/` directory. -Seen supports options too, for more info, run the following: +Feel free to customize other html files present in that directory. + +Seen supports other options too, for more info, run the following: $ ./seen.sh --help + @@ -88,6 +88,7 @@ do markdown "articles/${line}.md" >> "www/articles/${line}.html" || die "Cannot convert ${line}.md to html!" # Convert the markdown text to html echo "-> [$(date +%R)] Inserting footer to ${line}.html ..." cat "templates/footer.html" >> "www/articles/${line}.html" || die "Cannot insert footer into ${line}.html!" # Insert the footer into the article page + cp -r templates/*.css www/. # Add css files if present # Add an entry in index.html echo "-> [$(date +%R)] Adding ${line} entry to index.html ..." |