Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « partners « layouts - github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b89e942952c1f806e9e98af9b5b60c319ef6d0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{{ define "main" }}

<section class="header">

	{{ $img := relURL (path.Join "images" "partners" .Params.category .Params.key) }}
	{{ partial "picture" (dict "img" $img "class" "card") }}

	<h1>{{ .Title }}</h1>
	{{ if .Params.website }}
	<a href="{{ .Params.website }}">{{ .Params.website }}</a>
	{{ end }}
</section>

<section class="content">
	{{ .Content }}

</section>

{{ if .Params.why }}
<section class="why">
	<h2>{{index .Site.Data.partner .Params.lang "why" }}</h2>
	<p>{{ .Params.why }}</p>
</section>
{{ end }}

{{ if .Params.socials }}
<section class="socials">
	<h2>{{index .Site.Data.partner .Params.lang "socials" }}</h2>
	<ul>
		{{ range .Page.Params.socials }}
		<li>
			<a href="{{ .link }}" class="social" rel="noopener noreferrer" target="_blank">
				{{ partial "icon.html" .icon }}
				{{ .name }}
			</a>
		</li>
		{{ end }}
	</ul>
</section>
{{ end }}

{{ if .Params.jobs }}
<section class="jobs">
	<h2>{{index .Site.Data.partner .Params.lang "jobs" }}</h2>
	<ul>
		{{ range .Page.Params.jobs }}
		<li class="job">
				<header>
					<a href="{{ .url }}" rel="noopener noreferrer" target="_blank">{{ .title }}</a>
				</header>
				<div class="city">
					{{ partial "icon.html" "map-marker" }}
					{{ .city }}
				</div>
				<a href="mailto:{{ .contact }}" class="contact">
					{{ partial "icon.html" "email" }}
					{{ .contact }}
				</a>
		</li>
		{{ end }}
	</ul>
</section>
{{ end }}


{{ end }}