chore: miniscule code changes
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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`
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user