diff --git a/global/go.mod b/global/go.mod new file mode 100644 index 0000000..86453f8 --- /dev/null +++ b/global/go.mod @@ -0,0 +1,3 @@ +module github.com/axivo/website/global + +go 1.22.2 diff --git a/global/hugo.yaml b/global/hugo.yaml new file mode 100644 index 0000000..0c7e07b --- /dev/null +++ b/global/hugo.yaml @@ -0,0 +1,63 @@ +build: + buildStats: + disableIDs: true + enable: true +defaultContentLanguage: en +enableInlineShortcodes: true +enableGitInfo: true +enableRobotsTXT: true +hasCJKLanguage: true +languages: + en: + languageName: English + weight: 1 +markup: + goldmark: + renderer: + unsafe: true + highlight: + noClasses: false +outputs: + home: [HTML] + page: [HTML] + section: [HTML, RSS] +params: + blog: + list: + displayTags: true + comments: + enable: false + giscus: + category: Discussions + categoryId: DIC_kwDOI0Z9Z84Cfhkt + emitMetadata: 0 + inputPosition: bottom + lang: en + mapping: pathname + reactionsEnabled: 1 + repo: axivo/website + repoId: R_kgDOI0Z9Zw + strict: 0 + type: giscus + dateFormat: 'January 2, 2006' + displayUpdatedDate: true + footer: + displayCopyright: true + displayPoweredBy: false + enable: true + width: normal + navbar: + displayTitle: true + displayLogo: true + # logo: + # path: /logo.svg + # dark: /logo.svg + # link: / + # width: 20 + # height: 10 + # width: wide + page: + width: normal + theme: + default: system + displayToggle: true diff --git a/global/i18n/en.yaml b/global/i18n/en.yaml new file mode 100644 index 0000000..e5fa712 --- /dev/null +++ b/global/i18n/en.yaml @@ -0,0 +1 @@ +copyright: 'Copyright © 2024 AXIVO' diff --git a/global/layouts/partials/custom/head-end.html b/global/layouts/partials/custom/head-end.html new file mode 100644 index 0000000..551ff9b --- /dev/null +++ b/global/layouts/partials/custom/head-end.html @@ -0,0 +1,6 @@ + + diff --git a/global/layouts/shortcodes/hextra/hero-section.html b/global/layouts/shortcodes/hextra/hero-section.html new file mode 100644 index 0000000..09afa48 --- /dev/null +++ b/global/layouts/shortcodes/hextra/hero-section.html @@ -0,0 +1,10 @@ +{{- $style := .Get "style" -}} +{{- $header := int (strings.TrimPrefix "h" (.Get "header" | default "h2")) -}} +{{- $size := cond (ge $header 4) "xl" (cond (eq $header 3) "2xl" "4xl") -}} + + + {{ .Inner | markdownify }} + diff --git a/global/layouts/shortcodes/steps.html b/global/layouts/shortcodes/steps.html new file mode 100644 index 0000000..ff72139 --- /dev/null +++ b/global/layouts/shortcodes/steps.html @@ -0,0 +1,5 @@ +{{- $nested := eq (.Get "nested") "true" | default false -}} + +
+ {{- .Inner -}} +