Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Add detection of Section Posts in build script #706

Merged
merged 1 commit into from
Sep 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _script/generateThemeSite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ for x in `find ${themesDir} -mindepth 1 -maxdepth 1 -type d -not -path "*.git" -
HUGO_THEME=${x} hugo --quiet -s exampleSite2 -d ${demoDestination} -b $BASEURL/theme/$x/
else
grep -v "enableEmoji" ${searchConfig} > temp && mv temp ${searchConfig}
find ${themesDir}/$x/layouts/ -type f -exec sed -i 's/Pages "Type" "posts"/Pages "Type" "post"/g' {} \;
find ${themesDir}/$x/layouts/ -type f -exec sed -i -e 's/Pages "Type" "posts"/Pages "Type" "post"/g' -e 's/Pages "Section" "posts"/Pages "Section" "post"/g' {} \;
echo "Building site for theme ${x} using default content to ${demoDestination}"
if [ "${hasCompontents}" != "" ]; then
echo "Building site for theme ${x} with Theme Components"
Expand Down