Skip to content

Commit 5c69774

Browse files
committed
ozone sponsor
1 parent 3e90acd commit 5c69774

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

config/_default/params.toml

+7-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,16 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
6060
name = "Oro"
6161
emoji = "🟡"
6262
textSize = "base"
63-
imageWidth = "324px"
64-
imageHeight = "216px"
6563
[[sponsors.ranks.members]]
6664
url = "https://es.nttdata.com"
6765
image = "/img/sponsors/ntt.png"
66+
imageWidth = "324px"
67+
imageHeight = "216px"
68+
[[sponsors.ranks.members]]
69+
url = "https://ozonegaming.com"
70+
image = "/img/sponsors/ozone.png"
71+
imageWidth = "216px"
72+
imageHeight = "216px"
6873

6974
[article]
7075
showDate = true

layouts/partials/sponsors/item.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<a href="{{ .context.url }}">
2-
<img width="{{ .width }}" height="{{ .height }}" class="nozoom" src="{{ .context.image }}" />
1+
<a href="{{ .url }}">
2+
<img width="{{ .imageWidth }}" height="{{ .imageHeight }}" class="nozoom" src="{{ .image }}" />
33
</a>

layouts/partials/sponsors/list.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
{{ $imageWidth := .imageWidth }}
2-
{{ $imageHeight := .imageHeight }}
3-
41
<h3 class="mt-8 text-{{ .textSize }} font-extrabold mb-10">
52
<span>{{ .emoji }}</span>
63
<span>{{ i18n "sponsors.rank" }}</span>
@@ -9,6 +6,6 @@ <h3 class="mt-8 text-{{ .textSize }} font-extrabold mb-10">
96

107
<div class="flex flex-wrap justify-center items-center gap-10">
118
{{ range .members }}
12-
{{ partial "sponsors/item.html" (dict "context" . "width" $imageWidth "height" $imageHeight) }}
9+
{{ partial "sponsors/item.html" . }}
1310
{{ end }}
1411
</div>

static/img/sponsors/ozone.png

17.9 KB
Loading

0 commit comments

Comments
 (0)