diff --git a/assets/icons/brand-youtube.svg b/assets/icons/brand-youtube.svg new file mode 100644 index 0000000..c131452 --- /dev/null +++ b/assets/icons/brand-youtube.svg @@ -0,0 +1,20 @@ + + diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index 8330816..7dcfd53 100644 --- a/assets/scss/partials/article.scss +++ b/assets/scss/partials/article.scss @@ -38,7 +38,7 @@ @for $i from 1 through length($defaultTagBackgrounds) { .article-category:nth-child(#{length($defaultTagBackgrounds)}n + #{$i}) a { - background: nth($defaultTagBackgrounds, $i); + background: #0177b8; color: nth($defaultTagColors, $i); } } diff --git a/exampleSite/content/categories/Software/_index.en.md b/exampleSite/content/categories/Software/_index.en.md new file mode 100644 index 0000000..e33833d --- /dev/null +++ b/exampleSite/content/categories/Software/_index.en.md @@ -0,0 +1,9 @@ +--- +title: "Software" +description: "About different programs and their settings" +image: "software.png" +date: 2024-06-28 +# style: +# background: "#2a9d8f" +# color: "#fff" +--- diff --git a/exampleSite/content/categories/Software/_index.ru.md b/exampleSite/content/categories/Software/_index.ru.md index 1760f2c..96c23ba 100644 --- a/exampleSite/content/categories/Software/_index.ru.md +++ b/exampleSite/content/categories/Software/_index.ru.md @@ -2,6 +2,7 @@ title: "Программы" description: "Описание разных программ и их настройка" image: "software.png" +date: 2024-06-28 # style: # background: "#2a9d8f" # color: "#fff" diff --git a/exampleSite/content/page/About Me/index.en.md b/exampleSite/content/page/About Me/index.en.md new file mode 100644 index 0000000..d076885 --- /dev/null +++ b/exampleSite/content/page/About Me/index.en.md @@ -0,0 +1,16 @@ +--- +title: "About Me" +description: +date: '2024-07-03' +aliases: + - about + - contact +license: CC BY-NC-ND +menu: + main: + weight: -90 + params: + icon: user +--- + +Text diff --git a/exampleSite/content/page/Обо мне/index.ru.md b/exampleSite/content/page/About Me/index.ru.md similarity index 94% rename from exampleSite/content/page/Обо мне/index.ru.md rename to exampleSite/content/page/About Me/index.ru.md index e01d090..d194bb3 100644 --- a/exampleSite/content/page/Обо мне/index.ru.md +++ b/exampleSite/content/page/About Me/index.ru.md @@ -4,7 +4,6 @@ description: date: '2024-07-03' aliases: - about - - about-us - contact license: CC BY-NC-ND menu: diff --git a/exampleSite/content/page/Archives/index.en.md b/exampleSite/content/page/Archives/index.en.md new file mode 100644 index 0000000..9db9e2d --- /dev/null +++ b/exampleSite/content/page/Archives/index.en.md @@ -0,0 +1,12 @@ +--- +title: "Archives" +date: 2024-06-28 +layout: "archives" +aliases: + - archives +menu: + main: + weight: -70 + params: + icon: archives +--- diff --git a/exampleSite/content/page/Архивы/index.ru.md b/exampleSite/content/page/Archives/index.ru.md similarity index 100% rename from exampleSite/content/page/Архивы/index.ru.md rename to exampleSite/content/page/Archives/index.ru.md diff --git a/exampleSite/content/page/Ссылки/discord.ico b/exampleSite/content/page/Links/discord.ico similarity index 100% rename from exampleSite/content/page/Ссылки/discord.ico rename to exampleSite/content/page/Links/discord.ico diff --git a/exampleSite/content/page/Ссылки/github.png b/exampleSite/content/page/Links/github.png similarity index 100% rename from exampleSite/content/page/Ссылки/github.png rename to exampleSite/content/page/Links/github.png diff --git a/exampleSite/content/page/Links/index.en.md b/exampleSite/content/page/Links/index.en.md new file mode 100644 index 0000000..65d418a --- /dev/null +++ b/exampleSite/content/page/Links/index.en.md @@ -0,0 +1,21 @@ +--- +title: Links +aliases: + - links +links: + - title: Discord + description: My Discord server (en/ru) + website: https://discord.gg/MwKdpYujYh + image: discord.ico + - title: GitHub + description: My GitHub profile + website: https://github.com/Buliway/ + image: github.png +menu: + main: + weight: -50 + params: + icon: link + +comments: false +--- diff --git a/exampleSite/content/page/Ссылки/index.ru.md b/exampleSite/content/page/Links/index.ru.md similarity index 79% rename from exampleSite/content/page/Ссылки/index.ru.md rename to exampleSite/content/page/Links/index.ru.md index 2257408..5ca8cca 100644 --- a/exampleSite/content/page/Ссылки/index.ru.md +++ b/exampleSite/content/page/Links/index.ru.md @@ -3,10 +3,6 @@ title: Ссылки aliases: - links links: - - title: Boosty - description: Поддержать меня на Boosty - website: https://boosty.to/buliway - image: /boosty.png - title: Discord description: Мой сервер Discord website: https://discord.gg/MwKdpYujYh diff --git a/exampleSite/content/page/Ссылки/telegram.ico b/exampleSite/content/page/Links/telegram.ico similarity index 100% rename from exampleSite/content/page/Ссылки/telegram.ico rename to exampleSite/content/page/Links/telegram.ico diff --git a/exampleSite/content/page/Search/index.en.md b/exampleSite/content/page/Search/index.en.md new file mode 100644 index 0000000..74dd76e --- /dev/null +++ b/exampleSite/content/page/Search/index.en.md @@ -0,0 +1,14 @@ +--- +title: "Search" +aliases: + - search +layout: "search" +outputs: + - html + - json +menu: + main: + weight: -60 + params: + icon: search +--- \ No newline at end of file diff --git a/exampleSite/content/page/Поиск/index.ru.md b/exampleSite/content/page/Search/index.ru.md similarity index 100% rename from exampleSite/content/page/Поиск/index.ru.md rename to exampleSite/content/page/Search/index.ru.md diff --git a/exampleSite/content/page/Support/index.en.md b/exampleSite/content/page/Support/index.en.md new file mode 100644 index 0000000..ce27c47 --- /dev/null +++ b/exampleSite/content/page/Support/index.en.md @@ -0,0 +1,17 @@ +--- +title: Support +links: + - title: Boosty + description: A Patreon alternative + website: https://boosty.to/buliway + image: /boosty.png +menu: + main: + weight: -40 + params: + icon: coin + +comments: false +--- + +This section describes all the ways to support me financially for an English-speaking audience. If you are from Russia, please switch the language to Russian for new ways to support me. diff --git a/exampleSite/content/page/Support/index.ru.md b/exampleSite/content/page/Support/index.ru.md new file mode 100644 index 0000000..fbe4625 --- /dev/null +++ b/exampleSite/content/page/Support/index.ru.md @@ -0,0 +1,18 @@ +--- +title: Поддержка +links: + - title: Boosty + description: Поддержать меня на Boosty + website: https://boosty.to/buliway + image: /boosty.png +menu: + main: + weight: -40 + params: + icon: coin + +comments: false +--- + +Тут описаны все способы поддержать меня финансово. + diff --git a/exampleSite/content/post/Markdown Syntax Guide/index.en.md b/exampleSite/content/post/Markdown Syntax Guide/index.en.md new file mode 100644 index 0000000..30fd243 --- /dev/null +++ b/exampleSite/content/post/Markdown Syntax Guide/index.en.md @@ -0,0 +1,362 @@ +--- +title: Markdown Syntax Guide +description: Sample article showcasing basic Markdown syntax in this Hugo theme. +date: 2024-07-04 +categories: [ + software, paper +] +tags: [ + web, hugo +] +links: + - title: GitHub + description: GitHub is the world's largest software development platform. + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: Support the Project + description: If you enjoy what I create, you can support the author through this link. + website: /en/support +series: ["Hugo Guide"] +math: true +# image: string # Article thumbnail +# comments: bool # Enable/Disable comments on this post +# toc: bool # Enable/Disable навигацию по заголовкам справа от поста +# keywords: []string # Keywords of the page. Useful for SEO. +# draft: true +--- + +## Introduction + +This article is a collection of all the default posts built into this Hugo theme. It covers everything about using Markdown for writing posts. I’ll only partially show how to write this directly in the `.md` file; the full version is available [in this GitHub file](https://raw.githubusercontent.com/Buliway/hugo-theme-stack/master/exampleSite/content/post/Markdown%20Syntax%20Guide/index.en.md). This article is mainly for me as an admin, so I can reference it to see how to write specific functionalities. + +At the start of a post, you need to add a section called [front matter](https://gohugo.io/content-management/front-matter/). The documentation lists all the possible parameters you can include. You can set the front matter using either `---` or `+++`. The difference is that `---` follows YAML syntax, while `+++` follows TOML syntax. In the settings, for example, you can add the field `series = ["Themes Guide"]`. This marks a series of posts on a particular topic, allowing readers to see related content. From what I understand, this appears in post recommendations at the end. However, recommendations should theoretically work even without it, based on shared categories and tags. + +On the right, you’ll see a table of contents based on headers, which you can disable by adding `toc: false` at the top of the file. This table of contents only displays level 2-4 headers; deeper levels won’t be shown. You can modify this in `hugo.yaml`. + +The post description shown on the main page is set at the top of the file in the `description` field. But you can enable a mode where a small portion from the beginning of the post serves as the description. For this, use the syntax \<\!\-\-more\-\-\> at the point up to which the post description should appear. + +Within Markdown, you can use HTML code to change the visual style. For example, I can make this text black on a pink background like this: + +```html +I can make this text black on a pink background +``` + +If you want to include a Markdown symbol as plain text, without triggering any formatting, use `\` before it. I did this with the example above, which originally looks like this: `\<\!\-\-more\-\-\>`. + +When linking to another post, I prefer using absolute paths relative to the `content` folder. For example, if I want to link to a post in `content/page/Archives`, I’d write it [like this]({{< ref "/page/Архивы" >}}), which in Markdown looks \[like this\]\(\{\{\< ref "/page/Archives" \>\}\}\). This will work even if there are multiple `.md` files in the `Archives` folder for different languages. It will redirect to the page matching the user’s selected language. + +A text divider, like the one below, is written as `---` on a new line, with empty lines above and below it. + +--- + + +## Simple Markdown + +### Headings + +The following HTML `
Test
+ + +``` + +#### Code block indented with four spaces + + + + + +Test
+ + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + +Test
+ + +{{< /highlight >}} + +#### Diff code block + +```diff +[dependencies.bevy] +git = "https://github.com/bevyengine/bevy" +rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13" +- features = ["dynamic"] ++ features = ["jpeg", "dynamic"] +``` + +### List Types + +#### Ordered List + +1. First item +2. Second item +3. Third item + +#### Unordered List + +* List item +* Another item +* And another item + +#### Nested list + +* Fruit + * Apple + * Orange + * Banana +* Dairy + * Milk + * Cheese + +### Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL + ALT + Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. + +### Hyperlinked image + +[](https://google.com) + +## Image gallery + +You can create an image gallery where you can click on them and scroll through. For example, I have attached 4 images that ChatGPT generated upon request to create a logo for a Discord channel. In this example, there are three images at the top and one at the bottom, but when scrolling, they will cycle through seamlessly. + +  + + + +## Emoji support + +Emoji can be enabled in a Hugo project in a number of ways. + +The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). + +To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. + +🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil: