Skip to content

Commit

Permalink
Update render.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sgohl authored Dec 8, 2023
1 parent 6fa29c1 commit bdaefd8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,23 @@ Page() {

## Page is the content rendered within a View

PAGE=${1%.html}
if [[ ${1} ]]
then

PAGE=${1}

else

if [[ -z ${PAGE} ]]
then

PAGE=${URI}

fi

fi

PAGE=${PAGE%.html}

## if $1 is empty and no URI, always Render index

Expand Down

0 comments on commit bdaefd8

Please sign in to comment.