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 return self
if not self.raw: if not self.raw:
return [] return []
data = self.parse(self.raw, record) return self.parse(self.raw, record)
del self.raw
return data
class IngredientsListType(Type): class IngredientsListType(Type):

View File

@@ -41,7 +41,10 @@
</div> </div>
<footer>{#--#} <footer>{#--#}
<table width="100%">{#--#} <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"> <td class="buttons xlarge">
{#- {#-
we could use `site.get('/recipes.tex@LatexPDF', alt=this.alt) | url` we could use `site.get('/recipes.tex@LatexPDF', alt=this.alt) | url`

View File

@@ -44,7 +44,7 @@
{%- if ing.unit %}{{ ing.unit }} {% endif -%} {%- if ing.unit %}{{ ing.unit }} {% endif -%}
<span class="light-red">{{ ing.name }}</span> <span class="light-red">{{ ing.name }}</span>
{%- if ing.note -%} {%- 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 -%} {%- endif -%}
</li> </li>
{%- endif %} {%- endif %}