itsblue-website/themes/quark-hugo/layouts/_default/appitem.html
2021-10-07 11:21:03 +02:00

73 lines
3.3 KiB
HTML

{{ define "hero" }}
{{ $ctx := . }}
{{ with .Params.image }}
{{ $heroContent := (print "<h1>" $ctx.Params.title "</h1>")}}
{{ partial "modular/hero.html" (dict
"image" .
"classes" $ctx.Params.heroClasses
"imageParallax" $ctx.Params.heroImageParallax
"align" $ctx.Params.heroAlign
"content" $heroContent ) }}
{{ end }}
{{ end }}
{{ define "body" }}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ site.Params.GridSize }}">
<div class="columns">
<div id="item" class="column col-12 extra-spacing">
<div class="content-item h-entry">
{{/* if not hero_image_name %}
<div class="content-title text-center">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
{% if page.header.subtitle %}
<h3 >{{ page.header.subtitle }}</h3>
{% endif %}
</div>
{% endif */}}
<div class="e-content">
{{ .Content }}
{{ if or (.Params.links.googleplay) (.Params.links.appstore) (.Params.links.opensource) }}
<h2>Downloads</h2>
{{ with .Params.links.googleplay }}
<a href="{{ . }}" target="blank"><img alt="Get it on Google Play" src="/assets/GooglePlay.png"></a><br>
{{ end }}
{{ with .Params.links.appstore }}
<a href="{{ . }}" target="blank"><img alt="Download on the App Store" src="/assets/AppStore.png"></a>
{{ end }}
{{ with .Params.links.opensource }}
<br><br>
<p>
This app is open-source!
<br>
<a href="{{ . }}" target="blank">{{ . }}</a>
</p>
{{ end }}
{{ end }}
{{ with .Params.privacyPolicy }}
<h2>Privacy Policy</h2>
{{ . | safeHTML }}
{{ end }}
</div>
</div>
<p class="prev-next text-center">
{{/* if not page.isLast %}
<a class="btn" href="{{ page.prevSibling.url }}"><i class="fa fa-angle-left"></i> {{ 'previous app'|t }}</a>
{% endif %}
{% if not page.isFirst %}
<a class="btn" href="{{ page.nextSibling.url }}">{{ 'next app'|t }} <i class="fa fa-angle-right"></i></a>
{% endif */}}
</p>
</div>
</div>
</section>
</section>
{{ end }}