Limit rating to three stars
This commit is contained in:
2
Makefile
2
Makefile
@@ -45,7 +45,7 @@ clean-all: clean plugins
|
|||||||
server:
|
server:
|
||||||
@cd '$(PROJDIR)' && lektor server # -f ENABLE_PDF_EXPORT
|
@cd '$(PROJDIR)' && lektor server # -f ENABLE_PDF_EXPORT
|
||||||
|
|
||||||
build:
|
build: dist
|
||||||
@cd '$(PROJDIR)' && \
|
@cd '$(PROJDIR)' && \
|
||||||
lektor build --output-path ../bin --buildstate-path ../build-state -f ENABLE_APPCACHE -f ENABLE_PDF_EXPORT
|
lektor build --output-path ../bin --buildstate-path ../build-state -f ENABLE_APPCACHE -f ENABLE_PDF_EXPORT
|
||||||
@echo
|
@echo
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ time: 15
|
|||||||
---
|
---
|
||||||
difficulty: easy
|
difficulty: easy
|
||||||
---
|
---
|
||||||
rating: 4
|
rating: 2
|
||||||
---
|
---
|
||||||
source: https://mynewroots.org/site/2011/04/the-raw-brownie-2/
|
source: https://mynewroots.org/site/2011/04/the-raw-brownie-2/
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ tags: cookies, sweet, xmas, glutenfree
|
|||||||
---
|
---
|
||||||
time: 30
|
time: 30
|
||||||
---
|
---
|
||||||
rating: 4
|
rating: 2
|
||||||
---
|
---
|
||||||
difficulty: easy
|
difficulty: easy
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ choice_labels = Easy, Medium, Hard
|
|||||||
label = Rating
|
label = Rating
|
||||||
width = 1/8
|
width = 1/8
|
||||||
type = select
|
type = select
|
||||||
choices = 1, 2, 3, 4, 5
|
choices = 1, 2, 3
|
||||||
choice_labels = ★☆☆☆☆, ★★☆☆☆, ★★★☆☆, ★★★★☆, ★★★★★
|
choice_labels = ★☆☆, ★★☆, ★★★
|
||||||
|
|
||||||
[fields.yield]
|
[fields.yield]
|
||||||
label = Yield / Menge
|
label = Yield / Menge
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ def replaceFractions(txt):
|
|||||||
return res.lstrip(' ')
|
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
|
num = int(num) if num else 0
|
||||||
return fill * num + empty * (total - num)
|
return fill * num + empty * (total - num)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user