You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ozgurkon-site/test-hugo/themes/devfest-theme-hugo/layouts/_default/home.html

110 lines
2.6 KiB

{{ define "main" }}
{{ .Content }}
{{ if .Params.info }}
<section class="info">
<h2>Le DevFest Toulouse, c'est quoi ?</h2>
<div>
<p>{{ .Site.Data.home.info }}</p>
{{ if .Site.Data.home.what }}
<div class="numbers">
{{range .Site.Data.home.what }}
<div class="number">
<strong>{{ .value }}</strong>
<div>{{ .label }}</div>
</div>
{{ end }}
</div>
{{ end }}
</div>
</section>
{{ end }}
{{ if .Params.speakers }}
<section class="speakers">
<h2>Rockstar speakers</h2>
{{ if .Site.Data.home.speakers.top }}
<ul class="shuffle">
{{ range where .Site.RegularPages "Params.id" "in" .Site.Data.home.speakers.top }}
<li>
{{ partial "speaker.html" . }}
</li>
{{ end }}
</ul>
{{ end }}
{{ if .Site.Data.home.speakers.otherspeakers }}
<a class="btn primary" href="/speakers/">Voir tous les speakers</a>
{{ end }}
</section>
{{ end }}
{{ if .Params.subscribe }}
<section class="subscribe primary">
<h2>Soyez notifié des dernières informations !</h2>
<button class="inverse" id="btnSubscribe">Souscrire</button>
</section>
{{ end }}
{{ if .Params.tickets }}
<section class="tickets">
<h2>Billets</h2>
<a class="btn primary" target="_blank" href="https://www.billetweb.fr/devfest-toulouse-2019">Billeterie</a>
<ul>
{{range .Site.Data.tickets }}
<li>{{ partial "ticket.html" . }}</li>
{{ end }}
</ul>
<p>
<small>
* Votre billet vous donne accès à toutes les conférences, aux pauses café, et au repas. L'hébergement n'est PAS
inclus dans ce prix.
</small>
</p>
</section>
{{ end }}
{{ if .Params.location }}
<section class="location">
<iframe
src='https://www.google.com/maps/embed/v1/view?key={{ .Site.Params.googleMapsAPIKey }}&zoom={{ .Site.Data.location.pointer.zoom }}&center={{ .Site.Data.location.mapCenter }}'
frameborder="0"
scrolling="no"
width="100%"
height="400">
</iframe>
<div class="description">
<h2>Le lieu</h2>
<h3>{{ .Site.Data.location.name }}</h3>
<p>{{ .Site.Data.location.description }}</p>
<div class="direction">
{{ .Site.Data.location.address }}
{{ if .Site.Data.location.pointer }}
<a class="btn btn-icon-only icon-direction"
target="_blank"
aria-label="Itinéraire"
href="https://www.google.com/maps/dir/?api=1&destination={{ .Site.Data.location.pointer.latitude }},{{ .Site.Data.location.pointer.longitude }}"></a>
{{ end }}
</div>
</div>
</section>
{{ end }}
{{ if .Params.partners }}
<section class="partners">
<h2>Partenaires</h2>
{{ range .Site.Data.partners }}
{{partial "partnersgroup.html" . }}
{{ end }}
</section>
{{ end }}
{{ end }}