download.html 3.9 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
{{ $data := index .Site.Data .Site.Language.Lang }}

{{ if $data.download.download.enable }}
{{ with $data.download.download }}
<section class="portfolio section" id="portfolio">
	<div class="container">
		<div class="row ">
			<div class="col-xl-12">
				{{"<!-- section title -->" | safeHTML}}
				<div class="title text-center">
					<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color">
12
							{{ with .title }} {{ index (split . " ") 1 }} {{ end }} {{ $.Site.Params.version }}</span></h2>
13
14
15
16
					<div class="border-meghna"></div>
				</div>
				{{"<!-- /section title -->" | safeHTML}}
			</div>
17
18
        </div>
        <div class="row">
19
20
21
            <div class="col-lg-12" style="padding:2em">
                <div class="text-center">
                    {{ range .otherlinks }}
22
                    {{ if .hashes }}
23
                    <button type="button" class="btn btn-info" ><a href="{{ $.Site.Params.mirror }}{{ $.Site.Params.version }}/signed-hashes.txt" target="_blank">{{ .text }}</a></button>
24
                    {{ else }}
25
                    <button type="button" class="btn btn-info" ><a href="{{ .URL }}" target="_blank">{{ .text }}</a></button>
26
27
28
29
30
                    {{ end }}
                    {{ end }}
                </div>
            </div>
        </div>
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
		<div class="row">
			<div class="col-lg-12">
				<div class="btn-group portfolio-filter btn-group-toggle justify-content-center d-flex flex-wrap"
					data-toggle="buttons">
					<label class="btn active">
						<input type="radio" name="shuffle-filter" value="all" checked="checked" />{{ i18n "all"}}
                    </label>
                    {{ range .categories }}
					<label class="btn">
						<input type="radio" name="shuffle-filter" value="{{ .entry }}" />{{ .entry | humanize }}
					</label>
					{{ end }}
				</div>
			</div>
		</div>

		<div class="row shuffle-wrapper justify-content-center">
            {{ range .download_item }}
            
            
            <div class="col-lg-4 shuffle-item" data-groups="[{{range $index, $element:= .categories }}{{if ne $index 0}},{{end}}&quot;{{. | urlize}}&quot;{{ end }}]">
52
                <div class="text-center">
53
                    <h4>{{ .name }}</h4>
54
55
                </div>
                <div class="border-meghna"></div>
56
57
58
                    <div style="margin: 2em;padding: 2em;background-color:#30363D"> 
                        {{ if .link }}
                        <a href="{{ .link }}" target="_blank">> Open</a>
59
                        {{ end}}
60
                        {{ if .base }}
61
                        {{ if .extension }}
62
63
                        <a href="{{ $.Site.Params.mirror }}{{ $.Site.Params.version }}/{{ .base }}-{{ $.Site.Params.version }}_{{ .extension }}" target="_blank">> Direct Download</a><br>
                        <a href="{{ $.Site.Params.mirror }}{{ $.Site.Params.version }}/{{ .base }}-{{ $.Site.Params.version }}_{{ .extension }}.mirrorlist" target="_blank">> Select Server</a><br>
64
                        {{ if .torrent }}
65
                        <a href="{{ $.Site.Params.mirror }}{{ $.Site.Params.version }}/{{ .base }}-{{ $.Site.Params.version }}_{{ .extension }}.torrent" target="_blank">> Get Torrent</a><br>
66
67
68
                        {{ end }}
                        {{ end }}
                        {{ end }}
69
                        <p>{{ .content | markdownify }}</p>
70
71
                    </div>
            </div>
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
        <!--
			<div class="col-lg-4 shuffle-item" data-groups="[{{range $index, $element:= .categories }}{{if ne $index 0}},{{end}}&quot;{{. | urlize}}&quot;{{ end }}]">
				<div class="portfolio-block mb-4">
						<h4 class="mt-1">
							{{ if or (eq .link "#") (eq .link "") }}
							{{ .name }}
							{{ else }}
							<a href="{{ .link | safeURL }}">{{ .name }}</a>
							{{ end }}
						</h4>
						<p>{{ .content | markdownify }}</p>
				</div>
            </div>
        -->
			{{ end }}
		</div>
	</div>
89
</section>
90
91
{{ end }}
{{ end }}