diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | content/favicon.ico | bin | 0 -> 7406 bytes | |||
-rwxr-xr-x | scripts/build_content.sh | 2 | ||||
-rwxr-xr-x | scripts/watch_templates.sh | 7 | ||||
-rw-r--r-- | templates/base.html | 3 |
5 files changed, 14 insertions, 3 deletions
@@ -31,7 +31,10 @@ watch_sass: build | |||
31 | watch_content: build | 31 | watch_content: build |
32 | @scripts/watch_content.sh | 32 | @scripts/watch_content.sh |
33 | 33 | ||
34 | watch: watch_sass watch_content | 34 | watch_templates: build |
35 | @scripts/watch_templates.sh | ||
36 | |||
37 | watch: watch_sass watch_content watch_templates | ||
35 | 38 | ||
36 | serve_only: build | 39 | serve_only: build |
37 | @python -m http.server --bind 127.0.0.1 --directory output | 40 | @python -m http.server --bind 127.0.0.1 --directory output |
diff --git a/content/favicon.ico b/content/favicon.ico new file mode 100644 index 0000000..39895e5 --- /dev/null +++ b/content/favicon.ico | |||
Binary files differ | |||
diff --git a/scripts/build_content.sh b/scripts/build_content.sh index 460a3fe..0698ee0 100755 --- a/scripts/build_content.sh +++ b/scripts/build_content.sh | |||
@@ -39,7 +39,7 @@ if [ -z "$1" ]; then | |||
39 | done | 39 | done |
40 | elif [ "$2" = "delete" ]; then | 40 | elif [ "$2" = "delete" ]; then |
41 | TARGET=$(target "$1") | 41 | TARGET=$(target "$1") |
42 | echo "[DELETE] $1 -> $TARGET" | 42 | echo "[DELETE ] $1 -> $TARGET" |
43 | rm -rf $TARGET | 43 | rm -rf $TARGET |
44 | else | 44 | else |
45 | handle "$1" | 45 | handle "$1" |
diff --git a/scripts/watch_templates.sh b/scripts/watch_templates.sh new file mode 100755 index 0000000..160a46c --- /dev/null +++ b/scripts/watch_templates.sh | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | inotifywait -qrme close_write,delete,move --format "%w%f" templates \ | ||
4 | | while read FILENAME | ||
5 | do | ||
6 | scripts/build_content.sh | ||
7 | done | ||
diff --git a/templates/base.html b/templates/base.html index a4d81ba..25232dc 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -4,7 +4,8 @@ | |||
4 | <head> | 4 | <head> |
5 | <meta charset="utf-8" /> | 5 | <meta charset="utf-8" /> |
6 | <meta name="viewport" content="width=device-width, initial-scale=1" /> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
7 | <meta name="robots" content="noindex" /> | 7 | <meta name="robots" content="noindex" /> |
8 | <link rel="shortcut icon" href="/favicon.ico" /> | ||
8 | $for(author-meta)$ | 9 | $for(author-meta)$ |
9 | <meta name="author" content="$author-meta$" /> | 10 | <meta name="author" content="$author-meta$" /> |
10 | $endfor$ | 11 | $endfor$ |