From 0b839b3ec3973f9422c71451fcc96f0ba25e1e2d Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sat, 17 May 2025 13:57:48 +0300 Subject: [PATCH] add templates --- .gitignore | 1 + .gitmodules | 6 + .hugo_build.lock | 0 archetypes/default.md | 5 + content/_index.uk.md | 24 +++ content/blog/_index.uk.md | 3 + content/blog/post1.uk.md | 154 +++++++++++++++++++ content/docs/_index.uk.md | 11 ++ content/docs/donate/_index.uk.md | 4 + content/docs/guides/_index.uk.md | 8 + content/docs/guides/install/_index.uk.md | 4 + content/docs/info/_index.uk.md | 20 +++ content/docs/mods/_index.uk.md | 4 + content/docs/rules/_index.uk.md | 4 + hugo.yaml | 183 +++++++++++++++++++++++ themes/hextra | 1 + 16 files changed, 432 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 .hugo_build.lock create mode 100644 archetypes/default.md create mode 100644 content/_index.uk.md create mode 100644 content/blog/_index.uk.md create mode 100644 content/blog/post1.uk.md create mode 100644 content/docs/_index.uk.md create mode 100644 content/docs/donate/_index.uk.md create mode 100644 content/docs/guides/_index.uk.md create mode 100644 content/docs/guides/install/_index.uk.md create mode 100644 content/docs/info/_index.uk.md create mode 100644 content/docs/mods/_index.uk.md create mode 100644 content/docs/rules/_index.uk.md create mode 100644 hugo.yaml create mode 160000 themes/hextra diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a48cf0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ae2eb93 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "themes/blowfish"] + path = themes/blowfish + url = https://github.com/nunocoracao/blowfish.git +[submodule "themes/hextra"] + path = themes/hextra + url = https://github.com/imfing/hextra.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/_index.uk.md b/content/_index.uk.md new file mode 100644 index 0000000..6ef4983 --- /dev/null +++ b/content/_index.uk.md @@ -0,0 +1,24 @@ + +
+{{< hextra/hero-headline >}} + Вітаємо на Бебрашилді - 
не звичайному сервері +{{< /hextra/hero-headline >}} +
+ +
+{{< hextra/hero-subtitle >}} + 🦄 Ми – це унікальна геймерська спільнота, 
де ми не просто граємо, а отримуємо реальні емоції. +{{< /hextra/hero-subtitle >}} +
+ +
+{{< hextra/hero-subtitle >}} + 👌 Тут кожен знайде своє місце, будь то Minecraft, FPS-шутери, 
кооперативні ігри або просто дружнє спілкування. +{{< /hextra/hero-subtitle >}} +
+ + + +
+{{< hextra/hero-button text="Розпочати грати 💥" link="docs/info" >}} +
diff --git a/content/blog/_index.uk.md b/content/blog/_index.uk.md new file mode 100644 index 0000000..4b31a98 --- /dev/null +++ b/content/blog/_index.uk.md @@ -0,0 +1,3 @@ +--- +title: Новини +--- diff --git a/content/blog/post1.uk.md b/content/blog/post1.uk.md new file mode 100644 index 0000000..332438e --- /dev/null +++ b/content/blog/post1.uk.md @@ -0,0 +1,154 @@ +--- +title: Markdown Syntax Guide +date: 2020-01-01 +authors: + - name: cuqmbr + link: https://cuqmbr.xyz + image: https://cuqmbr.xyz/favicon.png +tags: + - Markdown + - Example + - Guide +excludeSearch: true +--- + +This article offers a sample of basic Markdown syntax that can be used in Hugo content files. + + +## Basic Syntax + +### Headings + +``` +# Heading 1 +## Heading 2 +### Heading 3 +#### Heading 4 +##### Heading 5 +###### Heading 6 +``` + +## Heading 2 +### Heading 3 +#### Heading 4 +##### Heading 5 +###### Heading 6 + +### Emphasis + +```text +*This text will be italic* +_This will also be italic_ + +**This text will be bold** +__This will also be bold__ + +_You **can** combine them_ +``` + +*This text will be italic* + +_This will also be italic_ + +**This text will be bold** + +__This will also be bold__ + +_You **can** combine them_ + +### Lists + +#### Unordered + +``` +* Item 1 +* Item 2 + * Item 2a + * Item 2b +``` + +* Item 1 +* Item 2 + * Item 2a + * Item 2b + +#### Ordered + +``` +1. Item 1 +2. Item 2 +3. Item 3 + 1. Item 3a + 2. Item 3b +``` + +### Images + +```markdown +![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png) +``` + +![GitHub Logo](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png) + +### Links + +```markdown +[Hugo](https://gohugo.io) +``` + +[Hugo](https://gohugo.io) + +### Blockquotes + +```markdown +As Newton said: + +> If I have seen further it is by standing on the shoulders of Giants. +``` + +> If I have seen further it is by standing on the shoulders of Giants. + +### Inline Code + +```markdown +Inline `code` has `back-ticks around` it. +``` + +Inline `code` has `back-ticks around` it. + +### Code Blocks + +#### Syntax Highlighting + +````markdown +```go +func main() { + fmt.Println("Hello World") +} +``` +```` + +```go +func main() { + fmt.Println("Hello World") +} +``` + +### Tables + +```markdown +| Syntax | Description | +| --------- | ----------- | +| Header | Title | +| Paragraph | Text | +``` + +| Syntax | Description | +| --------- | ----------- | +| Header | Title | +| Paragraph | Text | + +## References + +- [Markdown Syntax](https://www.markdownguide.org/basic-syntax/) +- [Hugo Markdown](https://gohugo.io/content-management/formats/#markdown) diff --git a/content/docs/_index.uk.md b/content/docs/_index.uk.md new file mode 100644 index 0000000..abd772e --- /dev/null +++ b/content/docs/_index.uk.md @@ -0,0 +1,11 @@ +--- +title: Головна +--- + +{{< cards >}} + {{< card link="info" title="💻 Інформація" icon="document-duplicate" >}} + {{< card link="rules" title="📖 Правила" icon="document-duplicate" >}} + {{< card link="mods" title="💼 Моди" icon="document-duplicate" >}} + {{< card link="guides" title="📑 Гайди" icon="document-duplicate" >}} + {{< card link="donate" title="💵 Підтримати" icon="document-duplicate" >}} +{{< /cards >}} diff --git a/content/docs/donate/_index.uk.md b/content/docs/donate/_index.uk.md new file mode 100644 index 0000000..dab58fc --- /dev/null +++ b/content/docs/donate/_index.uk.md @@ -0,0 +1,4 @@ +--- +title: 💵 Підтримати +weight: 50 +--- diff --git a/content/docs/guides/_index.uk.md b/content/docs/guides/_index.uk.md new file mode 100644 index 0000000..b06b0e4 --- /dev/null +++ b/content/docs/guides/_index.uk.md @@ -0,0 +1,8 @@ +--- +title: 📑 Гайди +weight: 40 +--- + +{{< cards >}} + {{< card link="install" title="🎮 Встановлення гри та модів" icon="document-duplicate" >}} +{{< /cards >}} diff --git a/content/docs/guides/install/_index.uk.md b/content/docs/guides/install/_index.uk.md new file mode 100644 index 0000000..2c4d13a --- /dev/null +++ b/content/docs/guides/install/_index.uk.md @@ -0,0 +1,4 @@ +--- +title: 🎮 Встановлення гри та модів +weight: 10 +--- diff --git a/content/docs/info/_index.uk.md b/content/docs/info/_index.uk.md new file mode 100644 index 0000000..fba6fa6 --- /dev/null +++ b/content/docs/info/_index.uk.md @@ -0,0 +1,20 @@ +--- +title: 💻 Інформація +weight: 10 +--- + +### Bebrashield – це не звичайний сервер + +Ми – це унікальна геймерська спільнота, де ми не просто граємо, а отримуємо реальні емоції. Тут кожен знайде своє місце, будь то Minecraft, FPS-шутери, кооперативні ігри або просто дружнє спілкування. + +### Мінімум цензури – максимум емоцій + +Ми поважаємо різні погляди, не нав'язуємо правила "стерильної" мови і дозволяємо чорний гумор. + +### Меми, сарказм і чорний гумор – частина атмосфери + +Якщо тобі подобається вільне спілкування, без страху бути "забаненим" за неправильне слово – ти у правильному місці. + +### Ми не просто "бездушний" сервер! + +Ми не просто запустили черговий сервер Minecraft — ми створили цілу екосистему, де кожен сезон приносить нові механіки, випробування та можливості. diff --git a/content/docs/mods/_index.uk.md b/content/docs/mods/_index.uk.md new file mode 100644 index 0000000..773d2db --- /dev/null +++ b/content/docs/mods/_index.uk.md @@ -0,0 +1,4 @@ +--- +title: 💼 Моди +weight: 30 +--- diff --git a/content/docs/rules/_index.uk.md b/content/docs/rules/_index.uk.md new file mode 100644 index 0000000..427a02c --- /dev/null +++ b/content/docs/rules/_index.uk.md @@ -0,0 +1,4 @@ +--- +title: 📖 Правила +weight: 20 +--- diff --git a/hugo.yaml b/hugo.yaml new file mode 100644 index 0000000..a9185a6 --- /dev/null +++ b/hugo.yaml @@ -0,0 +1,183 @@ +baseURL: https://bebrashield.net/ +title: Bebrashield + +theme: hextra + +enableRobotsTXT: true +# enableGitInfo: true +hasCJKLanguage: true + +# services: +# googleAnalytics: +# ID: G-MEASUREMENT_ID + +outputs: + home: [HTML] + page: [HTML] + section: [HTML, RSS] + +defaultContentLanguage: uk +defaultContentLanguageInSubdir: true +languages: + uk: + languageName: 🇺🇦 Українська + languageCode: uk + weight: 10 + title: Бебрашилд + menu: + main: + - identifier: docs + name: Головна + pageRef: /docs/info + weight: 10 + - identifier: blog + name: Новини + pageRef: /blog + weight: 20 + - name: Пошук + weight: 50 + params: + type: search + - name: Discord + weight: 60 + url: "https://discord.gg/xsyy7d8RfG" + params: + icon: discord + - name: Telegram + weight: 61 + url: "https://t.me/+zKf1rr9YclxkNjIy" + params: + icon: telegram + + # sidebar: + # - identifier: more + # name: More + # params: + # type: separator + # weight: 1 + # - identifier: about + # name: "About" + # pageRef: "/about" + # weight: 2 + # - identifier: hugoDocs + # name: "Hugo Docs ↗" + # url: "https://gohugo.io/documentation/" + # weight: 3 + ru: + languageName: 🇷🇺 Русский + languageCode: ru + weight: 20 + title: Бебрашилд + menu: + main: + - identifier: docs + name: Главная + pageRef: /docs/info + weight: 10 + - identifier: blog + name: Новости + pageRef: /blog + weight: 20 + - name: Поиск + weight: 50 + params: + type: search + +markup: + highlight: + noClasses: false + goldmark: + renderer: + unsafe: true + extensions: + passthrough: + delimiters: + block: [['\[', '\]'], ['$$', '$$']] + inline: [['\(', '\)']] + enable: true + +enableInlineShortcodes: true + +params: + # description: Modern, responsive, batteries-included Hugo theme for creating beautiful static websites. + + navbar: + displayTitle: true + displayLogo: true + logo: + path: images/logo.svg + dark: images/logo-dark.svg + # width: 40 + # height: 20 + # link: / + width: wide + + page: + # full (100%), wide (90rem), normal (1280px) + width: wide + + theme: + # light | dark | system + default: system + displayToggle: true + + footer: + enable: true + displayCopyright: false + displayPoweredBy: false + width: wide + + # Display the last modification date + displayUpdatedDate: true + dateFormat: "02-01-2006" + + # Search + # flexsearch is enabled by default + search: + enable: true + type: flexsearch + + flexsearch: + # index page by: content | summary | heading | title + index: content + # full | forward | reverse | strict + # https://github.com/nextapps-de/flexsearch/#tokenizer-prefix-search + tokenize: forward + + # editURL: + # enable: false + # base: "https://github.com/imfing/hextra/edit/main/exampleSite/content" + + blog: + list: + displayTags: false + # date | lastmod | publishDate | title | weight + sortBy: date + sortOrder: desc # or "asc" + + article: + displayPagination: true + + highlight: + copy: + enable: true + # hover | always + display: hover + + # comments: + # enable: false + # type: giscus + # + # # https://giscus.app/ + # giscus: + # repo: imfing/hextra + # repoId: R_kgDOJ9fJag + # category: General + # categoryId: DIC_kwDOJ9fJas4CY7gW + # # mapping: pathname + # # strict: 0 + # # reactionsEnabled: 1 + # # emitMetadata: 0 + # # inputPosition: top + # # lang: en + # # theme: noborder_dark diff --git a/themes/hextra b/themes/hextra new file mode 160000 index 0000000..f194bc6 --- /dev/null +++ b/themes/hextra @@ -0,0 +1 @@ +Subproject commit f194bc64e4818acc5d3458b26f2f656d4259391a