Skip to content

Commit

Permalink
curl index page separately
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 14, 2023
1 parent a8ecfd7 commit fc6af45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/bin/generate-html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ mkdir -p html
touch build.lock # we are running the build process.
trap "rm -rf build.lock" EXIT

curl_and_save "/" "html/index.html"

# pages/*.md HTML BUilding
for file in pages/*.md; do
filename=$(basename "$file" .md)
Expand All @@ -65,7 +67,8 @@ done
# **/*.php Any php file HTML Building
find . -name "*.php" ! -path "./system/*" ! -path "./vendor/*" ! -path "./layout/*" | while read -r file; do
file="${file#./}" #Remove the leading ./
if [[ "$file" == "page.php" || "$file" == "post.php" ]]; then #pages and posts are handled above separately
#pages and posts are handled above separately
if [[ "$file" == "page.php" || "$file" == "post.php" || "$file" == "index.php" ]]; then
continue;
fi

Expand Down

0 comments on commit fc6af45

Please sign in to comment.