chore: miniscule code changes
This commit is contained in:
@@ -103,9 +103,7 @@ class IngredientsDescriptor:
|
||||
return self
|
||||
if not self.raw:
|
||||
return []
|
||||
data = self.parse(self.raw, record)
|
||||
del self.raw
|
||||
return data
|
||||
return self.parse(self.raw, record)
|
||||
|
||||
|
||||
class IngredientsListType(Type):
|
||||
|
||||
@@ -41,7 +41,10 @@
|
||||
</div>
|
||||
<footer>{#--#}
|
||||
<table width="100%">{#--#}
|
||||
<td>Build with <a href="https://www.getlektor.com/">Lektor</a>, template by <a href="https://github.com/relikd/lektor-recipes">relikd</a>.</td>{#--#}
|
||||
<td>
|
||||
Build with <a href="https://www.getlektor.com/">Lektor</a>,
|
||||
template by <a href="https://github.com/relikd/lektor-recipes">relikd</a>.
|
||||
</td>
|
||||
<td class="buttons xlarge">
|
||||
{#-
|
||||
we could use `site.get('/recipes.tex@LatexPDF', alt=this.alt) | url`
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
{%- if ing.unit %}{{ ing.unit }} {% endif -%}
|
||||
<span class="light-red">{{ ing.name }}</span>
|
||||
{%- if ing.note -%}
|
||||
<span class="small italic">{{ ', ' ~ ing.note | replaceAtRefURLs(label=bag('i18n+' + this.alt, 'ingredients.recipeLink')) }}</span>
|
||||
<span class="small italic">, {{ ing.note | replaceAtRefURLs(label=bag('i18n+' + this.alt, 'ingredients.recipeLink')) }}</span>
|
||||
{%- endif -%}
|
||||
</li>
|
||||
{%- endif %}
|
||||
|
||||
Reference in New Issue
Block a user