aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitali64 <vitali64pmemail@protonmail.com>2021-12-19 15:22:01 +0100
committerVitali64 <vitali64pmemail@protonmail.com>2021-12-19 15:22:01 +0100
commit6c208a927842cbfad2efceab790565a34d3d9d87 (patch)
tree3ee6ab58418772d2ef95964eed7cbefb3e2063e7
parent16023c5b0b7ff748a5175d1f2a1aea0461cbe7ed (diff)
downloadseen-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.md6
-rwxr-xr-xseen.sh1
2 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8b49728..b0b1e95 100644
--- a/README.md
+++ b/README.md
@@ -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
+
diff --git a/seen.sh b/seen.sh
index a748811..b59c307 100755
--- a/seen.sh
+++ b/seen.sh
@@ -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 ..."