Add PDF button to footer

This commit is contained in:
relikd
2021-04-08 01:25:38 +02:00
parent 4a0526cea4
commit 55c45d3460
4 changed files with 6 additions and 3 deletions

View File

@@ -65,6 +65,8 @@ nav ul { padding: unset }
nav ul li { display: inline-block; margin: 0.1em 0.5em }
nav ul li a.active { text-decoration: overline }
footer table { margin: -10px 0 }
footer .buttons { width: 3em; }
footer .buttons a { margin-left: .5em; }
@media screen and (max-width: 485px) { body { font-size: 1.4em } }
@media print {

View File

@@ -1 +1 @@
measures: EL TL kg g L dl cl ml cm Msp Prise Tasse Tassen Dose Dosen kleine große Bund Packung Packungen Scheibe Scheiben Schuss Stängel Tropfen Tube
measures: EL TL kg g L dl cl ml cm Msp Prise Tasse Tassen Dose Dosen kleine große Bund Packung Packungen Scheibe Scheiben Spritzer Stängel Tropfen Tube

View File

@@ -43,7 +43,8 @@
<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 class="xlarge" width="1em">
<td class="buttons xlarge">
<a href="/static/pdf-{{ this.alt }}.pdf" download="recipes-{{ this.alt }}.pdf" title="{{ localize(this.alt, 'other', 'get_pdf') }}"><img class="h1em" alt="(PDF)" height="20" src="{{ '/img/icon-pdf.svg'|url }}"></a>
{%- if this.alt == 'de' -%}
<a href="{{ '.'|url(alt='en') }}" title="zur englischen Seite wechseln">🇺🇸</a>
{%- else -%}