13 |
--------------------------------------------------------------------------------
/layouts/shortcodes/icon.html:
--------------------------------------------------------------------------------
1 | {{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
2 | {{ if $icon }}
3 |
4 | {{ $icon.Content | safeHTML }}
5 |
6 | {{ else }}
7 | {{ errorf `[CONGO] Shortcode "icon" error in "%s": Resource "%s" not found. Check the path is correct or remove the shortcode.` .Page.Path (printf "icons/%s.svg" ($.Get 0)) }}
8 | {{ end }}
9 |
--------------------------------------------------------------------------------
/config/_default/config.toml:
--------------------------------------------------------------------------------
1 | # -- Site Configuration --
2 | # Refer to the theme docs for more details about each of these parameters.
3 | # https://jpanther.github.io/congo/docs/getting-started/
4 |
5 | # baseURL = "https://your_domain.com/"
6 | defaultContentLanguage = "en"
7 |
8 | enableRobotsTXT = true
9 | summaryLength = 0
10 |
11 | [pagination]
12 | pagerSize = 10
13 |
14 | [outputs]
15 | home = ["HTML", "RSS", "JSON"]
16 |
--------------------------------------------------------------------------------
/layouts/partials/recent-articles.html:
--------------------------------------------------------------------------------
1 | {{ if .Site.Params.homepage.showRecent | default false }}
2 |
{{ i18n "shortcode.recent_articles" | emojify }}
3 | {{ range first .Site.Params.homepage.recentLimit (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) .Site.Params.homepage.recentLimit).Pages }}
4 | {{ partial "article-link.html" . }}
5 | {{ end }}
6 | {{ end }}
7 |
--------------------------------------------------------------------------------
/assets/icons/tag.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/.github/workflows/label.yml:
--------------------------------------------------------------------------------
1 | name: Labeller
2 |
3 | on: [pull_request_target]
4 |
5 | jobs:
6 | label:
7 | name: Label
8 | runs-on: ubuntu-latest
9 | permissions:
10 | contents: read
11 | pull-requests: write
12 |
13 | steps:
14 | - name: Label
15 | uses: actions/labeler@v5
16 | with:
17 | repo-token: "${{ secrets.GITHUB_TOKEN }}"
18 | configuration-path: .github/labeller.yml
19 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ### Node ###
2 | # Dependency directories
3 | node_modules/
4 |
5 | ### Hugo ###
6 | # Generated files by hugo
7 | **/public/
8 | **/resources/_gen/
9 |
10 | # Executable may be added to repository
11 | hugo.exe
12 | hugo.darwin
13 | hugo.linux
14 |
15 | # Temporary lock file while building
16 | .hugo_build.lock
17 |
18 | ### Congo ###
19 | # Lighthouse generated output
20 | .lighthouseci
21 |
22 | # Project specific files
23 | TODO
24 |
--------------------------------------------------------------------------------
/exampleSite/content/tags/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Tags
3 | ---
4 |
5 | Congo has full support for Hugo taxonomies and will adapt to any taxonomy set up. Taxonomy listings like this one also support custom content to be displayed above the list of terms.
6 |
7 | This area could be used to add some extra descriptive text to each taxonomy. Check out the [advanced tag]({{< ref "advanced" >}}) below to see how to take this concept even further.
8 |
9 | ---
10 |
--------------------------------------------------------------------------------
/exampleSite/content/tags/advanced/_index.es.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Avanzada
3 | ---
4 |
5 | Esta es la etiqueta avanzada. Al igual que otras páginas de listas en Congo, puede agregar contenido personalizado a los términos taxonómicos individuales y se mostrará en la parte superior de la lista de términos. :rocket:
6 |
7 | También puedes usar estas páginas de contenido para definir metadatos de Hugo como títulos y descripciones que se usarán para SEO y otros fines.
8 |
--------------------------------------------------------------------------------
/assets/icons/bars.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/hashnode.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/orcid.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/tumblr.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/circle-info.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/xmark.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/icons/triangle-exclamation.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/exampleSite/layouts/partials/home/custom.html:
--------------------------------------------------------------------------------
1 | {{ $jsHome := resources.Get "js/home.js" | resources.Minify | resources.Fingerprint "sha512" }}
2 |
20 | {{ end }}
21 | {{ with .Site.Language.Params.Author.bio | markdownify | emojify }}
22 |
{{ . }}
23 | {{ end }}
24 |
{{ partialCached "author-links.html" . }}
25 |
26 |
27 | {{ end }}
28 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/i18n-issue.yml:
--------------------------------------------------------------------------------
1 | name: 💬 i18n Issue
2 | description: Report an issue with i18n or translations
3 | labels: [i18n]
4 | body:
5 | - type: markdown
6 | attributes:
7 | value: |
8 | Thanks for taking the time to fill out this issue report!
9 | - type: input
10 | id: language
11 | attributes:
12 | label: Language
13 | description: Which language are you using?
14 | placeholder: eg. English
15 | validations:
16 | required: true
17 | - type: textarea
18 | id: issue
19 | attributes:
20 | label: What's the issue?
21 | description: Describe the translation issue and how to reproduce it.
22 | validations:
23 | required: true
24 | - type: input
25 | id: theme-version
26 | attributes:
27 | label: Theme version
28 | description: What version of the theme are you using?
29 | placeholder: eg. v1.1.0
30 | validations:
31 | required: true
32 | - type: input
33 | id: hugo-version
34 | attributes:
35 | label: Hugo version
36 | description: What version of Hugo are you using?
37 | placeholder: eg. v0.86.1
38 | validations:
39 | required: true
40 | - type: textarea
41 | id: logs
42 | attributes:
43 | label: Relevant Hugo log output
44 | description: Please copy and paste any relevant Hugo log output. This will be automatically formatted into code, so no need for backticks.
45 | render: shell
46 |
--------------------------------------------------------------------------------
/i18n/zh-Hant.yaml:
--------------------------------------------------------------------------------
1 | article:
2 | anchor_label: "定位點"
3 | date: "{{ .Date }}"
4 | date_updated: "上次編輯: {{ .Date }}"
5 | draft: "草稿"
6 | edit_title: "編輯內容"
7 | reading_time:
8 | one: "{{ .Count }} 分鐘"
9 | other: "{{ .Count }} 分鐘"
10 | reading_time_title: "預計閱讀時間"
11 | table_of_contents: "目錄"
12 | word_count:
13 | one: "{{ .Count }} 字"
14 | other: "{{ .Count }} 字"
15 |
16 | author:
17 | byline_title: "作者"
18 |
19 | code:
20 | copy: "複製"
21 | copied: "已複製"
22 |
23 | error:
24 | 404_title: "找不到網頁 :confused:"
25 | 404_error: "404 錯誤"
26 | 404_description: "您在尋找的頁面似乎不存在。"
27 |
28 | footer:
29 | dark_appearance: "切換為深色模式"
30 | light_appearance: "切換為淺色模式"
31 | powered_by: "以 {{ .Hugo }} & {{ .Congo }} 製作"
32 |
33 | list:
34 | externalurl_title: "外部網站連結"
35 | no_articles: "這裡還沒有任何文章。"
36 |
37 | nav:
38 | scroll_to_top_title: "捲動到頁頂"
39 | skip_to_main: "快轉到主要內容"
40 |
41 | search:
42 | open_button_title: "搜尋 (/)"
43 | close_button_title: "關閉 (Esc)"
44 | input_placeholder: "搜尋"
45 |
46 | sharing:
47 | email: "以電子郵件發送"
48 | facebook: "分享到 Facebook"
49 | linkedin: "分享到 LinkedIn"
50 | mastodon: "嘟到 Mastodon"
51 | pinterest: "釘到 Pinterest"
52 | reddit: "發送到 Reddit"
53 | twitter: "推到 Twitter"
54 | # threads: "Post on Threads"
55 | telegram: "分享到 Telegram"
56 | line: "分享到 LINE"
57 | weibo: "分享到 微博"
58 | # x-twitter: "Post on X"
59 | # xing: "Share on XING"
60 |
61 | shortcode:
62 | recent_articles: "最近的文章"
63 |
--------------------------------------------------------------------------------
/assets/js/mermaid.js:
--------------------------------------------------------------------------------
1 | function css(name) {
2 | return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")";
3 | }
4 |
5 | let isDark = document.documentElement.classList.contains("dark");
6 |
7 | mermaid.initialize({
8 | theme: "base",
9 | themeVariables: {
10 | background: css("--color-neutral"),
11 | primaryTextColor: isDark ? css("--color-neutral-200") : css("--color-neutral-700"),
12 | primaryColor: isDark ? css("--color-primary-700") : css("--color-primary-200"),
13 | secondaryColor: isDark ? css("--color-secondary-700") : css("--color-secondary-200"),
14 | tertiaryColor: isDark ? css("--color-neutral-700") : css("--color-neutral-100"),
15 | primaryBorderColor: isDark ? css("--color-primary-500") : css("--color-primary-400"),
16 | secondaryBorderColor: css("--color-secondary-400"),
17 | tertiaryBorderColor: isDark ? css("--color-neutral-300") : css("--color-neutral-400"),
18 | lineColor: isDark ? css("--color-neutral-300") : css("--color-neutral-600"),
19 | fontFamily:
20 | "ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif",
21 | fontSize: "16px",
22 | pieTitleTextSize: "19px",
23 | pieSectionTextSize: "16px",
24 | pieLegendTextSize: "16px",
25 | pieStrokeWidth: "1px",
26 | pieOuterStrokeWidth: "0.5px",
27 | pieStrokeColor: isDark ? css("--color-neutral-300") : css("--color-neutral-400"),
28 | pieOpacity: "1",
29 | },
30 | });
31 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/menus.zh-Hans.toml:
--------------------------------------------------------------------------------
1 | # -- Main Menu --
2 | # The main menu is displayed in the header at the top of the page.
3 | # Acceptable parameters are name, pageRef, page, url, title, weight.
4 | #
5 | # The simplest menu configuration is to provide:
6 | # name = The name to be displayed for this menu link
7 | # pageRef = The identifier of the page or section to link to
8 | #
9 | # By default the menu is ordered alphabetically. This can be
10 | # overridden by providing a weight value. The menu will then be
11 | # ordered by weight from lowest to highest.
12 |
13 | [[main]]
14 | name = "文档"
15 | pageRef = "docs"
16 | weight = 10
17 |
18 | [[main]]
19 | name = "示例"
20 | pageRef = "samples"
21 | weight = 20
22 |
23 | [[main]]
24 | name = "用户"
25 | pageRef = "users"
26 | weight = 30
27 |
28 | [[main]]
29 | name = "GitHub"
30 | url = "https://github.com/jpanther/congo"
31 | weight = 40
32 | [main.params]
33 | icon = "github"
34 | showName = false
35 | target = "_blank"
36 |
37 | [[main]]
38 | identifier = "搜索"
39 | weight = 99
40 | [main.params]
41 | action = "search"
42 |
43 | [[main]]
44 | identifier = "语言"
45 | weight = 100
46 | [main.params]
47 | action = "locale"
48 |
49 | # -- Footer Menu --
50 | # The footer menu is displayed at the bottom of the page, just before
51 | # the copyright notice. Configure as per the main menu above.
52 |
53 | # [[footer]]
54 | # name = "标签"
55 | # pageRef = "tags"
56 | # weight = 10
57 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/menus.ja.toml:
--------------------------------------------------------------------------------
1 | # -- Main Menu --
2 | # The main menu is displayed in the header at the top of the page.
3 | # Acceptable parameters are name, pageRef, page, url, title, weight.
4 | #
5 | # The simplest menu configuration is to provide:
6 | # name = The name to be displayed for this menu link
7 | # pageRef = The identifier of the page or section to link to
8 | #
9 | # By default the menu is ordered alphabetically. This can be
10 | # overridden by providing a weight value. The menu will then be
11 | # ordered by weight from lowest to highest.
12 |
13 | [[main]]
14 | name = "ドキュメント"
15 | pageRef = "docs"
16 | weight = 10
17 |
18 | [[main]]
19 | name = "サンプル"
20 | pageRef = "samples"
21 | weight = 20
22 |
23 | [[main]]
24 | name = "利用例"
25 | pageRef = "users"
26 | weight = 30
27 |
28 | [[main]]
29 | name = "GitHub"
30 | url = "https://github.com/jpanther/congo"
31 | weight = 40
32 | [main.params]
33 | icon = "github"
34 | showName = false
35 | target = "_blank"
36 |
37 | [[main]]
38 | identifier = "検索"
39 | weight = 99
40 | [main.params]
41 | action = "search"
42 |
43 | [[main]]
44 | identifier = "locale"
45 | weight = 100
46 | [main.params]
47 | action = "locale"
48 |
49 | # -- Footer Menu --
50 | # The footer menu is displayed at the bottom of the page, just before
51 | # the copyright notice. Configure as per the main menu above.
52 |
53 | # [[footer]]
54 | # name = "Tags"
55 | # pageRef = "tags"
56 | # weight = 10
57 |
--------------------------------------------------------------------------------
/assets/css/schemes/avocado.css:
--------------------------------------------------------------------------------
1 | /* Avocado scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Stone */
5 | --color-neutral-50: 250, 250, 249;
6 | --color-neutral-100: 245, 245, 244;
7 | --color-neutral-200: 231, 229, 228;
8 | --color-neutral-300: 214, 211, 209;
9 | --color-neutral-400: 168, 162, 158;
10 | --color-neutral-500: 120, 113, 108;
11 | --color-neutral-600: 87, 83, 78;
12 | --color-neutral-700: 68, 64, 60;
13 | --color-neutral-800: 41, 37, 36;
14 | --color-neutral-900: 28, 25, 23;
15 | --color-neutral-950: 12, 10, 9;
16 | /* Lime */
17 | --color-primary-50: 247, 254, 231;
18 | --color-primary-100: 236, 252, 203;
19 | --color-primary-200: 217, 249, 157;
20 | --color-primary-300: 190, 242, 100;
21 | --color-primary-400: 163, 230, 53;
22 | --color-primary-500: 132, 204, 22;
23 | --color-primary-600: 101, 163, 13;
24 | --color-primary-700: 77, 124, 15;
25 | --color-primary-800: 63, 98, 18;
26 | --color-primary-900: 54, 83, 20;
27 | --color-primary-950: 26, 46, 5;
28 | /* Emerald */
29 | --color-secondary-50: 236, 253, 245;
30 | --color-secondary-100: 209, 250, 229;
31 | --color-secondary-200: 167, 243, 208;
32 | --color-secondary-300: 110, 231, 183;
33 | --color-secondary-400: 52, 211, 153;
34 | --color-secondary-500: 16, 185, 129;
35 | --color-secondary-600: 5, 150, 105;
36 | --color-secondary-700: 4, 120, 87;
37 | --color-secondary-800: 6, 95, 70;
38 | --color-secondary-900: 6, 78, 59;
39 | --color-secondary-950: 2, 44, 34;
40 | }
41 |
--------------------------------------------------------------------------------
/assets/css/schemes/fire.css:
--------------------------------------------------------------------------------
1 | /* Fire scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Stone */
5 | --color-neutral-50: 250, 250, 249;
6 | --color-neutral-100: 245, 245, 244;
7 | --color-neutral-200: 231, 229, 228;
8 | --color-neutral-300: 214, 211, 209;
9 | --color-neutral-400: 168, 162, 158;
10 | --color-neutral-500: 120, 113, 108;
11 | --color-neutral-600: 87, 83, 78;
12 | --color-neutral-700: 68, 64, 60;
13 | --color-neutral-800: 41, 37, 36;
14 | --color-neutral-900: 28, 25, 23;
15 | --color-neutral-950: 12, 10, 9;
16 | /* Orange */
17 | --color-primary-50: 255, 247, 237;
18 | --color-primary-100: 255, 237, 213;
19 | --color-primary-200: 254, 215, 170;
20 | --color-primary-300: 253, 186, 116;
21 | --color-primary-400: 251, 146, 60;
22 | --color-primary-500: 249, 115, 22;
23 | --color-primary-600: 234, 88, 12;
24 | --color-primary-700: 194, 65, 12;
25 | --color-primary-800: 154, 52, 18;
26 | --color-primary-900: 124, 45, 18;
27 | --color-primary-950: 69, 10, 10;
28 | /* Rose */
29 | --color-secondary-50: 255, 241, 242;
30 | --color-secondary-100: 255, 228, 230;
31 | --color-secondary-200: 254, 205, 211;
32 | --color-secondary-300: 253, 164, 175;
33 | --color-secondary-400: 251, 113, 133;
34 | --color-secondary-500: 244, 63, 94;
35 | --color-secondary-600: 225, 29, 72;
36 | --color-secondary-700: 190, 18, 60;
37 | --color-secondary-800: 159, 18, 57;
38 | --color-secondary-900: 136, 19, 55;
39 | --color-secondary-950: 76, 5, 25;
40 | }
41 |
--------------------------------------------------------------------------------
/assets/css/schemes/ocean.css:
--------------------------------------------------------------------------------
1 | /* Ocean scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Slate */
5 | --color-neutral-50: 248, 250, 252;
6 | --color-neutral-100: 241, 245, 249;
7 | --color-neutral-200: 226, 232, 240;
8 | --color-neutral-300: 203, 213, 225;
9 | --color-neutral-400: 148, 163, 184;
10 | --color-neutral-500: 100, 116, 139;
11 | --color-neutral-600: 71, 85, 105;
12 | --color-neutral-700: 51, 65, 85;
13 | --color-neutral-800: 30, 41, 59;
14 | --color-neutral-900: 15, 23, 42;
15 | --color-neutral-950: 2, 6, 23;
16 | /* Blue */
17 | --color-primary-50: 239, 246, 255;
18 | --color-primary-100: 219, 234, 254;
19 | --color-primary-200: 191, 219, 254;
20 | --color-primary-300: 147, 197, 253;
21 | --color-primary-400: 96, 165, 250;
22 | --color-primary-500: 59, 130, 246;
23 | --color-primary-600: 37, 99, 235;
24 | --color-primary-700: 29, 78, 216;
25 | --color-primary-800: 30, 64, 175;
26 | --color-primary-900: 30, 58, 138;
27 | --color-primary-950: 23, 37, 8;
28 | /* Cyan */
29 | --color-secondary-50: 236, 254, 255;
30 | --color-secondary-100: 207, 250, 254;
31 | --color-secondary-200: 165, 243, 252;
32 | --color-secondary-300: 103, 232, 249;
33 | --color-secondary-400: 34, 211, 238;
34 | --color-secondary-500: 6, 182, 212;
35 | --color-secondary-600: 8, 145, 178;
36 | --color-secondary-700: 14, 116, 144;
37 | --color-secondary-800: 21, 94, 117;
38 | --color-secondary-900: 22, 78, 99;
39 | --color-secondary-950: 8, 51, 69;
40 | }
41 |
--------------------------------------------------------------------------------
/assets/css/schemes/slate.css:
--------------------------------------------------------------------------------
1 | /* Slate scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Gray */
5 | --color-neutral-50: 249, 250, 251;
6 | --color-neutral-100: 243, 244, 246;
7 | --color-neutral-200: 229, 231, 235;
8 | --color-neutral-300: 209, 213, 219;
9 | --color-neutral-400: 156, 163, 175;
10 | --color-neutral-500: 107, 114, 128;
11 | --color-neutral-600: 75, 85, 99;
12 | --color-neutral-700: 55, 65, 81;
13 | --color-neutral-800: 31, 41, 55;
14 | --color-neutral-900: 17, 24, 39;
15 | --color-neutral-950: 17, 24, 39;
16 | /* Slate */
17 | --color-primary-50: 248, 250, 252;
18 | --color-primary-100: 241, 245, 249;
19 | --color-primary-200: 226, 232, 240;
20 | --color-primary-300: 203, 213, 225;
21 | --color-primary-400: 148, 163, 184;
22 | --color-primary-500: 100, 116, 139;
23 | --color-primary-600: 71, 85, 105;
24 | --color-primary-700: 51, 65, 85;
25 | --color-primary-800: 30, 41, 59;
26 | --color-primary-900: 15, 23, 42;
27 | --color-primary-950: 2, 6, 23;
28 | /* Gray */
29 | --color-secondary-50: 249, 250, 251;
30 | --color-secondary-100: 243, 244, 246;
31 | --color-secondary-200: 229, 231, 235;
32 | --color-secondary-300: 209, 213, 219;
33 | --color-secondary-400: 156, 163, 175;
34 | --color-secondary-500: 107, 114, 128;
35 | --color-secondary-600: 75, 85, 99;
36 | --color-secondary-700: 55, 65, 81;
37 | --color-secondary-800: 31, 41, 55;
38 | --color-secondary-900: 17, 24, 39;
39 | --color-secondary-950: 10, 10, 10;
40 | }
41 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/menus.en.toml:
--------------------------------------------------------------------------------
1 | # -- Main Menu --
2 | # The main menu is displayed in the header at the top of the page.
3 | # Acceptable parameters are name, pageRef, page, url, title, weight.
4 | #
5 | # The simplest menu configuration is to provide:
6 | # name = The name to be displayed for this menu link
7 | # pageRef = The identifier of the page or section to link to
8 | #
9 | # By default the menu is ordered alphabetically. This can be
10 | # overridden by providing a weight value. The menu will then be
11 | # ordered by weight from lowest to highest.
12 |
13 | [[main]]
14 | name = "Docs"
15 | pageRef = "docs"
16 | weight = 10
17 |
18 | [[main]]
19 | name = "Samples"
20 | pageRef = "samples"
21 | weight = 20
22 |
23 | [[main]]
24 | name = "Users"
25 | pageRef = "users"
26 | weight = 30
27 |
28 | [[main]]
29 | name = "GitHub"
30 | url = "https://github.com/jpanther/congo"
31 | weight = 40
32 | [main.params]
33 | icon = "github"
34 | showName = false
35 | target = "_blank"
36 |
37 | [[main]]
38 | identifier = "search"
39 | weight = 99
40 | [main.params]
41 | action = "search"
42 |
43 | [[main]]
44 | identifier = "locale"
45 | weight = 100
46 | [main.params]
47 | action = "locale"
48 |
49 | # -- Footer Menu --
50 | # The footer menu is displayed at the bottom of the page, just before
51 | # the copyright notice. Configure as per the main menu above.
52 |
53 | # [[footer]]
54 | # name = "Tags"
55 | # pageRef = "tags"
56 | # weight = 10
57 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/menus.es.toml:
--------------------------------------------------------------------------------
1 | # -- Main Menu --
2 | # The main menu is displayed in the header at the top of the page.
3 | # Acceptable parameters are name, pageRef, page, url, title, weight.
4 | #
5 | # The simplest menu configuration is to provide:
6 | # name = The name to be displayed for this menu link
7 | # pageRef = The identifier of the page or section to link to
8 | #
9 | # By default the menu is ordered alphabetically. This can be
10 | # overridden by providing a weight value. The menu will then be
11 | # ordered by weight from lowest to highest.
12 |
13 | [[main]]
14 | name = "Docs"
15 | url = "/docs"
16 | weight = 10
17 |
18 | [[main]]
19 | name = "Ejemplos"
20 | pageRef = "samples"
21 | weight = 20
22 |
23 | [[main]]
24 | name = "Usuarios"
25 | pageRef = "users"
26 | weight = 30
27 |
28 | [[main]]
29 | name = "GitHub"
30 | url = "https://github.com/jpanther/congo"
31 | weight = 40
32 | [main.params]
33 | icon = "github"
34 | showName = false
35 | target = "_blank"
36 |
37 | [[main]]
38 | identifier = "search"
39 | weight = 99
40 | [main.params]
41 | action = "search"
42 |
43 | [[main]]
44 | identifier = "locale"
45 | weight = 100
46 | [main.params]
47 | action = "locale"
48 |
49 | # -- Footer Menu --
50 | # The footer menu is displayed at the bottom of the page, just before
51 | # the copyright notice. Configure as per the main menu above.
52 |
53 | # [[footer]]
54 | # name = "Tags"
55 | # pageRef = "tags"
56 | # weight = 10
57 |
--------------------------------------------------------------------------------
/assets/css/schemes/cherry.css:
--------------------------------------------------------------------------------
1 | /* Cherry scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Neutral */
5 | --color-neutral-50: 250, 250, 250;
6 | --color-neutral-100: 245, 245, 245;
7 | --color-neutral-200: 229, 229, 229;
8 | --color-neutral-300: 212, 212, 212;
9 | --color-neutral-400: 163, 163, 163;
10 | --color-neutral-500: 115, 115, 115;
11 | --color-neutral-600: 82, 82, 82;
12 | --color-neutral-700: 64, 64, 64;
13 | --color-neutral-800: 38, 38, 38;
14 | --color-neutral-900: 23, 23, 23;
15 | --color-neutral-950: 10, 10, 10;
16 | /* Rose */
17 | --color-primary-50: 255, 241, 242;
18 | --color-primary-100: 255, 228, 230;
19 | --color-primary-200: 254, 205, 211;
20 | --color-primary-300: 253, 164, 175;
21 | --color-primary-400: 251, 113, 133;
22 | --color-primary-500: 244, 63, 94;
23 | --color-primary-600: 225, 29, 72;
24 | --color-primary-700: 190, 18, 60;
25 | --color-primary-800: 159, 18, 57;
26 | --color-primary-900: 136, 19, 55;
27 | --color-primary-950: 76, 5, 25;
28 | /* Green */
29 | --color-secondary-50: 240, 253, 244;
30 | --color-secondary-100: 220, 252, 231;
31 | --color-secondary-200: 187, 247, 208;
32 | --color-secondary-300: 134, 239, 172;
33 | --color-secondary-400: 74, 222, 128;
34 | --color-secondary-500: 34, 197, 94;
35 | --color-secondary-600: 22, 163, 74;
36 | --color-secondary-700: 21, 128, 61;
37 | --color-secondary-800: 22, 101, 52;
38 | --color-secondary-900: 20, 83, 45;
39 | --color-secondary-950: 5, 46, 22;
40 | }
41 |
--------------------------------------------------------------------------------
/assets/css/schemes/congo.css:
--------------------------------------------------------------------------------
1 | /* Congo scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Gray */
5 | --color-neutral-50: 250, 250, 250;
6 | --color-neutral-100: 244, 244, 245;
7 | --color-neutral-200: 228, 228, 231;
8 | --color-neutral-300: 212, 212, 216;
9 | --color-neutral-400: 161, 161, 170;
10 | --color-neutral-500: 113, 113, 122;
11 | --color-neutral-600: 82, 82, 91;
12 | --color-neutral-700: 63, 63, 70;
13 | --color-neutral-800: 39, 39, 42;
14 | --color-neutral-900: 24, 24, 27;
15 | --color-neutral-950: 3, 7, 18;
16 | /* Violet */
17 | --color-primary-50: 245, 243, 255;
18 | --color-primary-100: 237, 233, 254;
19 | --color-primary-200: 221, 214, 254;
20 | --color-primary-300: 196, 181, 253;
21 | --color-primary-400: 167, 139, 250;
22 | --color-primary-500: 139, 92, 246;
23 | --color-primary-600: 124, 58, 237;
24 | --color-primary-700: 109, 40, 217;
25 | --color-primary-800: 91, 33, 182;
26 | --color-primary-900: 76, 29, 149;
27 | --color-primary-950: 46, 16, 101;
28 | /* Fuchsia */
29 | --color-secondary-50: 253, 244, 255;
30 | --color-secondary-100: 250, 232, 255;
31 | --color-secondary-200: 245, 208, 254;
32 | --color-secondary-300: 240, 171, 252;
33 | --color-secondary-400: 232, 121, 249;
34 | --color-secondary-500: 217, 70, 239;
35 | --color-secondary-600: 192, 38, 211;
36 | --color-secondary-700: 162, 28, 175;
37 | --color-secondary-800: 134, 25, 143;
38 | --color-secondary-900: 112, 26, 117;
39 | --color-secondary-950: 74, 4, 78;
40 | }
41 |
--------------------------------------------------------------------------------
/assets/css/schemes/sapphire.css:
--------------------------------------------------------------------------------
1 | /* Sapphire scheme */
2 | :root {
3 | --color-neutral: 255, 255, 255;
4 | /* Slate */
5 | --color-neutral-50: 248, 250, 252;
6 | --color-neutral-100: 241, 245, 249;
7 | --color-neutral-200: 226, 232, 240;
8 | --color-neutral-300: 203, 213, 225;
9 | --color-neutral-400: 148, 163, 184;
10 | --color-neutral-500: 100, 116, 139;
11 | --color-neutral-600: 71, 85, 105;
12 | --color-neutral-700: 51, 65, 85;
13 | --color-neutral-800: 30, 41, 59;
14 | --color-neutral-900: 15, 23, 42;
15 | --color-neutral-950: 10, 10, 10;
16 | /* Indigo */
17 | --color-primary-50: 238, 242, 255;
18 | --color-primary-100: 224, 231, 255;
19 | --color-primary-200: 199, 210, 254;
20 | --color-primary-300: 165, 180, 252;
21 | --color-primary-400: 129, 140, 248;
22 | --color-primary-500: 99, 102, 241;
23 | --color-primary-600: 79, 70, 229;
24 | --color-primary-700: 67, 56, 202;
25 | --color-primary-800: 55, 48, 163;
26 | --color-primary-900: 49, 46, 129;
27 | --color-primary-950: 30, 27, 75;
28 | /* Pink */
29 | --color-secondary-50: 253, 242, 248;
30 | --color-secondary-100: 252, 231, 243;
31 | --color-secondary-200: 251, 207, 232;
32 | --color-secondary-300: 249, 168, 212;
33 | --color-secondary-400: 244, 114, 182;
34 | --color-secondary-500: 236, 72, 153;
35 | --color-secondary-600: 219, 39, 119;
36 | --color-secondary-700: 190, 24, 93;
37 | --color-secondary-800: 157, 23, 77;
38 | --color-secondary-900: 131, 24, 67;
39 | --color-secondary-950: 80, 7, 36;
40 | }
41 |
--------------------------------------------------------------------------------
/exampleSite/config/_default/menus.de.toml:
--------------------------------------------------------------------------------
1 | # -- Main Menu --
2 | # The main menu is displayed in the header at the top of the page.
3 | # Acceptable parameters are name, pageRef, page, url, title, weight.
4 | #
5 | # The simplest menu configuration is to provide:
6 | # name = The name to be displayed for this menu link
7 | # pageRef = The identifier of the page or section to link to
8 | #
9 | # By default the menu is ordered alphabetically. This can be
10 | # overridden by providing a weight value. The menu will then be
11 | # ordered by weight from lowest to highest.
12 |
13 | [[main]]
14 | name = "Dokumentation"
15 | pageRef = "docs"
16 | weight = 10
17 |
18 | [[main]]
19 | name = "Beispiele"
20 | pageRef = "samples"
21 | weight = 20
22 |
23 | [[main]]
24 | name = "Genutzt von"
25 | pageRef = "users"
26 | weight = 30
27 |
28 | [[main]]
29 | name = "GitHub"
30 | url = "https://github.com/jpanther/congo"
31 | weight = 40
32 | [main.params]
33 | icon = "github"
34 | showName = false
35 | target = "_blank"
36 |
37 | [[main]]
38 | identifier = "search"
39 | weight = 99
40 | [main.params]
41 | action = "search"
42 |
43 | [[main]]
44 | identifier = "locale"
45 | weight = 100
46 | [main.params]
47 | action = "locale"
48 |
49 | # -- Footer Menu --
50 | # The footer menu is displayed at the bottom of the page, just before
51 | # the copyright notice. Configure as per the main menu above.
52 |
53 | # [[footer]]
54 | # name = "Tags"
55 | # pageRef = "tags"
56 | # weight = 10
57 |
--------------------------------------------------------------------------------
/exampleSite/content/samples/mathematical-notation/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Mathematical notation
3 | date: 2019-03-08
4 | description: A brief sample of mathematical notation in Congo.
5 | tags: ["sample", "katex", "maths", "shortcodes"]
6 | ---
7 |
8 | KaTeX can be used to render mathematical notation within articles.
9 |
10 |
11 |
12 | {{< katex >}}
13 |
14 | Congo will only bundle the KaTeX assets into your project if you make use of mathematical notation. In order for this to work, simply include the [`katex` shortcode]({{< ref "docs/shortcodes#katex" >}}) within the article. Any KaTeX syntax on that page will then be automatically rendered.
15 |
16 | Use the online reference of [supported TeX functions](https://katex.org/docs/supported.html) for the available syntax.
17 |
18 | ## Inline notation
19 |
20 | Inline notation can be generated by wrapping the expression in `\\(` and `\\)` delimiters.
21 |
22 | **Example:**
23 |
24 | ```tex
25 | % KaTeX inline notation
26 | Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
27 | ```
28 |
29 | Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
30 |
31 | ## Block notation
32 |
33 | Alternatively, block notation can be generated using `$$` delimiters. This will output the expression in its own HTML block.
34 |
35 | **Example:**
36 |
37 | ```tex
38 | % KaTeX block notation
39 | $$
40 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
41 | $$
42 | ```
43 |
44 | $$
45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
46 | $$
47 |
--------------------------------------------------------------------------------
/i18n/ko.yaml:
--------------------------------------------------------------------------------
1 | article:
2 | anchor_label: "앵커"
3 | date: "{{ .Date }}"
4 | date_updated: "수정됨: {{ .Date }}"
5 | draft: "초안"
6 | edit_title: "편집"
7 | reading_time:
8 | one: "{{ .Count }} 분"
9 | other: "{{ .Count }} 분"
10 | reading_time_title: "읽는 데 걸리는 시간"
11 | table_of_contents: "목차"
12 | word_count:
13 | one: "{{ .Count }} 자"
14 | other: "{{ .Count }} 자"
15 |
16 | author:
17 | byline_title: "글쓴이"
18 |
19 | code:
20 | copy: "복사"
21 | copied: "복사됨"
22 |
23 | error:
24 | 404_title: "페이지를 찾을 수 없어요 :confused:"
25 | 404_error: "Error 404"
26 | 404_description: "요청하신 페이지를 찾을 수 없어요."
27 |
28 | footer:
29 | dark_appearance: "다크 모드로 전환"
30 | light_appearance: "라이트 모드로 전환"
31 | powered_by: "Powered by {{ .Hugo }} & {{ .Congo }}"
32 |
33 | list:
34 | externalurl_title: "외부 사이트 링크"
35 | no_articles: "아직 글이 존재하지 않아요."
36 |
37 | nav:
38 | scroll_to_top_title: "위로 스크롤"
39 | skip_to_main: "메인 콘텐츠로 이동하기"
40 |
41 | search:
42 | open_button_title: "검색 (/)"
43 | close_button_title: "닫기 (Esc)"
44 | input_placeholder: "검색"
45 |
46 | sharing:
47 | email: "email로 보내기"
48 | facebook: "Facebook에 공유하기"
49 | linkedin: "LinkedIn에 공유하기"
50 | mastodon: "Mastodon에 게시하기"
51 | pinterest: "Pinterest에 핀하기"
52 | reddit: "Reddit에 게시하기"
53 | twitter: "Twitter에 트윗하기"
54 | # threads: "Post on Threads"
55 | telegram: "Telegram에 공유하기"
56 | line: "LINE에 공유하기"
57 | weibo: "Weibo에 공유하기"
58 | # x-twitter: "Post on X"
59 | # xing: "Share on XING"
60 |
61 | shortcode:
62 | recent_articles: "최신 글"
63 |
--------------------------------------------------------------------------------
/exampleSite/content/_index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Welcome to Congo! :tada:"
3 | description: "This is a demo of the Congo theme for Hugo."
4 | ---
5 |
6 | {{< lead >}}
7 | A powerful, lightweight theme for Hugo built with Tailwind CSS.
8 | {{< /lead >}}
9 |
10 | This is a demo site built entirely using Congo. It also contains a complete set of [theme documentation]({{< ref "docs" >}}). Congo is flexible and is great for both static page-based content (like this demo) or a traditional blog with a feed of recent posts.
11 |
12 |
13 |
14 | {{< icon "triangle-exclamation" >}}
15 |
16 |
17 | This is a demo of the page layout.
18 |
24 |
25 |
26 |
27 | {{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}}
28 |
29 | Explore the [sample pages]({{< ref "samples" >}}) to get a feel for what Congo can do. If you like what you see, check out the project on [Github](https://github.com/jpanther/congo) or read the [Installation guide]({{< ref "docs/installation" >}}) to get started.
30 |
--------------------------------------------------------------------------------
/i18n/ja.yaml:
--------------------------------------------------------------------------------
1 | article:
2 | anchor_label: "アンカー"
3 | date: "{{ .Date }}"
4 | date_updated: "更新日: {{ .Date }}"
5 | draft: "下書き"
6 | edit_title: "編集"
7 | reading_time:
8 | one: "{{ .Count }} 分"
9 | other: "{{ .Count }} 分"
10 | reading_time_title: "読むのに必要な時間"
11 | table_of_contents: "目次"
12 | word_count:
13 | one: "{{ .Count }} 文字"
14 | other: "{{ .Count }} 文字"
15 |
16 | author:
17 | byline_title: "著者"
18 |
19 | code:
20 | copy: "コピー"
21 | copied: "コピーしました"
22 |
23 | error:
24 | 404_title: "ページが見つかりませんでした。 :confused:"
25 | 404_error: "Error 404"
26 | 404_description: "ご要望のページは存在しないようです。"
27 |
28 | footer:
29 | dark_appearance: "ダークモードへ切り替え"
30 | light_appearance: "ライトモードへ切り替え"
31 | powered_by: "Powered by {{ .Hugo }} & {{ .Congo }}"
32 |
33 | list:
34 | externalurl_title: "外部サイトへリンク"
35 | no_articles: "ここに掲載する記事はまだありません。"
36 |
37 | nav:
38 | scroll_to_top_title: "TOPへスクロール"
39 | skip_to_main: "メインコンテンツへスキップ"
40 |
41 | search:
42 | open_button_title: "検索 (/)"
43 | close_button_title: "閉じる (Esc)"
44 | input_placeholder: "Search"
45 |
46 | sharing:
47 | email: " Eメールを送る"
48 | facebook: "Facebookでシェアする"
49 | linkedin: "LinkedInでシェアする"
50 | mastodon: "Mastodonに投稿する"
51 | pinterest: "Pinterestでピンする"
52 | reddit: "Redditに投稿する"
53 | twitter: "Twitterに投稿する"
54 | # threads: "Post on Threads"
55 | telegram: "Telegramでシェアする"
56 | line: "LINEでシェアする"
57 | weibo: "Weiboでシェアする"
58 | # x-twitter: "Post on X"
59 | # xing: "Share on XING"
60 |
61 | shortcode:
62 | recent_articles: "最近の記事"
63 |
--------------------------------------------------------------------------------
/assets/icons/keybase.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/exampleSite/content/samples/rich-content/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Rich Content"
3 | date: 2019-03-10
4 | description: "A brief description of Rich Content"
5 | summary: "This is an _example_ of a **rich** content summary."
6 | coverAlt: "An example cover image depicting icons of some popular media organisations."
7 | coverCaption: "This is an example cover image with a caption."
8 | tags: ["shortcodes", "privacy", "sample", "gist", "twitter", "youtube", "vimeo"]
9 | ---
10 |
11 | Hugo ships with several [built-in shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [privacy config](https://gohugo.io/about/hugo-and-gdpr/) and a set of _simple shortcodes_ that enable static and no-JS versions of various social media embeds.
12 |
13 | ## YouTube
14 |
15 | Below is an example using the built-in `youtube` shortcode.
16 |
17 | {{< youtube ZJthWmvUzzc >}}
18 |
19 | ## Twitter
20 |
21 | This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
22 |
23 | {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
24 |
25 | Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card.
26 |
27 | ## Gist
28 |
29 | The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist.
30 |
31 | {{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}
32 |
33 | ## Vimeo
34 |
35 | The `vimeo_simple` shortcode will embed a Vimeo video.
36 |
37 | {{< vimeo_simple 48912912 >}}
38 |
--------------------------------------------------------------------------------
/exampleSite/content/samples/mathematical-notation/index.es.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Notación matemática
3 | date: 2019-03-08
4 | description: Una breve muestra de notación matemática en Congo.
5 | tags: ["sample", "katex", "maths", "shortcodes"]
6 | ---
7 |
8 | Una breve muestra de notación matemática en Congo.
9 |
10 |
11 |
12 | {{< katex >}}
13 |
14 | Congo solo incluirá los assets de KaTeX en su proyecto si utiliza notación matemática. Para que esto funcione, simplemente incluya el [`katex` shortcode]({{< ref path="docs/shortcodes#katex" lang="en" >}}) dentro del artículo. Cualquier sintaxis de KaTeX en esa página se renderizará automáticamente.
15 |
16 | Utilice la documentación en línea de [funciones TeX admitidas](https://katex.org/docs/supported.html) para conocer la sintaxis disponible.
17 |
18 | ## Notación en línea
19 |
20 | La notación en línea se puede generar envolviendo la expresión en los delimitadores `\\(` y `\\)`.
21 |
22 | **Ejemplo:**
23 |
24 | ```tex
25 | % KaTeX notación en línea
26 | Notación en línea: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
27 | ```
28 |
29 | Notación en línea: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
30 |
31 | ## Notación en bloque
32 |
33 | Alternativamente, la notación en bloque se puede generar usando delimitadores `$$`. Esto generará la expresión en su propio bloque HTML.
34 |
35 | **Ejemplo:**
36 |
37 | ```tex
38 | % KaTeX notación en bloque
39 | $$
40 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
41 | $$
42 | ```
43 |
44 | $$
45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
46 | $$
47 |
--------------------------------------------------------------------------------
/i18n/he.yaml:
--------------------------------------------------------------------------------
1 | article:
2 | anchor_label: "עוגן"
3 | date: "{{ .Date }}"
4 | date_updated: "עודכן: {{ .Date }}"
5 | draft: "טיוטה"
6 | edit_title: "ערוך תוכן"
7 | reading_time:
8 | one: "{{ .Count }} דקה"
9 | other: "{{ .Count }} דקות"
10 | reading_time_title: "זמן קריאה"
11 | table_of_contents: "תוכן עניינים"
12 | word_count:
13 | one: "{{ .Count }} מילה"
14 | other: "{{ .Count }} מילים"
15 |
16 | author:
17 | byline_title: "מחבר"
18 |
19 | code:
20 | copy: "העתק"
21 | copied: "הועתק"
22 |
23 | error:
24 | 404_title: "הדף לא נמצא :confused:"
25 | 404_error: "שגיאה 404"
26 | 404_description: "נראה שהדף שביקשת לא קיים."
27 |
28 | footer:
29 | dark_appearance: "מעבר למצב לילה"
30 | light_appearance: "מעבר למצב יום"
31 | powered_by: "בנוי בעזרת {{ .Hugo }} & {{ .Congo }}"
32 |
33 | list:
34 | externalurl_title: "קישור לאתר חיצוני"
35 | no_articles: "אין כרגע מאמרים ברשימה זו."
36 |
37 | nav:
38 | scroll_to_top_title: "חזרה למעלה"
39 | skip_to_main: "דילוג לתוכן"
40 |
41 | search:
42 | open_button_title: "חיפוש (/)"
43 | close_button_title: "סגירה (Esc)"
44 | input_placeholder: "חיפוש"
45 |
46 | sharing:
47 | email: "שליחת אימייל"
48 | facebook: "שיתוף בפייסבוק"
49 | linkedin: "שיתוף בלינקדאין"
50 | # mastodon: "Toot on Mastodon"
51 | pinterest: "שיתוף בפינטרסט"
52 | reddit: "שליחה לרדיט"
53 | twitter: "ציוץ בטוויטר"
54 | # threads: "Post on Threads"
55 | telegram: "שיתוף בטלגרם"
56 | line: "שיתוף בליין"
57 | # weibo: "Share on Weibo"
58 | # x-twitter: "Post on X"
59 | # xing: "Share on XING"
60 |
61 | shortcode:
62 | recent_articles: "חדשים"
63 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | name: "Close stale issues and PRs"
2 | on:
3 | schedule:
4 | - cron: "30 1 * * *"
5 |
6 | jobs:
7 | stale:
8 | runs-on: ubuntu-latest
9 | permissions:
10 | issues: write
11 | pull-requests: write
12 | steps:
13 | - uses: actions/stale@v9
14 | with:
15 | days-before-stale: 120
16 | days-before-close: 30
17 | stale-issue-label: "stale"
18 | exempt-issue-labels: "wip,help wanted,dependencies"
19 | stale-pr-label: "stale"
20 | exempt-pr-labels: "wip,help wanted,dependencies"
21 | stale-issue-message: >
22 | This issue has been automatically marked as stale because it has not had any recent activity.
23 |
24 | If you are still experiencing this issue, please review the issue history and add a reply with any requested and/or additional information in order to keep the issue open.
25 |
26 | This issue will automatically close in 30 days if no further activity occurs.
27 | stale-pr-message: >
28 | This pull request has been automatically marked as stale because it has not had any recent activity.
29 |
30 | Please review the PR history and add a reply with any requested information. If no information has been requested, it may be that this contribution does not fit with the project objectives, or does not adhere to the [contributing guidelines](https://github.com/jpanther/congo/blob/dev/CONTRIBUTING.md). If this is in error, please add a reply with further details.
31 |
32 | This PR will automatically close in 30 days if no further activity occurs.
33 |
--------------------------------------------------------------------------------
/exampleSite/content/samples/mathematical-notation/index.de.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Mathematische Notation
3 | date: 2019-03-08
4 | description: Ein kurzes Beispiel für die mathematische Notation in Congo.
5 | tags: ["Beispiele", "KaTeX", "Mathematik", "Shortcodes"]
6 | ---
7 |
8 | KaTeX kann verwendet werden, um mathematische Notationen in Artikeln darzustellen.
9 |
10 |
11 |
12 | {{< katex >}}
13 |
14 | Congo bindet die KaTeX-Assets nur dann in das Projekt ein, wenn die mathematische Notation verwendet wird. Damit dies funktioniert, kann einfach der Shortcode [`katex`]({{< ref path="docs/shortcodes#katex" lang="en" >}}) in den Artikel eingefügt werden. Jede KaTeX-Syntax auf dieser Seite wird dann automatisch gerendert.
15 |
16 | Die Online-Referenz der [unterstützten TeX-Funktionen](https://katex.org/docs/supported.html) zeigt Syntax-Beispiele.
17 |
18 | ## Inline-Schreibweise
19 |
20 | Die Inline-Schreibweise kann erzeugt werden, indem der Ausdruck in die Trennzeichen `\(` und `\)` eingeschlossen wird.
21 |
22 | **Beispiel:**
23 |
24 | ```tex
25 | % KaTeX Inline-Schreibweise
26 | Inline-Schreibweise: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
27 | ```
28 |
29 | Inline-Schreibweise: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
30 |
31 | ## Schreibweise als Block
32 |
33 | Alternativ kann die Blockschreibweise mit Hilfe von `$$`-Trennzeichen erzeugt werden. Dadurch wird der Ausdruck in einem eigenen HTML-Block ausgegeben.
34 |
35 | **Beispiel:**
36 |
37 | ```tex
38 | % KaTeX mit Block-Schreibweise
39 | $$
40 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
41 | $$
42 | ```
43 |
44 | $$
45 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
46 | $$
47 |
--------------------------------------------------------------------------------
/exampleSite/content/_index.es.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "¡Bienvenido a Congo! :tada:"
3 | description: "Esta es una demostración del tema Congo para Hugo."
4 | ---
5 |
6 | {{< lead >}}
7 | Un tema poderoso y liviano para Hugo creado con Tailwind CSS.
8 | {{< /lead >}}
9 |
10 | Este es un sitio de demostración creado completamente con Congo. También contiene un conjunto completo de artículos con [documentación del tema]({{< ref path="docs" lang="en" >}}). Congo es flexible y es excelente tanto para contenido estático basado en páginas (como es el caso de esta demostración) como para un blog tradicional con un feed de publicaciones recientes.
11 |
12 |
13 |
14 | {{< icon "triangle-exclamation" >}}
15 |
16 |
17 | Esta es la demostración en formato page
18 |
24 |
25 |
26 |
27 | {{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}}
28 |
29 | Explora las [páginas de ejemplo]({{< ref "samples" >}}) para tener una idea de lo que Congo puede hacer. Si te gusta lo que ves, consulta el proyecto en [Github](https://github.com/jpanther/congo) o lee la [Guía de instalación]({{< ref path="docs/installation" lang="en" >}}) para comenzar.
30 |
--------------------------------------------------------------------------------
/layouts/_default/term.html:
--------------------------------------------------------------------------------
1 | {{ define "main" }}
2 |
3 | {{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}
4 | {{ partial "breadcrumbs.html" . }}
5 | {{ end }}
6 |
{{ .Title }}
7 |
8 | {{ if .Content }}
9 |
10 |
11 | {{ .Content | emojify }}
12 |
13 |
14 | {{ end }}
15 |
16 | {{ if .Data.Pages }}
17 |
18 | {{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
19 | {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
20 |