diff --git a/Makefile b/Makefile index 0d6f4c9..704b687 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ clean-all: clean plugins server: @cd '$(PROJDIR)' && lektor server # -f ENABLE_PDF_EXPORT -build: +build: dist @cd '$(PROJDIR)' && \ lektor build --output-path ../bin --buildstate-path ../build-state -f ENABLE_APPCACHE -f ENABLE_PDF_EXPORT @echo diff --git a/data/development/brownies-raw/contents.lr b/data/development/brownies-raw/contents.lr index 8adbf36..c65bb2d 100644 --- a/data/development/brownies-raw/contents.lr +++ b/data/development/brownies-raw/contents.lr @@ -6,7 +6,7 @@ time: 15 --- difficulty: easy --- -rating: 4 +rating: 2 --- source: https://mynewroots.org/site/2011/04/the-raw-brownie-2/ --- diff --git a/data/development/vanilla-cut-out-cookies/contents.lr b/data/development/vanilla-cut-out-cookies/contents.lr index f0b312c..2b65091 100644 --- a/data/development/vanilla-cut-out-cookies/contents.lr +++ b/data/development/vanilla-cut-out-cookies/contents.lr @@ -2,7 +2,7 @@ tags: cookies, sweet, xmas, glutenfree --- time: 30 --- -rating: 4 +rating: 2 --- difficulty: easy --- diff --git a/src/models/recipe.ini b/src/models/recipe.ini index 0663e0a..97473d9 100644 --- a/src/models/recipe.ini +++ b/src/models/recipe.ini @@ -35,8 +35,8 @@ choice_labels = Easy, Medium, Hard label = Rating width = 1/8 type = select -choices = 1, 2, 3, 4, 5 -choice_labels = ★☆☆☆☆, ★★☆☆☆, ★★★☆☆, ★★★★☆, ★★★★★ +choices = 1, 2, 3 +choice_labels = ★☆☆, ★★☆, ★★★ [fields.yield] label = Yield / Menge diff --git a/src/packages/helper/lektor_helper.py b/src/packages/helper/lektor_helper.py index 45c3e96..694f3bf 100644 --- a/src/packages/helper/lektor_helper.py +++ b/src/packages/helper/lektor_helper.py @@ -72,7 +72,7 @@ def replaceFractions(txt): return res.lstrip(' ') -def numFillWithText(num, fill=u'★', empty=u'☆', total=5): +def numFillWithText(num, fill=u'★', empty=u'☆', total=3): num = int(num) if num else 0 return fill * num + empty * (total - num)