Skip to content

Commit 608c236

Browse files
committed
wip
1 parent e0c6a42 commit 608c236

File tree

17 files changed

+455
-211
lines changed

17 files changed

+455
-211
lines changed

.tarignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ local*
2020
dist
2121
src
2222
build
23+
images
2324
renovate*
2425
resources
2526
CONTRIBUTING.md

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/cybertec-postgresql/hugo-geekdoc
2+
3+
go 1.22.5

layouts/_default/list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{{ define "main" }}
22
{{ partial "page-header" . }}
33

4+
<section class="gdoc-markdown__title">
5+
<h1>{{ partial "utils/title" . }}</h1>
6+
</section>
47

58
<article
69
class="gdoc-markdown gdoc-markdown__align--{{ default "left" (.Page.Params.geekdocAlign | lower) }}"
710
>
8-
<h1>{{ partial "utils/title" . }}</h1>
911
{{ partial "utils/content" . }}
1012
</article>
1113
{{ end }}

layouts/_default/single.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{{ define "main" }}
22
{{ partial "page-header" . }}
33

4-
4+
<section class="gdoc-markdown__title">
5+
<h1>{{ partial "utils/title" . }}</h1>
6+
</section>
57
<article
68
class="gdoc-markdown gdoc-markdown__align--{{ default "left" (.Page.Params.geekdocAlign | lower) }}"
79
>
8-
<h1>{{ partial "utils/title" . }}</h1>
910
{{ partial "utils/content" . }}
1011
</article>
1112
{{ end }}

layouts/partials/head/favicons.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
<link rel="icon" type="image/svg+xml" href="{{ "favicon/favicon.svg" | relURL }}" />
2-
<link
3-
rel="icon"
4-
type="image/png"
5-
sizes="32x32"
6-
href="{{ "favicon/favicon-32x32.png" | relURL }}"
7-
/>
8-
<link
9-
rel="icon"
10-
type="image/png"
11-
sizes="16x16"
12-
href="{{ "favicon/favicon-16x16.png" | relURL }}"
13-
/>
1+
<link rel="apple-touch-icon" sizes="180x180" href="{{ "favicon/apple-touch-icon.png" | relURL }}">
2+
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon/favicon-32x32.png" | relURL }}">
3+
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon/favicon-16x16.png" | relURL }}">
4+
<link rel="manifest" href="{{ "favicon/site.webmanifest" | relURL }}">
5+
<link rel="mask-icon" color="#5bbad5" href="{{ "favicon/safari-pinned-tab.svg" | relURL }}">
6+
<link rel="shortcut icon" href="{{ "favicon/favicon.ico" | relURL }}">
7+
<meta name="msapplication-TileColor" content="#da532c">
8+
<meta name="msapplication-config" content="/favicon/browserconfig.xml">
9+
<meta name="theme-color" content="#ffffff">

layouts/partials/head/others.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,6 @@
33
{{- end }}
44
<script src="{{ index (index .Site.Data.assets "main.js") "src" | relURL }}"></script>
55

6-
<link
7-
rel="preload"
8-
as="font"
9-
href="{{ "fonts/Metropolis.woff2" | relURL }}"
10-
type="font/woff2"
11-
crossorigin="anonymous"
12-
/>
13-
<link
14-
rel="preload"
15-
as="font"
16-
href="{{ "fonts/LiberationSans.woff2" | relURL }}"
17-
type="font/woff2"
18-
crossorigin="anonymous"
19-
/>
20-
216
<link
227
rel="preload"
238
href="{{ index (index .Site.Data.assets "main.scss") "src" | relURL }}"

layouts/partials/menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
<section class="gdoc-nav--main">
6-
<h2>{{ i18n "nav_navigation" }}</h2>
6+
<h4>{{ i18n "nav_navigation" }}</h4>
77
{{ if .Site.Params.geekdocMenuBundle }}
88
{{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.main.main) }}
99
{{ else }}
@@ -37,7 +37,7 @@ <h2>{{ i18n "nav_tags" }}</h2>
3737

3838
<section class="gdoc-nav--more">
3939
{{ if .Site.Data.menu.more.more }}
40-
<h2>{{ i18n "nav_more" }}</h2>
40+
<h4>{{ i18n "nav_more" }}</h4>
4141
{{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.more.more) }}
4242
{{ end }}
4343
</section>

layouts/partials/site-footer.html

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,18 @@
11
<footer class="gdoc-footer">
2-
<nav class="container flex">
3-
<div>
4-
<section class="flex flex-wrap align-center">
5-
<span class="gdoc-footer__item gdoc-footer__item--row">
6-
{{ i18n "footer_build_with" | safeHTML }}
7-
</span>
8-
{{ with .Site.Params.geekdocLegalNotice }}
9-
<span class="gdoc-footer__item gdoc-footer__item--row">
10-
<a href="{{ . | relURL }}" class="gdoc-footer__link">
11-
{{ i18n "footer_legal_notice" }}
12-
</a>
13-
</span>
14-
{{ end }}
15-
{{ with .Site.Params.geekdocPrivacyPolicy }}
16-
<span class="gdoc-footer__item gdoc-footer__item--row">
17-
<a href="{{ . | relURL }}" class="gdoc-footer__link">
18-
{{ i18n "footer_privacy_policy" }}
19-
</a>
20-
</span>
21-
{{ end }}
22-
</section>
23-
{{ with .Site.Params.geekdocContentLicense }}
24-
<section class="flex flex-wrap align-center">
25-
<span class="gdoc-footer__item">
26-
{{ i18n "footer_content_license_prefix" }}
27-
<a href="{{ .link }}" class="gdoc-footer__link no-wrap">{{ .name }}</a>
28-
</span>
29-
</section>
30-
{{ end }}
31-
</div>
32-
{{ if (default true .Site.Params.geekdocBackToTop) }}
33-
<div class="flex flex-25 justify-end">
34-
<span class="gdoc-footer__item text-right">
35-
<a class="gdoc-footer__link fake-link" href="#" aria-label="{{ i18n "nav_top" }}">
36-
<svg class="gdoc-icon gdoc_keyboard_arrow_up">
37-
<use xlink:href="#gdoc_keyboard_arrow_up"></use>
38-
</svg>
39-
<span class="hidden-mobile">{{ i18n "nav_top" }}</span>
40-
</a>
41-
</span>
2+
<div class="gdoc-footer__wrapper">
3+
<div class="gdoc-footer__line">
4+
<div class="gdoc-footer__item">
5+
<svg class="gdoc-footer__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>
6+
<a href="tel:+43 (0) 2622 93022-0" class="gdoc-footer__link no-wrap">+43 (0) 2622 93022-0</a>
7+
</div>
8+
<div class="gdoc-footer__item">
9+
<svg class="gdoc-footer__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg>
10+
<a href="mailto:[email protected]" class="gdoc-footer__link no-wrap">[email protected]</a>
4211
</div>
43-
{{ end }}
44-
</nav>
12+
<div class="gdoc-footer__item">
13+
<svg class="gdoc-footer__item__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>
14+
<a href="https://www.cybertec-postgresql.com" class="gdoc-footer__link no-wrap" target="_blank" rel="noopener noreferrer">www.cybertec-postgresql.com</a>
15+
</div>
16+
</div>
17+
</div>
4518
</footer>

layouts/partials/site-header.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757

5858
{{ partial "language" .Root }}
5959

60+
<span class="gdoc-support__button">
61+
<a href="https://cybertec.atlassian.net/servicedesk/customer/portals" target="_blank" rel="noopener noreferrer">{{ i18n "custom_support_button" }}</a>
62+
</span>
6063

6164
<span class="gdoc-menu-header__control">
6265
<label for="menu-header-control">

src/static/brand.svg

Lines changed: 36 additions & 69 deletions
Loading

0 commit comments

Comments
 (0)