├── exampleSite ├── data │ └── .gitkeep ├── static │ └── .gitkeep ├── .gitignore ├── content │ ├── news │ │ ├── _index.md │ │ ├── hugoisforlovers.md │ │ ├── basic-elements.md │ │ ├── migrate-from-jekyll.md │ │ └── goisforlovers.md │ ├── _index.md │ └── configured-page.md └── config.toml ├── images ├── tn.png └── screenshot.png ├── layouts ├── partials │ ├── favicon.html │ ├── header.html │ ├── perpagebody.html │ ├── perpagehead.html │ ├── footer_right.html │ ├── svg │ │ ├── category.svg │ │ ├── author.svg │ │ ├── email.svg │ │ ├── time.svg │ │ ├── tag.svg │ │ ├── telegram.svg │ │ ├── bitbucket.svg │ │ ├── files.svg │ │ ├── facebook.svg │ │ ├── gitlab.svg │ │ ├── linkedin.svg │ │ ├── twitter.svg │ │ ├── instagram.svg │ │ └── github.svg │ ├── post_toc.html │ ├── post_meta.html │ ├── comments.html │ ├── post_meta │ │ ├── author.html │ │ ├── translations.html │ │ ├── date.html │ │ └── categories.html │ ├── footer_links.html │ ├── post_tags.html │ ├── widgets │ │ ├── sidemenu.html │ │ ├── ddg-search.html │ │ ├── search.html │ │ ├── recent.html │ │ ├── recent_photos.html │ │ ├── categories.html │ │ ├── taglist.html │ │ ├── recent_photos_tags.html │ │ ├── languages.html │ │ └── social.html │ ├── footer.html │ ├── pagination.html │ ├── menu.html │ ├── sidebar.html │ ├── pager.html │ ├── authorbox.html │ └── logo.html ├── 404.html ├── _default │ ├── list.html │ ├── summary.html │ ├── single.html │ └── baseof.html ├── sitemap.xml └── index.html ├── static ├── favicon.ico ├── favicon.png ├── img │ ├── avatar.png │ ├── header.jpg │ └── placeholder.png ├── apple-touch-icon.png ├── fonts │ ├── open-sans-v18-latin-300.woff │ ├── open-sans-v18-latin-600.woff │ ├── open-sans-v18-latin-700.woff │ ├── merriweather-v22-latin-700.woff │ ├── open-sans-v18-latin-300.woff2 │ ├── open-sans-v18-latin-600.woff2 │ ├── open-sans-v18-latin-700.woff2 │ ├── open-sans-v18-latin-italic.woff │ ├── merriweather-v22-latin-700.woff2 │ ├── open-sans-v18-latin-italic.woff2 │ ├── open-sans-v18-latin-regular.woff │ ├── open-sans-v18-latin-regular.woff2 │ ├── merriweather-v22-latin-regular.woff │ ├── merriweather-v22-latin-regular.woff2 │ ├── open-sans-v18-latin-300italic.woff │ ├── open-sans-v18-latin-300italic.woff2 │ ├── open-sans-v18-latin-600italic.woff │ ├── open-sans-v18-latin-600italic.woff2 │ ├── open-sans-v18-latin-700italic.woff │ ├── open-sans-v18-latin-700italic.woff2 │ └── LICENSE └── js │ └── menu.js ├── archetypes └── default.md ├── .gitignore ├── .editorconfig ├── .github └── workflows │ ├── build.yaml │ └── deploy.yaml ├── theme.toml ├── i18n ├── zh-cn.yaml ├── zh-tw.yaml ├── ja.yaml ├── nl.yaml ├── es.yaml ├── vi.yaml ├── mk.yaml ├── cs.yaml ├── pt.yaml ├── pt-br.yaml ├── hu.yaml ├── it.yaml ├── fr.yaml ├── bg.yaml ├── en.yaml ├── uk.yaml ├── de.yaml ├── ru.yaml └── lt.yaml ├── README.md ├── LICENSE.md └── assets └── css └── style.css /exampleSite/data/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/.gitignore: -------------------------------------------------------------------------------- 1 | public/ 2 | themes 3 | .hugo_build.lock 4 | -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/images/tn.png -------------------------------------------------------------------------------- /layouts/partials/favicon.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/favicon.ico -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/favicon.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/images/screenshot.png -------------------------------------------------------------------------------- /static/img/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/img/avatar.png -------------------------------------------------------------------------------- /static/img/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/img/header.jpg -------------------------------------------------------------------------------- /static/img/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/img/placeholder.png -------------------------------------------------------------------------------- /static/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/apple-touch-icon.png -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 | {{ partial "logo.html" . }} 3 |
4 | {{ partial "menu.html" . }} 5 | -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-300.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-300.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-600.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-600.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-700.woff -------------------------------------------------------------------------------- /layouts/partials/perpagebody.html: -------------------------------------------------------------------------------- 1 | {{- with .Params.scripts_body -}} 2 | {{- range . -}} 3 | {{- . | safeHTML -}} 4 | {{- end -}} 5 | {{- end -}} -------------------------------------------------------------------------------- /layouts/partials/perpagehead.html: -------------------------------------------------------------------------------- 1 | {{- with .Params.scripts_head -}} 2 | {{- range . -}} 3 | {{- . | safeHTML -}} 4 | {{- end -}} 5 | {{- end -}} -------------------------------------------------------------------------------- /static/fonts/merriweather-v22-latin-700.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/merriweather-v22-latin-700.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-300.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-300.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-600.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-600.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-700.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-700.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-italic.woff -------------------------------------------------------------------------------- /layouts/partials/footer_right.html: -------------------------------------------------------------------------------- 1 | {{- with .Site.Params.footer.right }} 2 | 3 | {{- end }} 4 | -------------------------------------------------------------------------------- /static/fonts/merriweather-v22-latin-700.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/merriweather-v22-latin-700.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-italic.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-regular.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-regular.woff2 -------------------------------------------------------------------------------- /static/fonts/merriweather-v22-latin-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/merriweather-v22-latin-regular.woff -------------------------------------------------------------------------------- /static/fonts/merriweather-v22-latin-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/merriweather-v22-latin-regular.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-300italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-300italic.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-300italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-300italic.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-600italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-600italic.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-600italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-600italic.woff2 -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-700italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-700italic.woff -------------------------------------------------------------------------------- /static/fonts/open-sans-v18-latin-700italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pfadfinder-konstanz/hugo-dpsg/HEAD/static/fonts/open-sans-v18-latin-700italic.woff2 -------------------------------------------------------------------------------- /layouts/partials/svg/category.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .TranslationBaseName '-' ' ' | title }}" 3 | description: "" 4 | date: "{{ .Date }}" 5 | thumbnail: "" 6 | categories: 7 | - "" 8 | tags: 9 | - "" 10 | --- 11 | -------------------------------------------------------------------------------- /exampleSite/content/news/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Aktuelles" 3 | page: true 4 | menu: 5 | main: 6 | name: "News" 7 | weight: 3 8 | --- 9 | 10 | Here are the most recent news from our scouts group! 11 | -------------------------------------------------------------------------------- /layouts/partials/post_toc.html: -------------------------------------------------------------------------------- 1 | {{ if .Param "toc" }} 2 |
3 |
{{ T "toc_title" }}
4 |
5 | {{ .TableOfContents }} 6 |
7 |
8 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/post_meta.html: -------------------------------------------------------------------------------- 1 | {{- $root := . -}} 2 | {{- with .Param "post_meta" -}} 3 | {{- range $field := . -}} 4 | {{- $p := printf "post_meta/%s.html" $field -}} 5 | {{- partial $p $root -}} 6 | {{- end -}} 7 | {{- end -}} -------------------------------------------------------------------------------- /layouts/partials/comments.html: -------------------------------------------------------------------------------- 1 | {{ if and .Site.Config.Services.Disqus.Shortname (index .Params "comments" | default "true") (not hugo.IsServer) }} 2 |
3 | {{ template "_internal/disqus.html" . }} 4 |
5 | {{ end }} 6 | -------------------------------------------------------------------------------- /layouts/partials/svg/author.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/svg/email.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/post_meta/author.html: -------------------------------------------------------------------------------- 1 | {{- if .Site.Params.Author.name -}} 2 |
3 | {{ partial "svg/author.svg" (dict "class" "meta__icon") -}} 4 | {{ .Site.Params.Author.name }} 5 |
6 | {{- end -}} -------------------------------------------------------------------------------- /layouts/partials/footer_links.html: -------------------------------------------------------------------------------- 1 | {{- with .Site.Menus.footer }} 2 | 8 | {{- end }} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # NPM 2 | node_modules/ 3 | npm-debug.log 4 | 5 | # IDE 6 | .idea 7 | *.sublime-project 8 | *.sublime-workspace 9 | .vscode/* 10 | 11 | # OS 12 | ._* 13 | Thumbs.db 14 | .DS_Store 15 | .Trashes 16 | .Spotlight-V100 17 | .AppleDouble 18 | .LSOverride 19 | Desktop.ini 20 | -------------------------------------------------------------------------------- /layouts/partials/svg/time.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |
4 |

{{ T "404_title" }}

5 |

{{ T "404_text" }} {{ T "404_linktext" }}.

6 |
7 |
8 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/svg/tag.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/svg/telegram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/svg/bitbucket.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/svg/files.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/svg/facebook.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/post_meta/translations.html: -------------------------------------------------------------------------------- 1 | {{- if .IsTranslated }} 2 |
3 | 4 | {{- T "meta_translations" }}: {{ range $index, $translation := .Translations }} 5 | {{- if gt $index 0 }}, {{ end -}} 6 | {{ .Lang | upper }} 7 | {{- end }} 8 | 9 |
10 | {{- end }} -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = tab 7 | end_of_line = lf 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{json,yaml,yml,toml,md,babelrc,eslintrc,postcssrc,stylelintrc}] 15 | indent_style = space 16 | indent_size = 2 17 | 18 | [layouts/**.{html,svg}] 19 | insert_final_newline = false 20 | -------------------------------------------------------------------------------- /layouts/partials/post_tags.html: -------------------------------------------------------------------------------- 1 | {{- if .Params.tags }} 2 |
3 | {{ partial "svg/tag.svg" (dict "class" "tags__badge") }} 4 | 13 |
14 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/widgets/sidemenu.html: -------------------------------------------------------------------------------- 1 | {{ if .Site.Menus.side }} 2 |
3 |

{{ T "sidemenu_title" }}

4 | 13 |
14 | {{ end }} -------------------------------------------------------------------------------- /layouts/partials/widgets/ddg-search.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/widgets/search.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /layouts/partials/svg/gitlab.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/pagination.html: -------------------------------------------------------------------------------- 1 | {{- if or (.Paginator.HasPrev) (.Paginator.HasNext) }} 2 | 13 | {{- end }} -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 | {{- with .Title }} 4 |
5 |

{{ . }}

6 |
7 | {{- end }} 8 | {{- if .Site.Params.belowTitlePartial }}{{ partial .Site.Params.belowTitlePartial . }}{{ end }} 9 | {{- with .Content }} 10 |
11 | {{ . }} 12 |
13 | {{- end }} 14 | {{- range .Paginator.Pages }} 15 | {{- .Render "summary" }} 16 | {{- end }} 17 |
18 | {{ partial "pagination.html" . }} 19 | {{ end }} 20 | -------------------------------------------------------------------------------- /layouts/partials/widgets/recent.html: -------------------------------------------------------------------------------- 1 | {{- $recent := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} 2 | {{- $recent_num := (.Site.Params.widgets.recent_num | default 10) }} 3 | 4 | {{- if $recent }} 5 |
6 |

{{ T "recent_title" }}

7 |
8 | 13 |
14 |
15 | {{- end }} 16 | -------------------------------------------------------------------------------- /layouts/partials/widgets/recent_photos.html: -------------------------------------------------------------------------------- 1 | {{- $recent := where .Site.RegularPages "Type" "in" .Site.Params.photoSections }} 2 | {{- $recent_num := (.Site.Params.widgets.recent_num | default 10) }} 3 | 4 | {{- if $recent }} 5 |
6 |

{{ T "recent_photos_title" }}

7 |
8 | 13 |
14 |
15 | {{- end }} 16 | -------------------------------------------------------------------------------- /layouts/partials/widgets/categories.html: -------------------------------------------------------------------------------- 1 | {{- $categories := .Site.Taxonomies.categories }} 2 | {{- if gt (len $categories) 0 }} 3 |
4 |

{{ T "categories_title" }}

5 |
6 | 15 |
16 |
17 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/widgets/taglist.html: -------------------------------------------------------------------------------- 1 | {{- $tags := .Site.Taxonomies.tags }} 2 | {{- if gt (len $tags) 0 }} 3 |
4 |

{{ T "tags_title" }}

5 |
6 | {{- range $name, $taxonomy := $tags }} 7 | {{- with $.Site.GetPage (printf "/tags/%s" $name) }} 8 | 9 | {{- .Title -}}{{- if .Site.Params.widgets.tags_counter }} ({{ $taxonomy.Count }}){{ end -}} 10 | 11 | {{- end }} 12 | {{- end }} 13 |
14 |
15 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/svg/linkedin.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/widgets/recent_photos_tags.html: -------------------------------------------------------------------------------- 1 | {{- $recent := .Site.RegularPages.RelatedTo ( keyVals "tags" .Site.Params.photoTag) }} 2 | {{- $recent_num := (.Site.Params.widgets.recent_num | default 10) }} 3 | 4 | {{- if $recent }} 5 |
6 |

{{ T "recent_photos_title" }}

7 |
8 | 13 |
14 |
15 | {{- end }} 16 | -------------------------------------------------------------------------------- /layouts/partials/post_meta/date.html: -------------------------------------------------------------------------------- 1 | {{- if not .Date.IsZero }} 2 |
3 | {{ partial "svg/time.svg" (dict "class" "meta__icon") -}} 4 | 7 | {{- if ne .Date .Lastmod }} 8 | 11 | {{- end -}} 12 |
13 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/post_meta/categories.html: -------------------------------------------------------------------------------- 1 | {{- $taxo := "categories" -}} 2 | {{- with .Param $taxo -}} 3 |
4 | {{- partial "svg/category.svg" (dict "class" "meta__icon") -}} 5 | 6 | {{- range $index, $category := . }} 7 | {{- $url := urls.Parse ($category | urlize) -}} 8 | {{- $path := $url.Path -}} 9 | {{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }} 10 | {{- if gt $index 0 }}, {{ end -}} 11 | {{ .Title }} 12 | {{- end }} 13 | {{- end }} 14 | 15 |
16 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/svg/twitter.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- 1 | name: Build project with Hugo 2 | on: 3 | push: 4 | branches: 5 | - main 6 | pull_request: 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | defaults: 12 | run: 13 | working-directory: ./exampleSite 14 | steps: 15 | - uses: actions/checkout@v4 16 | with: 17 | submodules: true # Fetch Hugo themes (true OR recursive) 18 | fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod 19 | 20 | - name: Setup Hugo 21 | uses: peaceiris/actions-hugo@v3 22 | with: 23 | hugo-version: "latest" 24 | extended: true 25 | 26 | - name: Build 27 | run: | 28 | hugo 29 | -------------------------------------------------------------------------------- /layouts/partials/svg/instagram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/svg/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/widgets/languages.html: -------------------------------------------------------------------------------- 1 | {{- $translations := .Site.Home.AllTranslations }} 2 | {{- if and hugo.IsMultilingual (gt (len $translations) 0) }} 3 |
4 |

{{ T "languages_title" }}

5 |
6 | 18 |
19 |
20 | {{- end }} 21 | -------------------------------------------------------------------------------- /static/js/menu.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | (function iifeMenu(document, window, undefined) { 4 | var menuBtn = document.querySelector('.menu__btn'); 5 | var menu = document.querySelector('.menu__list'); 6 | 7 | function toggleMenu() { 8 | menu.classList.toggle('menu__list--active'); 9 | menu.classList.toggle('menu__list--transition'); 10 | this.classList.toggle('menu__btn--active'); 11 | this.setAttribute( 12 | 'aria-expanded', 13 | this.getAttribute('aria-expanded') === 'true' ? 'false' : 'true' 14 | ); 15 | } 16 | 17 | function removeMenuTransition() { 18 | this.classList.remove('menu__list--transition'); 19 | } 20 | 21 | if (menuBtn && menu) { 22 | menuBtn.addEventListener('click', toggleMenu, false); 23 | menu.addEventListener('transitionend', removeMenuTransition, false); 24 | } 25 | }(document, window)); 26 | -------------------------------------------------------------------------------- /layouts/partials/menu.html: -------------------------------------------------------------------------------- 1 | {{- if .Site.Menus.main }} 2 | 23 | {{ else -}} 24 |
25 | {{- end }} 26 | -------------------------------------------------------------------------------- /layouts/partials/sidebar.html: -------------------------------------------------------------------------------- 1 | {{- $sidebar := false }} 2 | {{- if eq .Kind "home" -}} 3 | {{ $sidebar = (default .Site.Params.sidebar.home .Params.sidebar) }} 4 | {{- else if eq .Kind "page" -}} 5 | {{ $sidebar = (default .Site.Params.sidebar.single .Params.sidebar) }} 6 | {{- else -}} 7 | {{ $sidebar = (default .Site.Params.sidebar.list .Params.sidebar) }} 8 | {{ end }} 9 | 10 | {{- if $sidebar -}} 11 | 22 | {{- end }} -------------------------------------------------------------------------------- /layouts/partials/pager.html: -------------------------------------------------------------------------------- 1 | {{- if and (.Param "pager") (not (.Param "page")) }} 2 | {{- if or (.PrevInSection) (.NextInSection) }} 3 | 21 | {{- end }} 22 | {{- end }} 23 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "DPSG" 2 | license = "GPL-2.0-only" 3 | licenselink = "https://github.com/pfadfinder-konstanz/hugo-dpsg/blob/main/LICENSE.md" 4 | description = " Hugo theme based on the DPSG theme for German scout websites. Forked from the Mainroad theme " 5 | homepage = "https://github.com/pfadfinder-konstanz/hugo-dpsg/" 6 | demosite = "https://pfadfinder-konstanz.github.io/hugo-dpsg/" 7 | tags = ["blog", "responsive", "customizable", "widgets", "rss"] 8 | features = ["blog", "responsive", "widgets", "rss", "wordpress"] 9 | min_version = "0.132" 10 | 11 | # If the theme has multiple authors 12 | authors = [ 13 | {name = "Max Mehl", homepage = "https://mehl.mx"}, 14 | {name = "Vimux", homepage = "https://github.com/vimux"} 15 | ] 16 | 17 | # If porting an existing theme 18 | [original] 19 | name = "DPSG Wordpress Theme" 20 | homepage = "https://dpsg.de/de/leitende-mitarbeitende/oeffentlichkeitsarbeit/logos-material-vorlagen/wordpress-theme" 21 | -------------------------------------------------------------------------------- /layouts/partials/authorbox.html: -------------------------------------------------------------------------------- 1 | {{- if .Param "authorbox" }} 2 |
3 | {{- if and (not .Site.Params.Author.avatar) (not .Site.Params.Author.name) (not .Site.Params.Author.bio) }} 4 |

5 | WARNING: Authorbox is activated, but [Author] parameters are not specified. 6 |

7 | {{- end }} 8 | {{- with .Site.Params.Author.avatar }} 9 |
10 | {{ $.Site.Params.Author.name }} avatar 11 |
12 | {{- end }} 13 | {{- with .Site.Params.Author.name }} 14 |
15 | {{ T "authorbox_name" (dict "Name" .) }} 16 |
17 | {{- end }} 18 | {{- with .Site.Params.Author.bio }} 19 |
20 | {{ . | markdownify }} 21 |
22 | {{- end }} 23 |
24 | {{- end }} -------------------------------------------------------------------------------- /layouts/sitemap.xml: -------------------------------------------------------------------------------- 1 | 3 | {{- range .Data.Pages -}} 4 | {{ if ne .Params.sitemap_hide true }} 5 | 6 | {{ .Permalink }}{{ if not .Lastmod.IsZero }} 7 | {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} 8 | {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} 9 | {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} 10 | {{ end }} 15 | {{ end }} 20 | 21 | {{ end }} 22 | {{- end -}} 23 | 24 | -------------------------------------------------------------------------------- /layouts/_default/summary.html: -------------------------------------------------------------------------------- 1 |
2 | {{- if .Params.thumbnail }} 3 |
4 | 5 | {{ .Title }} 6 | 7 |
8 | {{- end }} 9 |
10 |

11 | 12 | {{ .Title }} 13 | 14 |

15 | {{- with .Params.lead }} 16 |

{{ . }}

17 | {{- end }} 18 | {{ with partial "post_meta.html" . -}} 19 |
{{ . }}
20 | {{- end }} 21 |
22 | {{- if eq .Params.summary "" }} 23 | {{- else }} 24 |
25 | {{ .Summary }} 26 |
27 | {{- end }} 28 | {{- if .Site.Params.readmore }} 29 | {{- if or (.Truncated) (not (eq .Params.summary "")) }} 30 | 33 | {{- end }} 34 | {{- end }} 35 |
36 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |
4 |
5 |

{{ .Title }}

6 | {{- with .Params.lead }} 7 |

{{ . }}

8 | {{- end }} 9 | {{ with partial "post_meta.html" . -}} 10 | 11 | {{- end }} 12 |
13 | {{- if .Site.Params.belowTitlePartial }}{{ partial .Site.Params.belowTitlePartial . }}{{ end }} 14 | {{- if and (.Params.thumbnail) (not .Params.thumbnail_hide_post) }} 15 |
16 | {{ .Title }} 17 |
18 | {{- end }} 19 | {{- partial "post_toc.html" . -}} 20 |
21 | {{ .Content }} 22 |
23 | {{- if .Params.tags }} 24 | 27 | {{- end }} 28 |
29 |
30 | {{ partial "authorbox.html" . }} 31 | {{ partial "pager.html" . }} 32 | {{ partial "comments.html" . }} 33 | {{ end }} 34 | -------------------------------------------------------------------------------- /layouts/partials/logo.html: -------------------------------------------------------------------------------- 1 | {{- $logoTitle := .Site.Params.logo.title | default .Site.Title -}} 2 | {{- $logoSubtitle := .Site.Params.logo.subtitle | default .Site.Params.subtitle -}} 3 | {{- $logoImage := .Site.Params.logo.image -}} 4 | {{- $logoAlt := .Site.Params.logo.image_alt -}} 5 | 6 | {{- if or $logoTitle $logoImage }} 7 | {{/* Defined when logo is mixed (image + text) */}} 8 | {{- $logoMix := and $logoImage $logoTitle -}} 9 | 10 |
11 |
12 | 13 | {{ with $logoImage -}} 14 |
15 | {{ . }} 16 |
17 | {{- end -}} 18 | {{ with $logoTitle -}} 19 |
20 |
{{ . }}
21 | {{ with $logoSubtitle }}
{{ . }}
{{ end }} 22 |
23 | {{- end }} 24 |
25 |
26 |
27 | {{- end }} 28 | -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 | {{- with .Title }} 4 |
5 |

{{ . }}

6 |
7 | {{- end }} 8 | {{- if .Site.Params.belowTitlePartial }}{{ partial .Site.Params.belowTitlePartial . }}{{ end }} 9 | {{- with .Content }} 10 |
11 | {{ . }} 12 |
13 | {{- end }} 14 | {{- if .Site.Params.indexPager -}} 15 | {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} 16 | {{- range $paginator.Pages }} 17 | {{- .Render "summary" }} 18 | {{- end }} 19 | {{- if and (eq $paginator.TotalNumberOfElements 0) (not $.Content) }} 20 |
21 | {{ partial "svg/files.svg" (dict "class" "warning__icon") }} 22 |

{{ T "noposts_warning_title" | safeHTML }}

23 |
24 |

{{ T "noposts_warning_description" | safeHTML }}

25 |

{{ T "noposts_warning_tip" | safeHTML }}

26 |
27 |
28 | {{- end }} 29 | {{ partial "pagination.html" . }} 30 | {{- end }} 31 |
32 | {{ end }} 33 | -------------------------------------------------------------------------------- /exampleSite/content/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Our local scout group" 3 | menu: 4 | main: 5 | name: "Home" 6 | weight: 1 7 | --- 8 | 9 | This is the index page. 10 | 11 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. 12 | 13 | In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. 14 | 15 | Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc. 16 | -------------------------------------------------------------------------------- /.github/workflows/deploy.yaml: -------------------------------------------------------------------------------- 1 | # Simple workflow for deploying static content to GitHub Pages 2 | name: Deploy static content to Pages 3 | 4 | on: 5 | # Runs on pushes targeting the default branch 6 | push: 7 | branches: 8 | - main 9 | 10 | # Allows you to run this workflow manually from the Actions tab 11 | workflow_dispatch: 12 | 13 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 14 | permissions: 15 | contents: read 16 | pages: write 17 | id-token: write 18 | 19 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 20 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 21 | concurrency: 22 | group: "pages" 23 | cancel-in-progress: false 24 | 25 | jobs: 26 | # Single deploy job since we're just deploying 27 | deploy: 28 | environment: 29 | name: github-pages 30 | url: ${{ steps.deployment.outputs.page_url }} 31 | runs-on: ubuntu-latest 32 | steps: 33 | - name: Checkout 34 | uses: actions/checkout@v4 35 | with: 36 | submodules: true # Fetch Hugo themes (true OR recursive) 37 | fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod 38 | # Build the site 39 | - name: Setup Hugo 40 | uses: peaceiris/actions-hugo@v3 41 | with: 42 | hugo-version: "latest" 43 | extended: true 44 | - name: Build 45 | run: hugo 46 | # run in the exampleSite directory 47 | working-directory: ./exampleSite 48 | # Prepare GH Pages 49 | - name: Setup Pages 50 | uses: actions/configure-pages@v5 51 | # Upload built example site to GH Pages 52 | - name: Upload artifact 53 | uses: actions/upload-pages-artifact@v3 54 | with: 55 | path: "./exampleSite/public" 56 | - name: Deploy to GitHub Pages 57 | id: deployment 58 | uses: actions/deploy-pages@v4 59 | -------------------------------------------------------------------------------- /exampleSite/content/configured-page.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Configured page 3 | slug: configured-page-custom-slug 4 | date: 2014-04-09 5 | authorbox: false 6 | sidebar: false 7 | toc: false 8 | menu: 9 | main: 10 | weight: 50 11 | --- 12 | 13 | This page does not contain: 14 | * sidebar 15 | * authorbox 16 | * table of content 17 | 18 | So it's very different from e.g. [this page]({{% relref "/news/basic-elements" %}}). Find all front-matter possibilities inside the theme's `README.md`. 19 | 20 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 21 | 22 | Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. 23 | 24 | Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. 25 | -------------------------------------------------------------------------------- /i18n/zh-cn.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "阅读全文…" 4 | 5 | - id: menu_label 6 | translation: "菜单" 7 | 8 | - id: sidemenu_title 9 | translation: "菜单" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "最后修改" 14 | 15 | - id: meta_translations 16 | translation: "翻译" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "目录" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "上一篇" 25 | 26 | - id: post_nav_next 27 | translation: "下一篇" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "关于 {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "警告" 36 | 37 | - id: sidebar_recommendation 38 | translation: "请至少选择一个侧边栏组件" 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "搜索..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "语言" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "分类" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "近期文章" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "社交" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "标签" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: "基于 Hugo 引擎和 \ 67 | DPSG主題" 68 | 69 | # 404 70 | - id: 404_title 71 | translation: "404. 抱歉,找不到您要找的页面" 72 | 73 | - id: 404_text 74 | translation: "您要找的页面可能已经被移除、刪除或不存在,不妨去首页搜索一下吧。" 75 | 76 | - id: 404_linktext 77 | translation: "回到首页" 78 | 79 | # No posts empty state 80 | - id: noposts_warning_title 81 | translation: "目前还没有任何内容!" 82 | 83 | - id: noposts_warning_description 84 | translation: 85 | "在 content 目录下的任意文件夹(板块)中发布内容后,它就会显示在这里。\ 86 | 只有一个板块的内容(默认文章最多的文件夹)会显示在主页面上" 87 | 88 | - id: noposts_warning_tip 89 | translation: 90 | "提示: 您可以通过 \ 91 | mainSections \ 92 | 参数来控制展示您想要展示的板块内容。" 93 | -------------------------------------------------------------------------------- /i18n/zh-tw.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "閱讀全文…" 4 | 5 | - id: menu_label 6 | translation: "選單" 7 | 8 | - id: sidemenu_title 9 | translation: "選單" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "最後修改" 14 | 15 | - id: meta_translations 16 | translation: "翻譯" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "內文" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "前一則" 25 | 26 | - id: post_nav_next 27 | translation: "下一則" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "關於 {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "警告" 36 | 37 | - id: sidebar_recommendation 38 | translation: "請至少選擇一個側邊欄元件" 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "搜尋..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "語言" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "分類" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "近期文章" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "社群" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "標籤" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "使用 Hugo 技術與 \ 68 | DPSG主題" 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. 糟糕!我們似乎無法找到您要找的頁面。" 73 | 74 | - id: 404_text 75 | translation: "您要找的頁面可能已經被移除、刪除或是不存在。請回到首頁或是使用搜尋功能。" 76 | 77 | - id: 404_linktext 78 | translation: "回到首頁" 79 | 80 | # No posts empty state 81 | - id: noposts_warning_title 82 | translation: "目前還沒有任何内容!" 83 | 84 | - id: noposts_warning_description 85 | translation: 86 | "在 content 目錄下的任意資料夾(區塊)中發布内容後,就會被顯示在此處。\ 87 | 其中只有一個區塊的内容(預設是擁有文章數量最多的資料夾)會被顯示在主要頁面上" 88 | 89 | - id: noposts_warning_tip 90 | translation: 91 | "提示: 您可以透過 \ 92 | mainSections \ 93 | 參數來控制所要展示的區塊內容。" 94 | -------------------------------------------------------------------------------- /i18n/ja.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "続きを読む…" 4 | 5 | - id: menu_label 6 | translation: "メニュー" 7 | 8 | - id: sidemenu_title 9 | translation: "メニュー" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "最終更新" 14 | 15 | - id: meta_translations 16 | translation: "翻訳" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "目次" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "前の投稿" 25 | 26 | - id: post_nav_next 27 | translation: "次の投稿" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "{{ .Name }}について" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "警告" 36 | 37 | - id: sidebar_recommendation 38 | translation: "1つ以上のサイドバーウィジェットを有効にしてください。" 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "検索..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "言語" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "カテゴリー" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "最近の投稿" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "ソーシャル" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "タグ" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "このサイトは Hugo と \ 68 | DPSG \ 69 | テーマで生成されています。" 70 | 71 | # 404 72 | - id: 404_title 73 | translation: "404. ページが見つかりません" 74 | 75 | - id: 404_text 76 | translation: 77 | "お探しのページは移動されたか削除された、もしくは存在しないようです。検索するか、こちらのページに移動してください: " 78 | 79 | - id: 404_linktext 80 | translation: "メインページ" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "まだ何も投稿していません!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "content 以下のどこかのディレクトリに投稿を追加するとここに表示されます。デフォルトでは(最も投稿の多い)1つのセクション \ 89 | だけがメインページに表示されます。" 90 | 91 | - id: noposts_warning_tip 92 | translation: 93 | "ヒント: 設定のパラメーター \ 94 | mainSections \ 95 | を使って好きな数だけセクションを表示させることもできます。" 96 | -------------------------------------------------------------------------------- /i18n/nl.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Meer lezen…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Laatst gewijzigd" 14 | 15 | - id: meta_translations 16 | translation: "Vertalingen" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Inhoud" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Vorige" 25 | 26 | - id: post_nav_next 27 | translation: "Volgende" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Over {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "WAARSCHUWING" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Activeer minstens één sidebar widget." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "ZOEKEN..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Talen" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Categorieën" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Recente posts" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Social" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Tags" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Gegenereerd met Hugo en het \ 68 | DPSG theme." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Pagina niet gevonden" 73 | 74 | - id: 404_text 75 | translation: "De pagina is mogelijk verplaatst, verwijderd of bestaat niet. Gebruik de zoekfunctie of \"ga naar\"" 76 | 77 | - id: 404_linktext 78 | translation: "hoofdpagina" 79 | 80 | # No posts empty state 81 | - id: noposts_warning_title 82 | translation: "Er zijn nog geen posts!" 83 | 84 | - id: noposts_warning_description 85 | translation: 86 | "Zodra je iets post in welke map (sectie) dan ook onder de content directory, zal het hier verschijnen. \ 87 | Slechts één sectie (met de meeste posts) zal standaard getoond worden op de hoofdpagina." 88 | 89 | - id: noposts_warning_tip 90 | translation: 91 | "Tip: Je kunt zoveel secties laten zien als je wilt met de \ 92 | mainSections \ 93 | config parameter." 94 | -------------------------------------------------------------------------------- /i18n/es.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Leer más" 4 | 5 | - id: menu_label 6 | translation: "Menú" 7 | 8 | - id: sidemenu_title 9 | translation: "Menú" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Última modificación" 14 | 15 | - id: meta_translations 16 | translation: "Traducciones" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Índice" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Anterior" 25 | 26 | - id: post_nav_next 27 | translation: "Siguiente" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Sobre el autor {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "Atención" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Activa al menos un widget en la barra lateral." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "Buscar..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Idiomas" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Categorías" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Más Recientes" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Social" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Etiquetas" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Generado con Hugo y \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Página no encontrada" 73 | 74 | - id: 404_text 75 | translation: "La página que estás buscando no aparece, no existe o se ha movido a otro lugar." 76 | 77 | - id: 404_linktext 78 | translation: "Página principal" 79 | 80 | # No posts empty state 81 | - id: noposts_warning_title 82 | translation: "¡Todavía no hay publicaciones!" 83 | 84 | - id: noposts_warning_description 85 | translation: 86 | "Una vez que publiques algo en cualquier carpeta (sección) dentro del directorio content, se verá aquí. \ 87 | Sólo una sección (la que tenga más publicaciones) se mostrará por defecto en la página principal." 88 | 89 | - id: noposts_warning_tip 90 | translation: 91 | "Aviso: Puedes mostrar tantas secciones como gustes con el parámetro de configuración \ 92 | mainSections." 93 | -------------------------------------------------------------------------------- /i18n/vi.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Đọc tiếp…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Cập nhật lần cuối" 14 | 15 | - id: meta_translations 16 | translation: "Bản dịch" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Mục lục" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Trước" 25 | 26 | - id: post_nav_next 27 | translation: "Sau" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Về {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "CÁNH BÁO" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Vui lòng tạo hoặc kích hoạt tối thiểu một thành phần trong thanh bên." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "TÌM KIẾM..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Ngôn ngữ" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Chủ đề" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Bài viết gần đây" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Xã hội" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Thẻ" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Được tạo từ Hugo sử dụng với \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Không tìm thấy trang này" 73 | 74 | - id: 404_text 75 | translation: 76 | "Trang bạn đang tìm kiếm đã bị xoá hoặc không tồn tại. Vui lòng sử dụng chức năng tìm kiếm" 77 | 78 | - id: 404_linktext 79 | translation: "trang chủ" 80 | 81 | # No posts empty state 82 | - id: noposts_warning_title 83 | translation: "Bạn chưa có bài viết nào!" 84 | 85 | - id: noposts_warning_description 86 | translation: 87 | "Khi bạn xuất bản bất kì bài viết nào trong bất kì thư mục nào trong thư mục content, nó sẽ xuất hiện tại đây.\ 88 | Mặc định chỉ một phần của bài viết sẽ được xuất hiện trong trang chủ cho hầu hết các bài viết." 89 | 90 | - id: noposts_warning_tip 91 | translation: 92 | "Gợi ý: Bạn có thể hiện bao nhiêu phần tuỳ ý bằng tham số parameter \ 93 | mainSections." 94 | -------------------------------------------------------------------------------- /i18n/mk.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Читај повеќе…" 4 | 5 | - id: menu_label 6 | translation: "Мени" 7 | 8 | - id: sidemenu_title 9 | translation: "Мени" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Последна промена" 14 | 15 | - id: meta_translations 16 | translation: "Преводи" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Содржина" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Претходна" 25 | 26 | - id: post_nav_next 27 | translation: "Следна" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "За {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "ВНИМАНИЕ" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Ве молам, активирајте најмалку еден страничен елемент." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "Пребарувај..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Јазици" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Категории" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Скорешни написи" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Социјални" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Ознаки" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Направено со Hugo и тема \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Страницата не е најдена" 73 | 74 | - id: 404_text 75 | translation: 76 | "Страницата која ја баравте личи дека е поместена, избришана или не постои. Ве молам, користите го полето Барај \ 77 | или Оди" 78 | 79 | - id: 404_linktext 80 | translation: "главна страница" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "Сѐ уште немате написи!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "Штом објавите напис во било кој директориум (секција) под директориумот content, тој ќе се појави тука. \ 89 | Предефинирано само една секција (со најмногу написи) ќе се прикаже на главната страница." 90 | 91 | - id: noposts_warning_tip 92 | translation: 93 | "Препорака: Може да прикажете колку сакате секции со конфигурацискиот параметар \ 94 | mainSections." 95 | -------------------------------------------------------------------------------- /i18n/cs.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Číst více…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Naposledy upraveno" 14 | 15 | - id: meta_translations 16 | translation: "Překlady" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Obsah stránky" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Předchozí" 25 | 26 | - id: post_nav_next 27 | translation: "Následující" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "O {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "POZOR" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Prosím aktivujte aspoň jeden widget postranní lišty." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "Hledat..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Jazyky" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Kategorie" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Poslední příspěvky" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Sociální sítě" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Štítky" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Vytvořeno pomocí Hugo a tématu \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Stránka nebyla nalezena" 73 | 74 | - id: 404_text 75 | translation: 76 | "Požadovaná stránka neexistuje, nebo byla přesunuta či smazána. Využijte, prosím, vyhledávání, nebo pokračujte na" 77 | 78 | - id: 404_linktext 79 | translation: "hlavní stránka" 80 | 81 | # No posts empty state 82 | - id: noposts_warning_title 83 | translation: "Zatím nemáte žádné příspěvky!" 84 | 85 | - id: noposts_warning_description 86 | translation: 87 | "Jakmile vytvoříte příspěvek v libovolném podadresáři (sekci) adresáře content, objeví se zde. Ve výchozím \ 88 | nastavení je na hlavní stránce zobrazena pouze jedna sekce (s největším množstvím příspěvků)." 89 | 90 | - id: noposts_warning_tip 91 | translation: 92 | "Tip: Pomocí parametru \ 93 | mainSections \ 94 | můžete zobrazit libovolný počet sekcí." 95 | -------------------------------------------------------------------------------- /i18n/pt.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Leia mais…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Última modificação" 14 | 15 | - id: meta_translations 16 | translation: "Traduções" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Conteúdo da página" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Anterior" 25 | 26 | - id: post_nav_next 27 | translation: "Próximo" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Sobre {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "ATENÇÃO" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Ative pelo menos um widget da barra lateral." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "BUSCAR..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Línguas" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Categorias" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Postagens recentes" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Social" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Tags" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Gerado com Hugo com o tema \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Página não encontrada" 73 | 74 | - id: 404_text 75 | translation: 76 | "A página que você estava procurando parece ter sido excluída ou não existe. Por favor, use a pesquisa ou vá para" 77 | 78 | - id: 404_linktext 79 | translation: "página principal" 80 | 81 | # No posts empty state 82 | - id: noposts_warning_title 83 | translation: "Você ainda não tem nenhuma postagem!" 84 | 85 | - id: noposts_warning_description 86 | translation: 87 | "Quando você criar uma postagem em qualquer pasta (seção) dentro do diretório content, ele vai aparecer aqui. \ 88 | Apenas uma seção (a que conter mais postagens) será exibida na página principal por padrão." 89 | 90 | - id: noposts_warning_tip 91 | translation: 92 | "Dica: Você pode mostrar quantas seções você quiser com o parâmetro de configuração \ 93 | mainSections." 94 | -------------------------------------------------------------------------------- /i18n/pt-br.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Leia mais…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Última modificação" 14 | 15 | - id: meta_translations 16 | translation: "Traduções" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Conteúdo da página" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Anterior" 25 | 26 | - id: post_nav_next 27 | translation: "Próximo" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Sobre {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "ATENÇÃO" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Ative pelo menos um widget da barra lateral." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "BUSCAR..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Línguas" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Categorias" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Postagens recentes" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Social" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Tags" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Gerado com Hugo com o tema \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Página não encontrada" 73 | 74 | - id: 404_text 75 | translation: 76 | "A página que você estava procurando parece ter sido excluída ou não existe. Por favor, use a pesquisa ou vá para" 77 | 78 | - id: 404_linktext 79 | translation: "página principal" 80 | 81 | # No posts empty state 82 | - id: noposts_warning_title 83 | translation: "Você ainda não tem nenhuma postagem!" 84 | 85 | - id: noposts_warning_description 86 | translation: 87 | "Quando você criar uma postagem em qualquer pasta (seção) dentro do diretório content, ele vai aparecer aqui. \ 88 | Apenas uma seção (a que conter mais postagens) será exibida na página principal por padrão." 89 | 90 | - id: noposts_warning_tip 91 | translation: 92 | "Dica: Você pode mostrar quantas seções você quiser com o parâmetro de configuração \ 93 | mainSections." 94 | -------------------------------------------------------------------------------- /i18n/hu.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Tovább olvas…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Utoljára módosítva" 14 | 15 | - id: meta_translations 16 | translation: "Fordítások" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Az oldal tartalma" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Előző" 25 | 26 | - id: post_nav_next 27 | translation: "Következő" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "A {{ .Name }} -ról" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "FIGYELMEZTETÉS" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Kérjük, aktiváljon legalább egy oldalsáv-modult." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "KERES..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Nyelvek" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Kategóriák" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Legutóbbi bejegyzések" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Közösség" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Cimkék" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Létrehozva Hugo és \ 68 | DPSG témával." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Az oldal nem található" 73 | 74 | - id: 404_text 75 | translation: 76 | "Úgy tűnik, hogy a kívánt oldalt áthelyezték, törölték vagy nem létezik. Kérjük, használja a keresést, vagy lépjen \ 77 | ide" 78 | 79 | - id: 404_linktext 80 | translation: "főoldal" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "Még nincs bejegyzésed!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "Ha valamit a content könyvtár alatti mappába (szakaszba) közzéteszel, az itt jelenik meg. Csak egy szakasz \ 89 | (a legtöbb hozzászólással) jelenik meg a főoldalon alapértelmezés szerint." 90 | 91 | - id: noposts_warning_tip 92 | translation: 93 | "Tipp: Megjeleníthet annyi szakaszt, amennyit csak akar a \ 94 | mainSections \ 95 | konfigurációs paraméterrel." 96 | -------------------------------------------------------------------------------- /i18n/it.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Continua a leggere…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Ultima modifica" 14 | 15 | - id: meta_translations 16 | translation: "Traduzioni" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Indice" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Precedente" 25 | 26 | - id: post_nav_next 27 | translation: "Prossimo" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Riguardo {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "ATTENZIONE" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Si prega di attivare almeno un widget della barra laterale." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "CERCA..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Lingue" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Categorie" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Post recenti" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Social" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Tag" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Generato con Hugo e il tema \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Pagina non trovata" 73 | 74 | - id: 404_text 75 | translation: 76 | "La pagina che stai cercando sembra essere stata spostata, rimossa o non esiste. Si prega di usare la ricerca o \ 77 | andare alla" 78 | 79 | - id: 404_linktext 80 | translation: "pagina principale" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "Non hai ancora nessun post!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "Una volta pubblicato qualcosa in una qualsiasi cartella (sezione) dentro la directory content, apparirà \ 89 | qui. Solo una sezione (quella con più post) verrà mostrata in modo predefinito nella pagina principale." 90 | 91 | - id: noposts_warning_tip 92 | translation: 93 | "Suggerimento: Puoi mostrare quante sezioni vuoi con il parametro \ 94 | mainSections." 95 | -------------------------------------------------------------------------------- /i18n/fr.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Lire la suite…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Dernière modification" 14 | 15 | - id: meta_translations 16 | translation: "Traductions" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Sommaire" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Précédent" 25 | 26 | - id: post_nav_next 27 | translation: "Suivant" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "À propos {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "Attention" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Activez au moins un widget pour la barre latérale." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "Rechercher..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Langues" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Catégories" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Articles récents" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Social" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Mots-clefs" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Produit par Hugo et le thème \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Page introuvable." 73 | 74 | - id: 404_text 75 | translation: "La page que vous recherchez a apparemment été supprimée, déplacée, ou n'existe pas." 76 | 77 | - id: 404_linktext 78 | translation: "Accueil" 79 | 80 | # No posts empty state 81 | - id: noposts_warning_title 82 | translation: "Vous n'avez pas encore de posts!" 83 | 84 | - id: noposts_warning_description 85 | translation: 86 | "Une fois que vous avez publié quelque chose dans n'importe quel sous-dossier (section) du dossier content, \ 87 | ça apparaîtra ici. par défaut, une seule section (Celle avec le plus de posts) sera affichée sur la page \ 88 | principale." 89 | 90 | - id: noposts_warning_tip 91 | translation: 92 | "Astuce: Vous pouvez afficher autant de sections que vous voulez avec le paramètre de configuration \ 93 | mainSections." 94 | -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{ block "title" . }}{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}{{ end }} 8 | 9 | 10 | {{- if .Site.Params.opengraph }} 11 | {{ if and (not .Params.images) (.Params.thumbnail) }}{{ end }} 12 | {{ template "_internal/opengraph.html" . }} 13 | {{- end }} 14 | {{- if .Site.Params.schema }} 15 | {{ template "_internal/schema.html" . }} 16 | {{- end }} 17 | {{- if .Site.Params.twitter_cards }} 18 | {{ if and (not .Params.images) (.Params.thumbnail) }}{{ end }} 19 | {{ template "_internal/twitter_cards.html" . }} 20 | {{- end }} 21 | 22 | {{ $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}} 23 | 24 | {{- range .Site.Params.customCSS }} 25 | 26 | {{- end }} 27 | {{- range .Params.customCSS }} 28 | 29 | {{- end }} 30 | 31 | {{- with .OutputFormats.Get "rss" }} 32 | {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} 33 | {{- end }} 34 | 35 | {{ partial "favicon" . }} 36 | {{ partial "perpagehead" . }} 37 | {{- if not hugo.IsServer }} 38 | {{ template "_internal/google_analytics.html" . }} 39 | {{- end }} 40 | 41 | 42 | {{ partial "header" . }} 43 |
44 |
45 | {{ block "main" . }} 46 | {{ with .Content }} 47 |
48 | {{ . }} 49 |
50 | {{ end }} 51 | {{ end }} 52 |
53 | {{ partial "sidebar.html" . }} 54 |
55 | {{ partial "footer" . }} 56 | 57 | {{ range .Site.Params.customJS -}} 58 | 59 | {{- end }} 60 | {{ if .Site.Params.customPartial }}{{ partial .Site.Params.customPartial . }}{{ end }} 61 | {{ partial "perpagebody" . }} 62 | 63 | 64 | -------------------------------------------------------------------------------- /i18n/bg.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Чети нататък…" 4 | 5 | - id: menu_label 6 | translation: "Меню" 7 | 8 | - id: sidemenu_title 9 | translation: "Меню" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Последна промяна" 14 | 15 | - id: meta_translations 16 | translation: "Преводи" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Съдържание" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Предишна" 25 | 26 | - id: post_nav_next 27 | translation: "Следваща" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "За {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "ПРЕДУПРЕЖДЕНИЕ" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Моля, активирай поне един блок в страничния панел." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "ТЪРСЕНЕ..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Езици" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Категории" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Последни писания" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Социални" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Тагове" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Генерирано с Hugo и тема \ 68 | DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Страницата не е намерена" 73 | 74 | - id: 404_text 75 | translation: 76 | "Страницата, която търсите, изглежда е била преместена, изтрита, или не съществува. Моля, използвайте полето за \ 77 | търсене или отидете на" 78 | 79 | - id: 404_linktext 80 | translation: "главна страница" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "Все още нямаш никакви писания!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "След като запишеш нещо в коя да е поддиректория (секция) на директория content, то ще се появи тук. По \ 89 | подразбиране само една секция (с най-многото писания) ще се показва на главната страница." 90 | 91 | - id: noposts_warning_tip 92 | translation: 93 | "Tip: Можеш да покажеш колкото искаш на брой секции, като ги укажеш в конфигурационния параметър \ 94 | mainSections." 95 | -------------------------------------------------------------------------------- /i18n/en.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Read more…" 4 | 5 | - id: menu_label 6 | translation: "Menu" 7 | 8 | - id: sidemenu_title 9 | translation: "Menu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Last Modified" 14 | 15 | - id: meta_translations 16 | translation: "Translations" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Page content" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Previous" 25 | 26 | - id: post_nav_next 27 | translation: "Next" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "About {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "WARNING" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Please activate at least one sidebar widget." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "SEARCH..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Languages" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Categories" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Recent Posts" 55 | 56 | # Recent Photos widget 57 | - id: recent_photos_title 58 | translation: "Recent Photos" 59 | 60 | # Social widget 61 | - id: social_title 62 | translation: "Social" 63 | 64 | # Tags List widget 65 | - id: tags_title 66 | translation: "Tags" 67 | 68 | # Footer 69 | - id: footer_credits 70 | translation: 71 | "Generated with Hugo and \ 72 | DPSG theme." 73 | 74 | # 404 75 | - id: 404_title 76 | translation: "404. Page not found" 77 | 78 | - id: 404_text 79 | translation: 80 | "The page you were looking for appears to have been moved, deleted or does not exist. Please, use search or go to" 81 | 82 | - id: 404_linktext 83 | translation: "main page" 84 | 85 | # No posts empty state 86 | - id: noposts_warning_title 87 | translation: "You don't have any posts yet!" 88 | 89 | - id: noposts_warning_description 90 | translation: 91 | "Once you post something in any folder (section) under the content directory, it will appear here. Only one \ 92 | section (with the most posts) will be displayed on the main page by default." 93 | 94 | - id: noposts_warning_tip 95 | translation: 96 | "Tip: You can show as many sections as you like with \ 97 | mainSections \ 98 | config parameter." 99 | -------------------------------------------------------------------------------- /i18n/uk.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Читати далі…" 4 | 5 | - id: menu_label 6 | translation: "Меню" 7 | 8 | - id: sidemenu_title 9 | translation: "Меню" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Останні зміни" 14 | 15 | - id: meta_translations 16 | translation: "Переклади" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Вміст сторінки" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Назад" 25 | 26 | - id: post_nav_next 27 | translation: "Далі" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Про автора {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "УВАГА" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Будь ласка, активуйте принаймні один віджет на боковій панелі." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "ПОШУК..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Мови" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Категорії" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Нещодавні публікації" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Соціальні мережі" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Теги" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Створено за допомогою Hugo \ 68 | і теми DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Сторінку не знайдено" 73 | 74 | - id: 404_text 75 | translation: 76 | "Схоже, що сторінку, яку ви шукали, було переміщено, видалено або ж її ніколи не існувало. Будь ласка, \ 77 | скористайтесь пошуком або перейдіть до" 78 | 79 | - id: 404_linktext 80 | translation: "головної сторінки" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "У вас немає жодної публікації!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "Як тільки ви опублікуєте щось в будь-якій папці (розділі) всередині директорії content, воно з'явиться \ 89 | тут. За замовчуванням на головній сторінці буде відображатись лише один розділ (з найбільшою кількістю публікацій)" 90 | 91 | - id: noposts_warning_tip 92 | translation: 93 | "Порада: Ви можете показувати будь-яку кількість розілів за допомогою параметру конфігурації \ 94 | mainSections." 95 | -------------------------------------------------------------------------------- /i18n/de.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Weiterlesen…" 4 | 5 | - id: menu_label 6 | translation: "Menü" 7 | 8 | - id: sidemenu_title 9 | translation: "Menü" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Zuletzt geändert" 14 | 15 | - id: meta_translations 16 | translation: "Übersetzungen" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Inhaltsverzeichnis" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Zurück" 25 | 26 | - id: post_nav_next 27 | translation: "Weiter" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Über {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "WARNUNG" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Bitte aktivieren sie mindestens ein Widget." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "Suche..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Sprachen" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Kategorien" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Letzte Beiträge" 55 | 56 | # Recent Photos widget 57 | - id: recent_photos_title 58 | translation: "Neueste Fotos" 59 | 60 | # Social widget 61 | - id: social_title 62 | translation: "Soziale Netzwerke" 63 | 64 | # Tags List widget 65 | - id: tags_title 66 | translation: "Tags" 67 | 68 | # Footer 69 | - id: footer_credits 70 | translation: 71 | "Erstellt mit Hugo und \ 72 | DPSG Theme." 73 | 74 | # 404 75 | - id: 404_title 76 | translation: "404. Seite nicht gefunden" 77 | 78 | - id: 404_text 79 | translation: 80 | "Die gesuchte Seite existiert nicht, wurde verschoben oder gelöscht. Bitte nutzen Sie die Suche oder gehen Sie zur" 81 | 82 | - id: 404_linktext 83 | translation: "Startseite" 84 | 85 | # No posts empty state 86 | - id: noposts_warning_title 87 | translation: "Es gibt noch keine Posts!" 88 | 89 | - id: noposts_warning_description 90 | translation: 91 | "Hier erscheinen Posts, die in einem Unterordner des content/ Ordners abgelegt werden (z.B. in \ 92 | content/post). Standardmäßig werden nur Posts der Gruppe mit den meisten Einträgen angezeigt." 93 | 94 | - id: noposts_warning_tip 95 | translation: 96 | "Tipp: Mit dem \ 97 | mainSections \ 98 | Parameter lassen sich beliebig viele weitere Gruppen konfigurieren." 99 | -------------------------------------------------------------------------------- /i18n/ru.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Читать далее…" 4 | 5 | - id: menu_label 6 | translation: "Меню" 7 | 8 | - id: sidemenu_title 9 | translation: "Меню" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "Последнее изменение" 14 | 15 | - id: meta_translations 16 | translation: "Переводы" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Содержимое страницы" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Назад" 25 | 26 | - id: post_nav_next 27 | translation: "Вперед" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Об авторе {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "ВНИМАНИЕ" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Пожалуйста, активируйте как минимум один виджет боковой панели." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "ПОИСК..." 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Языки" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Категории" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Недавние публикации" 55 | 56 | # Social widget 57 | - id: social_title 58 | translation: "Социальные сети" 59 | 60 | # Tags List widget 61 | - id: tags_title 62 | translation: "Теги" 63 | 64 | # Footer 65 | - id: footer_credits 66 | translation: 67 | "Сгенерировано с использованием Hugo \ 68 | и темы DPSG." 69 | 70 | # 404 71 | - id: 404_title 72 | translation: "404. Страница не найдена" 73 | 74 | - id: 404_text 75 | translation: 76 | "Страница, которую вы искали, по-видимому, была перемещена, удалена или не существовала вообще. Пожалуйста, \ 77 | используйте поиск или перейдите на" 78 | 79 | - id: 404_linktext 80 | translation: "главную страницу" 81 | 82 | # No posts empty state 83 | - id: noposts_warning_title 84 | translation: "У вас нет ни одной публикации!" 85 | 86 | - id: noposts_warning_description 87 | translation: 88 | "Как только вы опубликуете что-нибудь в любой папке (разделе) внутри директории content, оно появится \ 89 | здесь. По-умолчанию на главной странице будет отображаться только один раздел (с наибольшим количеством \ 90 | публикаций)." 91 | 92 | - id: noposts_warning_tip 93 | translation: 94 | "Совет: Вы можете отображать сколько угодно разделов с помощью параметра конфигурации \ 95 | mainSections." 96 | -------------------------------------------------------------------------------- /i18n/lt.yaml: -------------------------------------------------------------------------------- 1 | # General 2 | - id: read_more 3 | translation: "Skaityti toliau…" 4 | 5 | - id: menu_label 6 | translation: "Meniu" 7 | 8 | - id: sidemenu_title 9 | translation: "Meniu" 10 | 11 | # Post meta 12 | - id: meta_lastmod 13 | translation: "paskutinis taisymas" 14 | 15 | - id: meta_translations 16 | translation: "Vertimai" 17 | 18 | # Table of Contents 19 | - id: toc_title 20 | translation: "Tinklalapio turinys" 21 | 22 | # Post nav 23 | - id: post_nav_prev 24 | translation: "Ankstesnis" 25 | 26 | - id: post_nav_next 27 | translation: "Kitas" 28 | 29 | # Authorbox 30 | - id: authorbox_name 31 | translation: "Autorius: {{ .Name }}" 32 | 33 | # Sidebar 34 | - id: sidebar_warning 35 | translation: "DĖMESIO" 36 | 37 | - id: sidebar_recommendation 38 | translation: "Aktyvinkite bent vieną šoninės juostos bloką." 39 | 40 | # Search widget 41 | - id: search_placeholder 42 | translation: "IEŠKOTI…" 43 | 44 | # Languages widget 45 | - id: languages_title 46 | translation: "Kalbos" 47 | 48 | # Categories widget 49 | - id: categories_title 50 | translation: "Kategorijos" 51 | 52 | # Recent Posts widget 53 | - id: recent_title 54 | translation: "Naujausi įrašai" 55 | 56 | # Recent Photos widget 57 | - id: recent_photos_title 58 | translation: "Naujausios nuotraukos" 59 | 60 | # Social widget 61 | - id: social_title 62 | translation: "Socialiniai tinklai" 63 | 64 | # Tags List widget 65 | - id: tags_title 66 | translation: "Žymos" 67 | 68 | # Footer 69 | - id: footer_credits 70 | translation: 71 | "Sugeneruota naudojant „Hugo“ ir \ 72 | DPSG temą." 73 | 74 | # 404 75 | - id: 404_title 76 | translation: "404. Tinklalapis nerastas" 77 | 78 | - id: 404_text 79 | translation: 80 | "Tinklalapis, kurį bandote atverti, perkeltas, pašalintas, arba tiesiog neegzistuoja. Prašom pasinaudoti paieška arba eiti į" 81 | 82 | - id: 404_linktext 83 | translation: "pradžios tinklalapį" 84 | 85 | # No posts empty state 86 | - id: noposts_warning_title 87 | translation: "Jūs neturite jokių įrašų!" 88 | 89 | - id: noposts_warning_description 90 | translation: 91 | "Kai ką nors paskelbsite bet kuriame aplanko content poaplankyje (sekcijoje), tą turinį matysite čia. \ 92 | Numatytuoju atveju pradžios tinklalapyje bus rodoma tik viena sekcija (turinti daugiausia įrašų)." 93 | 94 | - id: noposts_warning_tip 95 | translation: 96 | "Pastaba: norimą rodyti sekcijų kiekį galite keisti \ 97 | mainSections \ 98 | konfigūracijos parametro pagalba." 99 | -------------------------------------------------------------------------------- /exampleSite/content/news/hugoisforlovers.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Getting Started with Hugo 3 | date: 2014-04-02 4 | tags: 5 | - "go" 6 | - "golang" 7 | - "hugo" 8 | - "development" 9 | categories: 10 | - "Development" 11 | - "golang" 12 | --- 13 | 14 | ## Step 1. Install Hugo 15 | 16 | Go to [Hugo releases](https://github.com/spf13/hugo/releases) and download the 17 | appropriate version for your OS and architecture. 18 | 19 | Save it somewhere specific as we will be using it in the next step. 20 | 21 | More complete instructions are available at [Install Hugo](https://gohugo.io/getting-started/installing/) 22 | 23 | ## Step 2. Build the Docs 24 | 25 | Hugo has its own example site which happens to also be the documentation site 26 | you are reading right now. 27 | 28 | Follow the following steps: 29 | 30 | 1. Clone the [Hugo repository](https://github.com/spf13/hugo) 31 | 2. Go into the repo 32 | 3. Run hugo in server mode and build the docs 33 | 4. Open your browser to http://localhost:1313 34 | 35 | Corresponding pseudo commands: 36 | 37 | git clone https://github.com/spf13/hugo 38 | cd hugo 39 | /path/to/where/you/installed/hugo server --source=./docs 40 | > 29 pages created 41 | > 0 tags index created 42 | > in 27 ms 43 | > Web Server is available at http://localhost:1313 44 | > Press ctrl+c to stop 45 | 46 | Once you've gotten here, follow along the rest of this page on your local build. 47 | 48 | ## Step 3. Change the docs site 49 | 50 | Stop the Hugo process by hitting Ctrl+C. 51 | 52 | Now we are going to run hugo again, but this time with hugo in watch mode. 53 | 54 | /path/to/hugo/from/step/1/hugo server --source=./docs --watch 55 | > 29 pages created 56 | > 0 tags index created 57 | > in 27 ms 58 | > Web Server is available at http://localhost:1313 59 | > Watching for changes in /Users/spf13/Code/hugo/docs/content 60 | > Press ctrl+c to stop 61 | 62 | 63 | Open your [favorite editor](http://vim.spf13.com) and change one of the source 64 | content pages. How about changing this very file to *fix the typo*. How about changing this very file to *fix the typo*. 65 | 66 | Content files are found in `docs/content/`. Unless otherwise specified, files 67 | are located at the same relative location as the url, in our case 68 | `docs/content/overview/quickstart.md`. 69 | 70 | Change and save this file.. Notice what happened in your terminal. 71 | 72 | > Change detected, rebuilding site 73 | 74 | > 29 pages created 75 | > 0 tags index created 76 | > in 26 ms 77 | 78 | Refresh the browser and observe that the typo is now fixed. 79 | 80 | Notice how quick that was. Try to refresh the site before it's finished building. I double dare you. 81 | Having nearly instant feedback enables you to have your creativity flow without waiting for long builds. 82 | 83 | ## Step 4. Have fun 84 | 85 | The best way to learn something is to play with it. 86 | -------------------------------------------------------------------------------- /exampleSite/config.toml: -------------------------------------------------------------------------------- 1 | # Configure base URL. if using gh-pages https://github.com//hugo-dpsg URL: https://.github.io/hugo-dpsg/ 2 | baseurl = "https://pfadfinder-konstanz.github.io/hugo-dpsg/" 3 | title = "Hugo DPSG" 4 | paginate = "10" # Number of posts per page 5 | theme = "hugo-dpsg" 6 | # Change/remove themesDir, the current location is for deploying the demo page only 7 | themesDir = "../.." 8 | # Language settings 9 | languageCode = "en" 10 | DefaultContentLanguage = "en" 11 | 12 | [permalinks] 13 | news = "post/:year/:slug/" 14 | fotos = "fotos/:year/:slug/" 15 | 16 | [Params] 17 | description = "Welcome to our scout group!" # Site description. Used in meta description 18 | copyright = "DGSP local group" # Footer copyright holder, otherwise will use site title 19 | opengraph = true # Enable OpenGraph if true 20 | schema = true # Enable Schema 21 | twitter_cards = true # Enable Twitter Cards if true 22 | readmore = false # Show "Read more" button in list if true 23 | authorbox = true # Show authorbox at bottom of pages if true 24 | toc = true # Enable Table of Contents 25 | pager = true # Show pager navigation (prev/next links) at the bottom of pages if true 26 | indexPager = true # Show pager navigation on index page 27 | post_meta = ["author", "date", "categories", "translations"] # Order of post meta information 28 | mainSections = ["post", "blog", "news"] # Specify section pages to show on home page and the "Recent articles" widget 29 | dateformat = "02.01.2006" # Change the format of dates 30 | customCSS = [] # Include custom CSS files 31 | customJS = [] # Include custom JS files 32 | # customPartial = "analytics.html" # Include custom partial at the end of the page 33 | # belowTitlePartial = "banner.html" # Include custom partial below the pages title 34 | 35 | [Params.Author] # Used in authorbox 36 | name = "Scout Master" 37 | bio = "The Scout Master is the leader of this local scout group" 38 | avatar = "img/avatar.png" 39 | 40 | [Params.style.vars] 41 | highlightColor = "#003056" # Override main theme color 42 | 43 | [Params.logo] 44 | image = "img/placeholder.png" # Logo image. Path relative to "static" 45 | header = "img/header.jpg" # Header image. Path relative to "static" 46 | title = "Hugo DPSG" # Logo title, otherwise will use site title 47 | subtitle = "Welcome to our group site" # Logo subtitle 48 | 49 | [Params.sidebar] 50 | home = "right" # Configure layout for home page 51 | list = "left" # Configure layout for list pages 52 | single = false # Configure layout for single pages 53 | # Enable widgets in given order 54 | widgets = ["search", "recent", "categories", "taglist", "social", "languages"] 55 | # alternatively "ddg-search" can be used, to search via DuckDuckGo 56 | # widgets = ["ddg-search", "recent", "categories", "taglist", "social", "languages"] 57 | 58 | [Params.widgets] 59 | recent_num = 5 # Set the number of articles in the "Recent articles" widget 60 | tags_counter = true # Enable counter for each tag in "Tags" widget 61 | 62 | [Params.footer] 63 | text = "[Imprint and Privacy](/)" # Extra text in footer row, understands markdown 64 | right = "[Donate!](/)" # Right-aligned text in footer row, understands markdown 65 | 66 | # Custom menu items, normally controlled via front matter in /content files 67 | [menu] 68 | [[menu.main]] 69 | identifier = "login" 70 | name = "External Login" 71 | url = "https://example.com/login" 72 | weight = 99 73 | -------------------------------------------------------------------------------- /layouts/partials/widgets/social.html: -------------------------------------------------------------------------------- 1 | {{- if .Site.Params.widgets.social }} 2 |
3 |

{{ T "social_title" }}

4 |
5 | {{- with .Site.Params.widgets.social.facebook }} 6 | 12 | {{- end }} 13 | {{- with .Site.Params.widgets.social.twitter }} 14 | 20 | {{- end }} 21 | {{- with .Site.Params.widgets.social.instagram }} 22 | 28 | {{- end }} 29 | {{- with .Site.Params.widgets.social.linkedin }} 30 | 36 | {{- end }} 37 | {{- with .Site.Params.widgets.social.telegram }} 38 | 44 | {{- end }} 45 | {{- with .Site.Params.widgets.social.github }} 46 | 52 | {{- end }} 53 | {{- with .Site.Params.widgets.social.gitlab }} 54 | 60 | {{- end }} 61 | {{- with .Site.Params.widgets.social.bitbucket }} 62 | 68 | {{- end }} 69 | {{- with .Site.Params.widgets.social.email }} 70 | 76 | {{- end }} 77 | 78 | {{ range .Site.Params.widgets.social.custom }} 79 | 87 | {{ end }} 88 |
89 |
90 | {{- end }} -------------------------------------------------------------------------------- /exampleSite/content/news/basic-elements.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Basic HTML Elements 3 | description: Example test article that contains basic HTML elements for text formatting on the Web. 4 | date: 2018-04-16 5 | categories: 6 | - "Development" 7 | tags: 8 | - "HTML" 9 | - "CSS" 10 | - "Basic Elements" 11 | --- 12 | 13 | The main purpose of this article is to make sure that all basic HTML Elements are decorated with CSS so as to not miss any possible elements when creating new themes for Hugo. 14 | 15 | 16 | ## Headings 17 | 18 | Let's start with all possible headings. The HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level and `

` is the lowest. 19 | 20 | # Heading 1 21 | ## Heading 2 22 | ### Heading 3 23 | #### Heading 4 24 | ##### Heading 5 25 | ###### Heading 6 26 | 27 | *** 28 | 29 | ## Paragraph 30 | 31 | According to the [HTML5 specification](https://www.w3.org/TR/html5/dom.html#elements) by [W3C](https://www.w3.org/), **HTML documents consist of a tree of elements and text**. Each element is denoted in the source by a [start tag](https://www.w3.org/TR/html5/syntax.html#syntax-start-tags), such as ``, and an [end tag](https://www.w3.org/TR/html5/syntax.html#syntax-end-tags), such as ``. (*Certain start tags and end tags can in certain cases be omitted and are implied by other tags.*) 32 | 33 | Elements can have attributes, which control how the elements work. For example, hyperlink are formed using the `a` element and its `href` attribute. 34 | 35 | ## List Types 36 | 37 | ### Ordered List 38 | 39 | 1. First item 40 | 2. Second item 41 | 3. Third item 42 | 43 | ### Unordered List 44 | 45 | * List item 46 | * Another item 47 | * And another item 48 | 49 | ### Nested list 50 | 51 |
    52 |
  • First item
  • 53 |
  • Second item 54 |
      55 |
    • Second item First subitem
    • 56 |
    • Second item second subitem 57 |
        58 |
      • Second item Second subitem First sub-subitem
      • 59 |
      • Second item Second subitem Second sub-subitem
      • 60 |
      • Second item Second subitem Third sub-subitem
      • 61 |
      62 |
    • 63 |
    • Second item Third subitem 64 |
        65 |
      1. Second item Third subitem First sub-subitem
      2. 66 |
      3. Second item Third subitem Second sub-subitem
      4. 67 |
      5. Second item Third subitem Third sub-subitem
      6. 68 |
      69 |
    70 |
  • 71 |
  • Third item
  • 72 |
73 | 74 | ### Definition List 75 | 76 | HTML also supports definition lists. 77 | 78 |
79 |
Blanco tequila
80 |
The purest form of the blue agave spirit...
81 |
Reposado tequila
82 |
Typically aged in wooden barrels for between two and eleven months...
83 |
84 | 85 | ## Blockquotes 86 | 87 | The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. 88 | 89 | > Quoted text. 90 | > This line is part of the same quote. 91 | > Also you can *put* **Markdown** into a blockquote. 92 | 93 | Blockquote with a citation. 94 | 95 |
96 |

My goal wasn't to make a ton of money. It was to build good computers. I only started the company when I realized I could be an engineer forever.

97 |
Steve Wozniak
98 |
99 | 100 | According to Mozilla's website, Firefox 1.0 was released in 2004 and became a big success. 101 | 102 | ## Tables 103 | 104 | Tables aren't part of the core Markdown spec, but Hugo supports them. 105 | 106 | | ID | Make | Model | Year | 107 | | --- | --------- | ------- | ---- | 108 | | 1 | Honda | Accord | 2009 | 109 | | 2 | Toyota | Camry | 2012 | 110 | | 3 | Hyundai | Elantra | 2010 | 111 | 112 | Colons can be used to align columns. 113 | 114 | | Tables | Are | Cool | 115 | |:----------- |:-------------:| ------------:| 116 | | align: left | align: center | align: right | 117 | | align: left | align: center | align: right | 118 | | align: left | align: center | align: right | 119 | 120 | You can also use inline Markdown. 121 | 122 | | Inline | Markdown | In | Table | 123 | | ---------- | --------- | ----------------- | ---------- | 124 | | *italics* | **bold** | ~~strikethrough~~ | `code` | 125 | 126 | ## Code 127 | 128 | ```html 129 | 130 | 131 | 132 | 133 | Example HTML5 Document 134 | 135 | 136 |

Test

137 | 138 | 139 | ``` 140 | 141 | {{< highlight html >}} 142 | 143 | 144 | 145 | 146 | Example HTML5 Document 147 | 148 | 149 |

Test

150 | 151 | 152 | {{< /highlight >}} 153 | 154 | ## Other stuff — abbr, sub, sup, kbd, etc. 155 | 156 | GIF is a bitmap image format. 157 | 158 | H2O 159 | 160 | C6H12O6 161 | 162 | Xn + Yn = Zn 163 | 164 | Press X to win. Or press CTRL+ALT+F to show FPS counter. 165 | 166 | As a unit of information in information theory, the bit has alternatively been called a shannon, named after Claude Shannon, the founder of field of information theory. 167 | -------------------------------------------------------------------------------- /exampleSite/content/news/migrate-from-jekyll.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Migrate to Hugo from Jekyll 3 | date: 2014-03-10 4 | linktitle: Migrating from Jekyll 5 | --- 6 | 7 | ## Move static content to `static` 8 | Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there. 9 | With Jekyll, something that looked like 10 | 11 | ▾ / 12 | ▾ images/ 13 | logo.png 14 | 15 | should become 16 | 17 | ▾ / 18 | ▾ static/ 19 | ▾ images/ 20 | logo.png 21 | 22 | Additionally, you'll want any files that should reside at the root (such as `CNAME`) to be moved to `static`. 23 | 24 | ## Create your Hugo configuration file 25 | Hugo can read your configuration as JSON, YAML or TOML. Hugo supports parameters custom configuration too. Refer to the [Hugo configuration documentation](/overview/configuration/) for details. 26 | 27 | ## Set your configuration publish folder to `_site` 28 | The default is for Jekyll to publish to `_site` and for Hugo to publish to `public`. If, like me, you have [`_site` mapped to a git submodule on the `gh-pages` branch](http://blog.blindgaenger.net/generate_github_pages_in_a_submodule.html), you'll want to do one of two alternatives: 29 | 30 | 1. Change your submodule to point to map `gh-pages` to public instead of `_site` (recommended). 31 | 32 | git submodule deinit _site 33 | git rm _site 34 | git submodule add -b gh-pages git@github.com:your-username/your-repo.git public 35 | 36 | 2. Or, change the Hugo configuration to use `_site` instead of `public`. 37 | 38 | { 39 | .. 40 | "publishdir": "_site", 41 | .. 42 | } 43 | 44 | ## Convert Jekyll templates to Hugo templates 45 | That's the bulk of the work right here. The documentation is your friend. You should refer to [Jekyll's template documentation](http://jekyllrb.com/docs/templates/) if you need to refresh your memory on how you built your blog and [Hugo's template](/layout/templates/) to learn Hugo's way. 46 | 47 | As a single reference data point, converting my templates for [heyitsalex.net](http://heyitsalex.net/) took me no more than a few hours. 48 | 49 | ## Convert Jekyll plugins to Hugo shortcodes 50 | Jekyll has [plugins](http://jekyllrb.com/docs/plugins/); Hugo has [shortcodes](/doc/shortcodes/). It's fairly trivial to do a port. 51 | 52 | ### Implementation 53 | As an example, I was using a custom [`image_tag`](https://github.com/alexandre-normand/alexandre-normand/blob/74bb12036a71334fdb7dba84e073382fc06908ec/_plugins/image_tag.rb) plugin to generate figures with caption when running Jekyll. As I read about shortcodes, I found Hugo had a nice built-in shortcode that does exactly the same thing. 54 | 55 | Jekyll's plugin: 56 | 57 | module Jekyll 58 | class ImageTag < Liquid::Tag 59 | @url = nil 60 | @caption = nil 61 | @class = nil 62 | @link = nil 63 | // Patterns 64 | IMAGE_URL_WITH_CLASS_AND_CAPTION = 65 | IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK = /(\w+)(\s+)((https?:\/\/|\/)(\S+))(\s+)"(.*?)"(\s+)->((https?:\/\/|\/)(\S+))(\s*)/i 66 | IMAGE_URL_WITH_CAPTION = /((https?:\/\/|\/)(\S+))(\s+)"(.*?)"/i 67 | IMAGE_URL_WITH_CLASS = /(\w+)(\s+)((https?:\/\/|\/)(\S+))/i 68 | IMAGE_URL = /((https?:\/\/|\/)(\S+))/i 69 | def initialize(tag_name, markup, tokens) 70 | super 71 | if markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK 72 | @class = $1 73 | @url = $3 74 | @caption = $7 75 | @link = $9 76 | elsif markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION 77 | @class = $1 78 | @url = $3 79 | @caption = $7 80 | elsif markup =~ IMAGE_URL_WITH_CAPTION 81 | @url = $1 82 | @caption = $5 83 | elsif markup =~ IMAGE_URL_WITH_CLASS 84 | @class = $1 85 | @url = $3 86 | elsif markup =~ IMAGE_URL 87 | @url = $1 88 | end 89 | end 90 | def render(context) 91 | if @class 92 | source = "
" 93 | else 94 | source = "
" 95 | end 96 | if @link 97 | source += "" 98 | end 99 | source += "" 100 | if @link 101 | source += "" 102 | end 103 | source += "
#{@caption}
" if @caption 104 | source += "
" 105 | source 106 | end 107 | end 108 | end 109 | Liquid::Template.register_tag('image', Jekyll::ImageTag) 110 | 111 | is written as this Hugo shortcode: 112 | 113 | 114 |
115 | {{ with .Get "link"}}{{ end }} 116 | 117 | {{ if .Get "link"}}{{ end }} 118 | {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} 119 |
{{ if isset .Params "title" }} 120 | {{ .Get "title" }}{{ end }} 121 | {{ if or (.Get "caption") (.Get "attr")}}

122 | {{ .Get "caption" }} 123 | {{ with .Get "attrlink"}} {{ end }} 124 | {{ .Get "attr" }} 125 | {{ if .Get "attrlink"}} {{ end }} 126 |

{{ end }} 127 |
128 | {{ end }} 129 |
130 | 131 | 132 | ### Usage 133 | I simply changed: 134 | 135 | {% image full http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg "One of my favorite touristy-type photos. I secretly waited for the good light while we were "having fun" and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." ->http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/ %} 136 | 137 | to this (this example uses a slightly extended version named `fig`, different than the built-in `figure`): 138 | 139 | {{%/* fig class="full" src="http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg" title="One of my favorite touristy-type photos. I secretly waited for the good light while we were having fun and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." link="http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/" */%}} 140 | 141 | As a bonus, the shortcode named parameters are, arguably, more readable. 142 | 143 | ## Finishing touches 144 | ### Fix content 145 | Depending on the amount of customization that was done with each post with Jekyll, this step will require more or less effort. There are no hard and fast rules here except that `hugo server --watch` is your friend. Test your changes and fix errors as needed. 146 | 147 | ### Clean up 148 | You'll want to remove the Jekyll configuration at this point. If you have anything else that isn't used, delete it. 149 | 150 | ## A practical example in a diff 151 | [Hey, it's Alex](http://heyitsalex.net/) was migrated in less than a _father-with-kids day_ from Jekyll to Hugo. You can see all the changes (and screw-ups) by looking at this [diff](https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610). 152 | -------------------------------------------------------------------------------- /exampleSite/content/news/goisforlovers.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "(Hu)go Template Primer" 3 | date: 2014-04-02 4 | thumbnail: "img/placeholder.png" 5 | tags: 6 | - "go" 7 | - "golang" 8 | - "templates" 9 | - "themes" 10 | - "development" 11 | categories: 12 | - "Development" 13 | - "golang" 14 | --- 15 | 16 | Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for 17 | its template engine. It is an extremely lightweight engine that provides a very 18 | small amount of logic. In our experience that it is just the right amount of 19 | logic to be able to create a good static website. If you have used other 20 | template systems from different languages or frameworks you will find a lot of 21 | similarities in Go templates. 22 | 23 | 24 | 25 | This document is a brief primer on using Go templates. The [Go docs][gohtmltemplate] 26 | provide more details. 27 | 28 | ## Introduction to Go Templates 29 | 30 | Go templates provide an extremely simple template language. It adheres to the 31 | belief that only the most basic of logic belongs in the template or view layer. 32 | One consequence of this simplicity is that Go templates parse very quickly. 33 | 34 | A unique characteristic of Go templates is they are content aware. Variables and 35 | content will be sanitized depending on the context of where they are used. More 36 | details can be found in the [Go docs][gohtmltemplate]. 37 | 38 | ## Basic Syntax 39 | 40 | Golang templates are HTML files with the addition of variables and 41 | functions. 42 | 43 | **Go variables and functions are accessible within {{ }}** 44 | 45 | Accessing a predefined variable "foo": 46 | 47 | {{ foo }} 48 | 49 | **Parameters are separated using spaces** 50 | 51 | Calling the add function with input of 1, 2: 52 | 53 | {{ add 1 2 }} 54 | 55 | **Methods and fields are accessed via dot notation** 56 | 57 | Accessing the Page Parameter "bar" 58 | 59 | {{ .Params.bar }} 60 | 61 | **Parentheses can be used to group items together** 62 | 63 | {{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }} 64 | 65 | 66 | ## Variables 67 | 68 | Each Go template has a struct (object) made available to it. In hugo each 69 | template is passed either a page or a node struct depending on which type of 70 | page you are rendering. More details are available on the 71 | [variables](/layout/variables) page. 72 | 73 | A variable is accessed by referencing the variable name. 74 | 75 | {{ .Title }} 76 | 77 | Variables can also be defined and referenced. 78 | 79 | {{ $address := "123 Main St."}} 80 | {{ $address }} 81 | 82 | 83 | ## Functions 84 | 85 | Go template ship with a few functions which provide basic functionality. The Go 86 | template system also provides a mechanism for applications to extend the 87 | available functions with their own. [Hugo template 88 | functions](/layout/functions) provide some additional functionality we believe 89 | are useful for building websites. Functions are called by using their name 90 | followed by the required parameters separated by spaces. Template 91 | functions cannot be added without recompiling hugo. 92 | 93 | **Example:** 94 | 95 | {{ add 1 2 }} 96 | 97 | ## Includes 98 | 99 | When including another template you will pass to it the data it will be 100 | able to access. To pass along the current context please remember to 101 | include a trailing dot. The templates location will always be starting at 102 | the /layout/ directory within Hugo. 103 | 104 | **Example:** 105 | 106 | {{ template "chrome/header.html" . }} 107 | 108 | 109 | ## Logic 110 | 111 | Go templates provide the most basic iteration and conditional logic. 112 | 113 | ### Iteration 114 | 115 | Just like in Go, the Go templates make heavy use of range to iterate over 116 | a map, array or slice. The following are different examples of how to use 117 | range. 118 | 119 | **Example 1: Using Context** 120 | 121 | {{ range array }} 122 | {{ . }} 123 | {{ end }} 124 | 125 | **Example 2: Declaring value variable name** 126 | 127 | {{range $element := array}} 128 | {{ $element }} 129 | {{ end }} 130 | 131 | **Example 2: Declaring key and value variable name** 132 | 133 | {{range $index, $element := array}} 134 | {{ $index }} 135 | {{ $element }} 136 | {{ end }} 137 | 138 | ### Conditionals 139 | 140 | If, else, with, or, & and provide the framework for handling conditional 141 | logic in Go Templates. Like range, each statement is closed with `end`. 142 | 143 | 144 | Go Templates treat the following values as false: 145 | 146 | * false 147 | * 0 148 | * any array, slice, map, or string of length zero 149 | 150 | **Example 1: If** 151 | 152 | {{ if isset .Params "title" }}

{{ index .Params "title" }}

{{ end }} 153 | 154 | **Example 2: If -> Else** 155 | 156 | {{ if isset .Params "alt" }} 157 | {{ index .Params "alt" }} 158 | {{else}} 159 | {{ index .Params "caption" }} 160 | {{ end }} 161 | 162 | **Example 3: And & Or** 163 | 164 | {{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}} 165 | 166 | **Example 4: With** 167 | 168 | An alternative way of writing "if" and then referencing the same value 169 | is to use "with" instead. With rebinds the context `.` within its scope, 170 | and skips the block if the variable is absent. 171 | 172 | The first example above could be simplified as: 173 | 174 | {{ with .Params.title }}

{{ . }}

{{ end }} 175 | 176 | **Example 5: If -> Else If** 177 | 178 | {{ if isset .Params "alt" }} 179 | {{ index .Params "alt" }} 180 | {{ else if isset .Params "caption" }} 181 | {{ index .Params "caption" }} 182 | {{ end }} 183 | 184 | ## Pipes 185 | 186 | One of the most powerful components of Go templates is the ability to 187 | stack actions one after another. This is done by using pipes. Borrowed 188 | from unix pipes, the concept is simple, each pipeline's output becomes the 189 | input of the following pipe. 190 | 191 | Because of the very simple syntax of Go templates, the pipe is essential 192 | to being able to chain together function calls. One limitation of the 193 | pipes is that they only can work with a single value and that value 194 | becomes the last parameter of the next pipeline. 195 | 196 | A few simple examples should help convey how to use the pipe. 197 | 198 | **Example 1 :** 199 | 200 | {{ if eq 1 1 }} Same {{ end }} 201 | 202 | is the same as 203 | 204 | {{ eq 1 1 | if }} Same {{ end }} 205 | 206 | It does look odd to place the if at the end, but it does provide a good 207 | illustration of how to use the pipes. 208 | 209 | **Example 2 :** 210 | 211 | {{ index .Params "disqus_url" | html }} 212 | 213 | Access the page parameter called "disqus_url" and escape the HTML. 214 | 215 | **Example 3 :** 216 | 217 | {{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}} 218 | Stuff Here 219 | {{ end }} 220 | 221 | Could be rewritten as 222 | 223 | {{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }} 224 | Stuff Here 225 | {{ end }} 226 | 227 | 228 | ## Context (aka. the dot) 229 | 230 | The most easily overlooked concept to understand about Go templates is that {{ . }} 231 | always refers to the current context. In the top level of your template this 232 | will be the data set made available to it. Inside of a iteration it will have 233 | the value of the current item. When inside of a loop the context has changed. . 234 | will no longer refer to the data available to the entire page. If you need to 235 | access this from within the loop you will likely want to set it to a variable 236 | instead of depending on the context. 237 | 238 | **Example:** 239 | 240 | {{ $title := .Site.Title }} 241 | {{ range .Params.tags }} 242 |
  • {{ . }} - {{ $title }}
  • 243 | {{ end }} 244 | 245 | Notice how once we have entered the loop the value of {{ . }} has changed. We 246 | have defined a variable outside of the loop so we have access to it from within 247 | the loop. 248 | 249 | # Hugo Parameters 250 | 251 | Hugo provides the option of passing values to the template language 252 | through the site configuration (for sitewide values), or through the meta 253 | data of each specific piece of content. You can define any values of any 254 | type (supported by your front matter/config format) and use them however 255 | you want to inside of your templates. 256 | 257 | 258 | ## Using Content (page) Parameters 259 | 260 | In each piece of content you can provide variables to be used by the 261 | templates. This happens in the [front matter](/content/front-matter). 262 | 263 | An example of this is used in this documentation site. Most of the pages 264 | benefit from having the table of contents provided. Sometimes the TOC just 265 | doesn't make a lot of sense. We've defined a variable in our front matter 266 | of some pages to turn off the TOC from being displayed. 267 | 268 | Here is the example front matter: 269 | 270 | ``` 271 | --- 272 | title: "Permalinks" 273 | date: "2013-11-18" 274 | aliases: 275 | - "/doc/permalinks/" 276 | groups: ["extras"] 277 | groups_weight: 30 278 | notoc: true 279 | --- 280 | ``` 281 | 282 | Here is the corresponding code inside of the template: 283 | 284 | {{ if not .Params.notoc }} 285 |
    286 | {{ .TableOfContents }} 287 |
    288 | {{ end }} 289 | 290 | 291 | 292 | ## Using Site (config) Parameters 293 | In your top-level configuration file (eg, `config.yaml`) you can define site 294 | parameters, which are values which will be available to you in chrome. 295 | 296 | For instance, you might declare: 297 | 298 | ```yaml 299 | params: 300 | CopyrightHTML: "Copyright © 2013 John Doe. All Rights Reserved." 301 | TwitterUser: "spf13" 302 | SidebarRecentLimit: 5 303 | ``` 304 | 305 | Within a footer layout, you might then declare a `