Skip to content

Commit

Permalink
Merge pull request #74 from axivo/fix/global-module
Browse files Browse the repository at this point in the history
Implement global module
  • Loading branch information
fmunteanu authored May 24, 2024
2 parents 39a3265 + 1eafe16 commit 653151c
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions global/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/axivo/website/global

go 1.22.2
63 changes: 63 additions & 0 deletions global/hugo.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions global/i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copyright: 'Copyright © 2024 AXIVO'
6 changes: 6 additions & 0 deletions global/layouts/partials/custom/head-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/quicklink/2.3.0/quicklink.umd.min.js"></script>
<script>
window.addEventListener("load", () => {
quicklink.listen();
});
</script>
10 changes: 10 additions & 0 deletions global/layouts/shortcodes/hextra/hero-section.html
Original file line number Diff line number Diff line change
@@ -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") -}}

<h{{ $header }}
class="not-prose hx-text-{{ $size }} hx-font-bold hx-leading-none hx-tracking-tighter md:hx-text-3xl hx-py-2 hx-bg-clip-text hx-text-transparent hx-bg-gradient-to-r hx-from-gray-900 hx-to-gray-600 dark:hx-from-gray-100 dark:hx-to-gray-400"
{{ with $style }}style="{{ . | safeCSS }}"{{ end }}
>
{{ .Inner | markdownify }}
</h{{ $header }}>
5 changes: 5 additions & 0 deletions global/layouts/shortcodes/steps.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- $nested := eq (.Get "nested") "true" | default false -}}

<div class="steps hx-ml-4 hx-mb-12 ltr:hx-border-l rtl:hx-border-r hx-border-gray-200 ltr:hx-pl-6 rtl:hx-pr-6 dark:hx-border-neutral-800 {{ if not $nested }}[counter-reset:step]{{ end }}">
{{- .Inner -}}
</div>

0 comments on commit 653151c

Please sign in to comment.