diff options
Diffstat (limited to '_content')
| -rw-r--r-- | _content/assets/go-logo-white.svg | 1 | ||||
| -rw-r--r-- | _content/html.tmpl | 41 | ||||
| -rw-r--r-- | _content/index.adoc | 6 | ||||
| -rw-r--r-- | _content/index.css | 38 |
4 files changed, 60 insertions, 26 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; +} |
