summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2026-02-04 04:27:49 +0700
committerShulhan <m.shulhan@gmail.com>2026-02-04 04:28:47 +0700
commitde6bdcea1aa288b5fb3f67d2bc50520455304b75 (patch)
treeebc158e0ed666ba7406df7f14877ea42c091b969
parente7f3aca07d1bd4060a02bb8c5ff91b77f798ba75 (diff)
downloadgolang-id-web-de6bdcea1aa288b5fb3f67d2bc50520455304b75.tar.xz
all: pembaruan template dan style
Perubahan, * Update module ciigo, untuk pembaruan style yang baru * Ganti logo dengan warna putih * Gunakan warna yang mirip dengan situs resmi untuk tema terang dan gelap * Hapus link pada header tingkat 2
-rw-r--r--_content/assets/go-logo-white.svg1
-rw-r--r--_content/html.tmpl41
-rw-r--r--_content/index.adoc6
-rw-r--r--_content/index.css38
-rw-r--r--go.mod2
-rw-r--r--go.sum12
6 files changed, 63 insertions, 37 deletions
diff --git a/_content/assets/go-logo-white.svg b/_content/assets/go-logo-white.svg
new file mode 100644
index 0000000..727a62e
--- /dev/null
+++ b/_content/assets/go-logo-white.svg
@@ -0,0 +1 @@
+<svg height="78" viewBox="0 0 207 78" width="207" xmlns="http://www.w3.org/2000/svg"><g fill="#ffffff" fill-rule="evenodd"><path d="m16.2 24.1c-.4 0-.5-.2-.3-.5l2.1-2.7c.2-.3.7-.5 1.1-.5h35.7c.4 0 .5.3.3.6l-1.7 2.6c-.2.3-.7.6-1 .6z"/><path d="m1.1 33.3c-.4 0-.5-.2-.3-.5l2.1-2.7c.2-.3.7-.5 1.1-.5h45.6c.4 0 .6.3.5.6l-.8 2.4c-.1.4-.5.6-.9.6z"/><path d="m25.3 42.5c-.4 0-.5-.3-.3-.6l1.4-2.5c.2-.3.6-.6 1-.6h20c.4 0 .6.3.6.7l-.2 2.4c0 .4-.4.7-.7.7z"/><g transform="translate(55)"><path d="m74.1 22.3c-6.3 1.6-10.6 2.8-16.8 4.4-1.5.4-1.6.5-2.9-1-1.5-1.7-2.6-2.8-4.7-3.8-6.3-3.1-12.4-2.2-18.1 1.5-6.8 4.4-10.3 10.9-10.2 19 .1 8 5.6 14.6 13.5 15.7 6.8.9 12.5-1.5 17-6.6.9-1.1 1.7-2.3 2.7-3.7-3.6 0-8.1 0-19.3 0-2.1 0-2.6-1.3-1.9-3 1.3-3.1 3.7-8.3 5.1-10.9.3-.6 1-1.6 2.5-1.6h36.4c-.2 2.7-.2 5.4-.6 8.1-1.1 7.2-3.8 13.8-8.2 19.6-7.2 9.5-16.6 15.4-28.5 17-9.8 1.3-18.9-.6-26.9-6.6-7.4-5.6-11.6-13-12.7-22.2-1.3-10.9 1.9-20.7 8.5-29.3 7.1-9.3 16.5-15.2 28-17.3 9.4-1.7 18.4-.6 26.5 4.9 5.3 3.5 9.1 8.3 11.6 14.1.6.9.2 1.4-1 1.7z"/><path d="m107.2 77.6c-9.1-.2-17.4-2.8-24.4-8.8-5.9-5.1-9.6-11.6-10.8-19.3-1.8-11.3 1.3-21.3 8.1-30.2 7.3-9.6 16.1-14.6 28-16.7 10.2-1.8 19.8-.8 28.5 5.1 7.9 5.4 12.8 12.7 14.1 22.3 1.7 13.5-2.2 24.5-11.5 33.9-6.6 6.7-14.7 10.9-24 12.8-2.7.5-5.4.6-8 .9zm23.8-40.4c-.1-1.3-.1-2.3-.3-3.3-1.8-9.9-10.9-15.5-20.4-13.3-9.3 2.1-15.3 8-17.5 17.4-1.8 7.8 2 15.7 9.2 18.9 5.5 2.4 11 2.1 16.3-.6 7.9-4.1 12.2-10.5 12.7-19.1z" fill-rule="nonzero"/></g></g></svg> \ No newline at end of file
diff --git a/_content/html.tmpl b/_content/html.tmpl
index 23429e2..ae204ff 100644
--- a/_content/html.tmpl
+++ b/_content/html.tmpl
@@ -1,22 +1,23 @@
<!DOCTYPE html lang="id">
<html>
-
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="theme-color" content="#375EAB" />
- <meta name="description" content="Situs komunitas Go Indonesia" />
- <meta keywords="komunitas Go indonesia" />
+ <meta name="description" content="Situs komunitas Bahasa Go Indonesia" />
+ <meta keywords="Bahasa Go Indonesia" />
<meta name="robots" content="index,follow" />
<title>{{.Title}}</title>
- <link rel="stylesheet" href="/assets/style.css" />
<link rel="stylesheet" href="//storage.googleapis.com/umum.kilabit.info/assets/fonts/go/stylesheet.css" />
-
+{{- if ne .EmbeddedCSS ""}}
+ <style>
+{{.EmbeddedCSS}}
+ </style>
+{{- end }}
+ <link rel="stylesheet" href="/index.css" />
{{- range .Styles}}
<link rel="stylesheet" href="{{.}}" />
{{- end}}
-
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0RXEYS3MQ0"></script>
<script>
@@ -32,22 +33,16 @@
<body>
<div class="topbar">
- <div class="container">
- <div class="top-heading">
- <a href="/">
- <img class="header-logo" src="/assets/go-logo-blue.svg" />
- </a>
- </div>
- <div class="menu">
- <a href="https://tour.golang-id.org" target="_blank">Tur</a>
- <a href="/doc">Dokumentasi</a>
- <a href="/blog">Blog</a>
- <a href="https://play.golang.org" target="_blank">Coba</a>
- <form class="item" action="/_internal/search">
- <input type="text" name="q" placeholder="Cari" />
- </form>
- </div>
- </div>
+ <a class="item title" href="/">
+ <img class="item header-logo" src="/assets/go-logo-white.svg" />
+ </a>
+ <a class="item" href="https://tour.golang-id.org" target="_blank">Tur</a>
+ <a class="item" href="/doc/">Dokumentasi</a>
+ <a class="item" href="/blog/">Blog</a>
+ <a class="item" href="https://go.dev/play/" target="_blank">Coba</a>
+ <form class="item" action="/_internal/search">
+ <input type="text" name="q" placeholder="Cari" />
+ </form>
</div>
<div class="page">
diff --git a/_content/index.adoc b/_content/index.adoc
index f6d8ce0..1cf8ec2 100644
--- a/_content/index.adoc
+++ b/_content/index.adoc
@@ -24,14 +24,14 @@ dan terjemahannya dapat diakses lewat tautan
https://golang-id.org/blog/using-go-modules.
-== link:/doc/[Dokumentasi^]
+== Dokumentasi
Untuk mengetahui cara memasang bahasa Go di sistem operasi anda dan belajar
lebih lanjut, silakan buka halaman
link:/doc/[dokumentasi^].
-== link:/blog/[Blog^]
+== Blog
Halaman ini berisi daftar terjemahan blog dari proyek Go resmi dan blog dari
komunitas Go Indonesia.
@@ -100,7 +100,7 @@ Indonesia.
Grup untuk berdiskusi dan tanya jawab dengan cepat mengenai apa pun.
-== link:/berkontribusi.html[Berkontribusi^]
+== Berkontribusi
Siapa pun dapat berkontribusi dalam situs ini.
Untuk melihat daftar kontribusi yang dapat dilakukan, silakan kunjungi
diff --git a/_content/index.css b/_content/index.css
new file mode 100644
index 0000000..a31fc1f
--- /dev/null
+++ b/_content/index.css
@@ -0,0 +1,38 @@
+:root {
+ --light-anchor: #007d9c !important;
+ --light-bg-topbar: #007d9c !important;
+ --dark-anchor: #50b7e0 !important;
+ --dark-bg-mono: #2d2d2d !important;
+ --dark-bg-topbar: #007d9c !important;
+ --dark-bg: #202224 !important;
+ --dark-fg: #f0f1f2 !important;
+}
+a {
+ text-decoration: none;
+}
+a:hover {
+ text-decoration-line: underline;
+}
+.topbar .item {
+ padding: 0 1.5rem;
+}
+.topbar > a {
+ color: var(--dark-fg) !important;
+ font-weight: bold;
+ text-decoration-line: underline !important;
+}
+.header-logo {
+ background-color: transparent;
+}
+.header-logo {
+ width: 80px;
+ margin: 0;
+}
+.footer {
+ color: var(--dark-fg);
+}
+.footer a {
+ color: var(--dark-fg) !important;
+ font-weight: bold;
+ text-decoration: underline;
+}
diff --git a/go.mod b/go.mod
index f8e0fb9..c268e0c 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/golang-id/web
go 1.24.0
require (
- git.sr.ht/~shulhan/ciigo v0.15.4-0.20260202094016-5c30c1f5d043
+ git.sr.ht/~shulhan/ciigo v0.15.4-0.20260203211706-b447e8991270
git.sr.ht/~shulhan/pakakeh.go v0.60.3-0.20260202092811-1e3bb9be8444
)
diff --git a/go.sum b/go.sum
index bd894d4..f725927 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,7 @@
git.sr.ht/~shulhan/asciidoctor-go v0.7.3-0.20260124143117-f289b7f13a1d h1:rdDzlVPJjgR6Jz84VNEAbdvNypMPtH3O6uEbVYb/7Rk=
git.sr.ht/~shulhan/asciidoctor-go v0.7.3-0.20260124143117-f289b7f13a1d/go.mod h1:cY9Ae1vu3OniC7z29twH1/PMJa7ZSSUqbK9QQM4/bhc=
-git.sr.ht/~shulhan/ciigo v0.15.4-0.20260202094016-5c30c1f5d043 h1:K0bx5Jfn06yzqL+X89obw4n9xG0bjbKdScfu7OEuAtE=
-git.sr.ht/~shulhan/ciigo v0.15.4-0.20260202094016-5c30c1f5d043/go.mod h1:uuFWUqsbwzeoTbluiwNcpoEah+rhHRf1rrqiMO+V86U=
+git.sr.ht/~shulhan/ciigo v0.15.4-0.20260203211706-b447e8991270 h1:1Xgf9qJfS09e0pdgwLiqpbAZhwp/DSZmGDU30nI1whk=
+git.sr.ht/~shulhan/ciigo v0.15.4-0.20260203211706-b447e8991270/go.mod h1:uuFWUqsbwzeoTbluiwNcpoEah+rhHRf1rrqiMO+V86U=
git.sr.ht/~shulhan/pakakeh.go v0.60.3-0.20260202092811-1e3bb9be8444 h1:mqX+Z2dyfChpFOgt6gV9R5AT3oQN3pw4gMbPQLGm1DI=
git.sr.ht/~shulhan/pakakeh.go v0.60.3-0.20260202092811-1e3bb9be8444/go.mod h1:1MkKXbLZRHTcnheeSEbRpGztkym4Yxzh90ep+jCxbDc=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
@@ -11,22 +11,14 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
-github.com/yuin/goldmark v1.7.13 h1:GPddIs617DnBLFFVJFgpo1aBfe/4xcvMc3SB5t/D0pA=
-github.com/yuin/goldmark v1.7.13/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
github.com/yuin/goldmark v1.7.16 h1:n+CJdUxaFMiDUNnWC3dMWCIQJSkxH4uz3ZwQBkAlVNE=
github.com/yuin/goldmark v1.7.16/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc=
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
-golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 h1:fQsdNF2N+/YewlRZiricy4P1iimyPKZ/xwniHj8Q2a0=
-golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93/go.mod h1:EPRbTFwzwjXj9NpYyyrvenVh9Y+GFeEvMNh7Xuz7xgU=
golang.org/x/exp v0.0.0-20260112195511-716be5621a96 h1:Z/6YuSHTLOHfNFdb8zVZomZr7cqNgTJvA8+Qz75D8gU=
golang.org/x/exp v0.0.0-20260112195511-716be5621a96/go.mod h1:nzimsREAkjBCIEFtHiYkrJyT+2uy9YZJB7H1k68CXZU=
-golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
-golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
golang.org/x/net v0.49.0 h1:eeHFmOGUTtaaPSGNmjBKpbng9MulQsJURQUAfUwY++o=
golang.org/x/net v0.49.0/go.mod h1:/ysNB2EvaqvesRkuLAyjI1ycPZlQHM3q01F02UY/MV8=
-golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
-golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=