mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
fix 404
This commit is contained in:
parent
c88590abd9
commit
c5b42f4243
3 changed files with 11 additions and 2 deletions
|
|
@ -54,7 +54,15 @@ function compile_rss() {
|
||||||
|
|
||||||
function munge_html() {
|
function munge_html() {
|
||||||
for FILE in "$TARGET"/*.html "$TARGET"/posts/*/*/*.html "$TARGET"/posts/drafts/*.html "$TARGET"/projects/*.html; do
|
for FILE in "$TARGET"/*.html "$TARGET"/posts/*/*/*.html "$TARGET"/posts/drafts/*.html "$TARGET"/projects/*.html; do
|
||||||
[[ "${FILE##*/}" = "index.html" ]] && continue
|
FILENAME="${FILE##*/}"
|
||||||
|
case "$FILENAME" in
|
||||||
|
index.html)
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
missing.html)
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# make posts available without an .html extension
|
# make posts available without an .html extension
|
||||||
FILE_DIR="${FILE%.html}"
|
FILE_DIR="${FILE%.html}"
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<p align="center">four oh four</p>
|
|
||||||
1
public/404.md
Symbolic link
1
public/404.md
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
missing.md
|
||||||
1
public/missing.md
Normal file
1
public/missing.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<p align="center">four oh four</p>
|
||||||
Loading…
Reference in a new issue