chore: miniscule code changes

This commit is contained in:
relikd
2023-03-03 20:45:27 +01:00
parent de6225d146
commit df28bde97f
3 changed files with 6 additions and 5 deletions

View File

@@ -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):

View File

@@ -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`

View File

@@ -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 %}