]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 17 Nov 2022 15:16:19 +0000 (16:16 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 17 Nov 2022 15:16:19 +0000 (16:16 +0100)
205 files changed:
1  2 
docs/.cspell.json
docs/.github/stale.yml
docs/.github/workflows/codeql-analysis.yml
docs/.github/workflows/spellcheck.yml
docs/.github/workflows/super-linter.yml
docs/.markdownlint.yaml
docs/.markdownlintignore
docs/.textlintignore
docs/.vscode/extensions.json
docs/README.md
docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_font-family.css
docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/index.js
docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css
docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/js/app.js
docs/_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml
docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html
docs/_vendor/github.com/gohugoio/gohugoioTheme/package.json
docs/_vendor/github.com/gohugoio/gohugoioTheme/static/images/sponsors/butter-dark.svg
docs/_vendor/github.com/gohugoio/gohugoioTheme/static/images/sponsors/butter-light.svg
docs/_vendor/modules.txt
docs/config/_default/config.toml
docs/config/_default/menus/menus.en.toml
docs/config/production/config.toml
docs/content/en/about/benefits.md
docs/content/en/about/features.md
docs/content/en/about/hugo-and-gdpr.md
docs/content/en/about/security-model/index.md
docs/content/en/about/what-is-hugo.md
docs/content/en/content-management/_index.md
docs/content/en/content-management/archetypes.md
docs/content/en/content-management/build-options.md
docs/content/en/content-management/comments.md
docs/content/en/content-management/cross-references.md
docs/content/en/content-management/diagrams.md
docs/content/en/content-management/formats.md
docs/content/en/content-management/front-matter.md
docs/content/en/content-management/image-processing/index.md
docs/content/en/content-management/menus.md
docs/content/en/content-management/multilingual.md
docs/content/en/content-management/organization/index.md
docs/content/en/content-management/page-bundles.md
docs/content/en/content-management/page-resources.md
docs/content/en/content-management/related.md
docs/content/en/content-management/sections.md
docs/content/en/content-management/shortcodes.md
docs/content/en/content-management/static-files.md
docs/content/en/content-management/summaries.md
docs/content/en/content-management/syntax-highlighting.md
docs/content/en/content-management/taxonomies.md
docs/content/en/content-management/toc.md
docs/content/en/content-management/types.md
docs/content/en/content-management/urls.md
docs/content/en/contribute/development.md
docs/content/en/contribute/documentation.md
docs/content/en/contribute/themes.md
docs/content/en/functions/GetPage.md
docs/content/en/functions/RenderString.md
docs/content/en/functions/abslangurl.md
docs/content/en/functions/absurl.md
docs/content/en/functions/complement.md
docs/content/en/functions/dateformat.md
docs/content/en/functions/dict.md
docs/content/en/functions/errorf.md
docs/content/en/functions/findRe.md
docs/content/en/functions/format.md
docs/content/en/functions/get.md
docs/content/en/functions/getenv.md
docs/content/en/functions/hasmenucurrent.md
docs/content/en/functions/highlight.md
docs/content/en/functions/hugo.md
docs/content/en/functions/images/index.md
docs/content/en/functions/int.md
docs/content/en/functions/intersect.md
docs/content/en/functions/jsonify.md
docs/content/en/functions/markdownify.md
docs/content/en/functions/md5.md
docs/content/en/functions/partialCached.md
docs/content/en/functions/ref.md
docs/content/en/functions/relLangURL.md
docs/content/en/functions/relref.md
docs/content/en/functions/relurl.md
docs/content/en/functions/replacere.md
docs/content/en/functions/safeHTML.md
docs/content/en/functions/safeHTMLAttr.md
docs/content/en/functions/scratch.md
docs/content/en/functions/split.md
docs/content/en/functions/strings.Count.md
docs/content/en/functions/strings.HasSuffix.md
docs/content/en/functions/symdiff.md
docs/content/en/functions/upper.md
docs/content/en/functions/urlize.md
docs/content/en/functions/urlquery.md
docs/content/en/functions/urls.Parse.md
docs/content/en/functions/where.md
docs/content/en/getting-started/_index.md
docs/content/en/getting-started/configuration-markup.md
docs/content/en/getting-started/configuration.md
docs/content/en/getting-started/directory-structure.md
docs/content/en/getting-started/external-learning-resources/index.md
docs/content/en/getting-started/quick-start.md
docs/content/en/getting-started/usage.md
docs/content/en/hosting-and-deployment/deployment-with-rclone.md
docs/content/en/hosting-and-deployment/deployment-with-rsync.md
docs/content/en/hosting-and-deployment/hosting-on-21yunbox.md
docs/content/en/hosting-and-deployment/hosting-on-aws-amplify.md
docs/content/en/hosting-and-deployment/hosting-on-azure-static-web-apps.md
docs/content/en/hosting-and-deployment/hosting-on-azure.md
docs/content/en/hosting-and-deployment/hosting-on-firebase.md
docs/content/en/hosting-and-deployment/hosting-on-github.md
docs/content/en/hosting-and-deployment/hosting-on-gitlab.md
docs/content/en/hosting-and-deployment/hosting-on-keycdn.md
docs/content/en/hosting-and-deployment/hosting-on-netlify.md
docs/content/en/hosting-and-deployment/hosting-on-render.md
docs/content/en/hugo-modules/_index.md
docs/content/en/hugo-modules/configuration.md
docs/content/en/hugo-modules/theme-components.md
docs/content/en/hugo-modules/use-modules.md
docs/content/en/hugo-pipes/_index.md
docs/content/en/hugo-pipes/babel.md
docs/content/en/hugo-pipes/bundling.md
docs/content/en/hugo-pipes/fingerprint.md
docs/content/en/hugo-pipes/introduction.md
docs/content/en/hugo-pipes/js.md
docs/content/en/hugo-pipes/minification.md
docs/content/en/hugo-pipes/postcss.md
docs/content/en/hugo-pipes/postprocess.md
docs/content/en/hugo-pipes/resource-from-string.md
docs/content/en/hugo-pipes/resource-from-template.md
docs/content/en/hugo-pipes/scss-sass.md
docs/content/en/installation/_index.md
docs/content/en/installation/bsd.md
docs/content/en/installation/common/01-editions.md
docs/content/en/installation/common/02-prerequisites.md
docs/content/en/installation/common/03-prebuilt-binaries.md
docs/content/en/installation/common/04-docker.md
docs/content/en/installation/common/05-build-from-source.md
docs/content/en/installation/common/homebrew.md
docs/content/en/installation/common/index.md
docs/content/en/installation/linux.md
docs/content/en/installation/macos.md
docs/content/en/installation/windows.md
docs/content/en/news/0.28-relnotes/index.md
docs/content/en/news/0.89.4-relnotes/index.md
docs/content/en/readfiles/dateformatting.md
docs/content/en/readfiles/pages-vs-site-pages.md
docs/content/en/showcase/alora-labs/bio.md
docs/content/en/showcase/alora-labs/featured.png
docs/content/en/showcase/alora-labs/index.md
docs/content/en/showcase/ampio-help/bio.md
docs/content/en/showcase/ampio-help/featured.png
docs/content/en/showcase/ampio-help/index.md
docs/content/en/showcase/digitalgov/index.md
docs/content/en/showcase/fireship/index.md
docs/content/en/showcase/forestry/bio.md
docs/content/en/showcase/godot-tutorials/bio.md
docs/content/en/showcase/godot-tutorials/index.md
docs/content/en/showcase/hapticmedia/index.md
docs/content/en/showcase/hartwell-insurance/index.md
docs/content/en/showcase/template/index.md
docs/content/en/templates/404.md
docs/content/en/templates/base.md
docs/content/en/templates/data-templates.md
docs/content/en/templates/files.md
docs/content/en/templates/internal.md
docs/content/en/templates/introduction.md
docs/content/en/templates/lists.md
docs/content/en/templates/lookup-order.md
docs/content/en/templates/menu-templates.md
docs/content/en/templates/output-formats.md
docs/content/en/templates/pagination.md
docs/content/en/templates/partials.md
docs/content/en/templates/render-hooks.md
docs/content/en/templates/rss.md
docs/content/en/templates/section-templates.md
docs/content/en/templates/shortcode-templates.md
docs/content/en/templates/taxonomy-templates.md
docs/content/en/templates/template-debugging.md
docs/content/en/templates/views.md
docs/content/en/tools/_index.md
docs/content/en/tools/editors.md
docs/content/en/tools/frontends.md
docs/content/en/tools/migrations.md
docs/content/en/tools/other.md
docs/content/en/tools/search.md
docs/content/en/troubleshooting/build-performance.md
docs/content/en/troubleshooting/faq.md
docs/content/en/variables/files.md
docs/content/en/variables/git.md
docs/content/en/variables/menus.md
docs/content/en/variables/page.md
docs/content/en/variables/pages.md
docs/content/en/variables/shortcodes.md
docs/content/en/variables/site.md
docs/content/en/variables/sitemap.md
docs/content/zh/content-management/_index.md
docs/data/articles.toml
docs/go.mod
docs/go.sum
docs/layouts/partials/boxes-section-summaries.html
docs/netlify.toml
docs/resources/_gen/images/showcase/alora-labs/featured_hu15e97d42270c9e985a93353bc5eb2110_83801_1024x512_fill_catmullrom_top_2.png
docs/resources/_gen/images/showcase/alora-labs/featured_hu15e97d42270c9e985a93353bc5eb2110_83801_640x0_resize_catmullrom_2.png
docs/resources/_gen/images/showcase/alora-labs/featured_hu15e97d42270c9e985a93353bc5eb2110_83801_8298a1fa052279512823ecd663d6f9c8.png
docs/static/images/hosting-and-deployment/hosting-on-azure/basic-app-details.png
docs/static/images/hosting-and-deployment/hosting-on-azure/create-in-portal.png

index 1a197ea7b30e7a4b1c242aca45449b08305ea331,0000000000000000000000000000000000000000..0958b76450a31efc599844405be298b5d28f31b6
mode 100644,000000..100644
--- /dev/null
@@@ -1,335 -1,0 +1,361 @@@
-   "language": "en,en-GB,en-US,de,fr",
 +{
 +  "version": "0.2",
 +  "words": [
 +    "aaabaab",
 +    "aabb",
 +    "aabba",
 +    "aabbaa",
 +    "aabbaabb",
 +    "aabbaabbab",
 +    "abbaa",
 +    "abourget",
 +    "absurl",
 +    "adoc",
 +    "algolia",
 +    "allowfullscreen",
 +    "ananke",
 +    "anchorize",
 +    "anthonyfok",
 +    "asciidoctor",
 +    "attrlink",
 +    "azblob",
 +    "baseof",
 +    "bbaa",
 +    "bcde",
 +    "bcdef",
 +    "beevelop",
 +    "Bergevin",
 +    "bibtex",
 +    "Bjørn",
 +    "blackfriday",
 +    "blogue",
 +    "bogem",
 +    "Bootcamp",
 +    "brlink",
 +    "Brotli",
 +    "Browsersync",
++    "canonicalization",
 +    "canonify",
 +    "Catmull",
 +    "Catwoman",
 +    "changefreq",
 +    "Cheatsheet",
 +    "choco",
 +    "chromastyles",
 +    "clockoon",
 +    "Cloudinary",
 +    "CNAME",
 +    "Codecademy's",
 +    "CODEOWNERS",
 +    "Coen",
 +    "Commento",
 +    "Cond",
 +    "contentdir",
 +    "Contentful",
 +    "Copr",
 +    "copyrighthtml",
 +    "corejs",
 +    "countrunes",
 +    "countwords",
 +    "crossreferences",
 +    "daftaupe",
 +    "datatable",
 +    "DATOCMS",
 +    "debugconfig",
++    "defang",
++    "Deindent",
 +    "DELIM",
 +    "dhersam",
 +    "digitalcraftsman",
 +    "Disqus",
 +    "Dmdh",
 +    "doas",
 +    "dokuwiki",
 +    "dpkg",
 +    "DRING",
 +    "Eiqc",
 +    "Eliott",
++    "embeddable",
 +    "Emojify",
 +    "Enwrite",
 +    "eopkg",
 +    "eparis",
 +    "errorf",
 +    "erroridf",
++    "esbuild",
 +    "Evernote",
++    "Exif",
 +    "exitwp",
 +    "expirydate",
 +    "Feminella",
 +    "firstpost",
++    "Flickr",
 +    "Formspree",
 +    "fpath",
 +    "Francia",
 +    "freenode",
 +    "frontmatter",
 +    "funcs",
 +    "funcsig",
 +    "Garen",
++    "Garuda",
 +    "gcloud",
 +    "Getenv",
 +    "getjson",
 +    "getpage",
++    "Gitee",
 +    "Gmfc",
 +    "Goel",
 +    "Gohugo",
 +    "gohugoio",
 +    "goldenbridge",
 +    "Goldmark",
 +    "gomodules",
 +    "GOPATH",
 +    "govendor",
 +    "Gowans",
 +    "Grayscale",
++    "Gregor",
 +    "Gruber",
 +    "gtag",
 +    "gvfs",
 +    "hidecaption",
 +    "hmac",
 +    "Hokus",
 +    "hola",
 +    "hügó",
 +    "hugodeps",
 +    "hugodoc",
 +    "Hugofy",
 +    "hugolang",
 +    "hugoversion",
 +    "Hyas",
 +    "Hyvor",
 +    "iframes",
 +    "ifttt",
 +    "iife",
 +    "imgproc",
 +    "importr",
 +    "IMWQ",
 +    "indice",
 +    "innershortcode",
 +    "Intelli",
 +    "interdoc",
 +    "IPTC",
 +    "ismenucurrent",
 +    "Isset",
 +    "Isso",
 +    "Jaco",
 +    "JIRN",
 +    "johnpatitucci",
 +    "Joomla",
 +    "JRBR",
 +    "jsonify",
++    "Karmada",
 +    "katex",
 +    "keycdn",
 +    "KEYVALS",
 +    "kubernetes",
++    "Kubuntu",
 +    "Lanczos",
 +    "langformatnumber",
 +    "lastmod",
 +    "libwebp",
 +    "linktitle",
 +    "Lipi",
 +    "lrwxr",
++    "Lubuntu",
 +    "maingo",
 +    "markdownified",
 +    "markdownify",
 +    "mathjax",
 +    "mdhender",
 +    "mdshortcode",
 +    "MENUENTRY",
 +    "mercredi",
 +    "Milli",
 +    "Mittwoch",
 +    "mkdir",
 +    "modh",
 +    "monokai",
 +    "Morling",
 +    "mspowerpoint",
 +    "Multihost",
 +    "Muut",
 +    "myclass",
 +    "mydeployment",
 +    "myindex",
 +    "mylayout",
 +    "mylogin",
 +    "mypage",
 +    "mypartials",
 +    "mypost",
 +    "mysite",
 +    "myspa",
 +    "mystyle",
 +    "mytextpartial",
 +    "mytheme",
 +    "NDJSON",
 +    "needsexample",
 +    "Netravali",
 +    "newparam",
 +    "Nichlas",
 +    "Nikhil",
++    "Nikola",
 +    "Njjy",
 +    "nlist",
 +    "nobr",
 +    "nocopy",
 +    "Norsk",
 +    "nosniff",
 +    "NOSQL",
 +    "notoc",
 +    "novembre",
 +    "numfmt",
 +    "NUMWORKERMULTIPLIER",
 +    "Obhu",
 +    "octohug",
 +    "Octopress",
 +    "oldparam",
 +    "onrender",
 +    "opengraph",
 +    "OWASP",
 +    "Pandoc",
 +    "partialcached",
 +    "Pastorius",
 +    "Patitucci",
 +    "PCRE",
 +    "peaceiris",
 +    "Pedersen",
 +    "Pekka",
 +    "permalinkable",
 +    "plainify",
 +    "POSIX",
 +    "postprocess",
 +    "Poupin",
 +    "prerender",
 +    "println",
++    "Pritchard",
 +    "publishdate",
 +    "Pygments",
 +    "qref",
 +    "querify",
 +    "QVOMC",
 +    "Racic",
 +    "Rclone",
 +    "rdwatters",
 +    "readfile",
 +    "rebinded",
 +    "recommendedby",
 +    "REDIR",
 +    "reftext",
 +    "relatedfuncs",
 +    "relref",
 +    "relurl",
 +    "remarkjs",
 +    "rgba",
 +    "Riku",
 +    "rlimit",
 +    "roboto",
 +    "rssxml",
 +    "rwxrwxrwx",
 +    "RYUGV",
 +    "safehtml",
 +    "safejs",
 +    "Samsa",
 +    "schemaorg",
++    "setx",
 +    "Shekhar",
 +    "Shortcode",
 +    "Shortcodes",
 +    "signup",
 +    "Silvola",
 +    "Sindre",
 +    "sitemapindex",
 +    "sitemapxml",
++    "slugorfilename",
 +    "Smartcrop",
++    "Sobre",
 +    "Sprintf",
 +    "Startseite",
 +    "strconv",
 +    "stringifier",
 +    "struct",
 +    "structs",
 +    "subdir",
 +    "svgs",
 +    "symdiff",
 +    "Talkyard",
 +    "taxo",
 +    "taxonomyname",
 +    "tbody",
 +    "tdewolff",
 +    "testshortcodes",
 +    "thead",
 +    "Thinkful",
 +    "Tknx",
 +    "TLDR",
 +    "TMPDIR",
++    "toclevels",
 +    "TOCSS",
 +    "todos",
 +    "tojson",
 +    "Tomango",
 +    "topologix",
 +    "Torikian",
 +    "totoml",
 +    "toyaml",
 +    "twitteruser",
 +    "Unmarshal",
++    "unpublishdate",
++    "Unsharp",
 +    "urlize",
 +    "urlset",
 +    "utimestamp",
 +    "vendored",
 +    "vimrc",
 +    "wanghc",
 +    "Wappalyzer",
 +    "warnf",
 +    "webp",
 +    "Wercker",
 +    "wibble",
 +    "wordcount",
 +    "workson",
++    "Wowchemy",
 +    "wpxr",
 +    "Xbaabbab",
++    "Xubuntu",
 +    "xvzf",
 +    "yoyoyo",
++    "yunbox",
 +    "Zgotmpl",
++    "Zorin",
 +    "zzbbaabb",
 +    "مدونتي"
 +  ],
-   "useGitignore": true
++  "language": "en,en-US,de,fr",
 +  "allowCompoundWords": true,
 +  "files": [
 +    "**/*.md"
 +  ],
 +  "ignoreRegExpList": [
 +    "<!-- prettier-ignore -->\\n(`{3,})\\w*\\n[\\s\\S]+?\\1",
 +    "\\[(\\*{2})?@\\w+?\\1\\]",
 +    "\\[`\\w+`\\]",
 +    "ve{2,}r{2,}y",
 +    "ve+r+y+long\\w*",
 +    "\\/.*?\\/",
 +    "\\_\\w+",
 +    "\\#\\w+"
 +  ],
 +  "ignorePaths": [
 +    ".cspell.json",
 +    "**/node_modules/**",
 +    "*.min.*",
 +    "**/news/*",
 +    "**/showcase/*"
 +  ],
++  "useGitignore": true,
++  "enabled": true
 +}
index 3892052940793269f6f037eb92129679f249cc30,0000000000000000000000000000000000000000..1e72eb329c0f749018431ba49dbea62c0d95c91a
mode 100644,000000..100644
--- /dev/null
@@@ -1,22 -1,0 +1,22 @@@
-   
 +# Number of days of inactivity before an issue becomes stale
 +daysUntilStale: 120
 +# Number of days of inactivity before a stale issue is closed
 +daysUntilClose: 30
 +# Issues with these labels will never be considered stale
 +exemptLabels:
 +  - Keep
 +  - Security
 +  - UndocumentedFeature
 +# Label to use when marking an issue as stale
 +staleLabel: Stale
 +# Comment to post when marking an issue as stale. Set to `false` to disable
 +markComment: >
 +  This issue has been automatically marked as stale because it has not had
 +  recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
 +
 +  If you still think this is important, please tell us why.
 +
 +  This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
++
 +# Comment to post when closing a stale issue. Set to `false` to disable
 +closeComment: false
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..30f98a000b4855df3f3471bda764abd4cfbe648b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,26 @@@
++name: "CodeQL"
++
++on:
++  schedule:
++    - cron: "0 0 1 * *"
++
++jobs:
++  analyze:
++    name: Analyze
++    runs-on: ubuntu-latest
++    permissions:
++      actions: read
++      contents: read
++      security-events: write
++
++    steps:
++      - name: Checkout repository
++        uses: actions/checkout@v3
++
++      - name: Initialize CodeQL
++        uses: github/codeql-action/init@v2
++        with:
++          languages: "javascript"
++
++      - name: Perform CodeQL Analysis
++        uses: github/codeql-action/analyze@v2
index 6f68fee18ebebdebf8de10ed068a4a672efa71c8,0000000000000000000000000000000000000000..594621604006a24393547aaa030ff2db8ed27d47
mode 100644,000000..100644
--- /dev/null
@@@ -1,20 -1,0 +1,21 @@@
- name: 'Check spelling'
++name: "Check spelling"
 +on: # rebuild any PRs and main branch changes
 +  push:
 +    branches-ignore:
 +      - "dependabot/**"
 +  pull_request:
 +
 +permissions:
 +  contents: read
 +
 +jobs:
 +  spellcheck:
 +    runs-on: ubuntu-latest
 +    steps:
 +      - uses: actions/checkout@v3
 +      - uses: streetsidesoftware/cspell-action@v2
 +        with:
++          check_dot_files: false
++          incremental_files_only: true
 +          inline: warning
 +          strict: false
-           incremental_files_only: true
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..efd206960961ea78586a92458bad982114f7f284
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,41 @@@
++name: Super Linter
++
++on:
++  workflow_dispatch:
++
++permissions:
++  contents: read #  to fetch code (actions/checkout)
++
++jobs:
++  build:
++    permissions:
++      contents: read #  to fetch code (actions/checkout)
++      statuses: write #  to mark status of each linter run (github/super-linter/slim)
++
++    name: Lint Code Base
++    runs-on: ubuntu-latest
++    if: ${{ github.actor != 'dependabot[bot]' }}
++
++    steps:
++      - name: Checkout Code
++        uses: actions/checkout@v3
++
++      - name: Lint Code Base
++        uses: github/super-linter/slim@v4
++        env:
++          DEFAULT_BRANCH: master
++          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
++          IGNORE_GITIGNORED_FILES: true
++          LINTER_RULES_PATH: /
++          LOG_LEVEL: NOTICE
++          MARKDOWN_CONFIG_FILE: .markdownlint.yaml
++          SUPPRESS_POSSUM: true
++          VALIDATE_CSS: false
++          VALIDATE_EDITORCONFIG: false
++          VALIDATE_GITLEAKS: false
++          VALIDATE_HTML: false
++          VALIDATE_JAVASCRIPT_STANDARD: false
++          VALIDATE_JSCPD: false
++          VALIDATE_NATURAL_LANGUAGE: false
++          VALIDATE_SHELL_SHFMT: false
++          VALIDATE_XML: false
index 1b76d280ecadde37c599fdb40b9bb565498bffc3,0000000000000000000000000000000000000000..58f84dc67a35f6a1e9d7c3bedcad2b7b2b7b578d
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,24 @@@
- MD013: false  # Line length
- MD033: false  # Inline HTML
 +# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
 +
++MD002: false
++MD003: false
++MD004: false
++MD007: false
++MD012:
++  maximum: 2
++MD013: false
++MD014: false
++MD022: false
++MD024: false
++MD031: false
++MD032: false
++MD033: false
++MD034: false
++MD036: false
++MD037: false
++MD038: false
++MD041: false
++MD046: false
++MD049: false
++MD050: false
++MD053: false
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4ac45b3953a947620e4b3fb1fe5098fd0b53e790
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,6 @@@
++**/commands/**
++**/functions/**
++**/news/**
++**/showcase/**
++**/zh/**
++**/license.md
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..97a18e37c1d2586aaa481ea88e6eef586320416e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++**/news/**
++**/showcase/**
++**/zh/**
index 4ca64b165e6055fbb090edad7bfd64bf7de6d22f,0000000000000000000000000000000000000000..76c6afe3f661cc2fd4ce5d4975cf9a426af950a3
mode 100644,000000..100644
--- /dev/null
@@@ -1,6 -1,0 +1,7 @@@
-     "esbenp.prettier-vscode",
 +{
 +  "recommendations": [
++    "DavidAnson.vscode-markdownlint",
 +    "EditorConfig.EditorConfig",
++    "streetsidesoftware.code-spell-checker"
 +  ]
 +}
diff --cc docs/README.md
index a2c767b7b21d367f837643f63d70d6cf91af1534,0000000000000000000000000000000000000000..072714a024229d10883f992a158827c6ffa2cf9f
mode 100644,000000..100644
--- /dev/null
@@@ -1,48 -1,0 +1,48 @@@
- We welcome contributions to Hugo of any kind including documentation, suggestions, bug reports, pull requests etc. Also check out our [contribution guide](https://gohugo.io/contribute/documentation/). We would love to hear from you. 
 +[![Netlify Status](https://api.netlify.com/api/v1/badges/e0dbbfc7-34f1-4393-a679-c16e80162705/deploy-status)](https://app.netlify.com/sites/gohugoio/deploys)
 +[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://gohugo.io/contribute/documentation/)
 +
 +# Hugo Docs
 +
 +Documentation site for [Hugo](https://github.com/gohugoio/hugo), the very fast and flexible static site generator built with love in Go.
 +
 +## Contributing
 +
- Note that this repository contains solely the documentation for Hugo. For contributions that aren't documentation-related please refer to the [hugo](https://github.com/gohugoio/hugo) repository. 
++We welcome contributions to Hugo of any kind including documentation, suggestions, bug reports, pull requests etc. Also check out our [contribution guide](https://gohugo.io/contribute/documentation/). We would love to hear from you.
 +
- *Pull requests shall **only** contain changes to the actual documentation. However, changes on the code base of Hugo **and** the documentation shall be a single, atomic pull request in the [hugo](https://github.com/gohugoio/hugo) repository.*
++Note that this repository contains solely the documentation for Hugo. For contributions that aren't documentation-related please refer to the [hugo](https://github.com/gohugoio/hugo) repository.
 +
++*Pull requests shall **only** contain changes to the actual documentation. However, changes on the codebase of Hugo **and** the documentation shall be a single, atomic pull request in the [hugo](https://github.com/gohugoio/hugo) repository.*
 +
 +Spelling fixes are most welcomed, and if you want to contribute longer sections to the documentation, it would be great if you had the following criteria in mind when writing:
 +
 +* Short is good. People go to the library to read novels. If there is more than one way to _do a thing_ in Hugo, describe the current _best practice_ (avoid "… but you can also do …" and "… in older versions of Hugo you had to …".
 +* For example, try to find short snippets that teaches people about the concept. If the example is also useful as-is (copy and paste), then great. Don't list long and similar examples just so people can use them on their sites.
 +* Hugo has users from all over the world, so easy to understand and [simple English](https://simple.wikipedia.org/wiki/Basic_English) is good.
 +
 +## Branches
 +
 +* The `master` branch is where the site is automatically built from, and is the place to put changes relevant to the current Hugo version.
 +* The `next` branch is where we store changes that are related to the next Hugo release. This can be previewed here: https://next--gohugoio.netlify.com/
 +
 +## Build
 +
 +To view the documentation site locally, you need to clone this repository:
 +
 +```bash
 +git clone https://github.com/gohugoio/hugoDocs.git
 +```
 +
 +Also note that the documentation version for a given version of Hugo can also be found in the `/docs` sub-folder of the [Hugo source repository](https://github.com/gohugoio/hugo).
 +
 +Then to view the docs in your browser, run Hugo and open up the link:
 +
 +```bash
 +▶ hugo server
 +
 +Started building sites ...
 +.
 +.
 +Serving pages from memory
 +Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
 +Press Ctrl+C to stop
 +```
index 9b451cf1ca99c0a341eb98a0949bacdf9eb627b0,0000000000000000000000000000000000000000..440b5efdd79f5c188f94f52b238b0b44df2a54e1
mode 100644,000000..100644
--- /dev/null
@@@ -1,80 -1,0 +1,80 @@@
- /* From http://cssfontstack.com */
++/* From https://www.cssfontstack.com */
 +code, .code, pre code, .highlight pre  {
 +  font-family: 'inconsolata',Menlo,Monaco,'Courier New',monospace;
 +}
 +
 +.sans-serif {
 +  font-family: 'Muli',
 +              avenir,
 +               'helvetica neue', helvetica,
 +               ubuntu,
 +               roboto, noto,
 +               'segoe ui', arial,
 +               sans-serif;
 +}
 +
 +
 +.serif {
 +  font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Georgia,serif;
 +}
 +
 +/* Monospaced Typefaces (for code) */
 +
 +
 +.courier {
 +  font-family: 'Courier Next',
 +               courier,
 +               monospace;
 +}
 +
 +
 +/* Sans-Serif Typefaces */
 +
 +.helvetica {
 +  font-family: 'helvetica neue', helvetica,
 +               sans-serif;
 +}
 +
 +.avenir {
 +  font-family: 'avenir next', avenir,
 +               sans-serif;
 +}
 +
 +
 +/* Serif Typefaces */
 +
 +.athelas {
 +  font-family: athelas,
 +               georgia,
 +               serif;
 +}
 +
 +.georgia {
 +  font-family: georgia,
 +               serif;
 +}
 +
 +.times {
 +  font-family: times,
 +               serif;
 +}
 +
 +.bodoni {
 +  font-family: "Bodoni MT",
 +                serif;
 +}
 +
 +.calisto {
 +  font-family: "Calisto MT",
 +                serif;
 +}
 +
 +.garamond {
 +  font-family: garamond,
 +               serif;
 +}
 +
 +.baskerville {
 +  font-family: baskerville,
 +               serif;
 +}
index e309bdb99ce2418eaa6a643de25182eeffae681c,0000000000000000000000000000000000000000..11b320d7487f77b49a72ca6107f8b2c9792e25ec
mode 100644,000000..100644
--- /dev/null
@@@ -1,12 -1,0 +1,11 @@@
- require("typeface-muli")
++require('typeface-muli');
 +import styles from './css/main.css';
- import './js/clipboardjs.js'
- import './js/codeblocks.js'
- import './js/docsearch.js'
- import './js/hljs.js'
- import './js/lazysizes.js'
- import './js/menutoggle.js'
- import './js/scrolldir.js'
- import './js/smoothscroll.js'
- import './js/tabs.js'
- import './js/nojs.js'
++import './js/clipboardjs.js';
++import './js/codeblocks.js';
++import './js/docsearch.js';
++import './js/lazysizes.js';
++import './js/menutoggle.js';
++import './js/scrolldir.js';
++import './js/smoothscroll.js';
++import './js/tabs.js';
++import './js/nojs.js';
index b5e5faa84c0f92d7115cae32f404f51a2a69d258,0000000000000000000000000000000000000000..f5d56e95acac702a80c4b4dd1ac1dca0db15bfe6
mode 100644,000000..100644
--- /dev/null
@@@ -1,5283 -1,0 +1,5278 @@@
-     max-width: 40em;
 +/* muli-200normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 200;
 +  src:
 +    local('Muli Extra Light '),
 +    local('Muli-Extra Light'),
 +    url(/fonts/muli-latin-200.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-200.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-200italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 200;
 +  src:
 +    local('Muli Extra Light italic'),
 +    local('Muli-Extra Lightitalic'),
 +    url(/fonts/muli-latin-200italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-200italic.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-300normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 300;
 +  src:
 +    local('Muli Light '),
 +    local('Muli-Light'),
 +    url(/fonts/muli-latin-300.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-300.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-300italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 300;
 +  src:
 +    local('Muli Light italic'),
 +    local('Muli-Lightitalic'),
 +    url(/fonts/muli-latin-300italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-300italic.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-400normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 400;
 +  src:
 +    local('Muli Regular '),
 +    local('Muli-Regular'),
 +    url(/fonts/muli-latin-400.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-400.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-400italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 400;
 +  src:
 +    local('Muli Regular italic'),
 +    local('Muli-Regularitalic'),
 +    url(/fonts/muli-latin-400italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-400italic.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-600normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 600;
 +  src:
 +    local('Muli SemiBold '),
 +    local('Muli-SemiBold'),
 +    url(/fonts/muli-latin-600.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-600.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-600italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 600;
 +  src:
 +    local('Muli SemiBold italic'),
 +    local('Muli-SemiBolditalic'),
 +    url(/fonts/muli-latin-600italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-600italic.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-700normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 700;
 +  src:
 +    local('Muli Bold '),
 +    local('Muli-Bold'),
 +    url(/fonts/muli-latin-700.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-700.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-700italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 700;
 +  src:
 +    local('Muli Bold italic'),
 +    local('Muli-Bolditalic'),
 +    url(/fonts/muli-latin-700italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-700italic.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-800normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 800;
 +  src:
 +    local('Muli ExtraBold '),
 +    local('Muli-ExtraBold'),
 +    url(/fonts/muli-latin-800.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-800.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-800italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 800;
 +  src:
 +    local('Muli ExtraBold italic'),
 +    local('Muli-ExtraBolditalic'),
 +    url(/fonts/muli-latin-800italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-800italic.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-900normal - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: normal;
 +  font-display: swap;
 +  font-weight: 900;
 +  src:
 +    local('Muli Black '),
 +    local('Muli-Black'),
 +    url(/fonts/muli-latin-900.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-900.woff) format('woff'); /* Modern Browsers */
 +}
 +/* muli-900italic - latin */
 +@font-face {
 +  font-family: 'Muli';
 +  font-style: italic;
 +  font-display: swap;
 +  font-weight: 900;
 +  src:
 +    local('Muli Black italic'),
 +    local('Muli-Blackitalic'),
 +    url(/fonts/muli-latin-900italic.woff2) format('woff2'), 
 +    url(/fonts/muli-latin-900italic.woff) format('woff'); /* Modern Browsers */
 +}
 +
 +
 +/*Base Styles*/
 +/*! TACHYONS v4.7.0 | http://tachyons.io */
 +/*
 + * NOTE: The Tachyons folder is for backup/reference only. This file references the module
 + *      ________            ______
 + *      ___  __/_____ _________  /______  ______________________
 + *      __  /  _  __ `/  ___/_  __ \_  / / /  __ \_  __ \_  ___/
 + *      _  /   / /_/ // /__ _  / / /  /_/ // /_/ /  / / /(__  )
 + *      /_/    \__,_/ \___/ /_/ /_/_\__, / \____//_/ /_//____/
 + *                                 /____/
 + *
 + *    TABLE OF CONTENTS
 + *
 + *    1. External Library Includes
 + *       - Normalize.css | http://normalize.css.github.io
 + *    2. Tachyons Modules
 + *    3. Variables
 + *       - Media Queries
 + *       - Colors
 + *    4. Debugging
 + *       - Debug all
 + *       - Debug children
 + *
 + */
 +/* External Library Includes */
 +/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
 +/* Document
 +   ========================================================================== */
 +/**
 + * 1. Correct the line height in all browsers.
 + * 2. Prevent adjustments of font size after orientation changes in iOS.
 + */
 +html {
 +  line-height: 1.15; /* 1 */
 +  -webkit-text-size-adjust: 100%; /* 2 */
 +}
 +/* Sections
 +   ========================================================================== */
 +/**
 + * Remove the margin in all browsers.
 + */
 +body {
 +  margin: 0;
 +}
 +/**
 + * Correct the font size and margin on `h1` elements within `section` and
 + * `article` contexts in Chrome, Firefox, and Safari.
 + */
 +h1 {
 +  font-size: 2em;
 +  margin: 0.67em 0;
 +}
 +/* Grouping content
 +   ========================================================================== */
 +/**
 + * 1. Add the correct box sizing in Firefox.
 + * 2. Show the overflow in Edge and IE.
 + */
 +hr {
 +  -webkit-box-sizing: content-box;
 +          box-sizing: content-box; /* 1 */
 +  height: 0; /* 1 */
 +  overflow: visible; /* 2 */
 +}
 +/**
 + * 1. Correct the inheritance and scaling of font size in all browsers.
 + * 2. Correct the odd `em` font sizing in all browsers.
 + */
 +pre {
 +  font-family: monospace, monospace; /* 1 */
 +  font-size: 1em; /* 2 */
 +}
 +/* Text-level semantics
 +   ========================================================================== */
 +/**
 + * Remove the gray background on active links in IE 10.
 + */
 +a {
 +  background-color: transparent;
 +}
 +/**
 + * 1. Remove the bottom border in Chrome 57-
 + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 + */
 +abbr[title] {
 +  border-bottom: none; /* 1 */
 +  text-decoration: underline; /* 2 */
 +  -webkit-text-decoration: underline dotted;
 +          text-decoration: underline dotted; /* 2 */
 +}
 +/**
 + * Add the correct font weight in Chrome, Edge, and Safari.
 + */
 +b,
 +strong {
 +  font-weight: bolder;
 +}
 +/**
 + * 1. Correct the inheritance and scaling of font size in all browsers.
 + * 2. Correct the odd `em` font sizing in all browsers.
 + */
 +code,
 +kbd,
 +samp {
 +  font-family: monospace, monospace; /* 1 */
 +  font-size: 1em; /* 2 */
 +}
 +/**
 + * Add the correct font size in all browsers.
 + */
 +small {
 +  font-size: 80%;
 +}
 +/**
 + * Prevent `sub` and `sup` elements from affecting the line height in
 + * all browsers.
 + */
 +sub,
 +sup {
 +  font-size: 75%;
 +  line-height: 0;
 +  position: relative;
 +  vertical-align: baseline;
 +}
 +sub {
 +  bottom: -0.25em;
 +}
 +sup {
 +  top: -0.5em;
 +}
 +/* Embedded content
 +   ========================================================================== */
 +/**
 + * Remove the border on images inside links in IE 10.
 + */
 +img {
 +  border-style: none;
 +}
 +/* Forms
 +   ========================================================================== */
 +/**
 + * 1. Change the font styles in all browsers.
 + * 2. Remove the margin in Firefox and Safari.
 + */
 +button,
 +input,
 +optgroup,
 +select,
 +textarea {
 +  font-family: inherit; /* 1 */
 +  font-size: 100%; /* 1 */
 +  line-height: 1.15; /* 1 */
 +  margin: 0; /* 2 */
 +}
 +/**
 + * Show the overflow in IE.
 + * 1. Show the overflow in Edge.
 + */
 +button,
 +input { /* 1 */
 +  overflow: visible;
 +}
 +/**
 + * Remove the inheritance of text transform in Edge, Firefox, and IE.
 + * 1. Remove the inheritance of text transform in Firefox.
 + */
 +button,
 +select { /* 1 */
 +  text-transform: none;
 +}
 +/**
 + * Correct the inability to style clickable types in iOS and Safari.
 + */
 +button,
 +[type="button"],
 +[type="reset"],
 +[type="submit"] {
 +  -webkit-appearance: button;
 +}
 +/**
 + * Remove the inner border and padding in Firefox.
 + */
 +button::-moz-focus-inner,
 +[type="button"]::-moz-focus-inner,
 +[type="reset"]::-moz-focus-inner,
 +[type="submit"]::-moz-focus-inner {
 +  border-style: none;
 +  padding: 0;
 +}
 +/**
 + * Restore the focus styles unset by the previous rule.
 + */
 +button:-moz-focusring,
 +[type="button"]:-moz-focusring,
 +[type="reset"]:-moz-focusring,
 +[type="submit"]:-moz-focusring {
 +  outline: 1px dotted ButtonText;
 +}
 +/**
 + * Correct the padding in Firefox.
 + */
 +fieldset {
 +  padding: 0.35em 0.75em 0.625em;
 +}
 +/**
 + * 1. Correct the text wrapping in Edge and IE.
 + * 2. Correct the color inheritance from `fieldset` elements in IE.
 + * 3. Remove the padding so developers are not caught out when they zero out
 + *    `fieldset` elements in all browsers.
 + */
 +legend {
 +  -webkit-box-sizing: border-box;
 +          box-sizing: border-box; /* 1 */
 +  color: inherit; /* 2 */
 +  display: table; /* 1 */
 +  max-width: 100%; /* 1 */
 +  padding: 0; /* 3 */
 +  white-space: normal; /* 1 */
 +}
 +/**
 + * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 + */
 +progress {
 +  vertical-align: baseline;
 +}
 +/**
 + * Remove the default vertical scrollbar in IE 10+.
 + */
 +textarea {
 +  overflow: auto;
 +}
 +/**
 + * 1. Add the correct box sizing in IE 10.
 + * 2. Remove the padding in IE 10.
 + */
 +[type="checkbox"],
 +[type="radio"] {
 +  -webkit-box-sizing: border-box;
 +          box-sizing: border-box; /* 1 */
 +  padding: 0; /* 2 */
 +}
 +/**
 + * Correct the cursor style of increment and decrement buttons in Chrome.
 + */
 +[type="number"]::-webkit-inner-spin-button,
 +[type="number"]::-webkit-outer-spin-button {
 +  height: auto;
 +}
 +/**
 + * 1. Correct the odd appearance in Chrome and Safari.
 + * 2. Correct the outline style in Safari.
 + */
 +[type="search"] {
 +  -webkit-appearance: textfield; /* 1 */
 +  outline-offset: -2px; /* 2 */
 +}
 +/**
 + * Remove the inner padding in Chrome and Safari on macOS.
 + */
 +[type="search"]::-webkit-search-decoration {
 +  -webkit-appearance: none;
 +}
 +/**
 + * 1. Correct the inability to style clickable types in iOS and Safari.
 + * 2. Change font properties to `inherit` in Safari.
 + */
 +::-webkit-file-upload-button {
 +  -webkit-appearance: button; /* 1 */
 +  font: inherit; /* 2 */
 +}
 +/* Interactive
 +   ========================================================================== */
 +/*
 + * Add the correct display in Edge, IE 10+, and Firefox.
 + */
 +details {
 +  display: block;
 +}
 +/*
 + * Add the correct display in all browsers.
 + */
 +summary {
 +  display: list-item;
 +}
 +/* Misc
 +   ========================================================================== */
 +/**
 + * Add the correct display in IE 10+.
 + */
 +template {
 +  display: none;
 +}
 +/**
 + * Add the correct display in IE 10.
 + */
 +[hidden] {
 +  display: none;
 +}
 +/* Modules */
 +/*
 + 
 +  BOX SIZING
 +
 +*/
 +html,
 +body,
 +div,
 +article,
 +aside,
 +section,
 +main,
 +nav,
 +footer,
 +header,
 +form,
 +fieldset,
 +legend,
 +pre,
 +code,
 +a,
 +h1,h2,h3,h4,h5,h6,
 +p,
 +ul,
 +ol,
 +li,
 +dl,
 +dt,
 +dd,
 +blockquote,
 +figcaption,
 +figure,
 +textarea,
 +table, 
 +td,
 +th,
 +tr,
 +input[type="email"],
 +input[type="number"],
 +input[type="password"],
 +input[type="tel"],
 +input[type="text"],
 +input[type="url"],
 +.border-box {
 +  -webkit-box-sizing: border-box;
 +          box-sizing: border-box;
 +}
 +/*@import 'tachyons/src/_aspect-ratios';*/
 +/*
 +
 +   IMAGES
 +   Docs: http://tachyons.io/docs/elements/images/
 +
 +*/
 +/* Responsive images! */
 +img { max-width: 100%; }
 +/*
 +
 +   BACKGROUND SIZE
 +   Docs: http://tachyons.io/docs/themes/background-size/
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/*
 +  Often used in combination with background image set as an inline style
 +  on an html element.
 +*/
 +.cover { background-size: cover!important; }
 +.contain { background-size: contain!important; }
 +@media screen and (min-width: 30em) {
 +  .cover-ns { background-size: cover!important; }
 +  .contain-ns { background-size: contain!important; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .cover-m { background-size: cover!important; }
 +  .contain-m { background-size: contain!important; }
 +}
 +@media screen and (min-width: 60em) {
 +  .cover-l { background-size: cover!important; }
 +  .contain-l { background-size: contain!important; }
 +}
 +/*
 +
 +    BACKGROUND POSITION
 +
 +    Base:
 +    bg = background
 +
 +    Modifiers:
 +    -center = center center
 +    -top = top center
 +    -right = center right
 +    -bottom = bottom center
 +    -left = center left
 +
 +    Media Query Extensions:
 +      -ns = not-small
 +      -m  = medium
 +      -l  = large
 +
 + */
 +.bg-center { 
 +  background-repeat: no-repeat;
 +  background-position: center center; 
 +}
 +.bg-top {    
 +  background-repeat: no-repeat; 
 +  background-position: top center;    
 +}
 +.bg-right {  
 +  background-repeat: no-repeat; 
 +  background-position: center right;  
 +}
 +.bg-bottom { 
 +  background-repeat: no-repeat; 
 +  background-position: bottom center; 
 +}
 +.bg-left {   
 +  background-repeat: no-repeat; 
 +  background-position: center left;   
 +}
 +@media screen and (min-width: 30em) {
 +  .bg-center-ns { 
 +    background-repeat: no-repeat;
 +    background-position: center center; 
 +  }
 +
 +  .bg-top-ns {    
 +    background-repeat: no-repeat; 
 +    background-position: top center;    
 +  }
 +
 +  .bg-right-ns {  
 +    background-repeat: no-repeat; 
 +    background-position: center right;  
 +  }
 +
 +  .bg-bottom-ns { 
 +    background-repeat: no-repeat; 
 +    background-position: bottom center; 
 +  }
 +
 +  .bg-left-ns {   
 +    background-repeat: no-repeat; 
 +    background-position: center left;   
 +  }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .bg-center-m { 
 +    background-repeat: no-repeat;
 +    background-position: center center; 
 +  }
 +
 +  .bg-top-m {    
 +    background-repeat: no-repeat; 
 +    background-position: top center;    
 +  }
 +
 +  .bg-right-m {  
 +    background-repeat: no-repeat; 
 +    background-position: center right;  
 +  }
 +
 +  .bg-bottom-m { 
 +    background-repeat: no-repeat; 
 +    background-position: bottom center; 
 +  }
 +
 +  .bg-left-m {   
 +    background-repeat: no-repeat; 
 +    background-position: center left;   
 +  }
 +}
 +@media screen and (min-width: 60em) {
 +  .bg-center-l { 
 +    background-repeat: no-repeat;
 +    background-position: center center; 
 +  }
 +
 +  .bg-top-l {    
 +    background-repeat: no-repeat; 
 +    background-position: top center;    
 +  }
 +
 +  .bg-right-l {  
 +    background-repeat: no-repeat; 
 +    background-position: center right;  
 +  }
 +
 +  .bg-bottom-l { 
 +    background-repeat: no-repeat; 
 +    background-position: bottom center; 
 +  }
 +
 +  .bg-left-l {   
 +    background-repeat: no-repeat; 
 +    background-position: center left;   
 +  }
 +}
 +/*@import 'tachyons/src/_outlines';*/
 +/*
 +
 +    BORDERS
 +    Docs: http://tachyons.io/docs/themes/borders/
 +
 +    Base:
 +      b = border
 +
 +    Modifiers:
 +      a = all
 +      t = top
 +      r = right
 +      b = bottom
 +      l = left
 +      n = none
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.ba { border-style: solid; border-width: 1px; }
 +.bt { border-top-style: solid; border-top-width: 1px; }
 +.br { border-right-style: solid; border-right-width: 1px; }
 +.bb { border-bottom-style: solid; border-bottom-width: 1px; }
 +.bl { border-left-style: solid; border-left-width: 1px; }
 +.bn { border-style: none; border-width: 0; }
 +@media screen and (min-width: 30em) {
 +  .ba-ns { border-style: solid; border-width: 1px; }
 +  .bt-ns { border-top-style: solid; border-top-width: 1px; }
 +  .br-ns { border-right-style: solid; border-right-width: 1px; }
 +  .bb-ns { border-bottom-style: solid; border-bottom-width: 1px; }
 +  .bl-ns { border-left-style: solid; border-left-width: 1px; }
 +  .bn-ns { border-style: none; border-width: 0; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .ba-m { border-style: solid; border-width: 1px; }
 +  .bt-m { border-top-style: solid; border-top-width: 1px; }
 +  .br-m { border-right-style: solid; border-right-width: 1px; }
 +  .bb-m { border-bottom-style: solid; border-bottom-width: 1px; }
 +  .bl-m { border-left-style: solid; border-left-width: 1px; }
 +  .bn-m { border-style: none; border-width: 0; }
 +}
 +@media screen and (min-width: 60em) {
 +  .ba-l { border-style: solid; border-width: 1px; }
 +  .bt-l { border-top-style: solid; border-top-width: 1px; }
 +  .br-l { border-right-style: solid; border-right-width: 1px; }
 +  .bb-l { border-bottom-style: solid; border-bottom-width: 1px; }
 +  .bl-l { border-left-style: solid; border-left-width: 1px; }
 +  .bn-l { border-style: none; border-width: 0; }
 +}
 +/*
 +
 +   BORDER COLORS
 +   Docs: http://tachyons.io/docs/themes/borders/
 +
 +   Border colors can be used to extend the base
 +   border classes ba,bt,bb,br,bl found in the _borders.css file.
 +
 +   The base border class by default will set the color of the border
 +   to that of the current text color. These classes are for the cases
 +   where you desire for the text and border colors to be different.
 +
 +   Base:
 +     b = border
 +
 +   Modifiers:
 +   --color-name = each color variable name is also a border color name
 +
 +*/
 +.b--black {        border-color: #000; }
 +.b--near-black {   border-color: #111; }
 +.b--dark-gray {    border-color: #333; }
 +.b--mid-gray {     border-color: #555; }
 +.b--gray {         border-color: #777; }
 +.b--silver {       border-color: #999; }
 +.b--light-silver { border-color: #aaa; }
 +.b--moon-gray {    border-color: #ccc; }
 +.b--light-gray {   border-color: #eee; }
 +.b--near-white {   border-color: #f4f4f4; }
 +.b--white {        border-color: #fff; }
 +.b--white-90 {   border-color: rgba(255, 255, 255, .9); }
 +.b--white-80 {   border-color: rgba(255, 255, 255, .8); }
 +.b--white-70 {   border-color: rgba(255, 255, 255, .7); }
 +.b--white-60 {   border-color: rgba(255, 255, 255, .6); }
 +.b--white-50 {   border-color: rgba(255, 255, 255, .5); }
 +.b--white-40 {   border-color: rgba(255, 255, 255, .4); }
 +.b--white-30 {   border-color: rgba(255, 255, 255, .3); }
 +.b--white-20 {   border-color: rgba(255, 255, 255, .2); }
 +.b--white-10 {   border-color: rgba(255, 255, 255, .1); }
 +.b--white-05 {   border-color: rgba(255, 255, 255, .05); }
 +.b--white-025 {   border-color: rgba(255, 255, 255, .025); }
 +.b--white-0125 {   border-color: rgba(255, 255, 255, .0125); }
 +.b--black-90 {   border-color: rgba(0, 0, 0, .9); }
 +.b--black-80 {   border-color: rgba(0, 0, 0, .8); }
 +.b--black-70 {   border-color: rgba(0, 0, 0, .7); }
 +.b--black-60 {   border-color: rgba(0, 0, 0, .6); }
 +.b--black-50 {   border-color: rgba(0, 0, 0, .5); }
 +.b--black-40 {   border-color: rgba(0, 0, 0, .4); }
 +.b--black-30 {   border-color: rgba(0, 0, 0, .3); }
 +.b--black-20 {   border-color: rgba(0, 0, 0, .2); }
 +.b--black-10 {   border-color: rgba(0, 0, 0, .1); }
 +.b--black-05 {   border-color: rgba(0, 0, 0, .05); }
 +.b--black-025 {   border-color: rgba(0, 0, 0, .025); }
 +.b--black-0125 {   border-color: rgba(0, 0, 0, .0125); }
 +.b--dark-red { border-color: #e7040f; }
 +.b--red { border-color: #ff4136; }
 +.b--light-red { border-color: #ff725c; }
 +.b--orange { border-color: #ff6300; }
 +.b--gold { border-color: #ffb700; }
 +.b--yellow { border-color: #ffd700; }
 +.b--light-yellow { border-color: #fbf1a9; }
 +.b--purple { border-color: #5e2ca5; }
 +.b--light-purple { border-color: #a463f2; }
 +.b--dark-pink { border-color: #d5008f; }
 +.b--hot-pink { border-color: #ff41b4; }
 +.b--pink { border-color: #ff80cc; }
 +.b--light-pink { border-color: #ffa3d7; }
 +.b--dark-green { border-color: #137752; }
 +.b--green { border-color: #19a974; }
 +.b--light-green { border-color: #9eebcf; }
 +.b--navy { border-color: #001b44; }
 +.b--dark-blue { border-color: #00449e; }
 +.b--blue { border-color: #0594CB; }
 +.b--light-blue { border-color: #96ccff; }
 +.b--lightest-blue { border-color: #cdecff; }
 +.b--washed-blue { border-color: #f6fffe; }
 +.b--washed-green { border-color: #e8fdf5; }
 +.b--washed-yellow { border-color: #fffceb; }
 +.b--washed-red { border-color: #ffdfdf; }
 +.b--transparent { border-color: transparent; }
 +.b--inherit { border-color: inherit; }
 +/*
 +
 +   BORDER RADIUS
 +   Docs: http://tachyons.io/docs/themes/border-radius/
 +
 +   Base:
 +     br   = border-radius
 +
 +   Modifiers:
 +     0    = 0/none
 +     1    = 1st step in scale
 +     2    = 2nd step in scale
 +     3    = 3rd step in scale
 +     4    = 4th step in scale
 +
 +   Literal values:
 +     -100 = 100%
 +     -pill = 9999px
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.br0 {        border-radius: 0; }
 +.br1 {        border-radius: .125rem; }
 +.br2 {        border-radius: .25rem; }
 +.br3 {        border-radius: .5rem; }
 +.br4 {        border-radius: 1rem; }
 +.br-100 {     border-radius: 100%; }
 +.br-pill {    border-radius: 9999px; }
 +.br--bottom {
 +      border-top-left-radius: 0;
 +      border-top-right-radius: 0;
 +  }
 +.br--top {
 +      border-bottom-left-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +.br--right {
 +      border-top-left-radius: 0;
 +      border-bottom-left-radius: 0;
 +  }
 +.br--left {
 +      border-top-right-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +@media screen and (min-width: 30em) {
 +  .br0-ns {     border-radius: 0; }
 +  .br1-ns {     border-radius: .125rem; }
 +  .br2-ns {     border-radius: .25rem; }
 +  .br3-ns {     border-radius: .5rem; }
 +  .br4-ns {     border-radius: 1rem; }
 +  .br-100-ns {  border-radius: 100%; }
 +  .br-pill-ns { border-radius: 9999px; }
 +  .br--bottom-ns {
 +      border-top-left-radius: 0;
 +      border-top-right-radius: 0;
 +  }
 +  .br--top-ns {
 +      border-bottom-left-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +  .br--right-ns {
 +      border-top-left-radius: 0;
 +      border-bottom-left-radius: 0;
 +  }
 +  .br--left-ns {
 +      border-top-right-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .br0-m {     border-radius: 0; }
 +  .br1-m {     border-radius: .125rem; }
 +  .br2-m {     border-radius: .25rem; }
 +  .br3-m {     border-radius: .5rem; }
 +  .br4-m {     border-radius: 1rem; }
 +  .br-100-m {  border-radius: 100%; }
 +  .br-pill-m { border-radius: 9999px; }
 +  .br--bottom-m {
 +      border-top-left-radius: 0;
 +      border-top-right-radius: 0;
 +  }
 +  .br--top-m {
 +      border-bottom-left-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +  .br--right-m {
 +      border-top-left-radius: 0;
 +      border-bottom-left-radius: 0;
 +  }
 +  .br--left-m {
 +      border-top-right-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +}
 +@media screen and (min-width: 60em) {
 +  .br0-l {     border-radius: 0; }
 +  .br1-l {     border-radius: .125rem; }
 +  .br2-l {     border-radius: .25rem; }
 +  .br3-l {     border-radius: .5rem; }
 +  .br4-l {     border-radius: 1rem; }
 +  .br-100-l {  border-radius: 100%; }
 +  .br-pill-l { border-radius: 9999px; }
 +  .br--bottom-l {
 +      border-top-left-radius: 0;
 +      border-top-right-radius: 0;
 +  }
 +  .br--top-l {
 +      border-bottom-left-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +  .br--right-l {
 +      border-top-left-radius: 0;
 +      border-bottom-left-radius: 0;
 +  }
 +  .br--left-l {
 +      border-top-right-radius: 0;
 +      border-bottom-right-radius: 0;
 +  }
 +}
 +/*
 +
 +   BORDER STYLES
 +   Docs: http://tachyons.io/docs/themes/borders/
 +
 +   Depends on base border module in _borders.css
 +
 +   Base:
 +     b = border-style
 +
 +   Modifiers:
 +     --none   = none
 +     --dotted = dotted
 +     --dashed = dashed
 +     --solid  = solid
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 + */
 +.b--dotted { border-style: dotted; }
 +.b--dashed { border-style: dashed; }
 +.b--solid {  border-style: solid; }
 +.b--none {   border-style: none; }
 +@media screen and (min-width: 30em) {
 +  .b--dotted-ns { border-style: dotted; }
 +  .b--dashed-ns { border-style: dashed; }
 +  .b--solid-ns {  border-style: solid; }
 +  .b--none-ns {   border-style: none; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .b--dotted-m { border-style: dotted; }
 +  .b--dashed-m { border-style: dashed; }
 +  .b--solid-m {  border-style: solid; }
 +  .b--none-m {   border-style: none; }
 +}
 +@media screen and (min-width: 60em) {
 +  .b--dotted-l { border-style: dotted; }
 +  .b--dashed-l { border-style: dashed; }
 +  .b--solid-l {  border-style: solid; }
 +  .b--none-l {   border-style: none; }
 +}
 +/*
 +
 +   BORDER WIDTHS
 +   Docs: http://tachyons.io/docs/themes/borders/
 +
 +   Base:
 +     bw = border-width
 +
 +   Modifiers:
 +     0 = 0 width border
 +     1 = 1st step in border-width scale
 +     2 = 2nd step in border-width scale
 +     3 = 3rd step in border-width scale
 +     4 = 4th step in border-width scale
 +     5 = 5th step in border-width scale
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.bw0 { border-width: 0; }
 +.bw1 { border-width: .125rem; }
 +.bw2 { border-width: .25rem; }
 +.bw3 { border-width: .5rem; }
 +.bw4 { border-width: 1rem; }
 +.bw5 { border-width: 2rem; }
 +/* Resets */
 +.bt-0 { border-top-width: 0; }
 +.br-0 { border-right-width: 0; }
 +.bb-0 { border-bottom-width: 0; }
 +.bl-0 { border-left-width: 0; }
 +@media screen and (min-width: 30em) {
 +  .bw0-ns { border-width: 0; }
 +  .bw1-ns { border-width: .125rem; }
 +  .bw2-ns { border-width: .25rem; }
 +  .bw3-ns { border-width: .5rem; }
 +  .bw4-ns { border-width: 1rem; }
 +  .bw5-ns { border-width: 2rem; }
 +  .bt-0-ns { border-top-width: 0; }
 +  .br-0-ns { border-right-width: 0; }
 +  .bb-0-ns { border-bottom-width: 0; }
 +  .bl-0-ns { border-left-width: 0; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .bw0-m { border-width: 0; }
 +  .bw1-m { border-width: .125rem; }
 +  .bw2-m { border-width: .25rem; }
 +  .bw3-m { border-width: .5rem; }
 +  .bw4-m { border-width: 1rem; }
 +  .bw5-m { border-width: 2rem; }
 +  .bt-0-m { border-top-width: 0; }
 +  .br-0-m { border-right-width: 0; }
 +  .bb-0-m { border-bottom-width: 0; }
 +  .bl-0-m { border-left-width: 0; }
 +}
 +@media screen and (min-width: 60em) {
 +  .bw0-l { border-width: 0; }
 +  .bw1-l { border-width: .125rem; }
 +  .bw2-l { border-width: .25rem; }
 +  .bw3-l { border-width: .5rem; }
 +  .bw4-l { border-width: 1rem; }
 +  .bw5-l { border-width: 2rem; }
 +  .bt-0-l { border-top-width: 0; }
 +  .br-0-l { border-right-width: 0; }
 +  .bb-0-l { border-bottom-width: 0; }
 +  .bl-0-l { border-left-width: 0; }
 +}
 +/*
 +
 +  BOX-SHADOW
 +  Docs: http://tachyons.io/docs/themes/box-shadow/
 +
 +  Media Query Extensions:
 +   -ns = not-small
 +   -m  = medium
 +   -l  = large
 +
 + */
 +.shadow-1 { -webkit-box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); }
 +.shadow-2 { -webkit-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); }
 +.shadow-3 { -webkit-box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); }
 +.shadow-4 { -webkit-box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); }
 +.shadow-5 { -webkit-box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); }
 +@media screen and (min-width: 30em) {
 +  .shadow-1-ns { -webkit-box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); }
 +  .shadow-2-ns { -webkit-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); }
 +  .shadow-3-ns { -webkit-box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); }
 +  .shadow-4-ns { -webkit-box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); }
 +  .shadow-5-ns { -webkit-box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .shadow-1-m { -webkit-box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); }
 +  .shadow-2-m { -webkit-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); }
 +  .shadow-3-m { -webkit-box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); }
 +  .shadow-4-m { -webkit-box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); }
 +  .shadow-5-m { -webkit-box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); }
 +}
 +@media screen and (min-width: 60em) {
 +  .shadow-1-l { -webkit-box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .2); }
 +  .shadow-2-l { -webkit-box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, .2); }
 +  .shadow-3-l { -webkit-box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, .2); }
 +  .shadow-4-l { -webkit-box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, .2); }
 +  .shadow-5-l { -webkit-box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, .2); }
 +}
 +/*@import 'tachyons/src/_code';*/
 +/*
 +
 +   COORDINATES
 +   Docs: http://tachyons.io/docs/layout/position/
 +
 +   Use in combination with the position module.
 +
 +   Base:
 +     top
 +     bottom
 +     right
 +     left
 +
 +   Modifiers:
 +     -0  = literal value 0
 +     -1  = literal value 1
 +     -2  = literal value 2
 +     --1 = literal value -1
 +     --2 = literal value -2
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.top-0    { top:    0; }
 +.right-0  { right:  0; }
 +.bottom-0 { bottom: 0; }
 +.left-0   { left:   0; }
 +.top-1    { top:    1rem; }
 +.right-1  { right:  1rem; }
 +.bottom-1 { bottom: 1rem; }
 +.left-1   { left:   1rem; }
 +.top-2    { top:    2rem; }
 +.right-2  { right:  2rem; }
 +.bottom-2 { bottom: 2rem; }
 +.left-2   { left:   2rem; }
 +.top--1    { top:    -1rem; }
 +.right--1  { right:  -1rem; }
 +.bottom--1 { bottom: -1rem; }
 +.left--1   { left:   -1rem; }
 +.top--2    { top:    -2rem; }
 +.right--2  { right:  -2rem; }
 +.bottom--2 { bottom: -2rem; }
 +.left--2   { left:   -2rem; }
 +.absolute--fill {
 +  top: 0;
 +  right: 0;
 +  bottom: 0;
 +  left: 0;
 +}
 +@media screen and (min-width: 30em) {
 +  .top-0-ns     { top:   0; }
 +  .left-0-ns    { left:  0; }
 +  .right-0-ns   { right: 0; }
 +  .bottom-0-ns  { bottom: 0; }
 +  .top-1-ns     { top:   1rem; }
 +  .left-1-ns    { left:  1rem; }
 +  .right-1-ns   { right: 1rem; }
 +  .bottom-1-ns  { bottom: 1rem; }
 +  .top-2-ns     { top:   2rem; }
 +  .left-2-ns    { left:  2rem; }
 +  .right-2-ns   { right: 2rem; }
 +  .bottom-2-ns  { bottom: 2rem; }
 +  .top--1-ns    { top:    -1rem; }
 +  .right--1-ns  { right:  -1rem; }
 +  .bottom--1-ns { bottom: -1rem; }
 +  .left--1-ns   { left:   -1rem; }
 +  .top--2-ns    { top:    -2rem; }
 +  .right--2-ns  { right:  -2rem; }
 +  .bottom--2-ns { bottom: -2rem; }
 +  .left--2-ns   { left:   -2rem; }
 +  .absolute--fill-ns {
 +    top: 0;
 +    right: 0;
 +    bottom: 0;
 +    left: 0;
 +  }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .top-0-m     { top:   0; }
 +  .left-0-m    { left:  0; }
 +  .right-0-m   { right: 0; }
 +  .bottom-0-m  { bottom: 0; }
 +  .top-1-m     { top:   1rem; }
 +  .left-1-m    { left:  1rem; }
 +  .right-1-m   { right: 1rem; }
 +  .bottom-1-m  { bottom: 1rem; }
 +  .top-2-m     { top:   2rem; }
 +  .left-2-m    { left:  2rem; }
 +  .right-2-m   { right: 2rem; }
 +  .bottom-2-m  { bottom: 2rem; }
 +  .top--1-m    { top:    -1rem; }
 +  .right--1-m  { right:  -1rem; }
 +  .bottom--1-m { bottom: -1rem; }
 +  .left--1-m   { left:   -1rem; }
 +  .top--2-m    { top:    -2rem; }
 +  .right--2-m  { right:  -2rem; }
 +  .bottom--2-m { bottom: -2rem; }
 +  .left--2-m   { left:   -2rem; }
 +  .absolute--fill-m {
 +    top: 0;
 +    right: 0;
 +    bottom: 0;
 +    left: 0;
 +  }
 +}
 +@media screen and (min-width: 60em) {
 +  .top-0-l     { top:   0; }
 +  .left-0-l    { left:  0; }
 +  .right-0-l   { right: 0; }
 +  .bottom-0-l  { bottom: 0; }
 +  .top-1-l     { top:   1rem; }
 +  .left-1-l    { left:  1rem; }
 +  .right-1-l   { right: 1rem; }
 +  .bottom-1-l  { bottom: 1rem; }
 +  .top-2-l     { top:   2rem; }
 +  .left-2-l    { left:  2rem; }
 +  .right-2-l   { right: 2rem; }
 +  .bottom-2-l  { bottom: 2rem; }
 +  .top--1-l    { top:    -1rem; }
 +  .right--1-l  { right:  -1rem; }
 +  .bottom--1-l { bottom: -1rem; }
 +  .left--1-l   { left:   -1rem; }
 +  .top--2-l    { top:    -2rem; }
 +  .right--2-l  { right:  -2rem; }
 +  .bottom--2-l { bottom: -2rem; }
 +  .left--2-l   { left:   -2rem; }
 +  .absolute--fill-l {
 +    top: 0;
 +    right: 0;
 +    bottom: 0;
 +    left: 0;
 +  }
 +}
 +/*
 +
 +   CLEARFIX
 +   http://tachyons.io/docs/layout/clearfix/
 +
 +*/
 +/* Nicolas Gallaghers Clearfix solution
 +   Ref: http://nicolasgallagher.com/micro-clearfix-hack/ */
 +.cf:before,
 +.cf:after { content: " "; display: table; }
 +.cf:after { clear: both; }
 +.cf {       *zoom: 1; }
 +.cl { clear: left; }
 +.cr { clear: right; }
 +.cb { clear: both; }
 +.cn { clear: none; }
 +@media screen and (min-width: 30em) {
 +  .cl-ns { clear: left; }
 +  .cr-ns { clear: right; }
 +  .cb-ns { clear: both; }
 +  .cn-ns { clear: none; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .cl-m { clear: left; }
 +  .cr-m { clear: right; }
 +  .cb-m { clear: both; }
 +  .cn-m { clear: none; }
 +}
 +@media screen and (min-width: 60em) {
 +  .cl-l { clear: left; }
 +  .cr-l { clear: right; }
 +  .cb-l { clear: both; }
 +  .cn-l { clear: none; }
 +}
 +/*
 +
 +   DISPLAY
 +   Docs: http://tachyons.io/docs/layout/display
 +
 +   Base:
 +    d = display
 +
 +   Modifiers:
 +    n     = none
 +    b     = block
 +    ib    = inline-block
 +    it    = inline-table
 +    t     = table
 +    tc    = table-cell
 +    t-row          = table-row
 +    t-columm       = table-column
 +    t-column-group = table-column-group
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.dn {              display: none; }
 +.di {              display: inline; }
 +.db {              display: block; }
 +.dib {             display: inline-block; }
 +.dit {             display: inline-table; }
 +.dt {              display: table; }
 +.dtc {             display: table-cell; }
 +.dt-row {          display: table-row; }
 +.dt-row-group {    display: table-row-group; }
 +.dt-column {       display: table-column; }
 +.dt-column-group { display: table-column-group; }
 +/*
 +  This will set table to full width and then
 +  all cells will be equal width
 +*/
 +.dt--fixed {
 +  table-layout: fixed;
 +  width: 100%;
 +}
 +@media screen and (min-width: 30em) {
 +  .dn-ns {              display: none; }
 +  .di-ns {              display: inline; }
 +  .db-ns {              display: block; }
 +  .dib-ns {             display: inline-block; }
 +  .dit-ns {             display: inline-table; }
 +  .dt-ns {              display: table; }
 +  .dtc-ns {             display: table-cell; }
 +  .dt-row-ns {          display: table-row; }
 +  .dt-row-group-ns {    display: table-row-group; }
 +  .dt-column-ns {       display: table-column; }
 +  .dt-column-group-ns { display: table-column-group; }
 +
 +  .dt--fixed-ns {
 +    table-layout: fixed;
 +    width: 100%;
 +  }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .dn-m {              display: none; }
 +  .di-m {              display: inline; }
 +  .db-m {              display: block; }
 +  .dib-m {             display: inline-block; }
 +  .dit-m {             display: inline-table; }
 +  .dt-m {              display: table; }
 +  .dtc-m {             display: table-cell; }
 +  .dt-row-m {          display: table-row; }
 +  .dt-row-group-m {    display: table-row-group; }
 +  .dt-column-m {       display: table-column; }
 +  .dt-column-group-m { display: table-column-group; }
 +
 +  .dt--fixed-m {
 +    table-layout: fixed;
 +    width: 100%;
 +  }
 +}
 +@media screen and (min-width: 60em) {
 +  .dn-l {              display: none; }
 +  .di-l {              display: inline; }
 +  .db-l {              display: block; }
 +  .dib-l {             display: inline-block; }
 +  .dit-l {             display: inline-table; }
 +  .dt-l {              display: table; }
 +  .dtc-l {             display: table-cell; }
 +  .dt-row-l {          display: table-row; }
 +  .dt-row-group-l {    display: table-row-group; }
 +  .dt-column-l {       display: table-column; }
 +  .dt-column-group-l { display: table-column-group; }
 +
 +  .dt--fixed-l {
 +    table-layout: fixed;
 +    width: 100%;
 +  }
 +}
 +/*
 +
 +  FLEXBOX
 +
 +  Media Query Extensions:
 +   -ns = not-small
 +   -m  = medium
 +   -l  = large
 +
 +*/
 +.flex { display: -webkit-box; display: -ms-flexbox; display: flex; }
 +.inline-flex { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; }
 +/* 1. Fix for Chrome 44 bug.
 + * https://code.google.com/p/chromium/issues/detail?id=506893 */
 +.flex-auto {
 +  -webkit-box-flex: 1;
 +      -ms-flex: 1 1 auto;
 +          flex: 1 1 auto;
 +  min-width: 0; /* 1 */
 +  min-height: 0; /* 1 */
 +}
 +.flex-none { -webkit-box-flex: 0; -ms-flex: none; flex: none; }
 +.flex-column  { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
 +.flex-row     { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
 +.flex-wrap    { -ms-flex-wrap: wrap; flex-wrap: wrap; }
 +.flex-nowrap    { -ms-flex-wrap: nowrap; flex-wrap: nowrap; }
 +.flex-wrap-reverse    { -ms-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; }
 +.flex-column-reverse  { -webkit-box-orient: vertical; -webkit-box-direction: reverse; -ms-flex-direction: column-reverse; flex-direction: column-reverse; }
 +.flex-row-reverse     { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; }
 +.items-start    { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
 +.items-end      { -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
 +.items-center   { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
 +.items-baseline { -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; }
 +.items-stretch  { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; }
 +.self-start    { -ms-flex-item-align: start; align-self: flex-start; }
 +.self-end      { -ms-flex-item-align: end; align-self: flex-end; }
 +.self-center   { -ms-flex-item-align: center; align-self: center; }
 +.self-baseline { -ms-flex-item-align: baseline; align-self: baseline; }
 +.self-stretch  { -ms-flex-item-align: stretch; align-self: stretch; }
 +.justify-start   { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
 +.justify-end     { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
 +.justify-center  { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
 +.justify-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
 +.justify-around  { -ms-flex-pack: distribute; justify-content: space-around; }
 +.content-start   { -ms-flex-line-pack: start; align-content: flex-start; }
 +.content-end     { -ms-flex-line-pack: end; align-content: flex-end; }
 +.content-center  { -ms-flex-line-pack: center; align-content: center; }
 +.content-between { -ms-flex-line-pack: justify; align-content: space-between; }
 +.content-around  { -ms-flex-line-pack: distribute; align-content: space-around; }
 +.content-stretch { -ms-flex-line-pack: stretch; align-content: stretch; }
 +.order-0 { -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; }
 +.order-1 { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; }
 +.order-2 { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; }
 +.order-3 { -webkit-box-ordinal-group: 4; -ms-flex-order: 3; order: 3; }
 +.order-4 { -webkit-box-ordinal-group: 5; -ms-flex-order: 4; order: 4; }
 +.order-5 { -webkit-box-ordinal-group: 6; -ms-flex-order: 5; order: 5; }
 +.order-6 { -webkit-box-ordinal-group: 7; -ms-flex-order: 6; order: 6; }
 +.order-7 { -webkit-box-ordinal-group: 8; -ms-flex-order: 7; order: 7; }
 +.order-8 { -webkit-box-ordinal-group: 9; -ms-flex-order: 8; order: 8; }
 +.order-last { -webkit-box-ordinal-group: 100000; -ms-flex-order: 99999; order: 99999; }
 +.flex-grow-0 { -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; }
 +.flex-grow-1 { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; }
 +.flex-shrink-0 { -ms-flex-negative: 0; flex-shrink: 0; }
 +.flex-shrink-1 { -ms-flex-negative: 1; flex-shrink: 1; }
 +@media screen and (min-width: 30em) {
 +  .flex-ns { display: -webkit-box; display: -ms-flexbox; display: flex; }
 +  .inline-flex-ns { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; }
 +  .flex-auto-ns {
 +    -webkit-box-flex: 1;
 +        -ms-flex: 1 1 auto;
 +            flex: 1 1 auto;
 +    min-width: 0; /* 1 */
 +    min-height: 0; /* 1 */
 +  }
 +  .flex-none-ns { -webkit-box-flex: 0; -ms-flex: none; flex: none; }
 +  .flex-column-ns { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
 +  .flex-row-ns { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
 +  .flex-wrap-ns { -ms-flex-wrap: wrap; flex-wrap: wrap; }
 +  .flex-nowrap-ns { -ms-flex-wrap: nowrap; flex-wrap: nowrap; }
 +  .flex-wrap-reverse-ns { -ms-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; }
 +  .flex-column-reverse-ns { -webkit-box-orient: vertical; -webkit-box-direction: reverse; -ms-flex-direction: column-reverse; flex-direction: column-reverse; }
 +  .flex-row-reverse-ns { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; }
 +  .items-start-ns { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
 +  .items-end-ns { -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
 +  .items-center-ns { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
 +  .items-baseline-ns { -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; }
 +  .items-stretch-ns { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; }
 +
 +  .self-start-ns { -ms-flex-item-align: start; align-self: flex-start; }
 +  .self-end-ns { -ms-flex-item-align: end; align-self: flex-end; }
 +  .self-center-ns { -ms-flex-item-align: center; align-self: center; }
 +  .self-baseline-ns { -ms-flex-item-align: baseline; align-self: baseline; }
 +  .self-stretch-ns { -ms-flex-item-align: stretch; align-self: stretch; }
 +
 +  .justify-start-ns { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
 +  .justify-end-ns { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
 +  .justify-center-ns { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
 +  .justify-between-ns { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
 +  .justify-around-ns { -ms-flex-pack: distribute; justify-content: space-around; }
 +
 +  .content-start-ns { -ms-flex-line-pack: start; align-content: flex-start; }
 +  .content-end-ns { -ms-flex-line-pack: end; align-content: flex-end; }
 +  .content-center-ns { -ms-flex-line-pack: center; align-content: center; }
 +  .content-between-ns { -ms-flex-line-pack: justify; align-content: space-between; }
 +  .content-around-ns { -ms-flex-line-pack: distribute; align-content: space-around; }
 +  .content-stretch-ns { -ms-flex-line-pack: stretch; align-content: stretch; }
 +
 +  .order-0-ns { -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; }
 +  .order-1-ns { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; }
 +  .order-2-ns { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; }
 +  .order-3-ns { -webkit-box-ordinal-group: 4; -ms-flex-order: 3; order: 3; }
 +  .order-4-ns { -webkit-box-ordinal-group: 5; -ms-flex-order: 4; order: 4; }
 +  .order-5-ns { -webkit-box-ordinal-group: 6; -ms-flex-order: 5; order: 5; }
 +  .order-6-ns { -webkit-box-ordinal-group: 7; -ms-flex-order: 6; order: 6; }
 +  .order-7-ns { -webkit-box-ordinal-group: 8; -ms-flex-order: 7; order: 7; }
 +  .order-8-ns { -webkit-box-ordinal-group: 9; -ms-flex-order: 8; order: 8; }
 +  .order-last-ns { -webkit-box-ordinal-group: 100000; -ms-flex-order: 99999; order: 99999; }
 +
 +  .flex-grow-0-ns { -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; }
 +  .flex-grow-1-ns { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; }
 +
 +  .flex-shrink-0-ns { -ms-flex-negative: 0; flex-shrink: 0; }
 +  .flex-shrink-1-ns { -ms-flex-negative: 1; flex-shrink: 1; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .flex-m { display: -webkit-box; display: -ms-flexbox; display: flex; }
 +  .inline-flex-m { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; }
 +  .flex-auto-m {
 +    -webkit-box-flex: 1;
 +        -ms-flex: 1 1 auto;
 +            flex: 1 1 auto;
 +    min-width: 0; /* 1 */
 +    min-height: 0; /* 1 */
 +  }
 +  .flex-none-m { -webkit-box-flex: 0; -ms-flex: none; flex: none; }
 +  .flex-column-m { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
 +  .flex-row-m     { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
 +  .flex-wrap-m { -ms-flex-wrap: wrap; flex-wrap: wrap; }
 +  .flex-nowrap-m { -ms-flex-wrap: nowrap; flex-wrap: nowrap; }
 +  .flex-wrap-reverse-m { -ms-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; }
 +  .flex-column-reverse-m { -webkit-box-orient: vertical; -webkit-box-direction: reverse; -ms-flex-direction: column-reverse; flex-direction: column-reverse; }
 +  .flex-row-reverse-m { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; }
 +  .items-start-m { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
 +  .items-end-m { -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
 +  .items-center-m { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
 +  .items-baseline-m { -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; }
 +  .items-stretch-m { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; }
 +
 +  .self-start-m { -ms-flex-item-align: start; align-self: flex-start; }
 +  .self-end-m { -ms-flex-item-align: end; align-self: flex-end; }
 +  .self-center-m { -ms-flex-item-align: center; align-self: center; }
 +  .self-baseline-m { -ms-flex-item-align: baseline; align-self: baseline; }
 +  .self-stretch-m { -ms-flex-item-align: stretch; align-self: stretch; }
 +
 +  .justify-start-m { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
 +  .justify-end-m { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
 +  .justify-center-m { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
 +  .justify-between-m { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
 +  .justify-around-m { -ms-flex-pack: distribute; justify-content: space-around; }
 +
 +  .content-start-m { -ms-flex-line-pack: start; align-content: flex-start; }
 +  .content-end-m { -ms-flex-line-pack: end; align-content: flex-end; }
 +  .content-center-m { -ms-flex-line-pack: center; align-content: center; }
 +  .content-between-m { -ms-flex-line-pack: justify; align-content: space-between; }
 +  .content-around-m { -ms-flex-line-pack: distribute; align-content: space-around; }
 +  .content-stretch-m { -ms-flex-line-pack: stretch; align-content: stretch; }
 +
 +  .order-0-m { -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; }
 +  .order-1-m { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; }
 +  .order-2-m { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; }
 +  .order-3-m { -webkit-box-ordinal-group: 4; -ms-flex-order: 3; order: 3; }
 +  .order-4-m { -webkit-box-ordinal-group: 5; -ms-flex-order: 4; order: 4; }
 +  .order-5-m { -webkit-box-ordinal-group: 6; -ms-flex-order: 5; order: 5; }
 +  .order-6-m { -webkit-box-ordinal-group: 7; -ms-flex-order: 6; order: 6; }
 +  .order-7-m { -webkit-box-ordinal-group: 8; -ms-flex-order: 7; order: 7; }
 +  .order-8-m { -webkit-box-ordinal-group: 9; -ms-flex-order: 8; order: 8; }
 +  .order-last-m { -webkit-box-ordinal-group: 100000; -ms-flex-order: 99999; order: 99999; }
 +
 +  .flex-grow-0-m { -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; }
 +  .flex-grow-1-m { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; }
 +
 +  .flex-shrink-0-m { -ms-flex-negative: 0; flex-shrink: 0; }
 +  .flex-shrink-1-m { -ms-flex-negative: 1; flex-shrink: 1; }
 +}
 +@media screen and (min-width: 60em) {
 +  .flex-l { display: -webkit-box; display: -ms-flexbox; display: flex; }
 +  .inline-flex-l { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; }
 +  .flex-auto-l {
 +    -webkit-box-flex: 1;
 +        -ms-flex: 1 1 auto;
 +            flex: 1 1 auto;
 +    min-width: 0; /* 1 */
 +    min-height: 0; /* 1 */
 +  }
 +  .flex-none-l { -webkit-box-flex: 0; -ms-flex: none; flex: none; }
 +  .flex-column-l { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
 +  .flex-row-l { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
 +  .flex-wrap-l { -ms-flex-wrap: wrap; flex-wrap: wrap; }
 +  .flex-nowrap-l { -ms-flex-wrap: nowrap; flex-wrap: nowrap; }
 +  .flex-wrap-reverse-l { -ms-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; }
 +  .flex-column-reverse-l { -webkit-box-orient: vertical; -webkit-box-direction: reverse; -ms-flex-direction: column-reverse; flex-direction: column-reverse; }
 +  .flex-row-reverse-l { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; }
 +
 +  .items-start-l { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
 +  .items-end-l { -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
 +  .items-center-l { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
 +  .items-baseline-l { -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; }
 +  .items-stretch-l { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; }
 +
 +  .self-start-l { -ms-flex-item-align: start; align-self: flex-start; }
 +  .self-end-l { -ms-flex-item-align: end; align-self: flex-end; }
 +  .self-center-l { -ms-flex-item-align: center; align-self: center; }
 +  .self-baseline-l { -ms-flex-item-align: baseline; align-self: baseline; }
 +  .self-stretch-l { -ms-flex-item-align: stretch; align-self: stretch; }
 +
 +  .justify-start-l { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
 +  .justify-end-l { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
 +  .justify-center-l { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
 +  .justify-between-l { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
 +  .justify-around-l { -ms-flex-pack: distribute; justify-content: space-around; }
 +
 +  .content-start-l { -ms-flex-line-pack: start; align-content: flex-start; }
 +  .content-end-l { -ms-flex-line-pack: end; align-content: flex-end; }
 +  .content-center-l { -ms-flex-line-pack: center; align-content: center; }
 +  .content-between-l { -ms-flex-line-pack: justify; align-content: space-between; }
 +  .content-around-l { -ms-flex-line-pack: distribute; align-content: space-around; }
 +  .content-stretch-l { -ms-flex-line-pack: stretch; align-content: stretch; }
 +
 +  .order-0-l { -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; }
 +  .order-1-l { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; }
 +  .order-2-l { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; }
 +  .order-3-l { -webkit-box-ordinal-group: 4; -ms-flex-order: 3; order: 3; }
 +  .order-4-l { -webkit-box-ordinal-group: 5; -ms-flex-order: 4; order: 4; }
 +  .order-5-l { -webkit-box-ordinal-group: 6; -ms-flex-order: 5; order: 5; }
 +  .order-6-l { -webkit-box-ordinal-group: 7; -ms-flex-order: 6; order: 6; }
 +  .order-7-l { -webkit-box-ordinal-group: 8; -ms-flex-order: 7; order: 7; }
 +  .order-8-l { -webkit-box-ordinal-group: 9; -ms-flex-order: 8; order: 8; }
 +  .order-last-l { -webkit-box-ordinal-group: 100000; -ms-flex-order: 99999; order: 99999; }
 +
 +  .flex-grow-0-l { -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; }
 +  .flex-grow-1-l { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; }
 +
 +  .flex-shrink-0-l { -ms-flex-negative: 0; flex-shrink: 0; }
 +  .flex-shrink-1-l { -ms-flex-negative: 1; flex-shrink: 1; }
 +}
 +/*
 +
 +   FLOATS
 +   http://tachyons.io/docs/layout/floats/
 +
 +   1. Floated elements are automatically rendered as block level elements.
 +      Setting floats to display inline will fix the double margin bug in
 +      ie6. You know... just in case.
 +
 +   2. Don't forget to clearfix your floats with .cf
 +
 +   Base:
 +     f = float
 +
 +   Modifiers:
 +     l = left
 +     r = right
 +     n = none
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.fl { float: left;  _display: inline; }
 +.fr { float: right; _display: inline; }
 +.fn { float: none; }
 +@media screen and (min-width: 30em) {
 +  .fl-ns { float: left; _display: inline; }
 +  .fr-ns { float: right; _display: inline; }
 +  .fn-ns { float: none; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .fl-m { float: left; _display: inline; }
 +  .fr-m { float: right; _display: inline; }
 +  .fn-m { float: none; }
 +}
 +@media screen and (min-width: 60em) {
 +  .fl-l { float: left; _display: inline; }
 +  .fr-l { float: right; _display: inline; }
 +  .fn-l { float: none; }
 +}
 +/*@import 'tachyons/src/_font-family';*/
 +/*
 +
 +   FONT STYLE
 +   Docs: http://tachyons.io/docs/typography/font-style/
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.i         { font-style: italic; }
 +.fs-normal { font-style: normal; }
 +@media screen and (min-width: 30em) {
 +  .i-ns       { font-style: italic; }
 +  .fs-normal-ns     { font-style: normal; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .i-m       { font-style: italic; }
 +  .fs-normal-m     { font-style: normal; }
 +}
 +@media screen and (min-width: 60em) {
 +  .i-l       { font-style: italic; }
 +  .fs-normal-l     { font-style: normal; }
 +}
 +/*
 +
 +   FONT WEIGHT
 +   Docs: http://tachyons.io/docs/typography/font-weight/
 +
 +   Base
 +     fw = font-weight
 +
 +   Modifiers:
 +     1 = literal value 100
 +     2 = literal value 200
 +     3 = literal value 300
 +     4 = literal value 400
 +     5 = literal value 500
 +     6 = literal value 600
 +     7 = literal value 700
 +     8 = literal value 800
 +     9 = literal value 900
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.normal { font-weight: normal; }
 +.b      { font-weight: bold; }
 +.fw1    { font-weight: 100; }
 +.fw2    { font-weight: 200; }
 +.fw3    { font-weight: 300; }
 +.fw4    { font-weight: 400; }
 +.fw5    { font-weight: 500; }
 +.fw6    { font-weight: 600; }
 +.fw7    { font-weight: 700; }
 +.fw8    { font-weight: 800; }
 +.fw9    { font-weight: 900; }
 +@media screen and (min-width: 30em) {
 +  .normal-ns { font-weight: normal; }
 +  .b-ns      { font-weight: bold; }
 +  .fw1-ns    { font-weight: 100; }
 +  .fw2-ns    { font-weight: 200; }
 +  .fw3-ns    { font-weight: 300; }
 +  .fw4-ns    { font-weight: 400; }
 +  .fw5-ns    { font-weight: 500; }
 +  .fw6-ns    { font-weight: 600; }
 +  .fw7-ns    { font-weight: 700; }
 +  .fw8-ns    { font-weight: 800; }
 +  .fw9-ns    { font-weight: 900; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .normal-m { font-weight: normal; }
 +  .b-m      { font-weight: bold; }
 +  .fw1-m    { font-weight: 100; }
 +  .fw2-m    { font-weight: 200; }
 +  .fw3-m    { font-weight: 300; }
 +  .fw4-m    { font-weight: 400; }
 +  .fw5-m    { font-weight: 500; }
 +  .fw6-m    { font-weight: 600; }
 +  .fw7-m    { font-weight: 700; }
 +  .fw8-m    { font-weight: 800; }
 +  .fw9-m    { font-weight: 900; }
 +}
 +@media screen and (min-width: 60em) {
 +  .normal-l { font-weight: normal; }
 +  .b-l      { font-weight: bold; }
 +  .fw1-l    { font-weight: 100; }
 +  .fw2-l    { font-weight: 200; }
 +  .fw3-l    { font-weight: 300; }
 +  .fw4-l    { font-weight: 400; }
 +  .fw5-l    { font-weight: 500; }
 +  .fw6-l    { font-weight: 600; }
 +  .fw7-l    { font-weight: 700; }
 +  .fw8-l    { font-weight: 800; }
 +  .fw9-l    { font-weight: 900; }
 +}
 +/*
 +
 +   FORMS
 +   
 +*/
 +.input-reset {
 +  -webkit-appearance: none;
 +  -moz-appearance: none;
 +}
 +.button-reset::-moz-focus-inner,
 +.input-reset::-moz-focus-inner {
 +  border: 0;
 +  padding: 0;
 +}
 +/*
 +
 +   HEIGHTS
 +   Docs: http://tachyons.io/docs/layout/heights/
 +
 +   Base:
 +     h = height
 +     min-h = min-height
 +     min-vh = min-height vertical screen height
 +     vh = vertical screen height
 +
 +   Modifiers
 +     1 = 1st step in height scale
 +     2 = 2nd step in height scale
 +     3 = 3rd step in height scale
 +     4 = 4th step in height scale
 +     5 = 5th step in height scale
 +
 +     -25   = literal value 25%
 +     -50   = literal value 50%
 +     -75   = literal value 75%
 +     -100  = literal value 100%
 +
 +     -auto = string value of auto
 +     -inherit = string value of inherit
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/* Height Scale */
 +.h1 { height: 1rem; }
 +.h2 { height: 2rem; }
 +.h3 { height: 4rem; }
 +.h4 { height: 8rem; }
 +.h5 { height: 16rem; }
 +/* Height Percentages - Based off of height of parent */
 +.h-25 {  height:  25%; }
 +.h-50 {  height:  50%; }
 +.h-75 {  height:  75%; }
 +.h-100 { height: 100%; }
 +.min-h-100 { min-height: 100%; }
 +/* Screen Height Percentage */
 +.vh-25 {  height:  25vh; }
 +.vh-50 {  height:  50vh; }
 +.vh-75 {  height:  75vh; }
 +.vh-100 { height: 100vh; }
 +.min-vh-100 { min-height: 100vh; }
 +/* String Properties */
 +.h-auto {     height: auto; }
 +.h-inherit {  height: inherit; }
 +@media screen and (min-width: 30em) {
 +  .h1-ns {  height: 1rem; }
 +  .h2-ns {  height: 2rem; }
 +  .h3-ns {  height: 4rem; }
 +  .h4-ns {  height: 8rem; }
 +  .h5-ns {  height: 16rem; }
 +  .h-25-ns { height: 25%; }
 +  .h-50-ns { height: 50%; }
 +  .h-75-ns { height: 75%; }
 +  .h-100-ns { height: 100%; }
 +  .min-h-100-ns { min-height: 100%; }
 +  .vh-25-ns {  height:  25vh; }
 +  .vh-50-ns {  height:  50vh; }
 +  .vh-75-ns {  height:  75vh; }
 +  .vh-100-ns { height: 100vh; }
 +  .min-vh-100-ns { min-height: 100vh; }
 +  .h-auto-ns { height: auto; }
 +  .h-inherit-ns { height: inherit; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .h1-m { height: 1rem; }
 +  .h2-m { height: 2rem; }
 +  .h3-m { height: 4rem; }
 +  .h4-m { height: 8rem; }
 +  .h5-m { height: 16rem; }
 +  .h-25-m { height: 25%; }
 +  .h-50-m { height: 50%; }
 +  .h-75-m { height: 75%; }
 +  .h-100-m { height: 100%; }
 +  .min-h-100-m { min-height: 100%; }
 +  .vh-25-m {  height:  25vh; }
 +  .vh-50-m {  height:  50vh; }
 +  .vh-75-m {  height:  75vh; }
 +  .vh-100-m { height: 100vh; }
 +  .min-vh-100-m { min-height: 100vh; }
 +  .h-auto-m { height: auto; }
 +  .h-inherit-m { height: inherit; }
 +}
 +@media screen and (min-width: 60em) {
 +  .h1-l { height: 1rem; }
 +  .h2-l { height: 2rem; }
 +  .h3-l { height: 4rem; }
 +  .h4-l { height: 8rem; }
 +  .h5-l { height: 16rem; }
 +  .h-25-l { height: 25%; }
 +  .h-50-l { height: 50%; }
 +  .h-75-l { height: 75%; }
 +  .h-100-l { height: 100%; }
 +  .min-h-100-l { min-height: 100%; }
 +  .vh-25-l {  height:  25vh; }
 +  .vh-50-l {  height:  50vh; }
 +  .vh-75-l {  height:  75vh; }
 +  .vh-100-l { height: 100vh; }
 +  .min-vh-100-l { min-height: 100vh; }
 +  .h-auto-l { height: auto; }
 +  .h-inherit-l { height: inherit; }
 +}
 +/*
 +
 +   LETTER SPACING
 +   Docs: http://tachyons.io/docs/typography/tracking/
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.tracked       { letter-spacing:  .1em; }
 +.tracked-tight { letter-spacing: -.05em; }
 +.tracked-mega  { letter-spacing:  .25em; }
 +@media screen and (min-width: 30em) {
 +  .tracked-ns       { letter-spacing:  .1em; }
 +  .tracked-tight-ns { letter-spacing: -.05em; }
 +  .tracked-mega-ns  { letter-spacing:  .25em; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .tracked-m       { letter-spacing:  .1em; }
 +  .tracked-tight-m { letter-spacing: -.05em; }
 +  .tracked-mega-m  { letter-spacing:  .25em; }
 +}
 +@media screen and (min-width: 60em) {
 +  .tracked-l       { letter-spacing:  .1em; }
 +  .tracked-tight-l { letter-spacing: -.05em; }
 +  .tracked-mega-l  { letter-spacing:  .25em; }
 +}
 +/*
 +
 +   LINE HEIGHT / LEADING
 +   Docs: http://tachyons.io/docs/typography/line-height
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.lh-solid { line-height: 1; }
 +.lh-title { line-height: 1.25; }
 +.lh-copy  { line-height: 1.5; }
 +@media screen and (min-width: 30em) {
 +  .lh-solid-ns { line-height: 1; }
 +  .lh-title-ns { line-height: 1.25; }
 +  .lh-copy-ns  { line-height: 1.5; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .lh-solid-m { line-height: 1; }
 +  .lh-title-m { line-height: 1.25; }
 +  .lh-copy-m  { line-height: 1.5; }
 +}
 +@media screen and (min-width: 60em) {
 +  .lh-solid-l { line-height: 1; }
 +  .lh-title-l { line-height: 1.25; }
 +  .lh-copy-l  { line-height: 1.5; }
 +}
 +/*
 +
 +   LINKS
 +   Docs: http://tachyons.io/docs/elements/links/
 +
 +*/
 +.link {
 +  text-decoration: none;
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +}
 +.link:link,
 +.link:visited {
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +}
 +.link:hover   {
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +}
 +.link:active  {
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +}
 +.link:focus   {
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +  outline: 1px dotted currentColor;
 +}
 +/*
 +
 +   LISTS
 +   http://tachyons.io/docs/elements/lists/
 +
 +*/
 +.list {         list-style-type: none; }
 +/*
 +
 +   MAX WIDTHS
 +   Docs: http://tachyons.io/docs/layout/max-widths/
 +
 +   Base:
 +     mw = max-width
 +
 +   Modifiers
 +     1 = 1st step in width scale
 +     2 = 2nd step in width scale
 +     3 = 3rd step in width scale
 +     4 = 4th step in width scale
 +     5 = 5th step in width scale
 +     6 = 6st step in width scale
 +     7 = 7nd step in width scale
 +     8 = 8rd step in width scale
 +     9 = 9th step in width scale
 +
 +     -100 = literal value 100%
 +
 +     -none  = string value none
 +
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/* Max Width Percentages */
 +.mw-100  { max-width: 100%; }
 +/* Max Width Scale */
 +.mw1  {  max-width: 1rem; }
 +.mw2  {  max-width: 2rem; }
 +.mw3  {  max-width: 4rem; }
 +.mw4  {  max-width: 8rem; }
 +.mw5  {  max-width: 16rem; }
 +.mw6  {  max-width: 32rem; }
 +.mw7  {  max-width: 48rem; }
 +.mw8  {  max-width: 64rem; }
 +.mw9  {  max-width: 96rem; }
 +/* Max Width String Properties */
 +.mw-none { max-width: none; }
 +@media screen and (min-width: 30em) {
 +  .mw-100-ns  { max-width: 100%; }
 +
 +  .mw1-ns  {  max-width: 1rem; }
 +  .mw2-ns  {  max-width: 2rem; }
 +  .mw3-ns  {  max-width: 4rem; }
 +  .mw4-ns  {  max-width: 8rem; }
 +  .mw5-ns  {  max-width: 16rem; }
 +  .mw6-ns  {  max-width: 32rem; }
 +  .mw7-ns  {  max-width: 48rem; }
 +  .mw8-ns  {  max-width: 64rem; }
 +  .mw9-ns  {  max-width: 96rem; }
 +
 +  .mw-none-ns { max-width: none; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .mw-100-m  { max-width: 100%; }
 +
 +  .mw1-m  {  max-width: 1rem; }
 +  .mw2-m  {  max-width: 2rem; }
 +  .mw3-m  {  max-width: 4rem; }
 +  .mw4-m  {  max-width: 8rem; }
 +  .mw5-m  {  max-width: 16rem; }
 +  .mw6-m  {  max-width: 32rem; }
 +  .mw7-m  {  max-width: 48rem; }
 +  .mw8-m  {  max-width: 64rem; }
 +  .mw9-m  {  max-width: 96rem; }
 +
 +  .mw-none-m { max-width: none; }
 +}
 +@media screen and (min-width: 60em) {
 +  .mw-100-l  { max-width: 100%; }
 +
 +  .mw1-l  {  max-width: 1rem; }
 +  .mw2-l  {  max-width: 2rem; }
 +  .mw3-l  {  max-width: 4rem; }
 +  .mw4-l  {  max-width: 8rem; }
 +  .mw5-l  {  max-width: 16rem; }
 +  .mw6-l  {  max-width: 32rem; }
 +  .mw7-l  {  max-width: 48rem; }
 +  .mw8-l  {  max-width: 64rem; }
 +  .mw9-l  {  max-width: 96rem; }
 +
 +  .mw-none-l { max-width: none; }
 +}
 +/*
 +
 +   WIDTHS
 +   Docs: http://tachyons.io/docs/layout/widths/
 +
 +   Base:
 +     w = width
 +
 +   Modifiers
 +     1 = 1st step in width scale
 +     2 = 2nd step in width scale
 +     3 = 3rd step in width scale
 +     4 = 4th step in width scale
 +     5 = 5th step in width scale
 +
 +     -10  = literal value 10%
 +     -20  = literal value 20%
 +     -25  = literal value 25%
 +     -30  = literal value 30%
 +     -33  = literal value 33%
 +     -34  = literal value 34%
 +     -40  = literal value 40%
 +     -50  = literal value 50%
 +     -60  = literal value 60%
 +     -70  = literal value 70%
 +     -75  = literal value 75%
 +     -80  = literal value 80%
 +     -90  = literal value 90%
 +     -100 = literal value 100%
 +
 +     -third      = 100% / 3 (Not supported in opera mini or IE8)
 +     -two-thirds = 100% / 1.5 (Not supported in opera mini or IE8)
 +     -auto       = string value auto
 +
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/* Width Scale */
 +.w1 {    width: 1rem; }
 +.w2 {    width: 2rem; }
 +.w3 {    width: 4rem; }
 +.w4 {    width: 8rem; }
 +.w5 {    width: 16rem; }
 +.w-10 {  width:  10%; }
 +.w-20 {  width:  20%; }
 +.w-25 {  width:  25%; }
 +.w-30 {  width:  30%; }
 +.w-33 {  width:  33%; }
 +.w-34 {  width:  34%; }
 +.w-40 {  width:  40%; }
 +.w-50 {  width:  50%; }
 +.w-60 {  width:  60%; }
 +.w-70 {  width:  70%; }
 +.w-75 {  width:  75%; }
 +.w-80 {  width:  80%; }
 +.w-90 {  width:  90%; }
 +.w-100 { width: 100%; }
 +.w-third { width: 33.33333%; }
 +.w-two-thirds { width: 66.66667%; }
 +.w-auto { width: auto; }
 +@media screen and (min-width: 30em) {
 +  .w1-ns {  width: 1rem; }
 +  .w2-ns {  width: 2rem; }
 +  .w3-ns {  width: 4rem; }
 +  .w4-ns {  width: 8rem; }
 +  .w5-ns {  width: 16rem; }
 +  .w-10-ns { width:  10%; }
 +  .w-20-ns { width:  20%; }
 +  .w-25-ns { width:  25%; }
 +  .w-30-ns { width:  30%; }
 +  .w-33-ns { width:  33%; }
 +  .w-34-ns { width:  34%; }
 +  .w-40-ns { width:  40%; }
 +  .w-50-ns { width:  50%; }
 +  .w-60-ns { width:  60%; }
 +  .w-70-ns { width:  70%; }
 +  .w-75-ns { width:  75%; }
 +  .w-80-ns { width:  80%; }
 +  .w-90-ns { width:  90%; }
 +  .w-100-ns { width: 100%; }
 +  .w-third-ns { width: 33.33333%; }
 +  .w-two-thirds-ns { width: 66.66667%; }
 +  .w-auto-ns { width: auto; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .w1-m {      width: 1rem; }
 +  .w2-m {      width: 2rem; }
 +  .w3-m {      width: 4rem; }
 +  .w4-m {      width: 8rem; }
 +  .w5-m {      width: 16rem; }
 +  .w-10-m { width:  10%; }
 +  .w-20-m { width:  20%; }
 +  .w-25-m { width:  25%; }
 +  .w-30-m { width:  30%; }
 +  .w-33-m { width:  33%; }
 +  .w-34-m { width:  34%; }
 +  .w-40-m { width:  40%; }
 +  .w-50-m { width:  50%; }
 +  .w-60-m { width:  60%; }
 +  .w-70-m { width:  70%; }
 +  .w-75-m { width:  75%; }
 +  .w-80-m { width:  80%; }
 +  .w-90-m { width:  90%; }
 +  .w-100-m { width: 100%; }
 +  .w-third-m { width: 33.33333%; }
 +  .w-two-thirds-m { width: 66.66667%; }
 +  .w-auto-m {    width: auto; }
 +}
 +@media screen and (min-width: 60em) {
 +  .w1-l {      width: 1rem; }
 +  .w2-l {      width: 2rem; }
 +  .w3-l {      width: 4rem; }
 +  .w4-l {      width: 8rem; }
 +  .w5-l {      width: 16rem; }
 +  .w-10-l {    width:  10%; }
 +  .w-20-l {    width:  20%; }
 +  .w-25-l {    width:  25%; }
 +  .w-30-l {    width:  30%; }
 +  .w-33-l {    width:  33%; }
 +  .w-34-l {    width:  34%; }
 +  .w-40-l {    width:  40%; }
 +  .w-50-l {    width:  50%; }
 +  .w-60-l {    width:  60%; }
 +  .w-70-l {    width:  70%; }
 +  .w-75-l {    width:  75%; }
 +  .w-80-l {    width:  80%; }
 +  .w-90-l {    width:  90%; }
 +  .w-100-l {   width: 100%; }
 +  .w-third-l { width: 33.33333%; }
 +  .w-two-thirds-l { width: 66.66667%; }
 +  .w-auto-l {    width: auto; }
 +}
 +/*
 +
 +    OVERFLOW
 +
 +    Media Query Extensions:
 +      -ns = not-small
 +      -m  = medium
 +      -l  = large
 +
 + */
 +.overflow-visible { overflow: visible; }
 +.overflow-hidden { overflow: hidden; }
 +.overflow-scroll { overflow: scroll; }
 +.overflow-auto { overflow: auto; }
 +.overflow-x-visible { overflow-x: visible; }
 +.overflow-x-hidden { overflow-x: hidden; }
 +.overflow-x-scroll { overflow-x: scroll; }
 +.overflow-x-auto { overflow-x: auto; }
 +.overflow-y-visible { overflow-y: visible; }
 +.overflow-y-hidden { overflow-y: hidden; }
 +.overflow-y-scroll { overflow-y: scroll; }
 +.overflow-y-auto { overflow-y: auto; }
 +@media screen and (min-width: 30em) {
 +  .overflow-visible-ns { overflow: visible; }
 +  .overflow-hidden-ns { overflow: hidden; }
 +  .overflow-scroll-ns { overflow: scroll; }
 +  .overflow-auto-ns { overflow: auto; }
 +  .overflow-x-visible-ns { overflow-x: visible; }
 +  .overflow-x-hidden-ns { overflow-x: hidden; }
 +  .overflow-x-scroll-ns { overflow-x: scroll; }
 +  .overflow-x-auto-ns { overflow-x: auto; }
 +
 +  .overflow-y-visible-ns { overflow-y: visible; }
 +  .overflow-y-hidden-ns { overflow-y: hidden; }
 +  .overflow-y-scroll-ns { overflow-y: scroll; }
 +  .overflow-y-auto-ns { overflow-y: auto; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .overflow-visible-m { overflow: visible; }
 +  .overflow-hidden-m { overflow: hidden; }
 +  .overflow-scroll-m { overflow: scroll; }
 +  .overflow-auto-m { overflow: auto; }
 +
 +  .overflow-x-visible-m { overflow-x: visible; }
 +  .overflow-x-hidden-m { overflow-x: hidden; }
 +  .overflow-x-scroll-m { overflow-x: scroll; }
 +  .overflow-x-auto-m { overflow-x: auto; }
 +
 +  .overflow-y-visible-m { overflow-y: visible; }
 +  .overflow-y-hidden-m { overflow-y: hidden; }
 +  .overflow-y-scroll-m { overflow-y: scroll; }
 +  .overflow-y-auto-m { overflow-y: auto; }
 +}
 +@media screen and (min-width: 60em) {
 +  .overflow-visible-l { overflow: visible; }
 +  .overflow-hidden-l { overflow: hidden; }
 +  .overflow-scroll-l { overflow: scroll; }
 +  .overflow-auto-l { overflow: auto; }
 +
 +  .overflow-x-visible-l { overflow-x: visible; }
 +  .overflow-x-hidden-l { overflow-x: hidden; }
 +  .overflow-x-scroll-l { overflow-x: scroll; }
 +  .overflow-x-auto-l { overflow-x: auto; }
 +
 +  .overflow-y-visible-l { overflow-y: visible; }
 +  .overflow-y-hidden-l { overflow-y: hidden; }
 +  .overflow-y-scroll-l { overflow-y: scroll; }
 +  .overflow-y-auto-l { overflow-y: auto; }
 +}
 +/*
 +
 +   POSITIONING
 +   Docs: http://tachyons.io/docs/layout/position/
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.static { position: static; }
 +.relative  { position: relative; }
 +.absolute  { position: absolute; }
 +.fixed  { position: fixed; }
 +@media screen and (min-width: 30em) {
 +  .static-ns { position: static; }
 +  .relative-ns  { position: relative; }
 +  .absolute-ns  { position: absolute; }
 +  .fixed-ns  { position: fixed; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .static-m { position: static; }
 +  .relative-m  { position: relative; }
 +  .absolute-m  { position: absolute; }
 +  .fixed-m  { position: fixed; }
 +}
 +@media screen and (min-width: 60em) {
 +  .static-l { position: static; }
 +  .relative-l  { position: relative; }
 +  .absolute-l  { position: absolute; }
 +  .fixed-l  { position: fixed; }
 +}
 +/*
 +
 +    OPACITY
 +    Docs: http://tachyons.io/docs/themes/opacity/
 +
 +*/
 +.o-100 { opacity: 1;    }
 +.o-90  { opacity: .9;   }
 +.o-80  { opacity: .8;   }
 +.o-70  { opacity: .7;   }
 +.o-60  { opacity: .6;   }
 +.o-50  { opacity: .5;   }
 +.o-40  { opacity: .4;   }
 +.o-30  { opacity: .3;   }
 +.o-20  { opacity: .2;   }
 +.o-10  { opacity: .1;   }
 +.o-05  { opacity: .05;  }
 +.o-025 { opacity: .025; }
 +.o-0   { opacity: 0; }
 +/*@import 'tachyons/src/_rotations';*/
 +/*
 +
 +   SKINS
 +   Docs: http://tachyons.io/docs/themes/skins/
 +
 +   Classes for setting foreground and background colors on elements.
 +   If you haven't declared a border color, but set border on an element, it will 
 +   be set to the current text color. 
 +
 +*/
 +/* Text colors */
 +.black-90 {         color: rgba(0, 0, 0, .9); }
 +.black-80 {         color: rgba(0, 0, 0, .8); }
 +.black-70 {         color: rgba(0, 0, 0, .7); }
 +.black-60 {         color: rgba(0, 0, 0, .6); }
 +.black-50 {         color: rgba(0, 0, 0, .5); }
 +.black-40 {         color: rgba(0, 0, 0, .4); }
 +.black-30 {         color: rgba(0, 0, 0, .3); }
 +.black-20 {         color: rgba(0, 0, 0, .2); }
 +.black-10 {         color: rgba(0, 0, 0, .1); }
 +.black-05 {         color: rgba(0, 0, 0, .05); }
 +.white-90 {         color: rgba(255, 255, 255, .9); }
 +.white-80 {         color: rgba(255, 255, 255, .8); }
 +.white-70 {         color: rgba(255, 255, 255, .7); }
 +.white-60 {         color: rgba(255, 255, 255, .6); }
 +.white-50 {         color: rgba(255, 255, 255, .5); }
 +.white-40 {         color: rgba(255, 255, 255, .4); }
 +.white-30 {         color: rgba(255, 255, 255, .3); }
 +.white-20 {         color: rgba(255, 255, 255, .2); }
 +.white-10 {         color: rgba(255, 255, 255, .1); }
 +.black {         color: #000; }
 +.near-black {    color: #111; }
 +.dark-gray {     color: #333; }
 +.mid-gray {      color: #555; }
 +.gray {          color: #777; }
 +.silver  {       color: #999; }
 +.light-silver {  color: #aaa; }
 +.moon-gray {     color: #ccc; }
 +.light-gray {    color: #eee; }
 +.near-white {    color: #f4f4f4; }
 +.white {         color: #fff; }
 +.dark-red { color: #e7040f; }
 +.red { color: #ff4136; }
 +.light-red { color: #ff725c; }
 +.orange { color: #ff6300; }
 +.gold { color: #ffb700; }
 +.yellow { color: #ffd700; }
 +.light-yellow { color: #fbf1a9; }
 +.purple { color: #5e2ca5; }
 +.light-purple { color: #a463f2; }
 +.dark-pink { color: #d5008f; }
 +.hot-pink { color: #ff41b4; }
 +.pink { color: #ff80cc; }
 +.light-pink { color: #ffa3d7; }
 +.dark-green { color: #137752; }
 +.green { color: #19a974; }
 +.light-green { color: #9eebcf; }
 +.navy { color: #001b44; }
 +.dark-blue { color: #00449e; }
 +.blue { color: #0594CB; }
 +.light-blue { color: #96ccff; }
 +.lightest-blue { color: #cdecff; }
 +.washed-blue { color: #f6fffe; }
 +.washed-green { color: #e8fdf5; }
 +.washed-yellow { color: #fffceb; }
 +.washed-red { color: #ffdfdf; }
 +.color-inherit { color: inherit; }
 +.bg-black-90 {         background-color: rgba(0, 0, 0, .9); }
 +.bg-black-80 {         background-color: rgba(0, 0, 0, .8); }
 +.bg-black-70 {         background-color: rgba(0, 0, 0, .7); }
 +.bg-black-60 {         background-color: rgba(0, 0, 0, .6); }
 +.bg-black-50 {         background-color: rgba(0, 0, 0, .5); }
 +.bg-black-40 {         background-color: rgba(0, 0, 0, .4); }
 +.bg-black-30 {         background-color: rgba(0, 0, 0, .3); }
 +.bg-black-20 {         background-color: rgba(0, 0, 0, .2); }
 +.bg-black-10 {         background-color: rgba(0, 0, 0, .1); }
 +.bg-black-05 {         background-color: rgba(0, 0, 0, .05); }
 +.bg-white-90 {        background-color: rgba(255, 255, 255, .9); }
 +.bg-white-80 {        background-color: rgba(255, 255, 255, .8); }
 +.bg-white-70 {        background-color: rgba(255, 255, 255, .7); }
 +.bg-white-60 {        background-color: rgba(255, 255, 255, .6); }
 +.bg-white-50 {        background-color: rgba(255, 255, 255, .5); }
 +.bg-white-40 {        background-color: rgba(255, 255, 255, .4); }
 +.bg-white-30 {        background-color: rgba(255, 255, 255, .3); }
 +.bg-white-20 {        background-color: rgba(255, 255, 255, .2); }
 +.bg-white-10 {        background-color: rgba(255, 255, 255, .1); }
 +/* Background colors */
 +.bg-black {         background-color: #000; }
 +.bg-near-black {    background-color: #111; }
 +.bg-dark-gray {     background-color: #333; }
 +.bg-mid-gray {      background-color: #555; }
 +.bg-gray {          background-color: #777; }
 +.bg-silver  {       background-color: #999; }
 +.bg-light-silver {  background-color: #aaa; }
 +.bg-moon-gray {     background-color: #ccc; }
 +.bg-light-gray {    background-color: #eee; }
 +.bg-near-white {    background-color: #f4f4f4; }
 +.bg-white {         background-color: #fff; }
 +.bg-transparent {   background-color: transparent; }
 +.bg-dark-red { background-color: #e7040f; }
 +.bg-red { background-color: #ff4136; }
 +.bg-light-red { background-color: #ff725c; }
 +.bg-orange { background-color: #ff6300; }
 +.bg-gold { background-color: #ffb700; }
 +.bg-yellow { background-color: #ffd700; }
 +.bg-light-yellow { background-color: #fbf1a9; }
 +.bg-purple { background-color: #5e2ca5; }
 +.bg-light-purple { background-color: #a463f2; }
 +.bg-dark-pink { background-color: #d5008f; }
 +.bg-hot-pink { background-color: #ff41b4; }
 +.bg-pink { background-color: #ff80cc; }
 +.bg-light-pink { background-color: #ffa3d7; }
 +.bg-dark-green { background-color: #137752; }
 +.bg-green { background-color: #19a974; }
 +.bg-light-green { background-color: #9eebcf; }
 +.bg-navy { background-color: #001b44; }
 +.bg-dark-blue { background-color: #00449e; }
 +.bg-blue { background-color: #0594CB; }
 +.bg-light-blue { background-color: #96ccff; }
 +.bg-lightest-blue { background-color: #cdecff; }
 +.bg-washed-blue { background-color: #f6fffe; }
 +.bg-washed-green { background-color: #e8fdf5; }
 +.bg-washed-yellow { background-color: #fffceb; }
 +.bg-washed-red { background-color: #ffdfdf; }
 +.bg-inherit { background-color: inherit; }
 +/* 
 +  
 +   SKINS:PSEUDO
 +
 +   Customize the color of an element when
 +   it is focused or hovered over.
 + 
 + */
 +.hover-black:hover, 
 +.hover-black:focus { color: #000; }
 +.hover-near-black:hover, 
 +.hover-near-black:focus { color: #111; }
 +.hover-dark-gray:hover, 
 +.hover-dark-gray:focus { color: #333; }
 +.hover-mid-gray:hover, 
 +.hover-mid-gray:focus { color: #555; }
 +.hover-gray:hover, 
 +.hover-gray:focus { color: #777; }
 +.hover-silver:hover, 
 +.hover-silver:focus { color: #999; }
 +.hover-light-silver:hover, 
 +.hover-light-silver:focus { color: #aaa; }
 +.hover-moon-gray:hover, 
 +.hover-moon-gray:focus { color: #ccc; }
 +.hover-light-gray:hover, 
 +.hover-light-gray:focus { color: #eee; }
 +.hover-near-white:hover, 
 +.hover-near-white:focus { color: #f4f4f4; }
 +.hover-white:hover, 
 +.hover-white:focus { color: #fff; }
 +.hover-black-90:hover,
 +.hover-black-90:focus { color: rgba(0, 0, 0, .9); }
 +.hover-black-80:hover,
 +.hover-black-80:focus { color: rgba(0, 0, 0, .8); }
 +.hover-black-70:hover,
 +.hover-black-70:focus { color: rgba(0, 0, 0, .7); }
 +.hover-black-60:hover,
 +.hover-black-60:focus { color: rgba(0, 0, 0, .6); }
 +.hover-black-50:hover,
 +.hover-black-50:focus { color: rgba(0, 0, 0, .5); }
 +.hover-black-40:hover,
 +.hover-black-40:focus { color: rgba(0, 0, 0, .4); }
 +.hover-black-30:hover,
 +.hover-black-30:focus { color: rgba(0, 0, 0, .3); }
 +.hover-black-20:hover,
 +.hover-black-20:focus { color: rgba(0, 0, 0, .2); }
 +.hover-black-10:hover,
 +.hover-black-10:focus { color: rgba(0, 0, 0, .1); }
 +.hover-white-90:hover,
 +.hover-white-90:focus { color: rgba(255, 255, 255, .9); }
 +.hover-white-80:hover,
 +.hover-white-80:focus { color: rgba(255, 255, 255, .8); }
 +.hover-white-70:hover,
 +.hover-white-70:focus { color: rgba(255, 255, 255, .7); }
 +.hover-white-60:hover,
 +.hover-white-60:focus { color: rgba(255, 255, 255, .6); }
 +.hover-white-50:hover,
 +.hover-white-50:focus { color: rgba(255, 255, 255, .5); }
 +.hover-white-40:hover,
 +.hover-white-40:focus { color: rgba(255, 255, 255, .4); }
 +.hover-white-30:hover,
 +.hover-white-30:focus { color: rgba(255, 255, 255, .3); }
 +.hover-white-20:hover,
 +.hover-white-20:focus { color: rgba(255, 255, 255, .2); }
 +.hover-white-10:hover,
 +.hover-white-10:focus { color: rgba(255, 255, 255, .1); }
 +.hover-inherit:hover,
 +.hover-inherit:focus { color: inherit; }
 +.hover-bg-black:hover, 
 +.hover-bg-black:focus { background-color: #000; }
 +.hover-bg-near-black:hover, 
 +.hover-bg-near-black:focus { background-color: #111; }
 +.hover-bg-dark-gray:hover, 
 +.hover-bg-dark-gray:focus { background-color: #333; }
 +.hover-bg-mid-gray:hover, 
 +.hover-bg-mid-gray:focus { background-color: #555; }
 +.hover-bg-gray:hover, 
 +.hover-bg-gray:focus { background-color: #777; }
 +.hover-bg-silver:hover, 
 +.hover-bg-silver:focus { background-color: #999; }
 +.hover-bg-light-silver:hover, 
 +.hover-bg-light-silver:focus { background-color: #aaa; }
 +.hover-bg-moon-gray:hover, 
 +.hover-bg-moon-gray:focus { background-color: #ccc; }
 +.hover-bg-light-gray:hover, 
 +.hover-bg-light-gray:focus { background-color: #eee; }
 +.hover-bg-near-white:hover, 
 +.hover-bg-near-white:focus { background-color: #f4f4f4; }
 +.hover-bg-white:hover, 
 +.hover-bg-white:focus { background-color: #fff; }
 +.hover-bg-transparent:hover, 
 +.hover-bg-transparent:focus { background-color: transparent; }
 +.hover-bg-black-90:hover,
 +.hover-bg-black-90:focus { background-color: rgba(0, 0, 0, .9); }
 +.hover-bg-black-80:hover,
 +.hover-bg-black-80:focus { background-color: rgba(0, 0, 0, .8); }
 +.hover-bg-black-70:hover,
 +.hover-bg-black-70:focus { background-color: rgba(0, 0, 0, .7); }
 +.hover-bg-black-60:hover,
 +.hover-bg-black-60:focus { background-color: rgba(0, 0, 0, .6); }
 +.hover-bg-black-50:hover,
 +.hover-bg-black-50:focus { background-color: rgba(0, 0, 0, .5); }
 +.hover-bg-black-40:hover,
 +.hover-bg-black-40:focus { background-color: rgba(0, 0, 0, .4); }
 +.hover-bg-black-30:hover,
 +.hover-bg-black-30:focus { background-color: rgba(0, 0, 0, .3); }
 +.hover-bg-black-20:hover,
 +.hover-bg-black-20:focus { background-color: rgba(0, 0, 0, .2); }
 +.hover-bg-black-10:hover,
 +.hover-bg-black-10:focus { background-color: rgba(0, 0, 0, .1); }
 +.hover-bg-white-90:hover,
 +.hover-bg-white-90:focus { background-color: rgba(255, 255, 255, .9); }
 +.hover-bg-white-80:hover,
 +.hover-bg-white-80:focus { background-color: rgba(255, 255, 255, .8); }
 +.hover-bg-white-70:hover,
 +.hover-bg-white-70:focus { background-color: rgba(255, 255, 255, .7); }
 +.hover-bg-white-60:hover,
 +.hover-bg-white-60:focus { background-color: rgba(255, 255, 255, .6); }
 +.hover-bg-white-50:hover,
 +.hover-bg-white-50:focus { background-color: rgba(255, 255, 255, .5); }
 +.hover-bg-white-40:hover,
 +.hover-bg-white-40:focus { background-color: rgba(255, 255, 255, .4); }
 +.hover-bg-white-30:hover,
 +.hover-bg-white-30:focus { background-color: rgba(255, 255, 255, .3); }
 +.hover-bg-white-20:hover,
 +.hover-bg-white-20:focus { background-color: rgba(255, 255, 255, .2); }
 +.hover-bg-white-10:hover,
 +.hover-bg-white-10:focus { background-color: rgba(255, 255, 255, .1); }
 +.hover-dark-red:hover,
 +.hover-dark-red:focus { color: #e7040f; }
 +.hover-red:hover,
 +.hover-red:focus { color: #ff4136; }
 +.hover-light-red:hover,
 +.hover-light-red:focus { color: #ff725c; }
 +.hover-orange:hover,
 +.hover-orange:focus { color: #ff6300; }
 +.hover-gold:hover,
 +.hover-gold:focus { color: #ffb700; }
 +.hover-yellow:hover,
 +.hover-yellow:focus { color: #ffd700; }
 +.hover-light-yellow:hover,
 +.hover-light-yellow:focus { color: #fbf1a9; }
 +.hover-purple:hover,
 +.hover-purple:focus { color: #5e2ca5; }
 +.hover-light-purple:hover,
 +.hover-light-purple:focus { color: #a463f2; }
 +.hover-dark-pink:hover,
 +.hover-dark-pink:focus { color: #d5008f; }
 +.hover-hot-pink:hover,
 +.hover-hot-pink:focus { color: #ff41b4; }
 +.hover-pink:hover,
 +.hover-pink:focus { color: #ff80cc; }
 +.hover-light-pink:hover,
 +.hover-light-pink:focus { color: #ffa3d7; }
 +.hover-dark-green:hover,
 +.hover-dark-green:focus { color: #137752; }
 +.hover-green:hover,
 +.hover-green:focus { color: #19a974; }
 +.hover-light-green:hover,
 +.hover-light-green:focus { color: #9eebcf; }
 +.hover-navy:hover,
 +.hover-navy:focus { color: #001b44; }
 +.hover-dark-blue:hover,
 +.hover-dark-blue:focus { color: #00449e; }
 +.hover-blue:hover,
 +.hover-blue:focus { color: #0594CB; }
 +.hover-light-blue:hover,
 +.hover-light-blue:focus { color: #96ccff; }
 +.hover-lightest-blue:hover,
 +.hover-lightest-blue:focus { color: #cdecff; }
 +.hover-washed-blue:hover,
 +.hover-washed-blue:focus { color: #f6fffe; }
 +.hover-washed-green:hover,
 +.hover-washed-green:focus { color: #e8fdf5; }
 +.hover-washed-yellow:hover,
 +.hover-washed-yellow:focus { color: #fffceb; }
 +.hover-washed-red:hover,
 +.hover-washed-red:focus { color: #ffdfdf; }
 +.hover-bg-dark-red:hover,
 +.hover-bg-dark-red:focus { background-color: #e7040f; }
 +.hover-bg-red:hover,
 +.hover-bg-red:focus { background-color: #ff4136; }
 +.hover-bg-light-red:hover,
 +.hover-bg-light-red:focus { background-color: #ff725c; }
 +.hover-bg-orange:hover,
 +.hover-bg-orange:focus { background-color: #ff6300; }
 +.hover-bg-gold:hover,
 +.hover-bg-gold:focus { background-color: #ffb700; }
 +.hover-bg-yellow:hover,
 +.hover-bg-yellow:focus { background-color: #ffd700; }
 +.hover-bg-light-yellow:hover,
 +.hover-bg-light-yellow:focus { background-color: #fbf1a9; }
 +.hover-bg-purple:hover,
 +.hover-bg-purple:focus { background-color: #5e2ca5; }
 +.hover-bg-light-purple:hover,
 +.hover-bg-light-purple:focus { background-color: #a463f2; }
 +.hover-bg-dark-pink:hover,
 +.hover-bg-dark-pink:focus { background-color: #d5008f; }
 +.hover-bg-hot-pink:hover,
 +.hover-bg-hot-pink:focus { background-color: #ff41b4; }
 +.hover-bg-pink:hover,
 +.hover-bg-pink:focus { background-color: #ff80cc; }
 +.hover-bg-light-pink:hover,
 +.hover-bg-light-pink:focus { background-color: #ffa3d7; }
 +.hover-bg-dark-green:hover,
 +.hover-bg-dark-green:focus { background-color: #137752; }
 +.hover-bg-green:hover,
 +.hover-bg-green:focus { background-color: #19a974; }
 +.hover-bg-light-green:hover,
 +.hover-bg-light-green:focus { background-color: #9eebcf; }
 +.hover-bg-navy:hover,
 +.hover-bg-navy:focus { background-color: #001b44; }
 +.hover-bg-dark-blue:hover,
 +.hover-bg-dark-blue:focus { background-color: #00449e; }
 +.hover-bg-blue:hover,
 +.hover-bg-blue:focus { background-color: #0594CB; }
 +.hover-bg-light-blue:hover,
 +.hover-bg-light-blue:focus { background-color: #96ccff; }
 +.hover-bg-lightest-blue:hover,
 +.hover-bg-lightest-blue:focus { background-color: #cdecff; }
 +.hover-bg-washed-blue:hover,
 +.hover-bg-washed-blue:focus { background-color: #f6fffe; }
 +.hover-bg-washed-green:hover,
 +.hover-bg-washed-green:focus { background-color: #e8fdf5; }
 +.hover-bg-washed-yellow:hover,
 +.hover-bg-washed-yellow:focus { background-color: #fffceb; }
 +.hover-bg-washed-red:hover,
 +.hover-bg-washed-red:focus { background-color: #ffdfdf; }
 +.hover-bg-inherit:hover,
 +.hover-bg-inherit:focus { background-color: inherit; }
 +/* Variables */
 +/*
 +   SPACING
 +   Docs: http://tachyons.io/docs/layout/spacing/
 +
 +   An eight step powers of two scale ranging from 0 to 16rem.
 +
 +   Base:
 +     p = padding
 +     m = margin
 +
 +   Modifiers:
 +     a = all
 +     h = horizontal
 +     v = vertical
 +     t = top
 +     r = right
 +     b = bottom
 +     l = left
 +
 +     0 = none
 +     1 = 1st step in spacing scale
 +     2 = 2nd step in spacing scale
 +     3 = 3rd step in spacing scale
 +     4 = 4th step in spacing scale
 +     5 = 5th step in spacing scale
 +     6 = 6th step in spacing scale
 +     7 = 7th step in spacing scale
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.pa0 { padding: 0; }
 +.pa1 { padding: .25rem; }
 +.pa2 { padding: .5rem; }
 +.pa3 { padding: 1rem; }
 +.pa4 { padding: 2rem; }
 +.pa5 { padding: 4rem; }
 +.pa6 { padding: 8rem; }
 +.pa7 { padding: 16rem; }
 +.pl0 { padding-left: 0; }
 +.pl1 { padding-left: .25rem; }
 +.pl2 { padding-left: .5rem; }
 +.pl3 { padding-left: 1rem; }
 +.pl4 { padding-left: 2rem; }
 +.pl5 { padding-left: 4rem; }
 +.pl6 { padding-left: 8rem; }
 +.pl7 { padding-left: 16rem; }
 +.pr0 { padding-right: 0; }
 +.pr1 { padding-right: .25rem; }
 +.pr2 { padding-right: .5rem; }
 +.pr3 { padding-right: 1rem; }
 +.pr4 { padding-right: 2rem; }
 +.pr5 { padding-right: 4rem; }
 +.pr6 { padding-right: 8rem; }
 +.pr7 { padding-right: 16rem; }
 +.pb0 { padding-bottom: 0; }
 +.pb1 { padding-bottom: .25rem; }
 +.pb2 { padding-bottom: .5rem; }
 +.pb3 { padding-bottom: 1rem; }
 +.pb4 { padding-bottom: 2rem; }
 +.pb5 { padding-bottom: 4rem; }
 +.pb6 { padding-bottom: 8rem; }
 +.pb7 { padding-bottom: 16rem; }
 +.pt0 { padding-top: 0; }
 +.pt1 { padding-top: .25rem; }
 +.pt2 { padding-top: .5rem; }
 +.pt3 { padding-top: 1rem; }
 +.pt4 { padding-top: 2rem; }
 +.pt5 { padding-top: 4rem; }
 +.pt6 { padding-top: 8rem; }
 +.pt7 { padding-top: 16rem; }
 +.pv0 {
 +  padding-top: 0;
 +  padding-bottom: 0;
 +}
 +.pv1 {
 +  padding-top: .25rem;
 +  padding-bottom: .25rem;
 +}
 +.pv2 {
 +  padding-top: .5rem;
 +  padding-bottom: .5rem;
 +}
 +.pv3 {
 +  padding-top: 1rem;
 +  padding-bottom: 1rem;
 +}
 +.pv4 {
 +  padding-top: 2rem;
 +  padding-bottom: 2rem;
 +}
 +.pv5 {
 +  padding-top: 4rem;
 +  padding-bottom: 4rem;
 +}
 +.pv6 {
 +  padding-top: 8rem;
 +  padding-bottom: 8rem;
 +}
 +.pv7 {
 +  padding-top: 16rem;
 +  padding-bottom: 16rem;
 +}
 +.ph0 {
 +  padding-left: 0;
 +  padding-right: 0;
 +}
 +.ph1 {
 +  padding-left: .25rem;
 +  padding-right: .25rem;
 +}
 +.ph2 {
 +  padding-left: .5rem;
 +  padding-right: .5rem;
 +}
 +.ph3 {
 +  padding-left: 1rem;
 +  padding-right: 1rem;
 +}
 +.ph4 {
 +  padding-left: 2rem;
 +  padding-right: 2rem;
 +}
 +.ph5 {
 +  padding-left: 4rem;
 +  padding-right: 4rem;
 +}
 +.ph6 {
 +  padding-left: 8rem;
 +  padding-right: 8rem;
 +}
 +.ph7 {
 +  padding-left: 16rem;
 +  padding-right: 16rem;
 +}
 +.ma0  {  margin: 0; }
 +.ma1 {  margin: .25rem; }
 +.ma2  {  margin: .5rem; }
 +.ma3  {  margin: 1rem; }
 +.ma4  {  margin: 2rem; }
 +.ma5  {  margin: 4rem; }
 +.ma6 {  margin: 8rem; }
 +.ma7 { margin: 16rem; }
 +.ml0  {  margin-left: 0; }
 +.ml1 {  margin-left: .25rem; }
 +.ml2  {  margin-left: .5rem; }
 +.ml3  {  margin-left: 1rem; }
 +.ml4  {  margin-left: 2rem; }
 +.ml5  {  margin-left: 4rem; }
 +.ml6 {  margin-left: 8rem; }
 +.ml7 { margin-left: 16rem; }
 +.mr0  {  margin-right: 0; }
 +.mr1 {  margin-right: .25rem; }
 +.mr2  {  margin-right: .5rem; }
 +.mr3  {  margin-right: 1rem; }
 +.mr4  {  margin-right: 2rem; }
 +.mr5  {  margin-right: 4rem; }
 +.mr6 {  margin-right: 8rem; }
 +.mr7 { margin-right: 16rem; }
 +.mb0  {  margin-bottom: 0; }
 +.mb1 {  margin-bottom: .25rem; }
 +.mb2  {  margin-bottom: .5rem; }
 +.mb3  {  margin-bottom: 1rem; }
 +.mb4  {  margin-bottom: 2rem; }
 +.mb5  {  margin-bottom: 4rem; }
 +.mb6 {  margin-bottom: 8rem; }
 +.mb7 { margin-bottom: 16rem; }
 +.mt0  {  margin-top: 0; }
 +.mt1 {  margin-top: .25rem; }
 +.mt2  {  margin-top: .5rem; }
 +.mt3  {  margin-top: 1rem; }
 +.mt4  {  margin-top: 2rem; }
 +.mt5  {  margin-top: 4rem; }
 +.mt6 {  margin-top: 8rem; }
 +.mt7 { margin-top: 16rem; }
 +.mv0   {
 +  margin-top: 0;
 +  margin-bottom: 0;
 +}
 +.mv1  {
 +  margin-top: .25rem;
 +  margin-bottom: .25rem;
 +}
 +.mv2   {
 +  margin-top: .5rem;
 +  margin-bottom: .5rem;
 +}
 +.mv3   {
 +  margin-top: 1rem;
 +  margin-bottom: 1rem;
 +}
 +.mv4   {
 +  margin-top: 2rem;
 +  margin-bottom: 2rem;
 +}
 +.mv5   {
 +  margin-top: 4rem;
 +  margin-bottom: 4rem;
 +}
 +.mv6  {
 +  margin-top: 8rem;
 +  margin-bottom: 8rem;
 +}
 +.mv7  {
 +  margin-top: 16rem;
 +  margin-bottom: 16rem;
 +}
 +.mh0   {
 +  margin-left: 0;
 +  margin-right: 0;
 +}
 +.mh1   {
 +  margin-left: .25rem;
 +  margin-right: .25rem;
 +}
 +.mh2   {
 +  margin-left: .5rem;
 +  margin-right: .5rem;
 +}
 +.mh3   {
 +  margin-left: 1rem;
 +  margin-right: 1rem;
 +}
 +.mh4   {
 +  margin-left: 2rem;
 +  margin-right: 2rem;
 +}
 +.mh5   {
 +  margin-left: 4rem;
 +  margin-right: 4rem;
 +}
 +.mh6  {
 +  margin-left: 8rem;
 +  margin-right: 8rem;
 +}
 +.mh7  {
 +  margin-left: 16rem;
 +  margin-right: 16rem;
 +}
 +@media screen and (min-width: 30em) {
 +  .pa0-ns  {  padding: 0; }
 +  .pa1-ns {  padding: .25rem; }
 +  .pa2-ns  {  padding: .5rem; }
 +  .pa3-ns  {  padding: 1rem; }
 +  .pa4-ns  {  padding: 2rem; }
 +  .pa5-ns  {  padding: 4rem; }
 +  .pa6-ns {  padding: 8rem; }
 +  .pa7-ns { padding: 16rem; }
 +
 +  .pl0-ns  {  padding-left: 0; }
 +  .pl1-ns {  padding-left: .25rem; }
 +  .pl2-ns  {  padding-left: .5rem; }
 +  .pl3-ns  {  padding-left: 1rem; }
 +  .pl4-ns  {  padding-left: 2rem; }
 +  .pl5-ns  {  padding-left: 4rem; }
 +  .pl6-ns {  padding-left: 8rem; }
 +  .pl7-ns { padding-left: 16rem; }
 +
 +  .pr0-ns  {  padding-right: 0; }
 +  .pr1-ns {  padding-right: .25rem; }
 +  .pr2-ns  {  padding-right: .5rem; }
 +  .pr3-ns  {  padding-right: 1rem; }
 +  .pr4-ns  {  padding-right: 2rem; }
 +  .pr5-ns {   padding-right: 4rem; }
 +  .pr6-ns {  padding-right: 8rem; }
 +  .pr7-ns { padding-right: 16rem; }
 +
 +  .pb0-ns  {  padding-bottom: 0; }
 +  .pb1-ns {  padding-bottom: .25rem; }
 +  .pb2-ns  {  padding-bottom: .5rem; }
 +  .pb3-ns  {  padding-bottom: 1rem; }
 +  .pb4-ns  {  padding-bottom: 2rem; }
 +  .pb5-ns  {  padding-bottom: 4rem; }
 +  .pb6-ns {  padding-bottom: 8rem; }
 +  .pb7-ns { padding-bottom: 16rem; }
 +
 +  .pt0-ns  {  padding-top: 0; }
 +  .pt1-ns {  padding-top: .25rem; }
 +  .pt2-ns  {  padding-top: .5rem; }
 +  .pt3-ns  {  padding-top: 1rem; }
 +  .pt4-ns  {  padding-top: 2rem; }
 +  .pt5-ns  {  padding-top: 4rem; }
 +  .pt6-ns {  padding-top: 8rem; }
 +  .pt7-ns { padding-top: 16rem; }
 +
 +  .pv0-ns {
 +    padding-top: 0;
 +    padding-bottom: 0;
 +  }
 +  .pv1-ns {
 +    padding-top: .25rem;
 +    padding-bottom: .25rem;
 +  }
 +  .pv2-ns {
 +    padding-top: .5rem;
 +    padding-bottom: .5rem;
 +  }
 +  .pv3-ns {
 +    padding-top: 1rem;
 +    padding-bottom: 1rem;
 +  }
 +  .pv4-ns {
 +    padding-top: 2rem;
 +    padding-bottom: 2rem;
 +  }
 +  .pv5-ns {
 +    padding-top: 4rem;
 +    padding-bottom: 4rem;
 +  }
 +  .pv6-ns {
 +    padding-top: 8rem;
 +    padding-bottom: 8rem;
 +  }
 +  .pv7-ns {
 +    padding-top: 16rem;
 +    padding-bottom: 16rem;
 +  }
 +  .ph0-ns {
 +    padding-left: 0;
 +    padding-right: 0;
 +  }
 +  .ph1-ns {
 +    padding-left: .25rem;
 +    padding-right: .25rem;
 +  }
 +  .ph2-ns {
 +    padding-left: .5rem;
 +    padding-right: .5rem;
 +  }
 +  .ph3-ns {
 +    padding-left: 1rem;
 +    padding-right: 1rem;
 +  }
 +  .ph4-ns {
 +    padding-left: 2rem;
 +    padding-right: 2rem;
 +  }
 +  .ph5-ns {
 +    padding-left: 4rem;
 +    padding-right: 4rem;
 +  }
 +  .ph6-ns {
 +    padding-left: 8rem;
 +    padding-right: 8rem;
 +  }
 +  .ph7-ns {
 +    padding-left: 16rem;
 +    padding-right: 16rem;
 +  }
 +
 +  .ma0-ns  {  margin: 0; }
 +  .ma1-ns {  margin: .25rem; }
 +  .ma2-ns  {  margin: .5rem; }
 +  .ma3-ns  {  margin: 1rem; }
 +  .ma4-ns  {  margin: 2rem; }
 +  .ma5-ns  {  margin: 4rem; }
 +  .ma6-ns {  margin: 8rem; }
 +  .ma7-ns { margin: 16rem; }
 +
 +  .ml0-ns  {  margin-left: 0; }
 +  .ml1-ns {  margin-left: .25rem; }
 +  .ml2-ns  {  margin-left: .5rem; }
 +  .ml3-ns  {  margin-left: 1rem; }
 +  .ml4-ns  {  margin-left: 2rem; }
 +  .ml5-ns  {  margin-left: 4rem; }
 +  .ml6-ns {  margin-left: 8rem; }
 +  .ml7-ns { margin-left: 16rem; }
 +
 +  .mr0-ns  {  margin-right: 0; }
 +  .mr1-ns {  margin-right: .25rem; }
 +  .mr2-ns  {  margin-right: .5rem; }
 +  .mr3-ns  {  margin-right: 1rem; }
 +  .mr4-ns  {  margin-right: 2rem; }
 +  .mr5-ns  {  margin-right: 4rem; }
 +  .mr6-ns {  margin-right: 8rem; }
 +  .mr7-ns { margin-right: 16rem; }
 +
 +  .mb0-ns  {  margin-bottom: 0; }
 +  .mb1-ns {  margin-bottom: .25rem; }
 +  .mb2-ns  {  margin-bottom: .5rem; }
 +  .mb3-ns  {  margin-bottom: 1rem; }
 +  .mb4-ns  {  margin-bottom: 2rem; }
 +  .mb5-ns  {  margin-bottom: 4rem; }
 +  .mb6-ns {  margin-bottom: 8rem; }
 +  .mb7-ns { margin-bottom: 16rem; }
 +
 +  .mt0-ns  {  margin-top: 0; }
 +  .mt1-ns {  margin-top: .25rem; }
 +  .mt2-ns  {  margin-top: .5rem; }
 +  .mt3-ns  {  margin-top: 1rem; }
 +  .mt4-ns  {  margin-top: 2rem; }
 +  .mt5-ns  {  margin-top: 4rem; }
 +  .mt6-ns {  margin-top: 8rem; }
 +  .mt7-ns { margin-top: 16rem; }
 +
 +  .mv0-ns   {
 +    margin-top: 0;
 +    margin-bottom: 0;
 +  }
 +  .mv1-ns  {
 +    margin-top: .25rem;
 +    margin-bottom: .25rem;
 +  }
 +  .mv2-ns   {
 +    margin-top: .5rem;
 +    margin-bottom: .5rem;
 +  }
 +  .mv3-ns   {
 +    margin-top: 1rem;
 +    margin-bottom: 1rem;
 +  }
 +  .mv4-ns   {
 +    margin-top: 2rem;
 +    margin-bottom: 2rem;
 +  }
 +  .mv5-ns   {
 +    margin-top: 4rem;
 +    margin-bottom: 4rem;
 +  }
 +  .mv6-ns  {
 +    margin-top: 8rem;
 +    margin-bottom: 8rem;
 +  }
 +  .mv7-ns  {
 +    margin-top: 16rem;
 +    margin-bottom: 16rem;
 +  }
 +
 +  .mh0-ns   {
 +    margin-left: 0;
 +    margin-right: 0;
 +  }
 +  .mh1-ns   {
 +    margin-left: .25rem;
 +    margin-right: .25rem;
 +  }
 +  .mh2-ns   {
 +    margin-left: .5rem;
 +    margin-right: .5rem;
 +  }
 +  .mh3-ns   {
 +    margin-left: 1rem;
 +    margin-right: 1rem;
 +  }
 +  .mh4-ns   {
 +    margin-left: 2rem;
 +    margin-right: 2rem;
 +  }
 +  .mh5-ns   {
 +    margin-left: 4rem;
 +    margin-right: 4rem;
 +  }
 +  .mh6-ns  {
 +    margin-left: 8rem;
 +    margin-right: 8rem;
 +  }
 +  .mh7-ns  {
 +    margin-left: 16rem;
 +    margin-right: 16rem;
 +  }
 +
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .pa0-m  {  padding: 0; }
 +  .pa1-m {  padding: .25rem; }
 +  .pa2-m  {  padding: .5rem; }
 +  .pa3-m  {  padding: 1rem; }
 +  .pa4-m  {  padding: 2rem; }
 +  .pa5-m  {  padding: 4rem; }
 +  .pa6-m {  padding: 8rem; }
 +  .pa7-m { padding: 16rem; }
 +
 +  .pl0-m  {  padding-left: 0; }
 +  .pl1-m {  padding-left: .25rem; }
 +  .pl2-m  {  padding-left: .5rem; }
 +  .pl3-m  {  padding-left: 1rem; }
 +  .pl4-m  {  padding-left: 2rem; }
 +  .pl5-m  {  padding-left: 4rem; }
 +  .pl6-m {  padding-left: 8rem; }
 +  .pl7-m { padding-left: 16rem; }
 +
 +  .pr0-m  {  padding-right: 0; }
 +  .pr1-m {  padding-right: .25rem; }
 +  .pr2-m  {  padding-right: .5rem; }
 +  .pr3-m  {  padding-right: 1rem; }
 +  .pr4-m  {  padding-right: 2rem; }
 +  .pr5-m  {  padding-right: 4rem; }
 +  .pr6-m {  padding-right: 8rem; }
 +  .pr7-m { padding-right: 16rem; }
 +
 +  .pb0-m  {  padding-bottom: 0; }
 +  .pb1-m {  padding-bottom: .25rem; }
 +  .pb2-m  {  padding-bottom: .5rem; }
 +  .pb3-m  {  padding-bottom: 1rem; }
 +  .pb4-m  {  padding-bottom: 2rem; }
 +  .pb5-m  {  padding-bottom: 4rem; }
 +  .pb6-m {  padding-bottom: 8rem; }
 +  .pb7-m { padding-bottom: 16rem; }
 +
 +  .pt0-m  {  padding-top: 0; }
 +  .pt1-m {  padding-top: .25rem; }
 +  .pt2-m  {  padding-top: .5rem; }
 +  .pt3-m  {  padding-top: 1rem; }
 +  .pt4-m  {  padding-top: 2rem; }
 +  .pt5-m  {  padding-top: 4rem; }
 +  .pt6-m {  padding-top: 8rem; }
 +  .pt7-m { padding-top: 16rem; }
 +
 +  .pv0-m {
 +    padding-top: 0;
 +    padding-bottom: 0;
 +  }
 +  .pv1-m {
 +    padding-top: .25rem;
 +    padding-bottom: .25rem;
 +  }
 +  .pv2-m {
 +    padding-top: .5rem;
 +    padding-bottom: .5rem;
 +  }
 +  .pv3-m {
 +    padding-top: 1rem;
 +    padding-bottom: 1rem;
 +  }
 +  .pv4-m {
 +    padding-top: 2rem;
 +    padding-bottom: 2rem;
 +  }
 +  .pv5-m {
 +    padding-top: 4rem;
 +    padding-bottom: 4rem;
 +  }
 +  .pv6-m {
 +    padding-top: 8rem;
 +    padding-bottom: 8rem;
 +  }
 +  .pv7-m {
 +    padding-top: 16rem;
 +    padding-bottom: 16rem;
 +  }
 +
 +  .ph0-m {
 +    padding-left: 0;
 +    padding-right: 0;
 +  }
 +  .ph1-m {
 +    padding-left: .25rem;
 +    padding-right: .25rem;
 +  }
 +  .ph2-m {
 +    padding-left: .5rem;
 +    padding-right: .5rem;
 +  }
 +  .ph3-m {
 +    padding-left: 1rem;
 +    padding-right: 1rem;
 +  }
 +  .ph4-m {
 +    padding-left: 2rem;
 +    padding-right: 2rem;
 +  }
 +  .ph5-m {
 +    padding-left: 4rem;
 +    padding-right: 4rem;
 +  }
 +  .ph6-m {
 +    padding-left: 8rem;
 +    padding-right: 8rem;
 +  }
 +  .ph7-m {
 +    padding-left: 16rem;
 +    padding-right: 16rem;
 +  }
 +
 +  .ma0-m  {  margin: 0; }
 +  .ma1-m {  margin: .25rem; }
 +  .ma2-m  {  margin: .5rem; }
 +  .ma3-m  {  margin: 1rem; }
 +  .ma4-m  {  margin: 2rem; }
 +  .ma5-m  {  margin: 4rem; }
 +  .ma6-m {  margin: 8rem; }
 +  .ma7-m { margin: 16rem; }
 +
 +  .ml0-m  {  margin-left: 0; }
 +  .ml1-m {  margin-left: .25rem; }
 +  .ml2-m  {  margin-left: .5rem; }
 +  .ml3-m  {  margin-left: 1rem; }
 +  .ml4-m  {  margin-left: 2rem; }
 +  .ml5-m  {  margin-left: 4rem; }
 +  .ml6-m {  margin-left: 8rem; }
 +  .ml7-m { margin-left: 16rem; }
 +
 +  .mr0-m  {  margin-right: 0; }
 +  .mr1-m {  margin-right: .25rem; }
 +  .mr2-m  {  margin-right: .5rem; }
 +  .mr3-m  {  margin-right: 1rem; }
 +  .mr4-m  {  margin-right: 2rem; }
 +  .mr5-m  {  margin-right: 4rem; }
 +  .mr6-m {  margin-right: 8rem; }
 +  .mr7-m { margin-right: 16rem; }
 +
 +  .mb0-m  {  margin-bottom: 0; }
 +  .mb1-m {  margin-bottom: .25rem; }
 +  .mb2-m  {  margin-bottom: .5rem; }
 +  .mb3-m  {  margin-bottom: 1rem; }
 +  .mb4-m  {  margin-bottom: 2rem; }
 +  .mb5-m  {  margin-bottom: 4rem; }
 +  .mb6-m {  margin-bottom: 8rem; }
 +  .mb7-m { margin-bottom: 16rem; }
 +
 +  .mt0-m  {  margin-top: 0; }
 +  .mt1-m {  margin-top: .25rem; }
 +  .mt2-m  {  margin-top: .5rem; }
 +  .mt3-m  {  margin-top: 1rem; }
 +  .mt4-m  {  margin-top: 2rem; }
 +  .mt5-m  {  margin-top: 4rem; }
 +  .mt6-m {  margin-top: 8rem; }
 +  .mt7-m { margin-top: 16rem; }
 +
 +  .mv0-m {
 +    margin-top: 0;
 +    margin-bottom: 0;
 +  }
 +  .mv1-m {
 +    margin-top: .25rem;
 +    margin-bottom: .25rem;
 +  }
 +  .mv2-m {
 +    margin-top: .5rem;
 +    margin-bottom: .5rem;
 +  }
 +  .mv3-m {
 +    margin-top: 1rem;
 +    margin-bottom: 1rem;
 +  }
 +  .mv4-m {
 +    margin-top: 2rem;
 +    margin-bottom: 2rem;
 +  }
 +  .mv5-m {
 +    margin-top: 4rem;
 +    margin-bottom: 4rem;
 +  }
 +  .mv6-m {
 +    margin-top: 8rem;
 +    margin-bottom: 8rem;
 +  }
 +  .mv7-m {
 +    margin-top: 16rem;
 +    margin-bottom: 16rem;
 +  }
 +
 +  .mh0-m {
 +    margin-left: 0;
 +    margin-right: 0;
 +  }
 +  .mh1-m {
 +    margin-left: .25rem;
 +    margin-right: .25rem;
 +  }
 +  .mh2-m {
 +    margin-left: .5rem;
 +    margin-right: .5rem;
 +  }
 +  .mh3-m {
 +    margin-left: 1rem;
 +    margin-right: 1rem;
 +  }
 +  .mh4-m {
 +    margin-left: 2rem;
 +    margin-right: 2rem;
 +  }
 +  .mh5-m {
 +    margin-left: 4rem;
 +    margin-right: 4rem;
 +  }
 +  .mh6-m {
 +    margin-left: 8rem;
 +    margin-right: 8rem;
 +  }
 +  .mh7-m {
 +    margin-left: 16rem;
 +    margin-right: 16rem;
 +  }
 +
 +}
 +@media screen and (min-width: 60em) {
 +  .pa0-l  {  padding: 0; }
 +  .pa1-l {  padding: .25rem; }
 +  .pa2-l  {  padding: .5rem; }
 +  .pa3-l  {  padding: 1rem; }
 +  .pa4-l  {  padding: 2rem; }
 +  .pa5-l  {  padding: 4rem; }
 +  .pa6-l {  padding: 8rem; }
 +  .pa7-l { padding: 16rem; }
 +
 +  .pl0-l  {  padding-left: 0; }
 +  .pl1-l {  padding-left: .25rem; }
 +  .pl2-l  {  padding-left: .5rem; }
 +  .pl3-l  {  padding-left: 1rem; }
 +  .pl4-l  {  padding-left: 2rem; }
 +  .pl5-l  {  padding-left: 4rem; }
 +  .pl6-l {  padding-left: 8rem; }
 +  .pl7-l { padding-left: 16rem; }
 +
 +  .pr0-l  {  padding-right: 0; }
 +  .pr1-l {  padding-right: .25rem; }
 +  .pr2-l  {  padding-right: .5rem; }
 +  .pr3-l  {  padding-right: 1rem; }
 +  .pr4-l  {  padding-right: 2rem; }
 +  .pr5-l  {  padding-right: 4rem; }
 +  .pr6-l {  padding-right: 8rem; }
 +  .pr7-l { padding-right: 16rem; }
 +
 +  .pb0-l  {  padding-bottom: 0; }
 +  .pb1-l {  padding-bottom: .25rem; }
 +  .pb2-l  {  padding-bottom: .5rem; }
 +  .pb3-l  {  padding-bottom: 1rem; }
 +  .pb4-l  {  padding-bottom: 2rem; }
 +  .pb5-l  {  padding-bottom: 4rem; }
 +  .pb6-l {  padding-bottom: 8rem; }
 +  .pb7-l { padding-bottom: 16rem; }
 +
 +  .pt0-l  {  padding-top: 0; }
 +  .pt1-l {  padding-top: .25rem; }
 +  .pt2-l  {  padding-top: .5rem; }
 +  .pt3-l  {  padding-top: 1rem; }
 +  .pt4-l  {  padding-top: 2rem; }
 +  .pt5-l  {  padding-top: 4rem; }
 +  .pt6-l {  padding-top: 8rem; }
 +  .pt7-l { padding-top: 16rem; }
 +
 +  .pv0-l {
 +    padding-top: 0;
 +    padding-bottom: 0;
 +  }
 +  .pv1-l {
 +    padding-top: .25rem;
 +    padding-bottom: .25rem;
 +  }
 +  .pv2-l {
 +    padding-top: .5rem;
 +    padding-bottom: .5rem;
 +  }
 +  .pv3-l {
 +    padding-top: 1rem;
 +    padding-bottom: 1rem;
 +  }
 +  .pv4-l {
 +    padding-top: 2rem;
 +    padding-bottom: 2rem;
 +  }
 +  .pv5-l {
 +    padding-top: 4rem;
 +    padding-bottom: 4rem;
 +  }
 +  .pv6-l {
 +    padding-top: 8rem;
 +    padding-bottom: 8rem;
 +  }
 +  .pv7-l {
 +    padding-top: 16rem;
 +    padding-bottom: 16rem;
 +  }
 +
 +  .ph0-l {
 +    padding-left: 0;
 +    padding-right: 0;
 +  }
 +  .ph1-l {
 +    padding-left: .25rem;
 +    padding-right: .25rem;
 +  }
 +  .ph2-l {
 +    padding-left: .5rem;
 +    padding-right: .5rem;
 +  }
 +  .ph3-l {
 +    padding-left: 1rem;
 +    padding-right: 1rem;
 +  }
 +  .ph4-l {
 +    padding-left: 2rem;
 +    padding-right: 2rem;
 +  }
 +  .ph5-l {
 +    padding-left: 4rem;
 +    padding-right: 4rem;
 +  }
 +  .ph6-l {
 +    padding-left: 8rem;
 +    padding-right: 8rem;
 +  }
 +  .ph7-l {
 +    padding-left: 16rem;
 +    padding-right: 16rem;
 +  }
 +
 +  .ma0-l  {  margin: 0; }
 +  .ma1-l {  margin: .25rem; }
 +  .ma2-l  {  margin: .5rem; }
 +  .ma3-l  {  margin: 1rem; }
 +  .ma4-l  {  margin: 2rem; }
 +  .ma5-l  {  margin: 4rem; }
 +  .ma6-l {  margin: 8rem; }
 +  .ma7-l { margin: 16rem; }
 +
 +  .ml0-l  {  margin-left: 0; }
 +  .ml1-l {  margin-left: .25rem; }
 +  .ml2-l  {  margin-left: .5rem; }
 +  .ml3-l  {  margin-left: 1rem; }
 +  .ml4-l  {  margin-left: 2rem; }
 +  .ml5-l  {  margin-left: 4rem; }
 +  .ml6-l {  margin-left: 8rem; }
 +  .ml7-l { margin-left: 16rem; }
 +
 +  .mr0-l  {  margin-right: 0; }
 +  .mr1-l {  margin-right: .25rem; }
 +  .mr2-l  {  margin-right: .5rem; }
 +  .mr3-l  {  margin-right: 1rem; }
 +  .mr4-l  {  margin-right: 2rem; }
 +  .mr5-l  {  margin-right: 4rem; }
 +  .mr6-l {  margin-right: 8rem; }
 +  .mr7-l { margin-right: 16rem; }
 +
 +  .mb0-l  {  margin-bottom: 0; }
 +  .mb1-l {  margin-bottom: .25rem; }
 +  .mb2-l  {  margin-bottom: .5rem; }
 +  .mb3-l  {  margin-bottom: 1rem; }
 +  .mb4-l  {  margin-bottom: 2rem; }
 +  .mb5-l  {  margin-bottom: 4rem; }
 +  .mb6-l {  margin-bottom: 8rem; }
 +  .mb7-l { margin-bottom: 16rem; }
 +
 +  .mt0-l  {  margin-top: 0; }
 +  .mt1-l {  margin-top: .25rem; }
 +  .mt2-l  {  margin-top: .5rem; }
 +  .mt3-l  {  margin-top: 1rem; }
 +  .mt4-l  {  margin-top: 2rem; }
 +  .mt5-l  {  margin-top: 4rem; }
 +  .mt6-l {  margin-top: 8rem; }
 +  .mt7-l { margin-top: 16rem; }
 +
 +  .mv0-l {
 +    margin-top: 0;
 +    margin-bottom: 0;
 +  }
 +  .mv1-l {
 +    margin-top: .25rem;
 +    margin-bottom: .25rem;
 +  }
 +  .mv2-l {
 +    margin-top: .5rem;
 +    margin-bottom: .5rem;
 +  }
 +  .mv3-l {
 +    margin-top: 1rem;
 +    margin-bottom: 1rem;
 +  }
 +  .mv4-l {
 +    margin-top: 2rem;
 +    margin-bottom: 2rem;
 +  }
 +  .mv5-l {
 +    margin-top: 4rem;
 +    margin-bottom: 4rem;
 +  }
 +  .mv6-l {
 +    margin-top: 8rem;
 +    margin-bottom: 8rem;
 +  }
 +  .mv7-l {
 +    margin-top: 16rem;
 +    margin-bottom: 16rem;
 +  }
 +
 +  .mh0-l {
 +    margin-left: 0;
 +    margin-right: 0;
 +  }
 +  .mh1-l {
 +    margin-left: .25rem;
 +    margin-right: .25rem;
 +  }
 +  .mh2-l {
 +    margin-left: .5rem;
 +    margin-right: .5rem;
 +  }
 +  .mh3-l {
 +    margin-left: 1rem;
 +    margin-right: 1rem;
 +  }
 +  .mh4-l {
 +    margin-left: 2rem;
 +    margin-right: 2rem;
 +  }
 +  .mh5-l {
 +    margin-left: 4rem;
 +    margin-right: 4rem;
 +  }
 +  .mh6-l {
 +    margin-left: 8rem;
 +    margin-right: 8rem;
 +  }
 +  .mh7-l {
 +    margin-left: 16rem;
 +    margin-right: 16rem;
 +  }
 +}
 +/*
 +   NEGATIVE MARGINS
 +
 +   Base:
 +     n = negative
 +
 +   Modifiers:
 +     a = all
 +     t = top
 +     r = right
 +     b = bottom
 +     l = left
 +
 +     1 = 1st step in spacing scale
 +     2 = 2nd step in spacing scale
 +     3 = 3rd step in spacing scale
 +     4 = 4th step in spacing scale
 +     5 = 5th step in spacing scale
 +     6 = 6th step in spacing scale
 +     7 = 7th step in spacing scale
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.na1 { margin: -0.25rem; }
 +.na2 { margin: -0.5rem; }
 +.na3 { margin: -1rem; }
 +.na4 { margin: -2rem; }
 +.na5 { margin: -4rem; }
 +.na6 { margin: -8rem; }
 +.na7 { margin: -16rem; }
 +.nl1 { margin-left: -0.25rem; }
 +.nl2 { margin-left: -0.5rem; }
 +.nl3 { margin-left: -1rem; }
 +.nl4 { margin-left: -2rem; }
 +.nl5 { margin-left: -4rem; }
 +.nl6 { margin-left: -8rem; }
 +.nl7 { margin-left: -16rem; }
 +.nr1 { margin-right: -0.25rem; }
 +.nr2 { margin-right: -0.5rem; }
 +.nr3 { margin-right: -1rem; }
 +.nr4 { margin-right: -2rem; }
 +.nr5 { margin-right: -4rem; }
 +.nr6 { margin-right: -8rem; }
 +.nr7 { margin-right: -16rem; }
 +.nb1 { margin-bottom: -0.25rem; }
 +.nb2 { margin-bottom: -0.5rem; }
 +.nb3 { margin-bottom: -1rem; }
 +.nb4 { margin-bottom: -2rem; }
 +.nb5 { margin-bottom: -4rem; }
 +.nb6 { margin-bottom: -8rem; }
 +.nb7 { margin-bottom: -16rem; }
 +.nt1 { margin-top: -0.25rem; }
 +.nt2 { margin-top: -0.5rem; }
 +.nt3 { margin-top: -1rem; }
 +.nt4 { margin-top: -2rem; }
 +.nt5 { margin-top: -4rem; }
 +.nt6 { margin-top: -8rem; }
 +.nt7 { margin-top: -16rem; }
 +@media screen and (min-width: 30em) {
 +
 +  .na1-ns { margin: -0.25rem; }
 +  .na2-ns { margin: -0.5rem; }
 +  .na3-ns { margin: -1rem; }
 +  .na4-ns { margin: -2rem; }
 +  .na5-ns { margin: -4rem; }
 +  .na6-ns { margin: -8rem; }
 +  .na7-ns { margin: -16rem; }
 +
 +  .nl1-ns { margin-left: -0.25rem; }
 +  .nl2-ns { margin-left: -0.5rem; }
 +  .nl3-ns { margin-left: -1rem; }
 +  .nl4-ns { margin-left: -2rem; }
 +  .nl5-ns { margin-left: -4rem; }
 +  .nl6-ns { margin-left: -8rem; }
 +  .nl7-ns { margin-left: -16rem; }
 +
 +  .nr1-ns { margin-right: -0.25rem; }
 +  .nr2-ns { margin-right: -0.5rem; }
 +  .nr3-ns { margin-right: -1rem; }
 +  .nr4-ns { margin-right: -2rem; }
 +  .nr5-ns { margin-right: -4rem; }
 +  .nr6-ns { margin-right: -8rem; }
 +  .nr7-ns { margin-right: -16rem; }
 +
 +  .nb1-ns { margin-bottom: -0.25rem; }
 +  .nb2-ns { margin-bottom: -0.5rem; }
 +  .nb3-ns { margin-bottom: -1rem; }
 +  .nb4-ns { margin-bottom: -2rem; }
 +  .nb5-ns { margin-bottom: -4rem; }
 +  .nb6-ns { margin-bottom: -8rem; }
 +  .nb7-ns { margin-bottom: -16rem; }
 +
 +  .nt1-ns { margin-top: -0.25rem; }
 +  .nt2-ns { margin-top: -0.5rem; }
 +  .nt3-ns { margin-top: -1rem; }
 +  .nt4-ns { margin-top: -2rem; }
 +  .nt5-ns { margin-top: -4rem; }
 +  .nt6-ns { margin-top: -8rem; }
 +  .nt7-ns { margin-top: -16rem; }
 +
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .na1-m { margin: -0.25rem; }
 +  .na2-m { margin: -0.5rem; }
 +  .na3-m { margin: -1rem; }
 +  .na4-m { margin: -2rem; }
 +  .na5-m { margin: -4rem; }
 +  .na6-m { margin: -8rem; }
 +  .na7-m { margin: -16rem; }
 +
 +  .nl1-m { margin-left: -0.25rem; }
 +  .nl2-m { margin-left: -0.5rem; }
 +  .nl3-m { margin-left: -1rem; }
 +  .nl4-m { margin-left: -2rem; }
 +  .nl5-m { margin-left: -4rem; }
 +  .nl6-m { margin-left: -8rem; }
 +  .nl7-m { margin-left: -16rem; }
 +
 +  .nr1-m { margin-right: -0.25rem; }
 +  .nr2-m { margin-right: -0.5rem; }
 +  .nr3-m { margin-right: -1rem; }
 +  .nr4-m { margin-right: -2rem; }
 +  .nr5-m { margin-right: -4rem; }
 +  .nr6-m { margin-right: -8rem; }
 +  .nr7-m { margin-right: -16rem; }
 +
 +  .nb1-m { margin-bottom: -0.25rem; }
 +  .nb2-m { margin-bottom: -0.5rem; }
 +  .nb3-m { margin-bottom: -1rem; }
 +  .nb4-m { margin-bottom: -2rem; }
 +  .nb5-m { margin-bottom: -4rem; }
 +  .nb6-m { margin-bottom: -8rem; }
 +  .nb7-m { margin-bottom: -16rem; }
 +
 +  .nt1-m { margin-top: -0.25rem; }
 +  .nt2-m { margin-top: -0.5rem; }
 +  .nt3-m { margin-top: -1rem; }
 +  .nt4-m { margin-top: -2rem; }
 +  .nt5-m { margin-top: -4rem; }
 +  .nt6-m { margin-top: -8rem; }
 +  .nt7-m { margin-top: -16rem; }
 +
 +}
 +@media screen and (min-width: 60em) {
 +  .na1-l { margin: -0.25rem; }
 +  .na2-l { margin: -0.5rem; }
 +  .na3-l { margin: -1rem; }
 +  .na4-l { margin: -2rem; }
 +  .na5-l { margin: -4rem; }
 +  .na6-l { margin: -8rem; }
 +  .na7-l { margin: -16rem; }
 +
 +  .nl1-l { margin-left: -0.25rem; }
 +  .nl2-l { margin-left: -0.5rem; }
 +  .nl3-l { margin-left: -1rem; }
 +  .nl4-l { margin-left: -2rem; }
 +  .nl5-l { margin-left: -4rem; }
 +  .nl6-l { margin-left: -8rem; }
 +  .nl7-l { margin-left: -16rem; }
 +
 +  .nr1-l { margin-right: -0.25rem; }
 +  .nr2-l { margin-right: -0.5rem; }
 +  .nr3-l { margin-right: -1rem; }
 +  .nr4-l { margin-right: -2rem; }
 +  .nr5-l { margin-right: -4rem; }
 +  .nr6-l { margin-right: -8rem; }
 +  .nr7-l { margin-right: -16rem; }
 +
 +  .nb1-l { margin-bottom: -0.25rem; }
 +  .nb2-l { margin-bottom: -0.5rem; }
 +  .nb3-l { margin-bottom: -1rem; }
 +  .nb4-l { margin-bottom: -2rem; }
 +  .nb5-l { margin-bottom: -4rem; }
 +  .nb6-l { margin-bottom: -8rem; }
 +  .nb7-l { margin-bottom: -16rem; }
 +
 +  .nt1-l { margin-top: -0.25rem; }
 +  .nt2-l { margin-top: -0.5rem; }
 +  .nt3-l { margin-top: -1rem; }
 +  .nt4-l { margin-top: -2rem; }
 +  .nt5-l { margin-top: -4rem; }
 +  .nt6-l { margin-top: -8rem; }
 +  .nt7-l { margin-top: -16rem; }
 +}
 +/*
 +
 +  TABLES
 +  Docs: http://tachyons.io/docs/elements/tables/
 +
 +*/
 +.collapse {
 +    border-collapse: collapse;
 +    border-spacing: 0;
 +}
 +.striped--light-silver:nth-child(odd) {
 +  background-color: #aaa;
 +}
 +.striped--moon-gray:nth-child(odd) {
 +  background-color: #ccc;
 +}
 +.striped--light-gray:nth-child(odd) {
 +  background-color: #eee;
 +}
 +.striped--near-white:nth-child(odd) {
 +  background-color: #f4f4f4;
 +}
 +.stripe-light:nth-child(odd) {
 +  background-color: rgba(255, 255, 255, .1);
 +}
 +.stripe-dark:nth-child(odd) {
 +  background-color: rgba(0, 0, 0, .1);
 +}
 +/*
 +
 +   TEXT DECORATION
 +   Docs: http://tachyons.io/docs/typography/text-decoration/
 +
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.strike       { text-decoration: line-through; }
 +.underline    { text-decoration: underline; }
 +.no-underline { text-decoration: none; }
 +@media screen and (min-width: 30em) {
 +  .strike-ns       { text-decoration: line-through; }
 +  .underline-ns    { text-decoration: underline; }
 +  .no-underline-ns { text-decoration: none; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .strike-m       { text-decoration: line-through; }
 +  .underline-m    { text-decoration: underline; }
 +  .no-underline-m { text-decoration: none; }
 +}
 +@media screen and (min-width: 60em) {
 +  .strike-l       { text-decoration: line-through; }
 +  .underline-l {    text-decoration: underline; }
 +  .no-underline-l { text-decoration: none; }
 +}
 +/*
 +
 +  TEXT ALIGN
 +  Docs: http://tachyons.io/docs/typography/text-align/
 +
 +  Base
 +    t = text-align
 +
 +  Modifiers
 +    l = left
 +    r = right
 +    c = center
 +    j = justify
 +
 +  Media Query Extensions:
 +    -ns = not-small
 +    -m  = medium
 +    -l  = large
 +
 +*/
 +.tl  { text-align: left; }
 +.tr  { text-align: right; }
 +.tc  { text-align: center; }
 +.tj  { text-align: justify; }
 +@media screen and (min-width: 30em) {
 +  .tl-ns  { text-align: left; }
 +  .tr-ns  { text-align: right; }
 +  .tc-ns  { text-align: center; }
 +  .tj-ns  { text-align: justify; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .tl-m  { text-align: left; }
 +  .tr-m  { text-align: right; }
 +  .tc-m  { text-align: center; }
 +  .tj-m  { text-align: justify; }
 +}
 +@media screen and (min-width: 60em) {
 +  .tl-l  { text-align: left; }
 +  .tr-l  { text-align: right; }
 +  .tc-l  { text-align: center; }
 +  .tj-l  { text-align: justify; }
 +}
 +/*
 +
 +   TEXT TRANSFORM
 +   Docs: http://tachyons.io/docs/typography/text-transform/
 +
 +   Base:
 +     tt = text-transform
 +
 +   Modifiers
 +     c = capitalize
 +     l = lowercase
 +     u = uppercase
 +     n = none
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.ttc { text-transform: capitalize; }
 +.ttl { text-transform: lowercase; }
 +.ttu { text-transform: uppercase; }
 +.ttn { text-transform: none; }
 +@media screen and (min-width: 30em) {
 +  .ttc-ns { text-transform: capitalize; }
 +  .ttl-ns { text-transform: lowercase; }
 +  .ttu-ns { text-transform: uppercase; }
 +  .ttn-ns { text-transform: none; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .ttc-m { text-transform: capitalize; }
 +  .ttl-m { text-transform: lowercase; }
 +  .ttu-m { text-transform: uppercase; }
 +  .ttn-m { text-transform: none; }
 +}
 +@media screen and (min-width: 60em) {
 +  .ttc-l { text-transform: capitalize; }
 +  .ttl-l { text-transform: lowercase; }
 +  .ttu-l { text-transform: uppercase; }
 +  .ttn-l { text-transform: none; }
 +}
 +/*
 +
 +   TYPE SCALE
 +   Docs: http://tachyons.io/docs/typography/scale/
 +
 +   Base:
 +    f = font-size
 +
 +   Modifiers
 +     1 = 1st step in size scale
 +     2 = 2nd step in size scale
 +     3 = 3rd step in size scale
 +     4 = 4th step in size scale
 +     5 = 5th step in size scale
 +     6 = 6th step in size scale
 +     7 = 7th step in size scale
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +*/
 +/*
 + * For Hero/Marketing Titles
 + *
 + * These generally are too large for mobile
 + * so be careful using them on smaller screens.
 + * */
 +.f-6,
 +.f-headline {
 +  font-size: 6rem;
 +}
 +.f-5,
 +.f-subheadline {
 +  font-size: 5rem;
 +}
 +/* Type Scale */
 +.f1 { font-size: 3rem; }
 +.f2 { font-size: 2.25rem; }
 +.f3 { font-size: 1.5rem; }
 +.f4 { font-size: 1.25rem; }
 +.f5 { font-size: 1rem; }
 +.f6 { font-size: .875rem; }
 +.f7 { font-size: .75rem; }
 +/* Small and hard to read for many people so use with extreme caution */
 +@media screen and (min-width: 30em){
 +  .f-6-ns,
 +  .f-headline-ns { font-size: 6rem; }
 +  .f-5-ns,
 +  .f-subheadline-ns { font-size: 5rem; }
 +  .f1-ns { font-size: 3rem; }
 +  .f2-ns { font-size: 2.25rem; }
 +  .f3-ns { font-size: 1.5rem; }
 +  .f4-ns { font-size: 1.25rem; }
 +  .f5-ns { font-size: 1rem; }
 +  .f6-ns { font-size: .875rem; }
 +  .f7-ns { font-size: .75rem; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .f-6-m,
 +  .f-headline-m { font-size: 6rem; }
 +  .f-5-m,
 +  .f-subheadline-m { font-size: 5rem; }
 +  .f1-m { font-size: 3rem; }
 +  .f2-m { font-size: 2.25rem; }
 +  .f3-m { font-size: 1.5rem; }
 +  .f4-m { font-size: 1.25rem; }
 +  .f5-m { font-size: 1rem; }
 +  .f6-m { font-size: .875rem; }
 +  .f7-m { font-size: .75rem; }
 +}
 +@media screen and (min-width: 60em) {
 +  .f-6-l,
 +  .f-headline-l {
 +    font-size: 6rem;
 +  }
 +  .f-5-l,
 +  .f-subheadline-l {
 +    font-size: 5rem;
 +  }
 +  .f1-l { font-size: 3rem; }
 +  .f2-l { font-size: 2.25rem; }
 +  .f3-l { font-size: 1.5rem; }
 +  .f4-l { font-size: 1.25rem; }
 +  .f5-l { font-size: 1rem; }
 +  .f6-l { font-size: .875rem; }
 +  .f7-l { font-size: .75rem; }
 +}
 +/*
 +
 +   TYPOGRAPHY
 +   http://tachyons.io/docs/typography/measure/
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/* Measure is limited to ~66 characters */
 +.measure {
 +  max-width: 30em;
 +}
 +/* Measure is limited to ~80 characters */
 +.measure-wide {
 +  max-width: 34em;
 +}
 +/* Measure is limited to ~45 characters */
 +.measure-narrow {
 +  max-width: 20em;
 +}
 +/* Book paragraph style - paragraphs are indented with no vertical spacing. */
 +.indent {
 +  text-indent: 1em;
 +  margin-top: 0;
 +  margin-bottom: 0;
 +}
 +.small-caps {
 +  -webkit-font-feature-settings: "c2sc";
 +          font-feature-settings: "c2sc";
 +  font-variant: small-caps;
 +}
 +/* Combine this class with a width to truncate text (or just leave as is to truncate at width of containing element. */
 +.truncate {
 +  white-space: nowrap;
 +  overflow: hidden;
 +  text-overflow: ellipsis;
 +}
 +@media screen and (min-width: 30em) {
 +  .measure-ns  {
 +    max-width: 30em;
 +  }
 +  .measure-wide-ns {
 +    max-width: 34em;
 +  }
 +  .measure-narrow-ns {
 +    max-width: 20em;
 +  }
 +  .indent-ns {
 +    text-indent: 1em;
 +    margin-top: 0;
 +    margin-bottom: 0;
 +  }
 +  .small-caps-ns {
 +    -webkit-font-feature-settings: "c2sc";
 +            font-feature-settings: "c2sc";
 +    font-variant: small-caps;
 +  }
 +  .truncate-ns {
 +    white-space: nowrap;
 +    overflow: hidden;
 +    text-overflow: ellipsis;
 +  }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .measure-m {
 +    max-width: 30em;
 +  }
 +  .measure-wide-m {
 +    max-width: 34em;
 +  }
 +  .measure-narrow-m {
 +    max-width: 20em;
 +  }
 +  .indent-m {
 +    text-indent: 1em;
 +    margin-top: 0;
 +    margin-bottom: 0;
 +  }
 +  .small-caps-m {
 +    -webkit-font-feature-settings: "c2sc";
 +            font-feature-settings: "c2sc";
 +    font-variant: small-caps;
 +  }
 +  .truncate-m {
 +    white-space: nowrap;
 +    overflow: hidden;
 +    text-overflow: ellipsis;
 +  }
 +}
 +@media screen and (min-width: 60em) {
 +  .measure-l {
 +    max-width: 30em;
 +  }
 +  .measure-wide-l {
- pre, .pre  {
-   overflow-x: auto;
-   overflow-y: hidden;
-   overflow:   scroll;
- }
++    max-width: 34em;
 +  }
 +  .measure-narrow-l {
 +    max-width: 20em;
 +  }
 +  .indent-l {
 +    text-indent: 1em;
 +    margin-top: 0;
 +    margin-bottom: 0;
 +  }
 +  .small-caps-l {
 +    -webkit-font-feature-settings: "c2sc";
 +            font-feature-settings: "c2sc";
 +    font-variant: small-caps;
 +  }
 +  .truncate-l {
 +    white-space: nowrap;
 +    overflow: hidden;
 +    text-overflow: ellipsis;
 +  }
 +}
 +/*
 +
 +   UTILITIES
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/* Equivalent to .overflow-y-scroll */
 +.overflow-container {
 +  overflow-y: scroll;
 +}
 +.center {
 +  margin-right: auto;
 +  margin-left: auto;
 +}
 +.mr-auto { margin-right: auto; }
 +.ml-auto { margin-left:  auto; }
 +@media screen and (min-width: 30em){
 +  .center-ns {
 +    margin-right: auto;
 +    margin-left: auto;
 +  }
 +  .mr-auto-ns { margin-right: auto; }
 +  .ml-auto-ns { margin-left:  auto; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em){
 +  .center-m {
 +    margin-right: auto;
 +    margin-left: auto;
 +  }
 +  .mr-auto-m { margin-right: auto; }
 +  .ml-auto-m { margin-left:  auto; }
 +}
 +@media screen and (min-width: 60em){
 +  .center-l {
 +    margin-right: auto;
 +    margin-left: auto;
 +  }
 +  .mr-auto-l { margin-right: auto; }
 +  .ml-auto-l { margin-left:  auto; }
 +}
 +/*
 +
 +   VISIBILITY
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +/*
 +    Text that is hidden but accessible
 +    Ref: http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 +*/
 +.clip {
 +  position: fixed !important;
 +  _position: absolute !important;
 +  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
 +  clip: rect(1px, 1px, 1px, 1px);
 +}
 +@media screen and (min-width: 30em) {
 +  .clip-ns {
 +    position: fixed !important;
 +    _position: absolute !important;
 +    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
 +    clip: rect(1px, 1px, 1px, 1px);
 +  }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .clip-m {
 +    position: fixed !important;
 +    _position: absolute !important;
 +    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
 +    clip: rect(1px, 1px, 1px, 1px);
 +  }
 +}
 +@media screen and (min-width: 60em) {
 +  .clip-l {
 +    position: fixed !important;
 +    _position: absolute !important;
 +    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
 +    clip: rect(1px, 1px, 1px, 1px);
 +  }
 +}
 +/*
 +
 +   WHITE SPACE
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.ws-normal { white-space: normal; }
 +.nowrap { white-space: nowrap; }
 +.pre { white-space: pre; }
 +@media screen and (min-width: 30em) {
 +  .ws-normal-ns { white-space: normal; }
 +  .nowrap-ns { white-space: nowrap; }
 +  .pre-ns { white-space: pre; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .ws-normal-m { white-space: normal; }
 +  .nowrap-m { white-space: nowrap; }
 +  .pre-m { white-space: pre; }
 +}
 +@media screen and (min-width: 60em) {
 +  .ws-normal-l { white-space: normal; }
 +  .nowrap-l { white-space: nowrap; }
 +  .pre-l { white-space: pre; }
 +}
 +/*
 +
 +   VERTICAL ALIGN
 +
 +   Media Query Extensions:
 +     -ns = not-small
 +     -m  = medium
 +     -l  = large
 +
 +*/
 +.v-base     { vertical-align: baseline; }
 +.v-mid      { vertical-align: middle; }
 +.v-top      { vertical-align: top; }
 +.v-btm      { vertical-align: bottom; }
 +@media screen and (min-width: 30em) {
 +  .v-base-ns     { vertical-align: baseline; }
 +  .v-mid-ns      { vertical-align: middle; }
 +  .v-top-ns      { vertical-align: top; }
 +  .v-btm-ns      { vertical-align: bottom; }
 +}
 +@media screen and (min-width: 30em) and (max-width: 60em) {
 +  .v-base-m     { vertical-align: baseline; }
 +  .v-mid-m      { vertical-align: middle; }
 +  .v-top-m      { vertical-align: top; }
 +  .v-btm-m      { vertical-align: bottom; }
 +}
 +@media screen and (min-width: 60em) {
 +  .v-base-l     { vertical-align: baseline; }
 +  .v-mid-l      { vertical-align: middle; }
 +  .v-top-l      { vertical-align: top; }
 +  .v-btm-l      { vertical-align: bottom; }
 +}
 +/*
 +
 +  HOVER EFFECTS
 +  Docs: http://tachyons.io/docs/themes/hovers/
 +
 +    - Dim
 +    - Glow
 +    - Hide Child
 +    - Underline text
 +    - Grow
 +    - Pointer
 +    - Shadow
 +
 +*/
 +/*
 +
 +  Dim element on hover by adding the dim class.
 +
 +*/
 +.dim {
 +  opacity: 1;
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +.dim:hover,
 +.dim:focus {
 +  opacity: .5;
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +.dim:active {
 +  opacity: .8; -webkit-transition: opacity .15s ease-out; transition: opacity .15s ease-out;
 +}
 +/*
 +
 +  Animate opacity to 100% on hover by adding the glow class.
 +
 +*/
 +.glow {
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +.glow:hover,
 +.glow:focus {
 +  opacity: 1;
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +/*
 +
 +  Hide child & reveal on hover:
 +
 +  Put the hide-child class on a parent element and any nested element with the
 +  child class will be hidden and displayed on hover or focus.
 +
 +  <div class="hide-child">
 +    <div class="child"> Hidden until hover or focus </div>
 +    <div class="child"> Hidden until hover or focus </div>
 +    <div class="child"> Hidden until hover or focus </div>
 +    <div class="child"> Hidden until hover or focus </div>
 +  </div>
 +*/
 +.hide-child .child {
 +  opacity: 0;
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +.hide-child:hover  .child,
 +.hide-child:focus  .child,
 +.hide-child:active .child {
 +  opacity: 1;
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +.underline-hover:hover,
 +.underline-hover:focus {
 +  text-decoration: underline;
 +}
 +/* Can combine this with overflow-hidden to make background images grow on hover
 + * even if you are using background-size: cover */
 +.grow {
 +  -moz-osx-font-smoothing: grayscale;
 +  -webkit-backface-visibility: hidden;
 +          backface-visibility: hidden;
 +  -webkit-transform: translateZ(0);
 +          transform: translateZ(0);
 +  -webkit-transition: -webkit-transform 0.25s ease-out;
 +  transition: -webkit-transform 0.25s ease-out;
 +  transition: transform 0.25s ease-out;
 +  transition: transform 0.25s ease-out, -webkit-transform 0.25s ease-out;
 +}
 +.grow:hover,
 +.grow:focus {
 +  -webkit-transform: scale(1.05);
 +          transform: scale(1.05);
 +}
 +.grow:active {
 +  -webkit-transform: scale(.90);
 +          transform: scale(.90);
 +}
 +.grow-large {
 +  -moz-osx-font-smoothing: grayscale;
 +  -webkit-backface-visibility: hidden;
 +          backface-visibility: hidden;
 +  -webkit-transform: translateZ(0);
 +          transform: translateZ(0);
 +  -webkit-transition: -webkit-transform .25s ease-in-out;
 +  transition: -webkit-transform .25s ease-in-out;
 +  transition: transform .25s ease-in-out;
 +  transition: transform .25s ease-in-out, -webkit-transform .25s ease-in-out;
 +}
 +.grow-large:hover,
 +.grow-large:focus {
 +  -webkit-transform: scale(1.2);
 +          transform: scale(1.2);
 +}
 +.grow-large:active {
 +  -webkit-transform: scale(.95);
 +          transform: scale(.95);
 +}
 +/* Add pointer on hover */
 +.pointer:hover {
 +  cursor: pointer;
 +}
 +/* 
 +   Add shadow on hover.
 +
 +   Performant box-shadow animation pattern from 
 +   http://tobiasahlin.com/blog/how-to-animate-box-shadow/ 
 +*/
 +.shadow-hover {
 +  cursor: pointer;
 +  position: relative;
 +  -webkit-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
 +  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
 +}
 +.shadow-hover::after {
 +  content: '';
 +  -webkit-box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, .2);
 +          box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, .2);
 +  border-radius: inherit;
 +  opacity: 0;
 +  position: absolute;
 +  top: 0;
 +  left: 0;
 +  width: 100%;
 +  height: 100%;
 +  z-index: -1;
 +  -webkit-transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
 +  transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
 +}
 +.shadow-hover:hover::after,
 +.shadow-hover:focus::after {
 +  opacity: 1;
 +}
 +/* Combine with classes in skins and skins-pseudo for 
 + * many different transition possibilities. */
 +.bg-animate,
 +.bg-animate:hover,
 +.bg-animate:focus {
 +  -webkit-transition: background-color .15s ease-in-out;
 +  transition: background-color .15s ease-in-out; 
 +}
 +/*
 +
 +  Z-INDEX
 +
 +  Base
 +    z = z-index
 +
 +  Modifiers
 +    -0 = literal value 0
 +    -1 = literal value 1
 +    -2 = literal value 2
 +    -3 = literal value 3
 +    -4 = literal value 4
 +    -5 = literal value 5
 +    -999 = literal value 999
 +    -9999 = literal value 9999
 +
 +    -max = largest accepted z-index value as integer
 +
 +    -inherit = string value inherit
 +    -initial = string value initial
 +    -unset = string value unset
 +
 +  MDN: https://developer.mozilla.org/en/docs/Web/CSS/z-index
 +  Spec: http://www.w3.org/TR/CSS2/zindex.html
 +  Articles:
 +    https://philipwalton.com/articles/what-no-one-told-you-about-z-index/
 +
 +  Tips on extending:
 +  There might be a time worth using negative z-index values.
 +  Or if you are using tachyons with another project, you might need to
 +  adjust these values to suit your needs.
 +
 +*/
 +.z-0 { z-index: 0; }
 +.z-1 { z-index: 1; }
 +.z-2 { z-index: 2; }
 +.z-3 { z-index: 3; }
 +.z-4 { z-index: 4; }
 +.z-5 { z-index: 5; }
 +.z-999 { z-index: 999; }
 +.z-9999 { z-index: 9999; }
 +.z-max {
 +  z-index: 2147483647;
 +}
 +.z-inherit { z-index: inherit; }
 +.z-initial { z-index: auto; z-index: initial; }
 +.z-unset { z-index: unset; }
 +/*
 +
 +    NESTED
 +    Tachyons module for styling nested elements
 +    that are generated by a cms.
 +
 +*/
 +.nested-copy-line-height p,
 +.nested-copy-line-height ul,
 +.nested-copy-line-height ol {
 +  line-height: 1.5;
 +}
 +.nested-headline-line-height h1,
 +.nested-headline-line-height h2,
 +.nested-headline-line-height h3,
 +.nested-headline-line-height h4,
 +.nested-headline-line-height h5,
 +.nested-headline-line-height h6 {
 +  line-height: 1.25;
 +}
 +.nested-list-reset ul,
 +.nested-list-reset ol {
 +  padding-left: 0;
 +  margin-left: 0;
 +  list-style-type: none;
 +}
 +.nested-copy-indent p+p {
 +  text-indent: 1em;
 +  margin-top: 0;
 +  margin-bottom: 0;
 +}
 +.nested-copy-separator p+p {
 +  margin-top: 1.5em;
 +}
 +.nested-img img {
 +  width: 100%;
 +  max-width: 100%;
 +  display: block;
 +}
 +.nested-links a {
 +  color: #0594CB;
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +}
 +.nested-links a:hover,
 +.nested-links a:focus {
 +  color: #96ccff;
 +  -webkit-transition: color .15s ease-in;
 +  transition: color .15s ease-in;
 +}
 +/*@import 'tachyons/src/_styles';*/
 +/* Variables */
 +/* Importing here will allow you to override any variables in the modules */
 +/*
 +
 +   Tachyons
 +   COLOR VARIABLES
 +
 +   Grayscale
 +   - Solids
 +   - Transparencies
 +   Colors
 +
 +*/
 +/*
 +
 +  CUSTOM MEDIA QUERIES
 +
 +  Media query values can be changed to fit your own content.
 +  There are no magic bullets when it comes to media query width values.
 +  They should be declared in em units - and they should be set to meet
 +  the needs of your content. You can also add additional media queries,
 +  or remove some of the existing ones.
 +
 +  These media queries can be referenced like so:
 +
 +  @media (--breakpoint-not-small) {
 +    .medium-and-larger-specific-style {
 +      background-color: red;
 +    }
 +  }
 +
 +  @media (--breakpoint-medium) {
 +    .medium-screen-specific-style {
 +      background-color: red;
 +    }
 +  }
 +
 +  @media (--breakpoint-large) {
 +    .large-and-larger-screen-specific-style {
 +      background-color: red;
 +    }
 +  }
 +
 +*/
 +/* Media Queries */
 +/* Debugging */
 +/*@import 'tachyons/src/_debug-children';
 +@import 'tachyons/src/_debug-grid';*/
 +/* Uncomment out the line below to help debug layout issues */
 +/* @import 'tachyons/src/_debug'; */
 +/* purgecss start ignore */
 +.header-link:after {
 +  position: relative;
 +  left: 0.5em;
 +  opacity: 0;
 +  font-size: 0.8em;
 +  -moz-transition: opacity 0.2s ease-in-out 0.1s;
 +  -ms-transition: opacity 0.2s ease-in-out 0.1s;
 +}
 +h2:hover .header-link,
 +h3:hover .header-link,
 +h4:hover .header-link,
 +h5:hover .header-link,
 +h6:hover .header-link {
 +  opacity: 1;
 +}
 +.animated {
 +  -webkit-animation-duration: .5s;
 +          animation-duration: .5s;
 +  -webkit-animation-fill-mode: forwards;
 +          animation-fill-mode: forwards;
 +  -webkit-animation-timing-function: ease-in-out;
 +          animation-timing-function: ease-in-out;
 +}
 +@-webkit-keyframes fadeIn {
 +  from {
 +    opacity: 0;
 +  }
 +
 +  to {
 +    opacity: 1;
 +  }
 +}
 +@keyframes fadeIn {
 +  from {
 +    opacity: 0;
 +  }
 +
 +  to {
 +    opacity: 1;
 +  }
 +}
 +.fadeIn {
 +  -webkit-animation-name: fadeIn;
 +          animation-name: fadeIn;
 +}
 +.animated-delay-1 {
 +  -webkit-animation-delay: 0.5s;
 +          animation-delay: 0.5s;
 +}
 +.note,
 +.warning {
 +
 +  border-left-width: 4px;
 +  border-left-style: solid;
 +  position: relative;
 +  border-color: #0594CB;
 +
 +  display: block;
 +}
 +.note #exclamation-icon,
 +.warning #exclamation-icon {
 +
 +  fill: #0594CB;
 +  position: absolute;
 +  top: 35%;
 +  left: -12px;
 +  /*background-color: white;*/
 +}
 +.admonition-content {
 +    display: block;
 +    margin: 0px;
 +    padding: .125em 1em;
 +    /*margin-left: 1em;*/
 +    margin-top: 2em;
 +    margin-bottom: 2em;
 +    overflow-x: auto;
 +    /*font-size: .9375em;*/
 +    background-color: rgba(0, 0, 0, .05);
 +  }
 +.hide-child-menu .child-menu {
 +    display: none;
 +  }
 +.hide-child-menu:hover  .child-menu,
 +  .hide-child-menu:focus  .child-menu,
 +  .hide-child-menu:active .child-menu {
 +  display: block;
 +  }
 +/*documentation-copy headings exaggerate spacing and size to chunk content */
 +.documentation-copy h2 {
 +    margin-top: 3em
 +  }
 +.documentation-copy h2.minor {
 +  font-size: inherit;
 +  margin-top: inherit;
 +  border-bottom: none;
 +}
 +.searchbox{display:inline-block;position:relative;width:200px;height:32px!important;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;visibility:visible!important}
 +.searchbox .algolia-autocomplete{display:block;width:100%;height:100%}
 +.searchbox__wrapper{width:100%;height:100%;z-index:999;position:relative}
 +.searchbox__input{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background .4s ease,-webkit-box-shadow .4s ease;transition:background .4s ease,-webkit-box-shadow .4s ease;transition:box-shadow .4s ease,background .4s ease;transition:box-shadow .4s ease,background .4s ease,-webkit-box-shadow .4s ease;border:0;border-radius:16px;-webkit-box-shadow:inset 0 0 0 1px #ccc;box-shadow:inset 0 0 0 1px #ccc;background:#fff!important;padding:0 26px 0 32px;width:100%;height:100%;vertical-align:middle;white-space:normal;font-size:12px;-webkit-appearance:none;-moz-appearance:none;appearance:none}
 +.searchbox__input::-webkit-search-cancel-button,.searchbox__input::-webkit-search-decoration,.searchbox__input::-webkit-search-results-button,.searchbox__input::-webkit-search-results-decoration{display:none}
 +.searchbox__input:hover{-webkit-box-shadow:inset 0 0 0 1px #b3b3b3;box-shadow:inset 0 0 0 1px #b3b3b3}
 +.searchbox__input:active,.searchbox__input:focus{outline:0;-webkit-box-shadow:inset 0 0 0 1px #aaa;box-shadow:inset 0 0 0 1px #aaa;background:#fff}
 +.searchbox__input::-webkit-input-placeholder{color:#aaa}
 +.searchbox__input:-ms-input-placeholder{color:#aaa}
 +.searchbox__input::-ms-input-placeholder{color:#aaa}
 +.searchbox__input::placeholder{color:#aaa}
 +.searchbox__submit{position:absolute;top:0;margin:0;border:0;border-radius:16px 0 0 16px;background-color:rgba(69, 142, 225, 0);padding:0;width:32px;height:100%;vertical-align:middle;text-align:center;font-size:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;right:inherit;left:0}
 +.searchbox__submit:before{display:inline-block;margin-right:-4px;height:100%;vertical-align:middle;content:""}
 +.searchbox__submit:active,.searchbox__submit:hover{cursor:pointer}
 +.searchbox__submit:focus{outline:0}
 +.searchbox__submit svg{width:14px;height:14px;vertical-align:middle;fill:#6d7e96}
 +.searchbox__reset{display:block;position:absolute;top:8px;right:8px;margin:0;border:0;background:none;cursor:pointer;padding:0;font-size:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:rgba(0, 0, 0, .5)}
 +.searchbox__reset.hide{display:none}
 +.searchbox__reset:focus{outline:0}
 +.searchbox__reset svg{display:block;margin:4px;width:8px;height:8px}
 +.searchbox__input:valid~.searchbox__reset{display:block;-webkit-animation-name:sbx-reset-in;animation-name:sbx-reset-in;-webkit-animation-duration:.15s;animation-duration:.15s}
 +@-webkit-keyframes sbx-reset-in{0%{-webkit-transform:translate3d(-20%,0,0);transform:translate3d(-20%,0,0);opacity:0}to{-webkit-transform:none;transform:none;opacity:1}}
 +@keyframes sbx-reset-in{0%{-webkit-transform:translate3d(-20%,0,0);transform:translate3d(-20%,0,0);opacity:0}to{-webkit-transform:none;transform:none;opacity:1}}
 +.algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu{right:0!important;left:inherit!important}
 +.algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu:before{right:48px}
 +.algolia-autocomplete.algolia-autocomplete-left .ds-dropdown-menu{left:0!important;right:inherit!important}
 +.algolia-autocomplete.algolia-autocomplete-left .ds-dropdown-menu:before{left:48px}
 +.algolia-autocomplete .ds-dropdown-menu{top:-6px;border-radius:4px;margin:6px 0 0;padding:0;text-align:left;height:auto;position:relative;background:transparent;border:none;z-index:999;max-width:600px;min-width:500px;-webkit-box-shadow:0 1px 0 0 rgba(0, 0, 0, .2),0 2px 3px 0 rgba(0, 0, 0, .1);box-shadow:0 1px 0 0 rgba(0, 0, 0, .2),0 2px 3px 0 rgba(0, 0, 0, .1)}
 +.algolia-autocomplete .ds-dropdown-menu:before{display:block;position:absolute;content:"";width:14px;height:14px;background:#fff;z-index:1000;top:-7px;border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border-radius:2px}
 +.algolia-autocomplete .ds-dropdown-menu .ds-suggestions{position:relative;z-index:1000;margin-top:8px}
 +.algolia-autocomplete .ds-dropdown-menu .ds-suggestions a:hover{text-decoration:none}
 +.algolia-autocomplete .ds-dropdown-menu .ds-suggestion{cursor:pointer}
 +.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion.suggestion-layout-simple,.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content{background-color:rgba(69, 142, 225, .05)}
 +.algolia-autocomplete .ds-dropdown-menu [class^=ds-dataset-]{position:relative;border:1px solid #d9d9d9;background:#fff;border-radius:4px;overflow:auto;padding:0 8px 8px}
 +.algolia-autocomplete .ds-dropdown-menu *{-webkit-box-sizing:border-box;box-sizing:border-box}
 +.algolia-autocomplete .algolia-docsearch-suggestion{display:block;position:relative;padding:0 8px;background:#fff;color:#02060c;overflow:hidden}
 +.algolia-autocomplete .algolia-docsearch-suggestion--highlight{color:#174d8c;background:rgba(143, 187, 237, .1);padding:.1em .05em}
 +.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl0 .algolia-docsearch-suggestion--highlight,.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl1 .algolia-docsearch-suggestion--highlight,.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight{padding:0 0 1px;background:inherit;-webkit-box-shadow:inset 0 -2px 0 0 rgba(69, 142, 225, .8);box-shadow:inset 0 -2px 0 0 rgba(69, 142, 225, .8);color:inherit}
 +.algolia-autocomplete .algolia-docsearch-suggestion--content{display:block;float:right;width:70%;position:relative;padding:5.33333px 0 5.33333px 10.66667px;cursor:pointer}
 +.algolia-autocomplete .algolia-docsearch-suggestion--content:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;left:-1px}
 +.algolia-autocomplete .algolia-docsearch-suggestion--category-header{position:relative;border-bottom:1px solid #ddd;display:none;margin-top:8px;padding:4px 0;font-size:1em;color:#33363d}
 +.algolia-autocomplete .algolia-docsearch-suggestion--wrapper{width:100%;float:left;padding:8px 0 0}
 +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column{float:left;width:30%;text-align:right;position:relative;padding:5.33333px 10.66667px;color:#a4a7ae;font-size:.9em;word-wrap:break-word}
 +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;right:0}
 +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-inline{display:none}
 +.algolia-autocomplete .algolia-docsearch-suggestion--title{margin-bottom:4px;color:#02060c;font-size:.9em;font-weight:700}
 +.algolia-autocomplete .algolia-docsearch-suggestion--text{display:block;line-height:1.2em;font-size:.85em;color:#63676d}
 +.algolia-autocomplete .algolia-docsearch-suggestion--no-results{width:100%;padding:8px 0;text-align:center;font-size:1.2em}
 +.algolia-autocomplete .algolia-docsearch-suggestion--no-results:before{display:none}
 +.algolia-autocomplete .algolia-docsearch-suggestion code{padding:1px 5px;font-size:90%;border:none;color:#222;background-color:#ebebeb;border-radius:3px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}
 +.algolia-autocomplete .algolia-docsearch-suggestion code .algolia-docsearch-suggestion--highlight{background:none}
 +.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__main .algolia-docsearch-suggestion--category-header,.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__secondary{display:block}
 +@media (min-width:768px){.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column{display:block}}
 +@media (max-width:768px){.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column{display:inline-block;width:auto;float:left;padding:0;color:#02060c;font-size:.9em;font-weight:700;text-align:left;opacity:.5}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:before{display:none}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:after{content:"|"}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content{display:inline-block;width:auto;text-align:left;float:left;padding:0}.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content:before{display:none}}
 +.algolia-autocomplete .suggestion-layout-simple.algolia-docsearch-suggestion{border-bottom:1px solid #eee;padding:8px;margin:0}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--content{width:100%;padding:0}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--content:before{display:none}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header{margin:0;padding:0;display:block;width:100%;border:none}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl0,.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl1{opacity:.6;font-size:.85em}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl1:before{background-image:url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 20 38" xmlns="http://www.w3.org/2000/svg"><path d="M1.49 4.31l14 16.126.002-2.624-14 16.074-1.314 1.51 3.017 2.626 1.313-1.508 14-16.075 1.142-1.313-1.14-1.313-14-16.125L3.2.18.18 2.8l1.31 1.51z" fill-rule="evenodd" fill="%231D3657" /></svg>');content:"";width:10px;height:10px;display:inline-block}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--wrapper{width:100%;float:left;margin:0;padding:0}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--duplicate-content,.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--subcategory-inline{display:none!important}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--title{margin:0;color:#458ee1;font-size:.9em;font-weight:400}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--title:before{content:"#";font-weight:700;color:#458ee1;display:inline-block}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--text{margin:4px 0 0;display:block;line-height:1.4em;padding:5.33333px 8px;background:#f8f8f8;font-size:.85em;opacity:.8}
 +.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight{color:#3f4145;font-weight:700;-webkit-box-shadow:none;box-shadow:none}
 +.algolia-autocomplete .algolia-docsearch-footer{width:134px;height:20px;z-index:2000;margin-top:10.66667px;float:right;font-size:0;line-height:0}
 +.algolia-autocomplete .algolia-docsearch-footer--logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='168' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M78.988.938h16.594a2.968 2.968 0 0 1 2.966 2.966V20.5a2.967 2.967 0 0 1-2.966 2.964H78.988a2.967 2.967 0 0 1-2.966-2.964V3.897A2.961 2.961 0 0 1 78.988.938zm41.937 17.866c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 0 0-1.574-.199 5.7 5.7 0 0 0-.897.069 2.699 2.699 0 0 0-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874a32.5 32.5 0 0 1-1.868.314c-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 0 1-1.471-.636 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525a3.24 3.24 0 0 1 1.047-1.106c.445-.287.95-.492 1.532-.615a8.8 8.8 0 0 1 1.82-.185 8.404 8.404 0 0 1 1.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 0 0-.384-.73 1.784 1.784 0 0 0-.724-.493 3.164 3.164 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 0 0-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 0 1 2.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 0 0-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 0 0-.814.24 1.46 1.46 0 0 0-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483a6.8 6.8 0 0 1 .233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 0 1-1.471-.635 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 0 1 2.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 0 0-.109-.875 1.873 1.873 0 0 0-.384-.731 1.784 1.784 0 0 0-.724-.492 3.165 3.165 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.75 7.75 0 0 0-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 0 1 2.073-.177zm-8.034-1.271a1.626 1.626 0 0 1-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 0 1-1.128 1.906 4.986 4.986 0 0 1-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 0 1-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 0 1-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 0 1 1.15-1.892 5.133 5.133 0 0 1 1.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423a4.88 4.88 0 0 1 1.753 1.216 5.644 5.644 0 0 1 1.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 0 0-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 0 1-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 0 1-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 0 1 2.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17z' fill='%235468FF'/%3E%3Cpath d='M6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.24 0 0 0-.502 1.03c0 .425.164.765.494 1.02.33.256.835.532 1.516.83.447.192.795.356 1.045.495.25.138.537.332.862.582.324.25.563.548.718.894.154.345.23.741.23 1.188 0 .947-.334 1.691-1.004 2.234-.67.542-1.537.814-2.601.814-1.18 0-2.16-.229-2.936-.686v-1.708c.84.628 1.814.942 2.92.942.585 0 1.048-.136 1.388-.407.34-.271.51-.646.51-1.125 0-.287-.1-.55-.302-.79-.203-.24-.42-.42-.655-.542-.234-.123-.585-.29-1.053-.503a61.27 61.27 0 0 1-.582-.271 13.67 13.67 0 0 1-.55-.287 4.275 4.275 0 0 1-.567-.351 6.92 6.92 0 0 1-.455-.4c-.18-.17-.31-.34-.39-.51-.08-.17-.155-.37-.224-.598a2.553 2.553 0 0 1-.104-.742c0-.915.333-1.638.998-2.17.664-.532 1.523-.798 2.576-.798.968 0 1.793.17 2.473.51zm7.468 5.696v-.287c-.022-.607-.187-1.088-.495-1.444-.309-.357-.75-.535-1.324-.535-.532 0-.99.194-1.373.583-.382.388-.622.949-.717 1.683h3.909zm1.005 2.792v1.404c-.596.34-1.383.51-2.362.51-1.255 0-2.255-.377-3-1.132-.744-.755-1.116-1.744-1.116-2.968 0-1.297.34-2.316 1.021-3.055.68-.74 1.548-1.11 2.6-1.11 1.033 0 1.852.323 2.458.966.606.644.91 1.572.91 2.784 0 .33-.033.676-.096 1.038h-5.314c.107.702.405 1.239.894 1.611.49.372 1.106.558 1.85.558.862 0 1.58-.202 2.155-.606zm6.605-1.77h-1.212c-.596 0-1.045.116-1.349.35-.303.234-.454.532-.454.894 0 .372.117.664.35.877.235.213.575.32 1.022.32.51 0 .912-.142 1.204-.424.293-.281.44-.651.44-1.108v-.91zm-4.068-2.554V9.325c.627-.361 1.457-.542 2.489-.542 2.116 0 3.175 1.026 3.175 3.08V17h-1.548v-.957c-.415.68-1.143 1.02-2.186 1.02-.766 0-1.38-.22-1.843-.661-.462-.442-.694-1.003-.694-1.684 0-.776.293-1.38.878-1.81.585-.431 1.404-.647 2.457-.647h1.34V11.8c0-.554-.133-.971-.399-1.253-.266-.282-.707-.423-1.324-.423a4.07 4.07 0 0 0-2.345.718zm9.333-1.93v1.42c.394-1 1.101-1.5 2.123-1.5.148 0 .313.016.494.048v1.531a1.885 1.885 0 0 0-.75-.143c-.542 0-.989.24-1.34.718-.351.479-.527 1.048-.527 1.707V17h-1.563V8.91h1.563zm5.01 4.084c.022.82.272 1.492.75 2.019.479.526 1.15.79 2.01.79.639 0 1.235-.176 1.788-.527v1.404c-.521.319-1.186.479-1.995.479-1.265 0-2.276-.4-3.031-1.197-.755-.798-1.133-1.792-1.133-2.984 0-1.16.38-2.151 1.14-2.975.761-.825 1.79-1.237 3.088-1.237.702 0 1.346.149 1.93.447v1.436a3.242 3.242 0 0 0-1.77-.495c-.84 0-1.513.266-2.019.798-.505.532-.758 1.213-.758 2.042zM40.24 5.72v4.579c.458-1 1.293-1.5 2.505-1.5.787 0 1.42.245 1.899.734.479.49.718 1.17.718 2.042V17h-1.564v-5.106c0-.553-.14-.98-.422-1.284-.282-.303-.652-.455-1.11-.455-.531 0-1.002.202-1.411.606-.41.405-.615 1.022-.615 1.851V17h-1.563V5.72h1.563zm14.966 10.02c.596 0 1.096-.253 1.5-.758.404-.506.606-1.157.606-1.955 0-.915-.202-1.62-.606-2.114-.404-.495-.92-.742-1.548-.742-.553 0-1.05.224-1.491.67-.442.447-.662 1.133-.662 2.058 0 .958.212 1.67.638 2.138.425.469.946.703 1.563.703zM53.004 5.72v4.42c.574-.894 1.388-1.341 2.44-1.341 1.022 0 1.857.383 2.506 1.149.649.766.973 1.781.973 3.047 0 1.138-.309 2.109-.925 2.912-.617.803-1.463 1.205-2.537 1.205-1.075 0-1.894-.447-2.457-1.34V17h-1.58V5.72h1.58zm9.908 11.104l-3.223-7.913h1.739l1.005 2.632 1.26 3.415c.096-.32.48-1.458 1.15-3.415l.909-2.632h1.66l-2.92 7.866c-.777 2.074-1.963 3.11-3.559 3.11a2.92 2.92 0 0 1-.734-.079v-1.34c.17.042.351.064.543.064 1.032 0 1.755-.57 2.17-1.708z' fill='%235D6494'/%3E%3Cpath d='M89.632 5.967v-.772a.978.978 0 0 0-.978-.977h-2.28a.978.978 0 0 0-.978.977v.793c0 .088.082.15.171.13a7.127 7.127 0 0 1 1.984-.28c.65 0 1.295.088 1.917.259.082.02.164-.04.164-.13m-6.248 1.01l-.39-.389a.977.977 0 0 0-1.382 0l-.465.465a.973.973 0 0 0 0 1.38l.383.383c.062.061.15.047.205-.014.226-.307.472-.601.746-.874.281-.28.568-.526.883-.751.068-.042.075-.137.02-.2m4.16 2.453v3.341c0 .096.104.165.192.117l2.97-1.537c.068-.034.089-.117.055-.184a3.695 3.695 0 0 0-3.08-1.866c-.068 0-.136.054-.136.13m0 8.048a4.489 4.489 0 0 1-4.49-4.482 4.488 4.488 0 0 1 4.49-4.482 4.488 4.488 0 0 1 4.489 4.482 4.484 4.484 0 0 1-4.49 4.482m0-10.85a6.363 6.363 0 1 0 0 12.729 6.37 6.37 0 0 0 6.372-6.368 6.358 6.358 0 0 0-6.371-6.36' fill='%23FFF'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:50%;background-size:100%;overflow:hidden;text-indent:-9000px;padding:0!important;width:100%;height:100%;display:block}
 +/* These styles enhance the home page carousel, located here: themes/gohugoioTheme/layouts/partials/home-page-sections/showcase.html */
 +.overflow-x-scroll{
 +  -webkit-overflow-scrolling: touch;
 +}
 +.row {
 +  -webkit-transition: 450ms -webkit-transform;
 +  transition: 450ms -webkit-transform;
 +  transition: 450ms transform;
 +  transition: 450ms transform, 450ms -webkit-transform;
 +  font-size: 0;
 +}
 +.tile {
 +  -webkit-transition: 450ms all;
 +  transition: 450ms all;
 +}
 +.details {
 +  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, .9)), to(rgba(0, 0, 0, 0)));
 +  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 100%);
 +  -webkit-transition: 450ms opacity;
 +  transition: 450ms opacity;
 +}
 +.tile:hover .details {
 +  opacity: 1;
 +}
 +.row:hover .tile {
 +  opacity: 0.3;
 +}
 +.row:hover .tile:hover {
 +  opacity: 1;
 +}
 +.chroma .lntable pre {
 +  padding: 0;
 +  margin: 0;
 +  border: 0;
 +}
 +.chroma .lntable pre code  {
 +  padding: 0;
 +  margin: 0;
 +}
- pre  code {
 +code {
 +    padding: 0.2em;
 +    margin: 0;
 +    font-size: 85%;
 +    background-color: rgba(27, 31, 35, .05);
 +    border-radius: 3px;
 +}
- /* From http://cssfontstack.com */
++pre code {
 +  display: block;
 +  padding: 1.5em 1.5em;
 +  font-size: .875rem;
 +  line-height: 2;
 +  overflow-x: auto;
 +}
 +pre {
 +  background-color: #fff;
 +  color: #333;
 +  white-space: pre;
 +  -webkit-hyphens: none;
 +      -ms-hyphens: none;
 +          hyphens: none;
 +  position: relative;
 +  border-width: 1px;
 +  border-color: #ccc;
 +  border-style: solid;
 +}
 +/* The Pygments highlighter comes with its own styles. */
 +.highlight pre {
 +  background-color: inherit;
 +  color: inherit;
 +  padding: 0.5em;
 +  font-size: .875rem;
 +}
 +/*We are adding the copy button content here so we can change it with javascript. See the "Clipboard scripts"*/
 +.copy:after {
 +  content: "Copy"
 +}
 +.copied:after {
 +  content: "Copied"
 +}
 +@media screen and (min-width: 60em) {
 +  .full-width, pre.expand:hover
 +  {
 +  /*width: 100vw;
 +  position: relative;
 +  left: 50%;
 +  right: 50%;
 +  margin-left: -50vw;
 +  margin-right: -50vw;*/
 +  /*width: 60vw;*/
 +  /*position: relative;
 +  left: 50%;
 +  right: 50%;*/
 +  /*margin-left: -30vw;*/
 +  margin-right: -30vw;
 +  max-width: 100vw;
 +  }
 +}
 +.code-block .line-numbers-rows {
 +    background: #2f3a46;
 +    border: none;
 +    bottom: -50px;
 +    color: #98a4b3;
 +    left: -178px;
 +    padding: 50px 0;
 +    top: -50px;
 +    width: 138px
 +}
 +.code-block .line-numbers-rows>span:before {
 +    color: inherit;
 +    padding-right: 30px
 +}
 +.tab-button{
 +      margin-bottom:1px;
 +      position: relative;
 +      z-index: 1;
 +      color:#333;
 +      border-color:#ccc;
 +      outline: none;
 +      background-color:white;
 +}
 +.tab-pane code{
 +      background:#f1f2f2;
 +      border-radius:0;
 +}
 +.tab-pane .chroma{
 +      background:none;
 +      padding:0;
 +}
 +.tab-button.active{
 +      border-bottom-color:#f1f2f2;
 +      background-color: #f1f2f2;
 +}
 +.tab-content .tab-pane{
 +      display: none;
 +}
 +.tab-content .tab-pane.active{
 +      display: block;
 +}
 +/* Treatment of copy buttons inside a tab module */
 +.tab-content .copy, .tab-content .copied{
 +      display: none;
 +}
 +.tab-content .tab-pane.active + .copy, .tab-content .tab-pane.active + .copied{
 +      display: block;
 +}
 +.primary-color                      {color: #0594CB}
 +.bg-primary-color                   {background-color: #0594CB}
 +.hover-bg-primary-color:hover       {background-color: #0594CB}
 +.primary-color-dark                  {color: #0A1922}
 +.bg-primary-color-dark               {background-color: #0A1922}
 +.hover-bg-primary-color-dark:hover   {background-color: #0A1922}
 +.primary-color-light                  {color: #f9f9f9}
 +.bg-primary-color-light               {background-color: #f9f9f9}
 +.hover-bg-primary-color-light:hover   {background-color: #f9f9f9}
 +.accent-color                         {color: #EBB951}
 +.bg-accent-color                      {background-color: #EBB951}
 +.hover-bg-accent-color:hover          {background-color: #EBB951}
 +.accent-color-light                   {color: #FF4088}
 +.hover-accent-color-light:hover                   {color: #FF4088}
 +.bg-accent-color-light                {background-color: #FF4088}
 +.hover-bg-accent-color-light:hover    {background-color: #FF4088}
 +.accent-color-dark                    {color: #33ba91}
 +.bg-accent-color-dark                 {background-color: #33ba91}
 +.hover-bg-accent-color-dark:hover     {background-color: #33ba91}
 +.text-color-primary    {color: #373737}
 +.text-on-primary-color {color: #fff}
 +.text-color-secondary  {color: #ccc}
 +.text-color-disabled   {color: #F7f7f7}
 +.divider-color         {color: #f6f6f6}
 +.warn-color            {color: red}
 +.nested-links a {
 +  color: #0594CB;
 +  text-decoration: none;
 +
 +}
 +.column-count-2 {-webkit-column-count: 1;column-count: 1}
 +.column-gap-1 {-webkit-column-gap: 0;column-gap: 0}
 +.break-inside-avoid {-webkit-column-break-inside: auto;break-inside: auto}
 +@media screen and (min-width: 60em) {
 +  .column-count-3-l {-webkit-column-count: 3;column-count: 3}
 +  .column-count-2-l {-webkit-column-count: 2;column-count: 2}
 +  .column-gap-1-l {-webkit-column-gap: 1;column-gap: 1}
 +  .break-inside-avoid-l {-webkit-column-break-inside: avoid;break-inside: avoid}
 +}
 +.prose ul, .prose ol {
 +  margin-bottom: 2em;
 +}
 +.prose ul li, .prose  ol li {
 +  margin-bottom: .5em;
 +}
 +.prose li:hover {
 +  background-color: #eee
 +}
 +.prose ::selection {
 +  background: #0594CB; /* WebKit/Blink Browsers */
 +  color: white;
 +}
 +body {
 +
 +line-height: 1.45;
 +
 +}
 +p {margin-bottom: 1.3em;}
 +h1, h2, h3, h4 {
 +margin: 1.414em 0 0.5em;
 +
 +line-height: 1.2;
 +}
 +h1 {
 +margin-top: 0;
 +font-size: 2.441em;
 +}
 +h2 {font-size: 1.953em;}
 +h3 {font-size: 1.563em;}
 +h4 {font-size: 1.25em;}
 +small, .font_small {font-size: 0.8em;}
 +.prose table {
 +    width: 100%;
 +    margin-bottom: 3em;
 +    border-collapse: collapse;
 +    border-spacing: 0;
 +    font-size: 1em;
 +    border: 1px solid #eee
 +
 +}
 +.prose table th {
 +  background-color: #0594CB;
 +  border-bottom: 1px solid #0594CB;
 +  color: white;
 +  font-weight: 400;
 +  text-align: left;
 +  padding: .375em .5em;
 +}
 +.prose table td, .prose table tc {
 +  padding: .75em .5em;
 +  text-align: left;
 +  border-right: 1px solid #eee;
 +}
 +.prose table tr:nth-child(even) {
 +  background-color: #eee;
 +}
 +dl dt {
 +  font-weight: bold;
 +  font-size: 1.125rem;
 +}
 +dd {
 +  margin: .5em 0 2em 0;
 +  padding: 0;
 +}
 +.f2-fluid {
 +  font-size: 2.25rem;
 +}
 +@media screen and (min-width: 60em) {
 +  .f2-fluid {
 +    font-size: 1.25rem;
 +    font-size: calc(0.70833rem + 0.83333vw);
 +  }
 +}
++/* From https://www.cssfontstack.com */
 +code, .code, pre code, .highlight pre  {
 +  font-family: 'inconsolata',Menlo,Monaco,'Courier New',monospace;
 +}
 +.sans-serif {
 +  font-family: 'Muli',
 +              avenir,
 +               'helvetica neue', helvetica,
 +               ubuntu,
 +               roboto, noto,
 +               'segoe ui', arial,
 +               sans-serif;
 +}
 +.serif {
 +  font-family: Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Georgia,serif;
 +}
 +/* Monospaced Typefaces (for code) */
 +.courier {
 +  font-family: 'Courier Next',
 +               courier,
 +               monospace;
 +}
 +/* Sans-Serif Typefaces */
 +.helvetica {
 +  font-family: 'helvetica neue', helvetica,
 +               sans-serif;
 +}
 +.avenir {
 +  font-family: 'avenir next', avenir,
 +               sans-serif;
 +}
 +/* Serif Typefaces */
 +.athelas {
 +  font-family: athelas,
 +               georgia,
 +               serif;
 +}
 +.georgia {
 +  font-family: georgia,
 +               serif;
 +}
 +.times {
 +  font-family: times,
 +               serif;
 +}
 +.bodoni {
 +  font-family: "Bodoni MT",
 +                serif;
 +}
 +.calisto {
 +  font-family: "Calisto MT",
 +                serif;
 +}
 +.garamond {
 +  font-family: garamond,
 +               serif;
 +}
 +.baskerville {
 +  font-family: baskerville,
 +               serif;
 +}
 +/* pagination.html: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/template_embedded.go#L117 */
 +.pagination {
 +  margin: 3rem 0;
 +}
 +.pagination li {
 +  display: inline-block;
 +  margin-right: .375rem;
 +  font-size: .875rem;
 +  margin-bottom: 2.5em;
 +}
 +.pagination li a {
 +  padding: .5rem .625rem;
 +  background-color: white;
 +  color: #333;
 +  border: 1px solid #ddd;
 +  border-radius: 3px;
 +  text-decoration: none;
 +}
 +.pagination li.disabled {
 +  display: none;
 +}
 +.pagination li.active a:link,
 +.pagination li.active a:active,
 +.pagination li.active a:visited {
 +  background-color: #ddd;
 +}
 +/* Hides non-meaningful TOC items*/
 +#TableOfContents ul li ul li ul li{
 +    display: none;
 +  }
 +#TableOfContents ul li {
 +  color: black;
 +  display: block;
 +  margin-bottom: .375em;
 +  line-height: 1.375;
 +}
 +#TableOfContents ul li a{
 +  width: 100%;
 +  padding: .25em .375em;
 +  margin-left: -.375em;
 +
 +}
 +#TableOfContents ul li a:hover {
 +  background-color: #999;
 +  color: white;
 +
 +}
 +.no-js .needs-js {
 +  opacity: 0
 +}
 +.js .needs-js {
 +  opacity: 1;
 +  -webkit-transition: opacity .15s ease-in;
 +  transition: opacity .15s ease-in;
 +}
 +.facebook, .twitter, .instagram, .youtube {
 +  fill: #BABABA;
 +}
 +.facebook:hover {
 +  fill: #3b5998;
 +}
 +.twitter {
 +  fill: #55acee;
 +}
 +.twitter:hover {
 +  fill: #BABABA;
 +}
 +.instagram:hover {
 +  fill: #e95950;
 +}
 +.youtube:hover {
 +  fill: #bb0000;
 +}
 +@media (min-width: 75em) {
 +  
 +  [data-scrolldir="down"] .sticky {
 +    position: fixed;
 +    top:100px;
 +    right:0;
 +  }
 +
 +  [data-scrolldir="up"] .sticky {
 +    position: fixed;
 +    top:100px;
 +    right:0;
 +  }
 +}
 +.fill-current { fill: currentColor; }
 +/* Background */
 +.chroma { background-color: #ffffff }
 +/* Error */
 +.chroma .err { color: #a61717; background-color: #e3d2d2 }
 +/* LineTableTD */
 +.chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
 +/* LineTable */
 +.chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
 +/* LineHighlight */
 +.chroma .hl { display: block; width: 100%;background-color: #ffffcc }
 +/* LineNumbersTable */
 +.chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
 +/* LineNumbers */
 +.chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
 +/* Keyword */
 +.chroma .k { font-weight: bold }
 +/* KeywordConstant */
 +.chroma .kc { font-weight: bold }
 +/* KeywordDeclaration */
 +.chroma .kd { font-weight: bold }
 +/* KeywordNamespace */
 +.chroma .kn { font-weight: bold }
 +/* KeywordPseudo */
 +.chroma .kp { font-weight: bold }
 +/* KeywordReserved */
 +.chroma .kr { font-weight: bold }
 +/* KeywordType */
 +.chroma .kt { color: #445588; font-weight: bold }
 +/* NameAttribute */
 +.chroma .na { color: #008080 }
 +/* NameBuiltin */
 +.chroma .nb { color: #999999 }
 +/* NameClass */
 +.chroma .nc { color: #445588; font-weight: bold }
 +/* NameConstant */
 +.chroma .no { color: #008080 }
 +/* NameEntity */
 +.chroma .ni { color: #800080 }
 +/* NameException */
 +.chroma .ne { color: #990000; font-weight: bold }
 +/* NameFunction */
 +.chroma .nf { color: #990000; font-weight: bold }
 +/* NameNamespace */
 +.chroma .nn { color: #555555 }
 +/* NameTag */
 +.chroma .nt { color: #000080 }
 +/* NameVariable */
 +.chroma .nv { color: #008080 }
 +/* LiteralString */
 +.chroma .s { color: #bb8844 }
 +/* LiteralStringAffix */
 +.chroma .sa { color: #bb8844 }
 +/* LiteralStringBacktick */
 +.chroma .sb { color: #bb8844 }
 +/* LiteralStringChar */
 +.chroma .sc { color: #bb8844 }
 +/* LiteralStringDelimiter */
 +.chroma .dl { color: #bb8844 }
 +/* LiteralStringDoc */
 +.chroma .sd { color: #bb8844 }
 +/* LiteralStringDouble */
 +.chroma .s2 { color: #bb8844 }
 +/* LiteralStringEscape */
 +.chroma .se { color: #bb8844 }
 +/* LiteralStringHeredoc */
 +.chroma .sh { color: #bb8844 }
 +/* LiteralStringInterpol */
 +.chroma .si { color: #bb8844 }
 +/* LiteralStringOther */
 +.chroma .sx { color: #bb8844 }
 +/* LiteralStringRegex */
 +.chroma .sr { color: #808000 }
 +/* LiteralStringSingle */
 +.chroma .s1 { color: #bb8844 }
 +/* LiteralStringSymbol */
 +.chroma .ss { color: #bb8844 }
 +/* LiteralNumber */
 +.chroma .m { color: #009999 }
 +/* LiteralNumberBin */
 +.chroma .mb { color: #009999 }
 +/* LiteralNumberFloat */
 +.chroma .mf { color: #009999 }
 +/* LiteralNumberHex */
 +.chroma .mh { color: #009999 }
 +/* LiteralNumberInteger */
 +.chroma .mi { color: #009999 }
 +/* LiteralNumberIntegerLong */
 +.chroma .il { color: #009999 }
 +/* LiteralNumberOct */
 +.chroma .mo { color: #009999 }
 +/* Operator */
 +.chroma .o { font-weight: bold }
 +/* OperatorWord */
 +.chroma .ow { font-weight: bold }
 +/* Comment */
 +.chroma .c { color: #999988; font-style: italic }
 +/* CommentHashbang */
 +.chroma .ch { color: #999988; font-style: italic }
 +/* CommentMultiline */
 +.chroma .cm { color: #999988; font-style: italic }
 +/* CommentSingle */
 +.chroma .c1 { color: #999988; font-style: italic }
 +/* CommentSpecial */
 +.chroma .cs { color: #999999; font-weight: bold; font-style: italic }
 +/* CommentPreproc */
 +.chroma .cp { color: #999999; font-weight: bold }
 +/* CommentPreprocFile */
 +.chroma .cpf { color: #999999; font-weight: bold }
 +/* GenericDeleted */
 +.chroma .gd { color: #000000; background-color: #ffdddd }
 +/* GenericEmph */
 +.chroma .ge { font-style: italic }
 +/* GenericError */
 +.chroma .gr { color: #aa0000 }
 +/* GenericHeading */
 +.chroma .gh { color: #999999 }
 +/* GenericInserted */
 +.chroma .gi { color: #000000; background-color: #ddffdd }
 +/* GenericOutput */
 +.chroma .go { color: #888888 }
 +/* GenericPrompt */
 +.chroma .gp { color: #555555 }
 +/* GenericStrong */
 +.chroma .gs { font-weight: bold }
 +/* GenericSubheading */
 +.chroma .gu { color: #aaaaaa }
 +/* GenericTraceback */
 +.chroma .gt { color: #aa0000 }
 +/* TextWhitespace */
 +.chroma .w { color: #bbbbbb }
 +.nested-blockquote blockquote {
 +  border-left: 4px solid #0594CB;
 +  padding-left: 1em;
 +  /*margin: 0;*/
 +}
 +.mw-90 {
 +  max-width:90%;
 +}
 +/* purgecss end ignore */
 +
index 8d871af7bf11cae8223f30795e66967bb3b46b94,0000000000000000000000000000000000000000..6ddef7b0f2b67e57131f6e8388049df9b5238c53
mode 100644,000000..100644
--- /dev/null
@@@ -1,17 -1,0 +1,17 @@@
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){!function(t,n){var r=function(e,t){"use strict";if(!t.getElementsByClassName)return;var n,r,i=t.documentElement,s=e.Date,o=e.HTMLPictureElement,a=e.addEventListener,c=e.setTimeout,u=e.requestAnimationFrame||c,l=e.requestIdleCallback,h=/^picture$/i,d=["load","error","lazyincluded","_lazyloaded"],f={},p=Array.prototype.forEach,g=function(e,t){return f[t]||(f[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),f[t].test(e.getAttribute("class")||"")&&f[t]},m=function(e,t){g(e,t)||e.setAttribute("class",(e.getAttribute("class")||"").trim()+" "+t)},v=function(e,t){var n;(n=g(e,t))&&e.setAttribute("class",(e.getAttribute("class")||"").replace(n," "))},y=function(e,t,n){var r=n?"addEventListener":"removeEventListener";n&&y(e,t),d.forEach((function(n){e[r](n,t)}))},b=function(e,r,i,s,o){var a=t.createEvent("Event");return i||(i={}),i.instance=n,a.initEvent(r,!s,!o),a.detail=i,e.dispatchEvent(a),a},w=function(t,n){var i;!o&&(i=e.picturefill||r.pf)?(n&&n.src&&!t.getAttribute("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},_=function(e,t){return(getComputedStyle(e,null)||{})[t]},E=function(e,t,n){for(n=n||e.offsetWidth;n<r.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},x=(O=[],T=[],k=O,R=function(){var e=k;for(k=O.length?T:O,A=!0,N=!1;e.length;)e.shift()();A=!1},M=function(e,n){A&&!n?e.apply(this,arguments):(k.push(e),N||(N=!0,(t.hidden?c:u)(R)))},M._lsFlush=R,M),S=function(e,t){return t?function(){x(e)}:function(){var t=this,n=arguments;x((function(){e.apply(t,n)}))}},C=function(e){var t,n,r=function(){t=null,e()},i=function(){var e=s.now()-n;e<99?c(i,99-e):(l||r)(r)};return function(){n=s.now(),t||(t=c(i,99))}};var A,N,O,T,k,R,M;!function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in r=e.lazySizesConfig||e.lazysizesConfig||{},n)t in r||(r[t]=n[t]);e.lazySizesConfig=r,c((function(){r.init&&D()}))}();var L=(ee=/^img$/i,te=/^iframe$/i,ne="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),re=0,ie=0,se=-1,oe=function(e){ie--,e&&e.target&&y(e.target,oe),(!e||ie<0||!e.target)&&(ie=0)},ae=function(e,n){var r,s=e,o="hidden"==_(t.body,"visibility")||"hidden"!=_(e.parentNode,"visibility")&&"hidden"!=_(e,"visibility");for(J-=n,Q+=n,W-=n,G+=n;o&&(s=s.offsetParent)&&s!=t.body&&s!=i;)(o=(_(s,"opacity")||1)>0)&&"visible"!=_(s,"overflow")&&(r=s.getBoundingClientRect(),o=G>r.left&&W<r.right&&Q>r.top-1&&J<r.bottom+1);return o},ce=function(){var e,s,o,a,c,u,l,h,d,f=n.elements;if((z=r.loadMode)&&ie<8&&(e=f.length)){s=0,se++,null==Z&&("expand"in r||(r.expand=i.clientHeight>500&&i.clientWidth>500?500:370),X=r.expand,Z=X*r.expFactor),re<Z&&ie<1&&se>2&&z>2&&!t.hidden?(re=Z,se=0):re=z>1&&se>1&&ie<6?X:0;for(;s<e;s++)if(f[s]&&!f[s]._lazyRace)if(ne)if((h=f[s].getAttribute("data-expand"))&&(u=1*h)||(u=re),d!==u&&(K=innerWidth+u*Y,V=innerHeight+u,l=-1*u,d=u),o=f[s].getBoundingClientRect(),(Q=o.bottom)>=l&&(J=o.top)<=V&&(G=o.right)>=l*Y&&(W=o.left)<=K&&(Q||G||W||J)&&(r.loadHidden||"hidden"!=_(f[s],"visibility"))&&(q&&ie<3&&!h&&(z<3||se<4)||ae(f[s],u))){if(ge(f[s]),c=!0,ie>9)break}else!c&&q&&!a&&ie<4&&se<4&&z>2&&(B[0]||r.preloadAfterLoad)&&(B[0]||!h&&(Q||G||W||J||"auto"!=f[s].getAttribute(r.sizesAttr)))&&(a=B[0]||f[s]);else ge(f[s]);a&&!c&&ge(a)}},ue=function(e){var t,n=0,i=r.throttleDelay,o=r.ricTimeout,a=function(){t=!1,n=s.now(),e()},u=l&&o>49?function(){l(a,{timeout:o}),o!==r.ricTimeout&&(o=r.ricTimeout)}:S((function(){c(a)}),!0);return function(e){var r;(e=!0===e)&&(o=33),t||(t=!0,(r=i-(s.now()-n))<0&&(r=0),e||r<9?u():c(u,r))}}(ce),le=function(e){m(e.target,r.loadedClass),v(e.target,r.loadingClass),y(e.target,de),b(e.target,"lazyloaded")},he=S(le),de=function(e){he({target:e.target})},fe=function(e){var t,n=e.getAttribute(r.srcsetAttr);(t=r.customMedia[e.getAttribute("data-media")||e.getAttribute("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},pe=S((function(e,t,n,i,s){var o,a,u,l,d,f;(d=b(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?m(e,r.autosizesClass):e.setAttribute("sizes",i)),a=e.getAttribute(r.srcsetAttr),o=e.getAttribute(r.srcAttr),s&&(l=(u=e.parentNode)&&h.test(u.nodeName||"")),f=t.firesLoad||"src"in e&&(a||o||l),d={target:e},f&&(y(e,oe,!0),clearTimeout(F),F=c(oe,2500),m(e,r.loadingClass),y(e,de,!0)),l&&p.call(u.getElementsByTagName("source"),fe),a?e.setAttribute("srcset",a):o&&!l&&(te.test(e.nodeName)?function(e,t){try{e.contentWindow.location.replace(t)}catch(n){e.src=t}}(e,o):e.src=o),s&&(a||l)&&w(e,{src:o})),e._lazyRace&&delete e._lazyRace,v(e,r.lazyClass),x((function(){(!f||e.complete&&e.naturalWidth>1)&&(f?oe(d):ie--,le(d))}),!0)})),ge=function(e){var t,n=ee.test(e.nodeName),i=n&&(e.getAttribute(r.sizesAttr)||e.getAttribute("sizes")),s="auto"==i;(!s&&q||!n||!e.getAttribute("src")&&!e.srcset||e.complete||g(e,r.errorClass)||!g(e,r.lazyClass))&&(t=b(e,"lazyunveilread").detail,s&&I.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,ie++,pe(e,t,s,i,n))},me=function(){if(!q)if(s.now()-U<999)c(me,999);else{var e=C((function(){r.loadMode=3,ue()}));q=!0,r.loadMode=3,ue(),a("scroll",(function(){3==r.loadMode&&(r.loadMode=2),e()}),!0)}},{_:function(){U=s.now(),n.elements=t.getElementsByClassName(r.lazyClass),B=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass),Y=r.hFac,a("scroll",ue,!0),a("resize",ue,!0),e.MutationObserver?new MutationObserver(ue).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i.addEventListener("DOMNodeInserted",ue,!0),i.addEventListener("DOMAttrModified",ue,!0),setInterval(ue,999)),a("hashchange",ue,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach((function(e){t.addEventListener(e,ue,!0)})),/d$|^c/.test(t.readyState)?me():(a("load",me),t.addEventListener("DOMContentLoaded",ue),c(me,2e4)),n.elements.length?(ce(),x._lsFlush()):ue()},checkElems:ue,unveil:ge}),I=(P=S((function(e,t,n,r){var i,s,o;if(e._lazysizesWidth=r,r+="px",e.setAttribute("sizes",r),h.test(t.nodeName||""))for(s=0,o=(i=t.getElementsByTagName("source")).length;s<o;s++)i[s].setAttribute("sizes",r);n.detail.dataAttr||w(e,n.detail)})),$=function(e,t,n){var r,i=e.parentNode;i&&(n=E(e,i,n),(r=b(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=r.detail.width)&&n!==e._lazysizesWidth&&P(e,i,r,n))},H=C((function(){var e,t=j.length;if(t)for(e=0;e<t;e++)$(j[e])})),{_:function(){j=t.getElementsByClassName(r.autosizesClass),a("resize",H)},checkElems:H,updateElem:$}),D=function(){D.i||(D.i=!0,I._(),L._())};var j,P,$,H;var B,q,F,z,U,K,V,J,W,G,Q,X,Z,Y,ee,te,ne,re,ie,se,oe,ae,ce,ue,le,he,de,fe,pe,ge,me;return n={cfg:r,autoSizer:I,loader:L,init:D,uP:w,aC:m,rC:v,hC:g,fire:b,gW:E,rAF:x}}(t,t.document);t.lazySizes=r,e.exports&&(e.exports=r)}(window)},function(e,t,n){"use strict";n.r(t);n(3),n(4),n(6),n(7),n(9),n(20),n(22),n(23),n(25),n(26),n(27);n(2)},function(e,t,n){},function(e,t,n){},function(e,t,n){function r(e,t){e.setAttribute("class","copied bg-primary-color-dark f6 absolute top-0 right-0 lh-solid hover-bg-primary-color-dark bn white ph3 pv2"),e.setAttribute("aria-label",t)}new(n(5))(".copy",{target:function(e){return e.classList.contains("copy-toggle")?e.previousElementSibling:e.nextElementSibling}}).on("success",(function(e){r(e.trigger,"Copied!"),e.clearSelection()})).on("error",(function(e){r(e.trigger,function(e,t){var n="",r="cut"===t?"X":"C";n=isMac?"Press ⌘-"+r:"Press Ctrl-"+r;return n}(e.action))}))},function(e,t,n){
++!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){!function(e,n){var r=function(t,e){"use strict";if(!e.getElementsByClassName)return;var n,r,i=e.documentElement,o=t.Date,s=t.HTMLPictureElement,a=t.addEventListener,u=t.setTimeout,c=t.requestAnimationFrame||u,l=t.requestIdleCallback,h=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],d={},p=Array.prototype.forEach,g=function(t,e){return d[e]||(d[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),d[e].test(t.getAttribute("class")||"")&&d[e]},m=function(t,e){g(t,e)||t.setAttribute("class",(t.getAttribute("class")||"").trim()+" "+e)},y=function(t,e){var n;(n=g(t,e))&&t.setAttribute("class",(t.getAttribute("class")||"").replace(n," "))},v=function(t,e,n){var r=n?"addEventListener":"removeEventListener";n&&v(t,e),f.forEach((function(n){t[r](n,e)}))},b=function(t,r,i,o,s){var a=e.createEvent("Event");return i||(i={}),i.instance=n,a.initEvent(r,!o,!s),a.detail=i,t.dispatchEvent(a),a},w=function(e,n){var i;!s&&(i=t.picturefill||r.pf)?(n&&n.src&&!e.getAttribute("srcset")&&e.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[e]})):n&&n.src&&(e.src=n.src)},_=function(t,e){return(getComputedStyle(t,null)||{})[e]},x=function(t,e,n){for(n=n||t.offsetWidth;n<r.minSize&&e&&!t._lazysizesWidth;)n=e.offsetWidth,e=e.parentNode;return n},S=(k=[],O=[],N=k,j=function(){var t=N;for(N=k.length?O:k,E=!0,T=!1;t.length;)t.shift()();E=!1},I=function(t,n){E&&!n?t.apply(this,arguments):(N.push(t),T||(T=!0,(e.hidden?u:c)(j)))},I._lsFlush=j,I),C=function(t,e){return e?function(){S(t)}:function(){var e=this,n=arguments;S((function(){t.apply(e,n)}))}},A=function(t){var e,n,r=function(){e=null,t()},i=function(){var t=o.now()-n;t<99?u(i,99-t):(l||r)(r)};return function(){n=o.now(),e||(e=u(i,99))}};var E,T,k,O,N,j,I;!function(){var e,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in r=t.lazySizesConfig||t.lazysizesConfig||{},n)e in r||(r[e]=n[e]);t.lazySizesConfig=r,u((function(){r.init&&P()}))}();var R=(Z=/^img$/i,Y=/^iframe$/i,tt="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),et=0,nt=0,rt=-1,it=function(t){nt--,(!t||nt<0||!t.target)&&(nt=0)},ot=function(t){return null==G&&(G="hidden"==_(e.body,"visibility")),G||"hidden"!=_(t.parentNode,"visibility")&&"hidden"!=_(t,"visibility")},st=function(t,n){var r,o=t,s=ot(t);for(J-=n,Q+=n,W-=n,X+=n;s&&(o=o.offsetParent)&&o!=e.body&&o!=i;)(s=(_(o,"opacity")||1)>0)&&"visible"!=_(o,"overflow")&&(r=o.getBoundingClientRect(),s=X>r.left&&W<r.right&&Q>r.top-1&&J<r.bottom+1);return s},at=function(){var t,o,s,a,u,c,l,h,f,d,p,g,m=n.elements;if((B=r.loadMode)&&nt<8&&(t=m.length)){for(o=0,rt++,d=!r.expand||r.expand<1?i.clientHeight>500&&i.clientWidth>500?500:370:r.expand,n._defEx=d,p=d*r.expFactor,g=r.hFac,G=null,et<p&&nt<1&&rt>2&&B>2&&!e.hidden?(et=p,rt=0):et=B>1&&rt>1&&nt<6?d:0;o<t;o++)if(m[o]&&!m[o]._lazyRace)if(tt)if((h=m[o].getAttribute("data-expand"))&&(c=1*h)||(c=et),f!==c&&(V=innerWidth+c*g,K=innerHeight+c,l=-1*c,f=c),s=m[o].getBoundingClientRect(),(Q=s.bottom)>=l&&(J=s.top)<=K&&(X=s.right)>=l*g&&(W=s.left)<=V&&(Q||X||W||J)&&(r.loadHidden||ot(m[o]))&&(F&&nt<3&&!h&&(B<3||rt<4)||st(m[o],c))){if(pt(m[o]),u=!0,nt>9)break}else!u&&F&&!a&&nt<4&&rt<4&&B>2&&(H[0]||r.preloadAfterLoad)&&(H[0]||!h&&(Q||X||W||J||"auto"!=m[o].getAttribute(r.sizesAttr)))&&(a=H[0]||m[o]);else pt(m[o]);a&&!u&&pt(a)}},ut=function(t){var e,n=0,i=r.throttleDelay,s=r.ricTimeout,a=function(){e=!1,n=o.now(),t()},c=l&&s>49?function(){l(a,{timeout:s}),s!==r.ricTimeout&&(s=r.ricTimeout)}:C((function(){u(a)}),!0);return function(t){var r;(t=!0===t)&&(s=33),e||(e=!0,(r=i-(o.now()-n))<0&&(r=0),t||r<9?c():u(c,r))}}(at),ct=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(it(t),m(e,r.loadedClass),y(e,r.loadingClass),v(e,ht),b(e,"lazyloaded"))},lt=C(ct),ht=function(t){lt({target:t.target})},ft=function(t){var e,n=t.getAttribute(r.srcsetAttr);(e=r.customMedia[t.getAttribute("data-media")||t.getAttribute("media")])&&t.setAttribute("media",e),n&&t.setAttribute("srcset",n)},dt=C((function(t,e,n,i,o){var s,a,c,l,f,d;(f=b(t,"lazybeforeunveil",e)).defaultPrevented||(i&&(n?m(t,r.autosizesClass):t.setAttribute("sizes",i)),a=t.getAttribute(r.srcsetAttr),s=t.getAttribute(r.srcAttr),o&&(l=(c=t.parentNode)&&h.test(c.nodeName||"")),d=e.firesLoad||"src"in t&&(a||s||l),f={target:t},m(t,r.loadingClass),d&&(clearTimeout(z),z=u(it,2500),v(t,ht,!0)),l&&p.call(c.getElementsByTagName("source"),ft),a?t.setAttribute("srcset",a):s&&!l&&(Y.test(t.nodeName)?function(t,e){try{t.contentWindow.location.replace(e)}catch(n){t.src=e}}(t,s):t.src=s),o&&(a||l)&&w(t,{src:s})),t._lazyRace&&delete t._lazyRace,y(t,r.lazyClass),S((function(){var e=t.complete&&t.naturalWidth>1;d&&!e||(e&&m(t,"ls-is-cached"),ct(f),t._lazyCache=!0,u((function(){"_lazyCache"in t&&delete t._lazyCache}),9))}),!0)})),pt=function(t){var e,n=Z.test(t.nodeName),i=n&&(t.getAttribute(r.sizesAttr)||t.getAttribute("sizes")),o="auto"==i;(!o&&F||!n||!t.getAttribute("src")&&!t.srcset||t.complete||g(t,r.errorClass)||!g(t,r.lazyClass))&&(e=b(t,"lazyunveilread").detail,o&&L.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,nt++,dt(t,e,o,i,n))},gt=function(){if(!F)if(o.now()-U<999)u(gt,999);else{var t=A((function(){r.loadMode=3,ut()}));F=!0,r.loadMode=3,ut(),a("scroll",(function(){3==r.loadMode&&(r.loadMode=2),t()}),!0)}},{_:function(){U=o.now(),n.elements=e.getElementsByClassName(r.lazyClass),H=e.getElementsByClassName(r.lazyClass+" "+r.preloadClass),a("scroll",ut,!0),a("resize",ut,!0),t.MutationObserver?new MutationObserver(ut).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i.addEventListener("DOMNodeInserted",ut,!0),i.addEventListener("DOMAttrModified",ut,!0),setInterval(ut,999)),a("hashchange",ut,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach((function(t){e.addEventListener(t,ut,!0)})),/d$|^c/.test(e.readyState)?gt():(a("load",gt),e.addEventListener("DOMContentLoaded",ut),u(gt,2e4)),n.elements.length?(at(),S._lsFlush()):ut()},checkElems:ut,unveil:pt}),L=($=C((function(t,e,n,r){var i,o,s;if(t._lazysizesWidth=r,r+="px",t.setAttribute("sizes",r),h.test(e.nodeName||""))for(o=0,s=(i=e.getElementsByTagName("source")).length;o<s;o++)i[o].setAttribute("sizes",r);n.detail.dataAttr||w(t,n.detail)})),q=function(t,e,n){var r,i=t.parentNode;i&&(n=x(t,i,n),(r=b(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=r.detail.width)&&n!==t._lazysizesWidth&&$(t,i,r,n))},M=A((function(){var t,e=D.length;if(e)for(t=0;t<e;t++)q(D[t])})),{_:function(){D=e.getElementsByClassName(r.autosizesClass),a("resize",M)},checkElems:M,updateElem:q}),P=function(){P.i||(P.i=!0,L._(),R._())};var D,$,q,M;var H,F,z,B,U,V,K,J,W,X,Q,G,Z,Y,tt,et,nt,rt,it,ot,st,at,ut,ct,lt,ht,ft,dt,pt,gt;return n={cfg:r,autoSizer:L,loader:R,init:P,uP:w,aC:m,rC:y,hC:g,fire:b,gW:x,rAF:S}}(e,e.document);e.lazySizes=r,t.exports&&(t.exports=r)}(window)},function(t,e,n){"use strict";n.r(e);n(3),n(4),n(6),n(7),n(9),n(11),n(12),n(14),n(15),n(16);n(2)},function(t,e,n){},function(t,e,n){},function(t,e,n){function r(t,e){t.setAttribute("class","copied bg-primary-color-dark f6 absolute top-0 right-0 lh-solid hover-bg-primary-color-dark bn white ph3 pv2"),t.setAttribute("aria-label",e)}new(n(5))(".copy",{target:function(t){return t.classList.contains("copy-toggle")?t.previousElementSibling:t.nextElementSibling}}).on("success",(function(t){r(t.trigger,"Copied!"),t.clearSelection()})).on("error",(function(t){r(t.trigger,function(t,e){var n="",r="cut"===e?"X":"C";n=isMac?"Press ⌘-"+r:"Press Ctrl-"+r;return n}(t.action))}))},function(t,e,n){
 +/*!
 + * clipboard.js v2.0.4
 + * https://zenorocha.github.io/clipboard.js
 + * 
 + * Licensed MIT © Zeno Rocha
 + */
- var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=c(n(1)),o=c(n(3)),a=c(n(4));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===r(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return l("action",e)}},{key:"defaultTarget",value:function(e){var t=l("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return l("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(o.default);function l(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u},function(e,t,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=(r=o)&&r.__esModule?r:{default:r},c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return s(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=c},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var s=0,o=r.length;s<o;s++)r[s].fn!==t&&r[s].fn._!==t&&i.push(r[s]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var r=n(5),i=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(7);function i(e,t,n,r,i){var o=s.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function s(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,s){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,s)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=r()},function(e,t){let n=document.getElementById("prose");if(n){let e=n.getElementsByTagName("code");for(let[t,n]of Object.entries(e)){n.scrollWidth-n.clientWidth>0&&n.parentNode.classList.add("expand")}}},function(e,t,n){n(8)({apiKey:"167e7998590aebda7f9fedcf86bc4a55",indexName:"hugodocs",inputSelector:"#search-input",debug:!0})},function(e,t,n){
++var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n(1)),s=u(n(3)),a=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.resolveOptions(n),r.listenClick(t),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,a.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(s.default);function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=c},function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(2),a=(r=s)&&r.__esModule?r:{default:r},u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,s=r.length;o<s;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=n},function(t,e,n){var r=n(5),i=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))return function(t,e,n){return i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(7);function i(t,e,n,r,i){var s=o.apply(this,arguments);return t.addEventListener(n,s,i),{destroy:function(){t.removeEventListener(n,s,i)}}}function o(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])},t.exports=r()},function(t,e){let n=document.getElementById("prose");if(n){let t=n.getElementsByTagName("code");for(let[e,n]of Object.entries(t)){n.scrollWidth-n.clientWidth>0&&n.parentNode.classList.add("expand")}}},function(t,e,n){n(8)({apiKey:"167e7998590aebda7f9fedcf86bc4a55",indexName:"hugodocs",inputSelector:"#search-input",debug:!0})},function(t,e,n){
 +/*! docsearch 2.6.1 | © Algolia | github.com/algolia/docsearch */
- var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){"use strict";var r,i=n(1);function s(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}e.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(e){if(void 0===e&&(e=navigator.userAgent),/(msie|trident)/i.test(e)){var t=e.match(/(msie |rv:)(\d+(.\d+)?)/i);if(t)return t[2]}return!1},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(e){return"number"==typeof e},toStr:function(e){return null==e?"":e+""},cloneDeep:function(e){var t=this.mixin({},e),n=this;return this.each(t,(function(e,r){e&&(n.isArray(e)?t[r]=[].concat(e):n.isObject(e)&&(t[r]=n.cloneDeep(e)))})),t},error:function(e){throw new Error(e)},every:function(e,t){var n=!0;return e?(this.each(e,(function(r,i){if(!(n=t.call(null,r,i,e)))return!1})),!!n):n},any:function(e,t){var n=!1;return e?(this.each(e,(function(r,i){if(t.call(null,r,i,e))return n=!0,!1})),n):n},getUniqueId:(r=0,function(){return r++}),templatify:function(e){if(this.isFunction(e))return e;var t=i.element(e);return"SCRIPT"===t.prop("tagName")?function(){return t.text()}:function(){return String(e)}},defer:function(e){setTimeout(e,0)},noop:function(){},formatPrefix:function(e,t){return t?"":e+"-"},className:function(e,t,n){return(n?"":".")+e+t},escapeHighlightedString:function(e,t,n){t=t||"<em>";var r=document.createElement("div");r.appendChild(document.createTextNode(t)),n=n||"</em>";var i=document.createElement("div");i.appendChild(document.createTextNode(n));var o=document.createElement("div");return o.appendChild(document.createTextNode(e)),o.innerHTML.replace(RegExp(s(r.innerHTML),"g"),t).replace(RegExp(s(i.innerHTML),"g"),n)}}},function(e,t,n){"use strict";e.exports={element:null}},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,i){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var s=e.length;if(s===+s)for(var o=0;o<s;o++)t.call(i,e[o],o,e);else for(var a in e)n.call(e,a)&&t.call(i,e[a],a,e)}},function(e,t){e.exports=function(e){return JSON.parse(JSON.stringify(e))}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(12);function i(e,t){var r=n(2),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,(function(e,t){i[t]=e}))}function s(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),i.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return r(n,i),n}r(i,Error),e.exports={AlgoliaSearchError:i,UnparsableJSON:s("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:s("RequestTimeout","Request timedout before getting a response"),Network:s("Network","Network issue, see err.more for details"),JSONPScriptFail:s("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:s("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:s("Unknown","Unknown error occured")}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=[];return r(e,(function(r,i){n.push(t(r,i,e))})),n}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=Object({NODE_ENV:"production"}).DEBUG),e}(t=e.exports=n(39)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(s=i))})),e.splice(s,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(t,n(9))},function(e,t){var n,r,i=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,u=[],l=!1,h=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(53),i=/\s+/;function s(e,t,n,r){var s;if(!n)return this;for(t=t.split(i),n=r?function(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}(n,r):n,this._callbacks=this._callbacks||{};s=t.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][e].push(n);return this}function o(e,t,n){return function(){for(var r,i=0,s=e.length;!r&&i<s;i+=1)r=!1===e[i].apply(t,n);return!r}}e.exports={onSync:function(e,t,n){return s.call(this,"sync",e,t,n)},onAsync:function(e,t,n){return s.call(this,"async",e,t,n)},off:function(e){var t;if(!this._callbacks)return this;for(e=e.split(i);t=e.shift();)delete this._callbacks[t];return this},trigger:function(e){var t,n,s,a,c;if(!this._callbacks)return this;for(e=e.split(i),s=[].slice.call(arguments,1);(t=e.shift())&&(n=this._callbacks[t]);)a=o(n.sync,this,[t].concat(s)),c=o(n.async,this,[t].concat(s)),a()&&r(c);return this}}},function(e,t,n){"use strict";var r=n(0),i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};r.isMsie()&&r.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(i.input,{marginTop:"-1px"}),e.exports=i},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){e.exports=function(e,t){return function(n,i,s){if("function"==typeof n&&"object"==typeof i||"object"==typeof s)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(s=n,n=""):1!==arguments.length&&"function"!=typeof i||(s=i,i=void 0),"object"==typeof n&&null!==n?(i=n,n=void 0):null==n&&(n="");var o,a="";return void 0!==n&&(a+=e+"="+encodeURIComponent(n)),void 0!==i&&(i.additionalUA&&(o=i.additionalUA,delete i.additionalUA),a=this.as._getSearchParams(i,a)),this._search(a,t,s,o)}};var r=n(5)},function(e,t,n){e.exports=function(e,t){var r=n(36),i=n(2),s={};return i(r(e),(function(n){!0!==t(n)&&(s[n]=e[n])})),s}},function(e,t){var n;n=window,e.exports=function(e){var t,n,r=function(){var t,n,r,i,s,o=[],a=o.concat,c=o.filter,u=o.slice,l=e.document,h={},d={},f={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,g=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,v=/^(?:body|html)$/i,y=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],w=l.createElement("table"),_=l.createElement("tr"),E={tr:l.createElement("tbody"),tbody:w,thead:w,tfoot:w,td:_,th:_,"*":l.createElement("div")},x=/complete|loaded|interactive/,S=/^[\w-]*$/,C={},A=C.toString,N={},O=l.createElement("div"),T={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},k=Array.isArray||function(e){return e instanceof Array};function R(e){return null==e?String(e):C[A.call(e)]||"object"}function M(e){return"function"==R(e)}function L(e){return null!=e&&e==e.window}function I(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function D(e){return"object"==R(e)}function j(e){return D(e)&&!L(e)&&Object.getPrototypeOf(e)==Object.prototype}function P(e){var t=!!e&&"length"in e&&e.length,r=n.type(e);return"function"!=r&&!L(e)&&("array"==r||0===t||"number"==typeof t&&t>0&&t-1 in e)}function $(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function H(e){return e in d?d[e]:d[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function B(e,t){return"number"!=typeof t||f[$(e)]?t:t+"px"}function q(e){return"children"in e?u.call(e.children):n.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function F(e,t){var n,r=e?e.length:0;for(n=0;n<r;n++)this[n]=e[n];this.length=r,this.selector=t||""}function z(e,n,r){for(t in n)r&&(j(n[t])||k(n[t]))?(j(n[t])&&!j(e[t])&&(e[t]={}),k(n[t])&&!k(e[t])&&(e[t]=[]),z(e[t],n[t],r)):void 0!==n[t]&&(e[t]=n[t])}function U(e,t){return null==t?n(e):n(e).filter(t)}function K(e,t,n,r){return M(t)?t.call(e,n,r):t}function V(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function J(e,t){var n=e.className||"",r=n&&void 0!==n.baseVal;if(void 0===t)return r?n.baseVal:n;r?n.baseVal=t:e.className=t}function W(e){try{return e?"true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?n.parseJSON(e):e):e}catch(t){return e}}function G(e,t){t(e);for(var n=0,r=e.childNodes.length;n<r;n++)G(e.childNodes[n],t)}return N.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var r,i=e.parentNode,s=!i;return s&&(i=O).appendChild(e),r=~N.qsa(i,t).indexOf(e),s&&O.removeChild(e),r},i=function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},s=function(e){return c.call(e,(function(t,n){return e.indexOf(t)==n}))},N.fragment=function(e,t,r){var i,s,o;return g.test(e)&&(i=n(l.createElement(RegExp.$1))),i||(e.replace&&(e=e.replace(m,"<$1></$2>")),void 0===t&&(t=p.test(e)&&RegExp.$1),t in E||(t="*"),(o=E[t]).innerHTML=""+e,i=n.each(u.call(o.childNodes),(function(){o.removeChild(this)}))),j(r)&&(s=n(i),n.each(r,(function(e,t){b.indexOf(e)>-1?s[e](t):s.attr(e,t)}))),i},N.Z=function(e,t){return new F(e,t)},N.isZ=function(e){return e instanceof N.Z},N.init=function(e,t){var r,i;if(!e)return N.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&p.test(e))r=N.fragment(e,RegExp.$1,t),e=null;else{if(void 0!==t)return n(t).find(e);r=N.qsa(l,e)}else{if(M(e))return n(l).ready(e);if(N.isZ(e))return e;if(k(e))i=e,r=c.call(i,(function(e){return null!=e}));else if(D(e))r=[e],e=null;else if(p.test(e))r=N.fragment(e.trim(),RegExp.$1,t),e=null;else{if(void 0!==t)return n(t).find(e);r=N.qsa(l,e)}}return N.Z(r,e)},(n=function(e,t){return N.init(e,t)}).extend=function(e){var t,n=u.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach((function(n){z(e,n,t)})),e},N.qsa=function(e,t){var n,r="#"==t[0],i=!r&&"."==t[0],s=r||i?t.slice(1):t,o=S.test(s);return e.getElementById&&o&&r?(n=e.getElementById(s))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:u.call(o&&!r&&e.getElementsByClassName?i?e.getElementsByClassName(s):e.getElementsByTagName(t):e.querySelectorAll(t))},n.contains=l.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},n.type=R,n.isFunction=M,n.isWindow=L,n.isArray=k,n.isPlainObject=j,n.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},n.isNumeric=function(e){var t=Number(e),n=typeof e;return null!=e&&"boolean"!=n&&("string"!=n||e.length)&&!isNaN(t)&&isFinite(t)||!1},n.inArray=function(e,t,n){return o.indexOf.call(t,e,n)},n.camelCase=i,n.trim=function(e){return null==e?"":String.prototype.trim.call(e)},n.uuid=0,n.support={},n.expr={},n.noop=function(){},n.map=function(e,t){var r,i,s,o,a=[];if(P(e))for(i=0;i<e.length;i++)null!=(r=t(e[i],i))&&a.push(r);else for(s in e)null!=(r=t(e[s],s))&&a.push(r);return(o=a).length>0?n.fn.concat.apply([],o):o},n.each=function(e,t){var n,r;if(P(e)){for(n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e}else for(r in e)if(!1===t.call(e[r],r,e[r]))return e;return e},n.grep=function(e,t){return c.call(e,t)},e.JSON&&(n.parseJSON=JSON.parse),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){C["[object "+t+"]"]=t.toLowerCase()})),n.fn={constructor:N.Z,length:0,forEach:o.forEach,reduce:o.reduce,push:o.push,sort:o.sort,splice:o.splice,indexOf:o.indexOf,concat:function(){var e,t,n=[];for(e=0;e<arguments.length;e++)t=arguments[e],n[e]=N.isZ(t)?t.toArray():t;return a.apply(N.isZ(this)?this.toArray():this,n)},map:function(e){return n(n.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return n(u.apply(this,arguments))},ready:function(e){return x.test(l.readyState)&&l.body?e(n):l.addEventListener("DOMContentLoaded",(function(){e(n)}),!1),this},get:function(e){return void 0===e?u.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){return o.every.call(this,(function(t,n){return!1!==e.call(t,n,t)})),this},filter:function(e){return M(e)?this.not(this.not(e)):n(c.call(this,(function(t){return N.matches(t,e)})))},add:function(e,t){return n(s(this.concat(n(e,t))))},is:function(e){return this.length>0&&N.matches(this[0],e)},not:function(e){var t=[];if(M(e)&&void 0!==e.call)this.each((function(n){e.call(this,n)||t.push(this)}));else{var r="string"==typeof e?this.filter(e):P(e)&&M(e.item)?u.call(e):n(e);this.forEach((function(e){r.indexOf(e)<0&&t.push(e)}))}return n(t)},has:function(e){return this.filter((function(){return D(e)?n.contains(this,e):n(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!D(e)?e:n(e)},last:function(){var e=this[this.length-1];return e&&!D(e)?e:n(e)},find:function(e){var t=this;return e?"object"==typeof e?n(e).filter((function(){var e=this;return o.some.call(t,(function(t){return n.contains(t,e)}))})):1==this.length?n(N.qsa(this[0],e)):this.map((function(){return N.qsa(this,e)})):n()},closest:function(e,t){var r=[],i="object"==typeof e&&n(e);return this.each((function(n,s){for(;s&&!(i?i.indexOf(s)>=0:N.matches(s,e));)s=s!==t&&!I(s)&&s.parentNode;s&&r.indexOf(s)<0&&r.push(s)})),n(r)},parents:function(e){for(var t=[],r=this;r.length>0;)r=n.map(r,(function(e){if((e=e.parentNode)&&!I(e)&&t.indexOf(e)<0)return t.push(e),e}));return U(t,e)},parent:function(e){return U(s(this.pluck("parentNode")),e)},children:function(e){return U(this.map((function(){return q(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||u.call(this.childNodes)}))},siblings:function(e){return U(this.map((function(e,t){return c.call(q(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return n.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,h[e]||(t=l.createElement(e),l.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),h[e]=n),h[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=M(e);if(this[0]&&!t)var r=n(e).get(0),i=r.parentNode||this.length>1;return this.each((function(s){n(this).wrapAll(t?e.call(this,s):i?r.cloneNode(!0):r)}))},wrapAll:function(e){if(this[0]){var t;for(n(this[0]).before(e=n(e));(t=e.children()).length;)e=t.first();n(e).append(this)}return this},wrapInner:function(e){var t=M(e);return this.each((function(r){var i=n(this),s=i.contents(),o=t?e.call(this,r):e;s.length?s.wrapAll(o):i.append(o)}))},unwrap:function(){return this.parent().each((function(){n(this).replaceWith(n(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(e){return this.each((function(){var t=n(this);(void 0===e?"none"==t.css("display"):e)?t.show():t.hide()}))},prev:function(e){return n(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return n(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var r=this.innerHTML;n(this).empty().append(K(this,e,t,r))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var n=K(this,e,t,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var r;return"string"!=typeof e||1 in arguments?this.each((function(r){if(1===this.nodeType)if(D(e))for(t in e)V(this,t,e[t]);else V(this,e,K(this,n,r,this.getAttribute(e)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(e))?r:void 0},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){V(this,e)}),this)}))},prop:function(e,t){return e=T[e]||e,1 in arguments?this.each((function(n){this[e]=K(this,t,n,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=T[e]||e,this.each((function(){delete this[e]}))},data:function(e,t){var n="data-"+e.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,t):this.attr(n);return null!==r?W(r):void 0},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=K(this,e,t,this.value)}))):this[0]&&(this[0].multiple?n(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each((function(e){var r=n(this),i=K(this,t,e,r.offset()),s=r.offsetParent().offset(),o={top:i.top-s.top,left:i.left-s.left};"static"==r.css("position")&&(o.position="relative"),r.css(o)}));if(!this.length)return null;if(l.documentElement!==this[0]&&!n.contains(l.documentElement,this[0]))return{top:0,left:0};var r=this[0].getBoundingClientRect();return{left:r.left+e.pageXOffset,top:r.top+e.pageYOffset,width:Math.round(r.width),height:Math.round(r.height)}},css:function(e,r){if(arguments.length<2){var s=this[0];if("string"==typeof e){if(!s)return;return s.style[i(e)]||getComputedStyle(s,"").getPropertyValue(e)}if(k(e)){if(!s)return;var o={},a=getComputedStyle(s,"");return n.each(e,(function(e,t){o[t]=s.style[i(t)]||a.getPropertyValue(t)})),o}}var c="";if("string"==R(e))r||0===r?c=$(e)+":"+B(e,r):this.each((function(){this.style.removeProperty($(e))}));else for(t in e)e[t]||0===e[t]?c+=$(t)+":"+B(t,e[t])+";":this.each((function(){this.style.removeProperty($(t))}));return this.each((function(){this.style.cssText+=";"+c}))},index:function(e){return e?this.indexOf(n(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&o.some.call(this,(function(e){return this.test(J(e))}),H(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){r=[];var i=J(this);K(this,e,t,i).split(/\s+/g).forEach((function(e){n(this).hasClass(e)||r.push(e)}),this),r.length&&J(this,i+(i?" ":"")+r.join(" "))}})):this},removeClass:function(e){return this.each((function(t){if("className"in this){if(void 0===e)return J(this,"");r=J(this),K(this,e,t,r).split(/\s+/g).forEach((function(e){r=r.replace(H(e)," ")})),J(this,r.trim())}}))},toggleClass:function(e,t){return e?this.each((function(r){var i=n(this);K(this,e,r,J(this)).split(/\s+/g).forEach((function(e){(void 0===t?!i.hasClass(e):t)?i.addClass(e):i.removeClass(e)}))})):this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return void 0===e?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return void 0===e?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),r=this.offset(),i=v.test(t[0].nodeName)?{top:0,left:0}:t.offset();return r.top-=parseFloat(n(e).css("margin-top"))||0,r.left-=parseFloat(n(e).css("margin-left"))||0,i.top+=parseFloat(n(t[0]).css("border-top-width"))||0,i.left+=parseFloat(n(t[0]).css("border-left-width"))||0,{top:r.top-i.top,left:r.left-i.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||l.body;e&&!v.test(e.nodeName)&&"static"==n(e).css("position");)e=e.offsetParent;return e}))}},n.fn.detach=n.fn.remove,["width","height"].forEach((function(e){var t=e.replace(/./,(function(e){return e[0].toUpperCase()}));n.fn[e]=function(r){var i,s=this[0];return void 0===r?L(s)?s["inner"+t]:I(s)?s.documentElement["scroll"+t]:(i=this.offset())&&i[e]:this.each((function(t){(s=n(this)).css(e,K(this,r,t,s[e]()))}))}})),["after","prepend","before","append"].forEach((function(t,r){var i=r%2;n.fn[t]=function(){var t,s,o=n.map(arguments,(function(e){var r=[];return"array"==(t=R(e))?(e.forEach((function(e){return void 0!==e.nodeType?r.push(e):n.zepto.isZ(e)?r=r.concat(e.get()):void(r=r.concat(N.fragment(e)))})),r):"object"==t||null==e?e:N.fragment(e)})),a=this.length>1;return o.length<1?this:this.each((function(t,c){s=i?c:c.parentNode,c=0==r?c.nextSibling:1==r?c.firstChild:2==r?c:null;var u=n.contains(l.documentElement,s);o.forEach((function(t){if(a)t=t.cloneNode(!0);else if(!s)return n(t).remove();s.insertBefore(t,c),u&&G(t,(function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var n=t.ownerDocument?t.ownerDocument.defaultView:e;n.eval.call(n,t.innerHTML)}}))}))}))},n.fn[i?t+"To":"insert"+(r?"Before":"After")]=function(e){return n(e)[t](this),this}})),N.Z.prototype=F.prototype=n.fn,N.uniq=s,N.deserializeValue=W,n.zepto=N,n}();return function(t){var n=1,r=Array.prototype.slice,i=t.isFunction,s=function(e){return"string"==typeof e},o={},a={},c="onfocusin"in e,u={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};function h(e){return e._zid||(e._zid=n++)}function d(e,t,n,r){if((t=f(t)).ns)var i=(s=t.ns,new RegExp("(?:^| )"+s.replace(" "," .* ?")+"(?: |$)"));var s;return(o[h(e)]||[]).filter((function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||i.test(e.ns))&&(!n||h(e.fn)===h(n))&&(!r||e.sel==r)}))}function f(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function p(e,t){return e.del&&!c&&e.e in u||!!t}function g(e){return l[e]||c&&u[e]||e}function m(e,n,r,i,s,a,c){var u=h(e),d=o[u]||(o[u]=[]);n.split(/\s/).forEach((function(n){if("ready"==n)return t(document).ready(r);var o=f(n);o.fn=r,o.sel=s,o.e in l&&(r=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return o.fn.apply(this,arguments)}),o.del=a;var u=a||r;o.proxy=function(t){if(!(t=E(t)).isImmediatePropagationStopped()){try{var n=Object.getOwnPropertyDescriptor(t,"data");n&&!n.writable||(t.data=i)}catch(t){}var r=u.apply(e,null==t._args?[t]:[t].concat(t._args));return!1===r&&(t.preventDefault(),t.stopPropagation()),r}},o.i=d.length,d.push(o),"addEventListener"in e&&e.addEventListener(g(o.e),o.proxy,p(o,c))}))}function v(e,t,n,r,i){var s=h(e);(t||"").split(/\s/).forEach((function(t){d(e,t,n,r).forEach((function(t){delete o[s][t.i],"removeEventListener"in e&&e.removeEventListener(g(t.e),t.proxy,p(t,i))}))}))}a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",t.event={add:m,remove:v},t.proxy=function(e,n){var o=2 in arguments&&r.call(arguments,2);if(i(e)){var a=function(){return e.apply(n,o?o.concat(r.call(arguments)):arguments)};return a._zid=h(e),a}if(s(n))return o?(o.unshift(e[n],e),t.proxy.apply(null,o)):t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(e,t,n){return this.on(e,t,n)},t.fn.unbind=function(e,t){return this.off(e,t)},t.fn.one=function(e,t,n,r){return this.on(e,t,n,r,1)};var y=function(){return!0},b=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function E(e,n){return!n&&e.isDefaultPrevented||(n||(n=e),t.each(_,(function(t,r){var i=n[t];e[t]=function(){return this[r]=y,i&&i.apply(n,arguments)},e[r]=b})),e.timeStamp||(e.timeStamp=Date.now()),(void 0!==n.defaultPrevented?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=y)),e}function x(e){var t,n={originalEvent:e};for(t in e)w.test(t)||void 0===e[t]||(n[t]=e[t]);return E(n,e)}t.fn.delegate=function(e,t,n){return this.on(t,e,n)},t.fn.undelegate=function(e,t,n){return this.off(t,e,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,o,a,c){var u,l,h=this;return e&&!s(e)?(t.each(e,(function(e,t){h.on(e,n,o,t,c)})),h):(s(n)||i(a)||!1===a||(a=o,o=n,n=void 0),void 0!==a&&!1!==o||(a=o,o=void 0),!1===a&&(a=b),h.each((function(i,s){c&&(u=function(e){return v(s,e.type,a),a.apply(this,arguments)}),n&&(l=function(e){var i,o=t(e.target).closest(n,s).get(0);if(o&&o!==s)return i=t.extend(x(e),{currentTarget:o,liveFired:s}),(u||a).apply(o,[i].concat(r.call(arguments,1)))}),m(s,e,a,o,n,l||u)})))},t.fn.off=function(e,n,r){var o=this;return e&&!s(e)?(t.each(e,(function(e,t){o.off(e,n,t)})),o):(s(n)||i(r)||!1===r||(r=n,n=void 0),!1===r&&(r=b),o.each((function(){v(this,e,r,n)})))},t.fn.trigger=function(e,n){return(e=s(e)||t.isPlainObject(e)?t.Event(e):E(e))._args=n,this.each((function(){e.type in u&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)}))},t.fn.triggerHandler=function(e,n){var r,i;return this.each((function(o,a){(r=x(s(e)?t.Event(e):e))._args=n,r.target=a,t.each(d(a,e.type||e),(function(e,t){if(i=t.proxy(r),r.isImmediatePropagationStopped())return!1}))})),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}})),t.Event=function(e,t){s(e)||(e=(t=e).type);var n=document.createEvent(a[e]||"Events"),r=!0;if(t)for(var i in t)"bubbles"==i?r=!!t[i]:n[i]=t[i];return n.initEvent(e,r,!0),E(n)}}(r),n=[],r.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",t&&clearTimeout(t),t=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(e){var t={},n=e.fn.data,r=e.camelCase,i=e.expando="Zepto"+ +new Date,s=[];function o(n,o,a){var c=n[i]||(n[i]=++e.uuid),u=t[c]||(t[c]=function(t){var n={};return e.each(t.attributes||s,(function(t,i){0==i.name.indexOf("data-")&&(n[r(i.name.replace("data-",""))]=e.zepto.deserializeValue(i.value))})),n}(n));return void 0!==o&&(u[r(o)]=a),u}e.fn.data=function(s,a){return void 0===a?e.isPlainObject(s)?this.each((function(t,n){e.each(s,(function(e,t){o(n,e,t)}))})):0 in this?function(s,a){var c=s[i],u=c&&t[c];if(void 0===a)return u||o(s);if(u){if(a in u)return u[a];var l=r(a);if(l in u)return u[l]}return n.call(e(s),a)}(this[0],s):void 0:this.each((function(){o(this,s,a)}))},e.data=function(t,n,r){return e(t).data(n,r)},e.hasData=function(n){var r=n[i],s=r&&t[r];return!!s&&!e.isEmptyObject(s)},e.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var s=this[i],o=s&&t[s];o&&e.each(n||o,(function(e){delete o[n?r(this):e]}))}))},["remove","empty"].forEach((function(t){var n=e.fn[t];e.fn[t]=function(){var e=this.find("*");return"remove"===t&&(e=e.add(this)),e.removeData(),n.call(this)}}))}(r),r}(n)},function(e,t,n){"use strict";var r=n(0),i=n(1);function s(e){e&&e.el||r.error("EventBus initialized without el"),this.$el=i.element(e.el)}r.mixin(s.prototype,{trigger:function(e){var t=[].slice.call(arguments,1),n=r.Event("autocomplete:"+e);return this.$el.trigger(n,t),n}}),e.exports=s},function(e,t,n){"use strict";e.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},function(e,t){e.exports="0.32.0"},function(e,t,n){"use strict";e.exports=function(e){var t=e.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(t)return[t[1],t[2],t[3]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(15),s=(r=i)&&r.__esModule?r:{default:r};t.default=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="2.6.1"},function(e,t,n){"use strict";var r,i=n(23),s=(r=i)&&r.__esModule?r:{default:r};e.exports=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(24)),i=o(n(25)),s=o(n(21));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)(i.default);a.version=s.default,t.default=a},function(e,t,n){"use strict";var r=Function.prototype.bind;e.exports=function(e){var t=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return new(r.apply(e,[null].concat(n)))};return t.__proto__=e,t.prototype=e.prototype,t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=d(n(26)),o=d(n(29)),a=d(n(49)),c=d(n(64)),u=d(n(65)),l=d(n(21)),h=d(n(20));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){var n=t.apiKey,i=t.indexName,s=t.inputSelector,u=t.appId,d=void 0===u?"BH4D9OD16A":u,f=t.debug,p=void 0!==f&&f,g=t.algoliaOptions,m=void 0===g?{}:g,v=t.autocompleteOptions,y=void 0===v?{debug:!1,hint:!1,autoselect:!0}:v,b=t.transformData,w=void 0!==b&&b,_=t.queryHook,E=void 0!==_&&_,x=t.handleSelected,S=void 0!==x&&x,C=t.enhancedSearchInput,A=void 0!==C&&C,N=t.layout,O=void 0===N?"collumns":N;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.checkArguments({apiKey:n,indexName:i,inputSelector:s,debug:p,algoliaOptions:m,autocompleteOptions:y,transformData:w,queryHook:E,handleSelected:S,enhancedSearchInput:A,layout:O}),this.apiKey=n,this.appId=d,this.indexName=i,this.input=e.getInputFromSelector(s),this.algoliaOptions=r({hitsPerPage:5},m);var T=!(!y||!y.debug)&&y.debug;y.debug=p||T,this.autocompleteOptions=y,this.autocompleteOptions.cssClasses=this.autocompleteOptions.cssClasses||{},this.autocompleteOptions.cssClasses.prefix=this.autocompleteOptions.cssClasses.prefix||"ds",S=S||this.handleSelected,this.isSimpleLayout="simple"===O,this.client=(0,o.default)(this.appId,this.apiKey),this.client.addAlgoliaAgent("docsearch.js "+l.default),A&&(this.input=e.injectSearchBox(this.input)),this.autocomplete=(0,a.default)(this.input,y,[{source:this.getAutocompleteSource(w,E),templates:{suggestion:e.getSuggestionTemplate(this.isSimpleLayout),footer:c.default.footer,empty:e.getEmptyTemplate()}}]),S&&(0,h.default)(".algolia-autocomplete").on("click",".ds-suggestions a",(function(e){e.preventDefault()})),this.autocomplete.on("autocomplete:selected",S.bind(null,this.autocomplete.autocomplete)),this.autocomplete.on("autocomplete:shown",this.handleShown.bind(null,this.input)),A&&e.bindSearchBoxEvent()}return i(e,[{key:"getAutocompleteSource",value:function(t,n){var r=this;return function(i,s){n&&(i=n(i)||i),r.client.search([{indexName:r.indexName,query:i,params:r.algoliaOptions}]).then((function(n){var r=n.results[0].hits;t&&(r=t(r)||r),s(e.formatHits(r))}))}}},{key:"handleSelected",value:function(e,t,n){e.setVal(""),window.location.assign(n.url)}},{key:"handleShown",value:function(e){var t=e.offset().left+e.width()/2,n=(0,h.default)(document).width()/2;isNaN(n)&&(n=900);var r=t-n>=0?"algolia-autocomplete-right":"algolia-autocomplete-left",i=t-n<0?"algolia-autocomplete-right":"algolia-autocomplete-left",s=(0,h.default)(".algolia-autocomplete");s.hasClass(r)||s.addClass(r),s.hasClass(i)&&s.removeClass(i)}}],[{key:"checkArguments",value:function(t){if(!t.apiKey||!t.indexName)throw new Error("Usage:\n  documentationSearch({\n  apiKey,\n  indexName,\n  inputSelector,\n  [ appId ],\n  [ algoliaOptions.{hitsPerPage} ]\n  [ autocompleteOptions.{hint,debug} ]\n})");if("string"!=typeof t.inputSelector)throw new Error("Error: inputSelector:"+t.inputSelector+"  must be a string. Each selector must match only one element and separated by ','");if(!e.getInputFromSelector(t.inputSelector))throw new Error("Error: No input element in the page matches "+t.inputSelector)}},{key:"injectSearchBox",value:function(e){e.before(c.default.searchBox);var t=e.prev().prev().find("input");return e.remove(),t}},{key:"bindSearchBoxEvent",value:function(){(0,h.default)('.searchbox [type="reset"]').on("click",(function(){(0,h.default)("input#docsearch").focus(),(0,h.default)(this).addClass("hide"),a.default.autocomplete.setVal("")})),(0,h.default)("input#docsearch").on("keyup",(function(){var e=document.querySelector("input#docsearch"),t=document.querySelector('.searchbox [type="reset"]');t.className="searchbox__reset",0===e.value.length&&(t.className+=" hide")}))}},{key:"getInputFromSelector",value:function(e){var t=(0,h.default)(e).filter("input");return t.length?(0,h.default)(t[0]):null}},{key:"formatHits",value:function(t){var n=u.default.deepClone(t).map((function(e){return e._highlightResult&&(e._highlightResult=u.default.mergeKeyWithParent(e._highlightResult,"hierarchy")),u.default.mergeKeyWithParent(e,"hierarchy")})),r=u.default.groupBy(n,"lvl0");return h.default.each(r,(function(e,t){var n=u.default.groupBy(t,"lvl1"),i=u.default.flattenAndFlagFirst(n,"isSubCategoryHeader");r[e]=i})),(r=u.default.flattenAndFlagFirst(r,"isCategoryHeader")).map((function(t){var n=e.formatURL(t),r=u.default.getHighlightedValue(t,"lvl0"),i=u.default.getHighlightedValue(t,"lvl1")||r,s=u.default.compact([u.default.getHighlightedValue(t,"lvl2")||i,u.default.getHighlightedValue(t,"lvl3"),u.default.getHighlightedValue(t,"lvl4"),u.default.getHighlightedValue(t,"lvl5"),u.default.getHighlightedValue(t,"lvl6")]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>'),o=u.default.getSnippetedValue(t,"content"),a=i&&""!==i||s&&""!==s,c=s&&""!==s&&s!==i,l=!c&&i&&""!==i&&i!==r;return{isLvl0:!l&&!c,isLvl1:l,isLvl2:c,isLvl1EmptyOrDuplicate:!i||""===i||i===r,isCategoryHeader:t.isCategoryHeader,isSubCategoryHeader:t.isSubCategoryHeader,isTextOrSubcategoryNonEmpty:a,category:r,subcategory:i,title:s,text:o,url:n}}))}},{key:"formatURL",value:function(e){var t=e.url,n=e.anchor;return t?-1!==t.indexOf("#")?t:n?e.url+"#"+e.anchor:t:n?"#"+e.anchor:(console.warn("no anchor nor url for : ",JSON.stringify(e)),null)}},{key:"getEmptyTemplate",value:function(){return function(e){return s.default.compile(c.default.empty).render(e)}}},{key:"getSuggestionTemplate",value:function(e){var t=e?c.default.suggestionSimple:c.default.suggestion,n=s.default.compile(t);return function(e){return n.render(e)}}}]),e}();t.default=f},function(e,t,n){var r=n(27);r.Template=n(28).Template,r.template=r.Template,e.exports=r},function(e,t,n){!function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,s=/\\/g,o=/\u2028/,a=/\u2029/;function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i,s=n.length,o=0,a=null,l=null,h="",d=[],f=!1,p=0,g=0,m="{{",v="}}";function y(){h.length>0&&(d.push({tag:"_t",text:new String(h)}),h="")}function b(n,r){if(y(),n&&function(){for(var n=!0,r=g;r<d.length;r++)if(!(n=e.tags[d[r].tag]<e.tags._v||"_t"==d[r].tag&&null===d[r].text.match(t)))return!1;return n}())for(var i,s=g;s<d.length;s++)d[s].text&&((i=d[s+1])&&">"==i.tag&&(i.indent=d[s].text.toString()),d.splice(s,1));else r||d.push({tag:"\n"});f=!1,g=d.length}function w(e,t){var n="="+v,r=e.indexOf(n,t),i=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return m=i[0],v=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),m=r[0],v=r[1]),p=0;p<s;p++)0==o?u(m,n,p)?(--p,y(),o=1):"\n"==n.charAt(p)?b(f):h+=n.charAt(p):1==o?(p+=m.length-1,"="==(a=(l=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=w(n,p),o=0):(l&&p++,o=2),f=p):u(v,n,p)?(d.push({tag:a,n:c(h),otag:m,ctag:v,i:"/"==a?f-m.length:p+v.length}),h="",p+=v.length-1,o=0,"{"==a&&("}}"==v?p++:"}"===(i=d[d.length-1]).n.substr(i.n.length-1)&&(i.n=i.n.substring(0,i.n.length-1)))):h+=n.charAt(p);return b(f,!0),d};var l={_t:!0,"\n":!0,$:!0,"/":!0};function h(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function d(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function f(e){var t=[];for(var n in e.partials)t.push('"'+g(n)+'":{name:"'+g(e.partials[n].name)+'", '+f(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+g(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+f(t)+"}"};var p=0;function g(e){return e.replace(s,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(o,"\\u2028").replace(a,"\\u2029")}function m(e){return~e.indexOf(".")?"d":"f"}function v(e,t){var n="<"+(t.prefix||"")+e.n+p++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+g(n)+'",c,p,"'+(e.indent||"")+'"));',n}function y(e,t){t.code+="t.b(t.t(t."+m(e.n)+'("'+g(e.n)+'",c,p,0)));'}function b(e){return"t.b("+e+");"}e.generate=function(t,n,r){p=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+m(t.n)+'("'+g(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+m(t.n)+'("'+g(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":v,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[v(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+g(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=b('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+m(e.n)+'("'+g(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=b('"'+g(e.text)+'"')},"{":y,"&":y},e.walk=function(t,n){for(var r,i=0,s=t.length;i<s;i++)(r=e.codegen[t[i].tag])&&r(t[i],n);return n},e.parse=function(t,n,r){return function t(n,r,i,s){var o,a=[],c=null,u=null;for(o=i[i.length-1];n.length>0;){if(u=n.shift(),o&&"<"==o.tag&&!(u.tag in l))throw new Error("Illegal content in < super tag.");if(e.tags[u.tag]<=e.tags.$||h(u,s))i.push(u),u.nodes=t(n,u.tag,i,s);else{if("/"==u.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+u.n);if(c=i.pop(),u.n!=c.n&&!d(u.n,c.n,s))throw new Error("Nesting error: "+c.n+" vs. "+u.n);return c.end=u.i,a}"\n"==u.tag&&(u.last=0==n.length||"\n"==n[0].tag)}a.push(u)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return a}(t,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var s=i.partials;for(var o in s)delete s[o].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(t)},function(e,t,n){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=c(e),a.test(e)?e.replace(n,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(s,"&#39;").replace(o,"&quot;"):e},t:c,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,s){function o(){}function a(){}var c;o.prototype=e,a.prototype=e.subs;var u=new o;for(c in u.subs=new a,u.subsText={},u.buf="",r=r||{},u.stackSubs=r,u.subsText=s,t)r[c]||(r[c]=t[c]);for(c in r)u.subs[c]=r[c];for(c in i=i||{},u.stackPartials=i,n)i[c]||(i[c]=n[c]);for(c in i)u.partials[c]=i[c];return u}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(u(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,s,o){var a;return(!u(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,s,o)),a=!!e,!r&&a&&t&&t.push("object"==typeof e?e:t[t.length-1]),a)},d:function(e,n,r,i){var s,o=e.split("."),a=this.f(o[0],n,r,i),c=this.options.modelGet,l=null;if("."===e&&u(n[n.length-2]))a=n[n.length-1];else for(var h=1;h<o.length;h++)void 0!==(s=t(o[h],a,c))?(l=a,a=s):a="";return!(i&&!a)&&(i||"function"!=typeof a||(n.push(l),a=this.mv(a,n,r),n.pop()),a)},f:function(e,n,r,i){for(var s=!1,o=!1,a=this.options.modelGet,c=n.length-1;c>=0;c--)if(void 0!==(s=t(e,n[c],a))){o=!0;break}return o?(i||"function"!=typeof s||(s=this.mv(s,n,r)),s):!i&&""},ls:function(e,t,n,r,i){var s=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(c(e.call(t,r)),t,n)),this.options.delimiters=s,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,s,o){var a,c=t[t.length-1],u=e.call(c);return"function"==typeof u?!!r||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,n,a.substring(i,s),o)):u},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(c(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,i=/>/g,s=/\'/g,o=/\"/g,a=/[&<>\"\']/;function c(e){return String(null==e?"":e)}var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){"use strict";var r=n(30),i=n(41);e.exports=i(r,"(lite) ")},function(e,t,n){e.exports=c;var r=n(5),i=n(31),s=n(32),o=n(38),a=Object({NODE_ENV:"production"}).RESET_APP_DATA_TIMER&&parseInt(Object({NODE_ENV:"production"}).RESET_APP_DATA_TIMER,10)||12e4;function c(e,t,i){var s=n(8)("algoliasearch"),o=n(3),a=n(6),c=n(7),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==i._allowEmptyCredentials&&!e)throw new r.AlgoliaSearchError("Please provide an application ID. "+l);if(!0!==i._allowEmptyCredentials&&!t)throw new r.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},i=i||{},this._timeouts=i.timeouts||{connect:1e3,read:2e3,write:3e4},i.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=i.timeout);var h=i.protocol||"https:";if(/:$/.test(h)||(h+=":"),"http:"!==h&&"https:"!==h)throw new r.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+i.protocol+"`)");if(this._checkAppIdData(),i.hosts)a(i.hosts)?(this.hosts.read=o(i.hosts),this.hosts.write=o(i.hosts)):(this.hosts.read=o(i.hosts.read),this.hosts.write=o(i.hosts.write));else{var d=c(this._shuffleResult,(function(t){return e+"-"+t+".algolianet.com"})),f=(!1===i.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+f].concat(d),this.hosts.write=[this.applicationID+".algolia.net"].concat(d)}this.hosts.read=c(this.hosts.read,u(h)),this.hosts.write=c(this.hosts.write,u(h)),this.extraHeaders={},this.cache=i._cache||{},this._ua=i._ua,this._useCache=!(void 0!==i._useCache&&!i._cache)||i._useCache,this._useRequestCache=this._useCache&&i._useRequestCache,this._useFallback=void 0===i.useFallback||i.useFallback,this._setTimeout=i._setTimeout,s("init done, %j",this)}function u(e){return function(t){return e+"//"+t.toLowerCase()}}function l(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function h(e){var t={};for(var n in e){var r;Object.prototype.hasOwnProperty.call(e,n)&&(r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=r)}return t}c.prototype.initIndex=function(e){return new s(this,e)},c.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},c.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},c.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},c.prototype.addAlgoliaAgent=function(e){-1===this._ua.indexOf(";"+e)&&(this._ua+=";"+e)},c.prototype._jsonRequest=function(e){this._checkAppIdData();var t,s,o,a=n(8)("algoliasearch:"+e.url),c=e.additionalUA||"",u=e.cache,d=this,f=0,p=!1,g=d._useFallback&&d._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,o=this._computeRequestHeaders({additionalUA:c,withApiKey:!1,headers:e.headers})):o=this._computeRequestHeaders({additionalUA:c,headers:e.headers}),void 0!==e.body&&(t=l(e.body)),a("request start");var m=[];function v(e,t,n){return d._useCache&&e&&t&&void 0!==t[n]}function y(t,n){if(v(d._useRequestCache,u,s)&&t.catch((function(){delete u[s]})),"function"!=typeof e.callback)return t.then(n);t.then((function(t){i((function(){e.callback(null,n(t))}),d._setTimeout||setTimeout)}),(function(t){i((function(){e.callback(t)}),d._setTimeout||setTimeout)}))}if(d._useCache&&d._useRequestCache&&(s=e.url),d._useCache&&d._useRequestCache&&t&&(s+="_body_"+t),v(d._useRequestCache,u,s)){a("serving request from cache");var b=u[s];return y("function"!=typeof b.then?d._promise.resolve({responseText:b}):b,(function(e){return JSON.parse(e.responseText)}))}var w=function n(i,y){d._checkAppIdData();var b=new Date;if(d._useCache&&!d._useRequestCache&&(s=e.url),d._useCache&&!d._useRequestCache&&t&&(s+="_body_"+y.body),v(!d._useRequestCache,u,s)){a("serving response from cache");var w=u[s];return d._promise.resolve({body:JSON.parse(w),responseText:w})}if(f>=d.hosts[e.hostType].length)return!g||p?(a("could not get any response"),d._promise.reject(new r.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+d.applicationID,{debugData:m}))):(a("switching to fallback"),f=0,y.method=e.fallback.method,y.url=e.fallback.url,y.jsonBody=e.fallback.body,y.jsonBody&&(y.body=l(y.jsonBody)),o=d._computeRequestHeaders({additionalUA:c,headers:e.headers}),y.timeouts=d._getTimeoutsForRequest(e.hostType),d._setHostIndexByType(0,e.hostType),p=!0,n(d._request.fallback,y));var _=d._getHostByType(e.hostType),E=_+y.url,x={body:y.body,jsonBody:y.jsonBody,method:y.method,headers:o,timeouts:y.timeouts,debug:a,forceAuthHeaders:y.forceAuthHeaders};return a("method: %s, url: %s, headers: %j, timeouts: %d",x.method,E,x.headers,x.timeouts),i===d._request.fallback&&a("using fallback"),i.call(d,E,x).then((function(e){var n=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;a("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,n,e.headers);var i=2===Math.floor(n/100),c=new Date;if(m.push({currentHost:_,headers:h(o),content:t||null,contentLength:void 0!==t?t.length:null,method:y.method,timeouts:y.timeouts,url:y.url,startTime:b,endTime:c,duration:c-b,statusCode:n}),i)return d._useCache&&!d._useRequestCache&&u&&(u[s]=e.responseText),{responseText:e.responseText,body:e.body};if(4!==Math.floor(n/100))return f+=1,S();a("unrecoverable error");var l=new r.AlgoliaSearchError(e.body&&e.body.message,{debugData:m,statusCode:n});return d._promise.reject(l)}),(function(s){a("error: %s, stack: %s",s.message,s.stack);var c=new Date;return m.push({currentHost:_,headers:h(o),content:t||null,contentLength:void 0!==t?t.length:null,method:y.method,timeouts:y.timeouts,url:y.url,startTime:b,endTime:c,duration:c-b}),s instanceof r.AlgoliaSearchError||(s=new r.Unknown(s&&s.message,s)),f+=1,s instanceof r.Unknown||s instanceof r.UnparsableJSON||f>=d.hosts[e.hostType].length&&(p||!g)?(s.debugData=m,d._promise.reject(s)):s instanceof r.RequestTimeout?(a("retrying request with higher timeout"),d._incrementHostIndex(e.hostType),d._incrementTimeoutMultipler(),y.timeouts=d._getTimeoutsForRequest(e.hostType),n(i,y)):S()}));function S(){return a("retrying request"),d._incrementHostIndex(e.hostType),n(i,y)}}(d._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:d._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return d._useCache&&d._useRequestCache&&u&&(u[s]=w),y(w,(function(e){return e.body}))},c.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?l(e[n]):e[n]));return t},c.prototype._computeRequestHeaders=function(e){var t=n(2),r={"x-algolia-agent":e.additionalUA?this._ua+";"+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,(function(e,t){r[t]=e})),e.headers&&t(e.headers,(function(e,t){r[t]=e})),r},c.prototype.search=function(e,t,r){var i=n(6),s=n(7);if(!i(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var o=this,a={requests:s(e,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:o._getSearchParams(e.params,t)}}))},c=s(a.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&");return void 0!==t.strategy&&(a.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:a,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:c}},callback:r})},c.prototype.searchForFacetValues=function(e){var t=n(6),r=n(7),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(i);var s=this;return s._promise.all(r(e,(function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(i);var t=n(3),r=n(14),o=e.indexName,a=e.params,c=a.facetName,u=r(t(a),(function(e){return"facetName"===e})),l=s._getSearchParams(u,"");return s._jsonRequest({cache:s.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(o)+"/facets/"+encodeURIComponent(c)+"/query",hostType:"read",body:{params:l}})})))},c.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var r=[],i=0;i<e[n].length;++i)r.push(e[n][i]);t.push("("+r.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},c.prototype.setUserToken=function(e){this.userToken=e},c.prototype.clearCache=function(){this.cache={}},c.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},c.prototype.setTimeouts=function(e){this._timeouts=e},c.prototype.getTimeouts=function(){return this._timeouts},c.prototype._getAppIdData=function(){var e=o.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},c.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),o.set(this.applicationID,e)},c.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>a?this._resetInitialAppIdData(e):e},c.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}([1,2,3]),this._setAppIdData(t)},c.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},c.prototype._partialAppIdDataUpdate=function(e){var t=n(2),r=this._getAppIdData();return t(e,(function(e,t){r[t]=e})),this._setAppIdData(r)},c.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},c.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},c.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},c.prototype._setHostIndexByType=function(e,t){var r=n(3)(this._hostIndexes);return r[t]=e,this._partialAppIdDataUpdate({hostIndexes:r}),e},c.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},c.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},c.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}},function(e,t){e.exports=function(e,t){t(e,0)}},function(e,t,n){var r=n(13),i=n(33),s=n(34);function o(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=o,o.prototype.clearCache=function(){this.cache={}},o.prototype.search=r("query"),o.prototype.similarSearch=r("similarQuery"),o.prototype.browse=function(e,t,r){var i,s,o=n(35),a=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(i=0,r=arguments[0],e=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?s=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],s=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],t=void 0),t=o({},t||{},{page:i,hitsPerPage:s,query:e});var c=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",body:{params:c},hostType:"read",callback:r})},o.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},o.prototype.searchForFacetValues=function(e,t){var r=n(3),i=n(14);if(void 0===e.facetName||void 0===e.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var s=e.facetName,o=i(r(e),(function(e){return"facetName"===e})),a=this.as._getSearchParams(o,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(s)+"/query",hostType:"read",body:{params:a},callback:t})},o.prototype.searchFacet=i((function(e,t){return this.searchForFacetValues(e,t)}),s("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),o.prototype._search=function(e,t,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:r})},o.prototype.getObject=function(e,t,n){var r=this;1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var i="";if(void 0!==t){i="?attributes=";for(var s=0;s<t.length;++s)0!==s&&(i+=","),i+=t[s]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e)+i,hostType:"read",callback:n})},o.prototype.getObjects=function(e,t,r){var i=n(6),s=n(7),o="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!i(e))throw new Error(o);var a=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var c={requests:s(e,(function(e){var n={indexName:a.indexName,objectID:e};return t&&(n.attributesToRetrieve=t.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:c,callback:r})},o.prototype.as=null,o.prototype.indexName=null,o.prototype.typeAheadArgs=null,o.prototype.typeAheadValueOption=null},function(e,t){e.exports=function(e,t){var n=!1;return function(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}}},function(e,t){e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},function(e,t,n){var r=n(2);e.exports=function e(t){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof t[r]&&"object"==typeof n[r]?t[r]=e({},t[r],n[r]):void 0!==n[r]&&(t[r]=n[r]))})),t}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=Array.prototype.slice,o=n(37),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{h(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),s=o(e),a=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(a&&e.length>0&&!r.call(e,0))for(var g=0;g<e.length;++g)d.push(String(g));if(s&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var v in e)p&&"prototype"===v||!r.call(e,v)||d.push(String(v));if(c)for(var y=function(e){if("undefined"==typeof window||!f)return h(e);try{return h(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)y&&"constructor"===l[b]||!r.call(e,l[b])||d.push(l[b]);return d};p.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return o(t)?e(s.call(t)):e(t)}}}else Object.keys=p;return Object.keys||p},e.exports=p},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){(function(t){var r,i=n(8)("algoliasearch:src/hostIndexState.js"),s={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},o={set:function(e,n){s.set(e,n);try{var r=JSON.parse(t.localStorage["algoliasearch-client-js"]);return r[e]=n,t.localStorage["algoliasearch-client-js"]=JSON.stringify(r),r[e]}catch(t){return a(e,t)}},get:function(e){try{return JSON.parse(t.localStorage["algoliasearch-client-js"])[e]||null}catch(t){return a(e,t)}}};function a(e,n){return i("localStorage failed with",n),function(){try{t.localStorage.removeItem("algoliasearch-client-js")}catch(e){}}(),(r=s).get(e)}function c(e,t){return 1===arguments.length?r.get(e):r.set(e,t)}function u(){try{return"localStorage"in t&&null!==t.localStorage&&(t.localStorage["algoliasearch-client-js"]||t.localStorage.setItem("algoliasearch-client-js",JSON.stringify({})),!0)}catch(e){return!1}}r=u()?o:s,e.exports={get:c,set:c,supportsLocalStorage:u}}).call(t,n(4))},function(e,t,n){var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,s=i-(r||i);e.diff=s,e.prev=r,e.curr=i,r=i;for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var s=o[c];n=i.call(e,s),o.splice(c,1),c--}return n})),t.formatArgs.call(e,o);var u=n.log||t.log||console.log.bind(console);u.apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(40),t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,i=36e5,s=24*i;function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var a,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var o=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*i;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return t.long?o(a=e,s,"day")||o(a,i,"hour")||o(a,r,"minute")||o(a,n,"second")||a+" ms":function(e){return e>=s?Math.round(e/s)+"d":e>=i?Math.round(e/i)+"h":e>=r?Math.round(e/r)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(42),i=r.Promise||n(43).Promise;e.exports=function(e,t){var s=n(12),o=n(5),a=n(44),c=n(46),u=n(47);function l(e,t,r){return(r=n(3)(r||{}))._ua=r._ua||l.ua,new d(e,t,r)}t=t||"",l.version=n(48),l.ua="Algolia for vanilla JavaScript "+t+l.version,l.initPlaces=u(l),r.__algolia={debug:n(8),algoliasearch:l};var h={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function d(){e.apply(this,arguments)}return h.hasXMLHttpRequest&&(h.cors="withCredentials"in new XMLHttpRequest),s(d,e),d.prototype._request=function(e,t){return new i((function(n,r){if(h.cors||h.hasXDomainRequest){e=a(e,t.headers);var i,s,c=t.body,u=h.cors?new XMLHttpRequest:new XDomainRequest,l=!1;i=setTimeout(d,t.timeouts.connect),u.onprogress=function(){l||f()},"onreadystatechange"in u&&(u.onreadystatechange=function(){!l&&u.readyState>1&&f()}),u.onload=function(){if(!s){var e;clearTimeout(i);try{e={body:JSON.parse(u.responseText),responseText:u.responseText,statusCode:u.status,headers:u.getAllResponseHeaders&&u.getAllResponseHeaders()||{}}}catch(t){e=new o.UnparsableJSON({more:u.responseText})}e instanceof o.UnparsableJSON?r(e):n(e)}},u.onerror=function(e){s||(clearTimeout(i),r(new o.Network({more:e})))},u instanceof XMLHttpRequest?(u.open(t.method,e,!0),t.forceAuthHeaders&&(u.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),u.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):u.open(t.method,e),h.cors&&(c&&("POST"===t.method?u.setRequestHeader("content-type","application/x-www-form-urlencoded"):u.setRequestHeader("content-type","application/json")),u.setRequestHeader("accept","application/json")),c?u.send(c):u.send()}else r(new o.Network("CORS not supported"));function d(){s=!0,u.abort(),r(new o.RequestTimeout)}function f(){l=!0,clearTimeout(i),i=setTimeout(d,t.timeouts.complete)}}))},d.prototype._request.fallback=function(e,t){return e=a(e,t.headers),new i((function(n,r){c(e,t,(function(e,t){e?r(e):n(t)}))}))},d.prototype._promise={reject:function(e){return i.reject(e)},resolve:function(e){return i.resolve(e)},delay:function(e){return new i((function(t){setTimeout(t,e)}))},all:function(e){return i.all(e)}},l}},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n(4))},function(e,t,n){(function(t,n){
++var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e,n){"use strict";var r,i=n(1);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,(function(t,r){t&&(n.isArray(t)?e[r]=[].concat(t):n.isObject(t)&&(e[r]=n.cloneDeep(t)))})),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,(function(r,i){if(!(n=e.call(null,r,i,t)))return!1})),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,(function(r,i){if(e.call(null,r,i,t))return n=!0,!1})),n):n},getUniqueId:(r=0,function(){return r++}),templatify:function(t){if(this.isFunction(t))return t;var e=i.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return(n?"":".")+t+e},escapeHighlightedString:function(t,e,n){e=e||"<em>";var r=document.createElement("div");r.appendChild(document.createTextNode(e)),n=n||"</em>";var i=document.createElement("div");i.appendChild(document.createTextNode(n));var s=document.createElement("div");return s.appendChild(document.createTextNode(t)),s.innerHTML.replace(RegExp(o(r.innerHTML),"g"),e).replace(RegExp(o(i.innerHTML),"g"),n)}}},function(t,e,n){"use strict";t.exports={element:null}},function(t,e){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(t,e,i){if("[object Function]"!==r.call(e))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)e.call(i,t[s],s,t);else for(var a in t)n.call(t,a)&&e.call(i,t[a],a,t)}},function(t,e){t.exports=function(t){return JSON.parse(JSON.stringify(t))}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(12);function i(t,e){var r=n(2),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",e&&r(e,(function(t,e){i[e]=t}))}function o(t,e){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(e),i.apply(this,n),this.name="AlgoliaSearch"+t+"Error"}return r(n,i),n}r(i,Error),t.exports={AlgoliaSearchError:i,UnparsableJSON:o("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:o("RequestTimeout","Request timedout before getting a response"),Network:o("Network","Network issue, see err.more for details"),JSONPScriptFail:o("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:o("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:o("Unknown","Unknown error occured")}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var r=n(2);t.exports=function(t,e){var n=[];return r(t,(function(r,i){n.push(e(r,i,t))})),n}},function(t,e,n){(function(r){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=Object({NODE_ENV:"production"}).DEBUG),t}(e=t.exports=n(39)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())}).call(e,n(9))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,h=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!l){var t=a(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(53),i=/\s+/;function o(t,e,n,r){var o;if(!n)return this;for(e=e.split(i),n=r?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,r):n,this._callbacks=this._callbacks||{};o=e.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][t].push(n);return this}function s(t,e,n){return function(){for(var r,i=0,o=t.length;!r&&i<o;i+=1)r=!1===t[i].apply(e,n);return!r}}t.exports={onSync:function(t,e,n){return o.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return o.call(this,"async",t,e,n)},off:function(t){var e;if(!this._callbacks)return this;for(t=t.split(i);e=t.shift();)delete this._callbacks[e];return this},trigger:function(t){var e,n,o,a,u;if(!this._callbacks)return this;for(t=t.split(i),o=[].slice.call(arguments,1);(e=t.shift())&&(n=this._callbacks[e]);)a=s(n.sync,this,[e].concat(o)),u=s(n.async,this,[e].concat(o)),a()&&r(u);return this}}},function(t,e,n){"use strict";var r=n(0),i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};r.isMsie()&&r.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(i.input,{marginTop:"-1px"}),t.exports=i},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){t.exports=function(t,e){return function(n,i,o){if("function"==typeof n&&"object"==typeof i||"object"==typeof o)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(o=n,n=""):1!==arguments.length&&"function"!=typeof i||(o=i,i=void 0),"object"==typeof n&&null!==n?(i=n,n=void 0):null==n&&(n="");var s,a="";return void 0!==n&&(a+=t+"="+encodeURIComponent(n)),void 0!==i&&(i.additionalUA&&(s=i.additionalUA,delete i.additionalUA),a=this.as._getSearchParams(i,a)),this._search(a,e,o,s)}};var r=n(5)},function(t,e,n){t.exports=function(t,e){var r=n(36),i=n(2),o={};return i(r(t),(function(n){!0!==e(n)&&(o[n]=t[n])})),o}},function(t,e){var n;n=window,t.exports=function(t){var e,n,r=function(){var e,n,r,i,o,s=[],a=s.concat,u=s.filter,c=s.slice,l=t.document,h={},f={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,g=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,v=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],w=l.createElement("table"),_=l.createElement("tr"),x={tr:l.createElement("tbody"),tbody:w,thead:w,tfoot:w,td:_,th:_,"*":l.createElement("div")},S=/complete|loaded|interactive/,C=/^[\w-]*$/,A={},E=A.toString,T={},k=l.createElement("div"),O={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},N=Array.isArray||function(t){return t instanceof Array};function j(t){return null==t?String(t):A[E.call(t)]||"object"}function I(t){return"function"==j(t)}function R(t){return null!=t&&t==t.window}function L(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function P(t){return"object"==j(t)}function D(t){return P(t)&&!R(t)&&Object.getPrototypeOf(t)==Object.prototype}function $(t){var e=!!t&&"length"in t&&t.length,r=n.type(t);return"function"!=r&&!R(t)&&("array"==r||0===e||"number"==typeof e&&e>0&&e-1 in t)}function q(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function M(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function H(t,e){return"number"!=typeof e||d[q(t)]?e:e+"px"}function F(t){return"children"in t?c.call(t.children):n.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function z(t,e){var n,r=t?t.length:0;for(n=0;n<r;n++)this[n]=t[n];this.length=r,this.selector=e||""}function B(t,n,r){for(e in n)r&&(D(n[e])||N(n[e]))?(D(n[e])&&!D(t[e])&&(t[e]={}),N(n[e])&&!N(t[e])&&(t[e]=[]),B(t[e],n[e],r)):void 0!==n[e]&&(t[e]=n[e])}function U(t,e){return null==e?n(t):n(t).filter(e)}function V(t,e,n,r){return I(e)?e.call(t,n,r):e}function K(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function J(t,e){var n=t.className||"",r=n&&void 0!==n.baseVal;if(void 0===e)return r?n.baseVal:n;r?n.baseVal=e:t.className=e}function W(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?n.parseJSON(t):t):t}catch(e){return t}}function X(t,e){e(t);for(var n=0,r=t.childNodes.length;n<r;n++)X(t.childNodes[n],e)}return T.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=k).appendChild(t),r=~T.qsa(i,e).indexOf(t),o&&k.removeChild(t),r},i=function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():""}))},o=function(t){return u.call(t,(function(e,n){return t.indexOf(e)==n}))},T.fragment=function(t,e,r){var i,o,s;return g.test(t)&&(i=n(l.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(m,"<$1></$2>")),void 0===e&&(e=p.test(t)&&RegExp.$1),e in x||(e="*"),(s=x[e]).innerHTML=""+t,i=n.each(c.call(s.childNodes),(function(){s.removeChild(this)}))),D(r)&&(o=n(i),n.each(r,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),i},T.Z=function(t,e){return new z(t,e)},T.isZ=function(t){return t instanceof T.Z},T.init=function(t,e){var r,i;if(!t)return T.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&p.test(t))r=T.fragment(t,RegExp.$1,e),t=null;else{if(void 0!==e)return n(e).find(t);r=T.qsa(l,t)}else{if(I(t))return n(l).ready(t);if(T.isZ(t))return t;if(N(t))i=t,r=u.call(i,(function(t){return null!=t}));else if(P(t))r=[t],t=null;else if(p.test(t))r=T.fragment(t.trim(),RegExp.$1,e),t=null;else{if(void 0!==e)return n(e).find(t);r=T.qsa(l,t)}}return T.Z(r,t)},(n=function(t,e){return T.init(t,e)}).extend=function(t){var e,n=c.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){B(t,n,e)})),t},T.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,s=C.test(o);return t.getElementById&&s&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:c.call(s&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},n.contains=l.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},n.type=j,n.isFunction=I,n.isWindow=R,n.isArray=N,n.isPlainObject=D,n.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},n.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},n.inArray=function(t,e,n){return s.indexOf.call(e,t,n)},n.camelCase=i,n.trim=function(t){return null==t?"":String.prototype.trim.call(t)},n.uuid=0,n.support={},n.expr={},n.noop=function(){},n.map=function(t,e){var r,i,o,s,a=[];if($(t))for(i=0;i<t.length;i++)null!=(r=e(t[i],i))&&a.push(r);else for(o in t)null!=(r=e(t[o],o))&&a.push(r);return(s=a).length>0?n.fn.concat.apply([],s):s},n.each=function(t,e){var n,r;if($(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},n.grep=function(t,e){return u.call(t,e)},t.JSON&&(n.parseJSON=JSON.parse),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){A["[object "+e+"]"]=e.toLowerCase()})),n.fn={constructor:T.Z,length:0,forEach:s.forEach,reduce:s.reduce,push:s.push,sort:s.sort,splice:s.splice,indexOf:s.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=T.isZ(e)?e.toArray():e;return a.apply(T.isZ(this)?this.toArray():this,n)},map:function(t){return n(n.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return n(c.apply(this,arguments))},ready:function(t){return S.test(l.readyState)&&l.body?t(n):l.addEventListener("DOMContentLoaded",(function(){t(n)}),!1),this},get:function(t){return void 0===t?c.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return s.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return I(t)?this.not(this.not(t)):n(u.call(this,(function(e){return T.matches(e,t)})))},add:function(t,e){return n(o(this.concat(n(t,e))))},is:function(t){return this.length>0&&T.matches(this[0],t)},not:function(t){var e=[];if(I(t)&&void 0!==t.call)this.each((function(n){t.call(this,n)||e.push(this)}));else{var r="string"==typeof t?this.filter(t):$(t)&&I(t.item)?c.call(t):n(t);this.forEach((function(t){r.indexOf(t)<0&&e.push(t)}))}return n(e)},has:function(t){return this.filter((function(){return P(t)?n.contains(this,t):n(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!P(t)?t:n(t)},last:function(){var t=this[this.length-1];return t&&!P(t)?t:n(t)},find:function(t){var e=this;return t?"object"==typeof t?n(t).filter((function(){var t=this;return s.some.call(e,(function(e){return n.contains(e,t)}))})):1==this.length?n(T.qsa(this[0],t)):this.map((function(){return T.qsa(this,t)})):n()},closest:function(t,e){var r=[],i="object"==typeof t&&n(t);return this.each((function(n,o){for(;o&&!(i?i.indexOf(o)>=0:T.matches(o,t));)o=o!==e&&!L(o)&&o.parentNode;o&&r.indexOf(o)<0&&r.push(o)})),n(r)},parents:function(t){for(var e=[],r=this;r.length>0;)r=n.map(r,(function(t){if((t=t.parentNode)&&!L(t)&&e.indexOf(t)<0)return e.push(t),t}));return U(e,t)},parent:function(t){return U(o(this.pluck("parentNode")),t)},children:function(t){return U(this.map((function(){return F(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||c.call(this.childNodes)}))},siblings:function(t){return U(this.map((function(t,e){return u.call(F(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return n.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,h[t]||(e=l.createElement(t),l.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),h[t]=n),h[t]))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=I(t);if(this[0]&&!e)var r=n(t).get(0),i=r.parentNode||this.length>1;return this.each((function(o){n(this).wrapAll(e?t.call(this,o):i?r.cloneNode(!0):r)}))},wrapAll:function(t){if(this[0]){var e;for(n(this[0]).before(t=n(t));(e=t.children()).length;)t=e.first();n(t).append(this)}return this},wrapInner:function(t){var e=I(t);return this.each((function(r){var i=n(this),o=i.contents(),s=e?t.call(this,r):t;o.length?o.wrapAll(s):i.append(s)}))},unwrap:function(){return this.parent().each((function(){n(this).replaceWith(n(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var e=n(this);(void 0===t?"none"==e.css("display"):t)?e.show():e.hide()}))},prev:function(t){return n(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return n(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var r=this.innerHTML;n(this).empty().append(V(this,t,e,r))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=V(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,n){var r;return"string"!=typeof t||1 in arguments?this.each((function(r){if(1===this.nodeType)if(P(t))for(e in t)K(this,e,t[e]);else K(this,t,V(this,n,r,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:void 0},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){K(this,t)}),this)}))},prop:function(t,e){return t=O[t]||t,1 in arguments?this.each((function(n){this[t]=V(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=O[t]||t,this.each((function(){delete this[t]}))},data:function(t,e){var n="data-"+t.replace(v,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?W(r):void 0},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=V(this,t,e,this.value)}))):this[0]&&(this[0].multiple?n(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var r=n(this),i=V(this,e,t,r.offset()),o=r.offsetParent().offset(),s={top:i.top-o.top,left:i.left-o.left};"static"==r.css("position")&&(s.position="relative"),r.css(s)}));if(!this.length)return null;if(l.documentElement!==this[0]&&!n.contains(l.documentElement,this[0]))return{top:0,left:0};var r=this[0].getBoundingClientRect();return{left:r.left+t.pageXOffset,top:r.top+t.pageYOffset,width:Math.round(r.width),height:Math.round(r.height)}},css:function(t,r){if(arguments.length<2){var o=this[0];if("string"==typeof t){if(!o)return;return o.style[i(t)]||getComputedStyle(o,"").getPropertyValue(t)}if(N(t)){if(!o)return;var s={},a=getComputedStyle(o,"");return n.each(t,(function(t,e){s[e]=o.style[i(e)]||a.getPropertyValue(e)})),s}}var u="";if("string"==j(t))r||0===r?u=q(t)+":"+H(t,r):this.each((function(){this.style.removeProperty(q(t))}));else for(e in t)t[e]||0===t[e]?u+=q(e)+":"+H(e,t[e])+";":this.each((function(){this.style.removeProperty(q(e))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(n(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&s.some.call(this,(function(t){return this.test(J(t))}),M(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){r=[];var i=J(this);V(this,t,e,i).split(/\s+/g).forEach((function(t){n(this).hasClass(t)||r.push(t)}),this),r.length&&J(this,i+(i?" ":"")+r.join(" "))}})):this},removeClass:function(t){return this.each((function(e){if("className"in this){if(void 0===t)return J(this,"");r=J(this),V(this,t,e,r).split(/\s+/g).forEach((function(t){r=r.replace(M(t)," ")})),J(this,r.trim())}}))},toggleClass:function(t,e){return t?this.each((function(r){var i=n(this);V(this,t,r,J(this)).split(/\s+/g).forEach((function(t){(void 0===e?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return void 0===t?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return void 0===t?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),r=this.offset(),i=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return r.top-=parseFloat(n(t).css("margin-top"))||0,r.left-=parseFloat(n(t).css("margin-left"))||0,i.top+=parseFloat(n(e[0]).css("border-top-width"))||0,i.left+=parseFloat(n(e[0]).css("border-left-width"))||0,{top:r.top-i.top,left:r.left-i.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||l.body;t&&!y.test(t.nodeName)&&"static"==n(t).css("position");)t=t.offsetParent;return t}))}},n.fn.detach=n.fn.remove,["width","height"].forEach((function(t){var e=t.replace(/./,(function(t){return t[0].toUpperCase()}));n.fn[t]=function(r){var i,o=this[0];return void 0===r?R(o)?o["inner"+e]:L(o)?o.documentElement["scroll"+e]:(i=this.offset())&&i[t]:this.each((function(e){(o=n(this)).css(t,V(this,r,e,o[t]()))}))}})),["after","prepend","before","append"].forEach((function(e,r){var i=r%2;n.fn[e]=function(){var e,o,s=n.map(arguments,(function(t){var r=[];return"array"==(e=j(t))?(t.forEach((function(t){return void 0!==t.nodeType?r.push(t):n.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(T.fragment(t)))})),r):"object"==e||null==t?t:T.fragment(t)})),a=this.length>1;return s.length<1?this:this.each((function(e,u){o=i?u:u.parentNode,u=0==r?u.nextSibling:1==r?u.firstChild:2==r?u:null;var c=n.contains(l.documentElement,o);s.forEach((function(e){if(a)e=e.cloneNode(!0);else if(!o)return n(e).remove();o.insertBefore(e,u),c&&X(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},n.fn[i?e+"To":"insert"+(r?"Before":"After")]=function(t){return n(t)[e](this),this}})),T.Z.prototype=z.prototype=n.fn,T.uniq=o,T.deserializeValue=W,n.zepto=T,n}();return function(e){var n=1,r=Array.prototype.slice,i=e.isFunction,o=function(t){return"string"==typeof t},s={},a={},u="onfocusin"in t,c={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};function h(t){return t._zid||(t._zid=n++)}function f(t,e,n,r){if((e=d(e)).ns)var i=(o=e.ns,new RegExp("(?:^| )"+o.replace(" "," .* ?")+"(?: |$)"));var o;return(s[h(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!r||t.sel==r)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function p(t,e){return t.del&&!u&&t.e in c||!!e}function g(t){return l[t]||u&&c[t]||t}function m(t,n,r,i,o,a,u){var c=h(t),f=s[c]||(s[c]=[]);n.split(/\s/).forEach((function(n){if("ready"==n)return e(document).ready(r);var s=d(n);s.fn=r,s.sel=o,s.e in l&&(r=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return s.fn.apply(this,arguments)}),s.del=a;var c=a||r;s.proxy=function(e){if(!(e=x(e)).isImmediatePropagationStopped()){try{var n=Object.getOwnPropertyDescriptor(e,"data");n&&!n.writable||(e.data=i)}catch(e){}var r=c.apply(t,null==e._args?[e]:[e].concat(e._args));return!1===r&&(e.preventDefault(),e.stopPropagation()),r}},s.i=f.length,f.push(s),"addEventListener"in t&&t.addEventListener(g(s.e),s.proxy,p(s,u))}))}function y(t,e,n,r,i){var o=h(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,r).forEach((function(e){delete s[o][e.i],"removeEventListener"in t&&t.removeEventListener(g(e.e),e.proxy,p(e,i))}))}))}a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",e.event={add:m,remove:y},e.proxy=function(t,n){var s=2 in arguments&&r.call(arguments,2);if(i(t)){var a=function(){return t.apply(n,s?s.concat(r.call(arguments)):arguments)};return a._zid=h(t),a}if(o(n))return s?(s.unshift(t[n],t),e.proxy.apply(null,s)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var v=function(){return!0},b=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function x(t,n){return!n&&t.isDefaultPrevented||(n||(n=t),e.each(_,(function(e,r){var i=n[e];t[e]=function(){return this[r]=v,i&&i.apply(n,arguments)},t[r]=b})),t.timeStamp||(t.timeStamp=Date.now()),(void 0!==n.defaultPrevented?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=v)),t}function S(t){var e,n={originalEvent:t};for(e in t)w.test(e)||void 0===t[e]||(n[e]=t[e]);return x(n,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,s,a,u){var c,l,h=this;return t&&!o(t)?(e.each(t,(function(t,e){h.on(t,n,s,e,u)})),h):(o(n)||i(a)||!1===a||(a=s,s=n,n=void 0),void 0!==a&&!1!==s||(a=s,s=void 0),!1===a&&(a=b),h.each((function(i,o){u&&(c=function(t){return y(o,t.type,a),a.apply(this,arguments)}),n&&(l=function(t){var i,s=e(t.target).closest(n,o).get(0);if(s&&s!==o)return i=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||a).apply(s,[i].concat(r.call(arguments,1)))}),m(o,t,a,s,n,l||c)})))},e.fn.off=function(t,n,r){var s=this;return t&&!o(t)?(e.each(t,(function(t,e){s.off(t,n,e)})),s):(o(n)||i(r)||!1===r||(r=n,n=void 0),!1===r&&(r=b),s.each((function(){y(this,t,r,n)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):x(t))._args=n,this.each((function(){t.type in c&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var r,i;return this.each((function(s,a){(r=S(o(t)?e.Event(t):t))._args=n,r.target=a,e.each(f(a,t.type||t),(function(t,e){if(i=e.proxy(r),r.isImmediatePropagationStopped())return!1}))})),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(a[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),x(n)}}(r),n=[],r.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,r=t.camelCase,i=t.expando="Zepto"+ +new Date,o=[];function s(n,s,a){var u=n[i]||(n[i]=++t.uuid),c=e[u]||(e[u]=function(e){var n={};return t.each(e.attributes||o,(function(e,i){0==i.name.indexOf("data-")&&(n[r(i.name.replace("data-",""))]=t.zepto.deserializeValue(i.value))})),n}(n));return void 0!==s&&(c[r(s)]=a),c}t.fn.data=function(o,a){return void 0===a?t.isPlainObject(o)?this.each((function(e,n){t.each(o,(function(t,e){s(n,t,e)}))})):0 in this?function(o,a){var u=o[i],c=u&&e[u];if(void 0===a)return c||s(o);if(c){if(a in c)return c[a];var l=r(a);if(l in c)return c[l]}return n.call(t(o),a)}(this[0],o):void 0:this.each((function(){s(this,o,a)}))},t.data=function(e,n,r){return t(e).data(n,r)},t.hasData=function(n){var r=n[i],o=r&&e[r];return!!o&&!t.isEmptyObject(o)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var o=this[i],s=o&&e[o];s&&t.each(n||s,(function(t){delete s[n?r(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(r),r}(n)},function(t,e,n){"use strict";var r=n(0),i=n(1);function o(t){t&&t.el||r.error("EventBus initialized without el"),this.$el=i.element(t.el)}r.mixin(o.prototype,{trigger:function(t){var e=[].slice.call(arguments,1),n=r.Event("autocomplete:"+t);return this.$el.trigger(n,e),n}}),t.exports=o},function(t,e,n){"use strict";t.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},function(t,e){t.exports="0.32.0"},function(t,e,n){"use strict";t.exports=function(t){var e=t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(15),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="2.6.1"},function(t,e,n){"use strict";var r,i=n(23),o=(r=i)&&r.__esModule?r:{default:r};t.exports=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(24)),i=s(n(25)),o=s(n(21));function s(t){return t&&t.__esModule?t:{default:t}}var a=(0,r.default)(i.default);a.version=o.default,e.default=a},function(t,e,n){"use strict";var r=Function.prototype.bind;t.exports=function(t){var e=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return new(r.apply(t,[null].concat(n)))};return e.__proto__=t,e.prototype=t.prototype,e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=f(n(26)),s=f(n(29)),a=f(n(49)),u=f(n(64)),c=f(n(65)),l=f(n(21)),h=f(n(20));function f(t){return t&&t.__esModule?t:{default:t}}var d=function(){function t(e){var n=e.apiKey,i=e.indexName,o=e.inputSelector,c=e.appId,f=void 0===c?"BH4D9OD16A":c,d=e.debug,p=void 0!==d&&d,g=e.algoliaOptions,m=void 0===g?{}:g,y=e.autocompleteOptions,v=void 0===y?{debug:!1,hint:!1,autoselect:!0}:y,b=e.transformData,w=void 0!==b&&b,_=e.queryHook,x=void 0!==_&&_,S=e.handleSelected,C=void 0!==S&&S,A=e.enhancedSearchInput,E=void 0!==A&&A,T=e.layout,k=void 0===T?"collumns":T;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),t.checkArguments({apiKey:n,indexName:i,inputSelector:o,debug:p,algoliaOptions:m,autocompleteOptions:v,transformData:w,queryHook:x,handleSelected:C,enhancedSearchInput:E,layout:k}),this.apiKey=n,this.appId=f,this.indexName=i,this.input=t.getInputFromSelector(o),this.algoliaOptions=r({hitsPerPage:5},m);var O=!(!v||!v.debug)&&v.debug;v.debug=p||O,this.autocompleteOptions=v,this.autocompleteOptions.cssClasses=this.autocompleteOptions.cssClasses||{},this.autocompleteOptions.cssClasses.prefix=this.autocompleteOptions.cssClasses.prefix||"ds",C=C||this.handleSelected,this.isSimpleLayout="simple"===k,this.client=(0,s.default)(this.appId,this.apiKey),this.client.addAlgoliaAgent("docsearch.js "+l.default),E&&(this.input=t.injectSearchBox(this.input)),this.autocomplete=(0,a.default)(this.input,v,[{source:this.getAutocompleteSource(w,x),templates:{suggestion:t.getSuggestionTemplate(this.isSimpleLayout),footer:u.default.footer,empty:t.getEmptyTemplate()}}]),C&&(0,h.default)(".algolia-autocomplete").on("click",".ds-suggestions a",(function(t){t.preventDefault()})),this.autocomplete.on("autocomplete:selected",C.bind(null,this.autocomplete.autocomplete)),this.autocomplete.on("autocomplete:shown",this.handleShown.bind(null,this.input)),E&&t.bindSearchBoxEvent()}return i(t,[{key:"getAutocompleteSource",value:function(e,n){var r=this;return function(i,o){n&&(i=n(i)||i),r.client.search([{indexName:r.indexName,query:i,params:r.algoliaOptions}]).then((function(n){var r=n.results[0].hits;e&&(r=e(r)||r),o(t.formatHits(r))}))}}},{key:"handleSelected",value:function(t,e,n){t.setVal(""),window.location.assign(n.url)}},{key:"handleShown",value:function(t){var e=t.offset().left+t.width()/2,n=(0,h.default)(document).width()/2;isNaN(n)&&(n=900);var r=e-n>=0?"algolia-autocomplete-right":"algolia-autocomplete-left",i=e-n<0?"algolia-autocomplete-right":"algolia-autocomplete-left",o=(0,h.default)(".algolia-autocomplete");o.hasClass(r)||o.addClass(r),o.hasClass(i)&&o.removeClass(i)}}],[{key:"checkArguments",value:function(e){if(!e.apiKey||!e.indexName)throw new Error("Usage:\n  documentationSearch({\n  apiKey,\n  indexName,\n  inputSelector,\n  [ appId ],\n  [ algoliaOptions.{hitsPerPage} ]\n  [ autocompleteOptions.{hint,debug} ]\n})");if("string"!=typeof e.inputSelector)throw new Error("Error: inputSelector:"+e.inputSelector+"  must be a string. Each selector must match only one element and separated by ','");if(!t.getInputFromSelector(e.inputSelector))throw new Error("Error: No input element in the page matches "+e.inputSelector)}},{key:"injectSearchBox",value:function(t){t.before(u.default.searchBox);var e=t.prev().prev().find("input");return t.remove(),e}},{key:"bindSearchBoxEvent",value:function(){(0,h.default)('.searchbox [type="reset"]').on("click",(function(){(0,h.default)("input#docsearch").focus(),(0,h.default)(this).addClass("hide"),a.default.autocomplete.setVal("")})),(0,h.default)("input#docsearch").on("keyup",(function(){var t=document.querySelector("input#docsearch"),e=document.querySelector('.searchbox [type="reset"]');e.className="searchbox__reset",0===t.value.length&&(e.className+=" hide")}))}},{key:"getInputFromSelector",value:function(t){var e=(0,h.default)(t).filter("input");return e.length?(0,h.default)(e[0]):null}},{key:"formatHits",value:function(e){var n=c.default.deepClone(e).map((function(t){return t._highlightResult&&(t._highlightResult=c.default.mergeKeyWithParent(t._highlightResult,"hierarchy")),c.default.mergeKeyWithParent(t,"hierarchy")})),r=c.default.groupBy(n,"lvl0");return h.default.each(r,(function(t,e){var n=c.default.groupBy(e,"lvl1"),i=c.default.flattenAndFlagFirst(n,"isSubCategoryHeader");r[t]=i})),(r=c.default.flattenAndFlagFirst(r,"isCategoryHeader")).map((function(e){var n=t.formatURL(e),r=c.default.getHighlightedValue(e,"lvl0"),i=c.default.getHighlightedValue(e,"lvl1")||r,o=c.default.compact([c.default.getHighlightedValue(e,"lvl2")||i,c.default.getHighlightedValue(e,"lvl3"),c.default.getHighlightedValue(e,"lvl4"),c.default.getHighlightedValue(e,"lvl5"),c.default.getHighlightedValue(e,"lvl6")]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>'),s=c.default.getSnippetedValue(e,"content"),a=i&&""!==i||o&&""!==o,u=o&&""!==o&&o!==i,l=!u&&i&&""!==i&&i!==r;return{isLvl0:!l&&!u,isLvl1:l,isLvl2:u,isLvl1EmptyOrDuplicate:!i||""===i||i===r,isCategoryHeader:e.isCategoryHeader,isSubCategoryHeader:e.isSubCategoryHeader,isTextOrSubcategoryNonEmpty:a,category:r,subcategory:i,title:o,text:s,url:n}}))}},{key:"formatURL",value:function(t){var e=t.url,n=t.anchor;return e?-1!==e.indexOf("#")?e:n?t.url+"#"+t.anchor:e:n?"#"+t.anchor:(console.warn("no anchor nor url for : ",JSON.stringify(t)),null)}},{key:"getEmptyTemplate",value:function(){return function(t){return o.default.compile(u.default.empty).render(t)}}},{key:"getSuggestionTemplate",value:function(t){var e=t?u.default.suggestionSimple:u.default.suggestion,n=o.default.compile(e);return function(t){return n.render(t)}}}]),t}();e.default=d},function(t,e,n){var r=n(27);r.Template=n(28).Template,r.template=r.Template,t.exports=r},function(t,e,n){!function(t){var e=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,o=/\\/g,s=/\u2028/,a=/\u2029/;function u(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function c(t,e,n){if(e.charAt(n)!=t.charAt(0))return!1;for(var r=1,i=t.length;r<i;r++)if(e.charAt(n+r)!=t.charAt(r))return!1;return!0}t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},t.scan=function(n,r){var i,o=n.length,s=0,a=null,l=null,h="",f=[],d=!1,p=0,g=0,m="{{",y="}}";function v(){h.length>0&&(f.push({tag:"_t",text:new String(h)}),h="")}function b(n,r){if(v(),n&&function(){for(var n=!0,r=g;r<f.length;r++)if(!(n=t.tags[f[r].tag]<t.tags._v||"_t"==f[r].tag&&null===f[r].text.match(e)))return!1;return n}())for(var i,o=g;o<f.length;o++)f[o].text&&((i=f[o+1])&&">"==i.tag&&(i.indent=f[o].text.toString()),f.splice(o,1));else r||f.push({tag:"\n"});d=!1,g=f.length}function w(t,e){var n="="+y,r=t.indexOf(n,e),i=u(t.substring(t.indexOf("=",e)+1,r)).split(" ");return m=i[0],y=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),m=r[0],y=r[1]),p=0;p<o;p++)0==s?c(m,n,p)?(--p,v(),s=1):"\n"==n.charAt(p)?b(d):h+=n.charAt(p):1==s?(p+=m.length-1,"="==(a=(l=t.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=w(n,p),s=0):(l&&p++,s=2),d=p):c(y,n,p)?(f.push({tag:a,n:u(h),otag:m,ctag:y,i:"/"==a?d-m.length:p+y.length}),h="",p+=y.length-1,s=0,"{"==a&&("}}"==y?p++:"}"===(i=f[f.length-1]).n.substr(i.n.length-1)&&(i.n=i.n.substring(0,i.n.length-1)))):h+=n.charAt(p);return b(d,!0),f};var l={_t:!0,"\n":!0,$:!0,"/":!0};function h(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n].o==t.n)return t.tag="#",!0}function f(t,e,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==t&&n[r].o==e)return!0}function d(t){var e=[];for(var n in t.partials)e.push('"'+g(n)+'":{name:"'+g(t.partials[n].name)+'", '+d(t.partials[n])+"}");return"partials: {"+e.join(",")+"}, subs: "+function(t){var e=[];for(var n in t)e.push('"'+g(n)+'": function(c,p,t,i) {'+t[n]+"}");return"{ "+e.join(",")+" }"}(t.subs)}t.stringify=function(e,n,r){return"{code: function (c,p,i) { "+t.wrapMain(e.code)+" },"+d(e)+"}"};var p=0;function g(t){return t.replace(o,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(s,"\\u2028").replace(a,"\\u2029")}function m(t){return~t.indexOf(".")?"d":"f"}function y(t,e){var n="<"+(e.prefix||"")+t.n+p++;return e.partials[n]={name:t.n,partials:{}},e.code+='t.b(t.rp("'+g(n)+'",c,p,"'+(t.indent||"")+'"));',n}function v(t,e){e.code+="t.b(t.t(t."+m(t.n)+'("'+g(t.n)+'",c,p,0)));'}function b(t){return"t.b("+t+");"}t.generate=function(e,n,r){p=0;var i={code:"",subs:{},partials:{}};return t.walk(e,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,e,n){var r=this.makePartials(t);return r.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(r,e,this,n)},t.makePartials=function(t){var e,n={subs:{},partials:t.partials,name:t.name};for(e in n.partials)n.partials[e]=this.makePartials(n.partials[e]);for(e in t.subs)n.subs[e]=new Function("c","p","t","i",t.subs[e]);return n},t.codegen={"#":function(e,n){n.code+="if(t.s(t."+m(e.n)+'("'+g(e.n)+'",c,p,1),c,p,0,'+e.i+","+e.end+',"'+e.otag+" "+e.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(e.nodes,n),n.code+="});c.pop();}"},"^":function(e,n){n.code+="if(!t.s(t."+m(e.n)+'("'+g(e.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(e.nodes,n),n.code+="};"},">":y,"<":function(e,n){var r={partials:{},code:"",subs:{},inPartial:!0};t.walk(e.nodes,r);var i=n.partials[y(e,n)];i.subs=r.subs,i.partials=r.partials},$:function(e,n){var r={subs:{},code:"",partials:n.partials,prefix:e.n};t.walk(e.nodes,r),n.subs[e.n]=r.code,n.inPartial||(n.code+='t.sub("'+g(e.n)+'",c,p,i);')},"\n":function(t,e){e.code+=b('"\\n"'+(t.last?"":" + i"))},_v:function(t,e){e.code+="t.b(t.v(t."+m(t.n)+'("'+g(t.n)+'",c,p,0)));'},_t:function(t,e){e.code+=b('"'+g(t.text)+'"')},"{":v,"&":v},t.walk=function(e,n){for(var r,i=0,o=e.length;i<o;i++)(r=t.codegen[e[i].tag])&&r(e[i],n);return n},t.parse=function(e,n,r){return function e(n,r,i,o){var s,a=[],u=null,c=null;for(s=i[i.length-1];n.length>0;){if(c=n.shift(),s&&"<"==s.tag&&!(c.tag in l))throw new Error("Illegal content in < super tag.");if(t.tags[c.tag]<=t.tags.$||h(c,o))i.push(c),c.nodes=e(n,c.tag,i,o);else{if("/"==c.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+c.n);if(u=i.pop(),c.n!=u.n&&!f(c.n,u.n,o))throw new Error("Nesting error: "+u.n+" vs. "+c.n);return u.end=c.i,a}"\n"==c.tag&&(c.last=0==n.length||"\n"==n[0].tag)}a.push(c)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return a}(e,0,[],(r=r||{}).sectionTags||[])},t.cache={},t.cacheKey=function(t,e){return[t,!!e.asString,!!e.disableLambda,e.delimiters,!!e.modelGet].join("||")},t.compile=function(e,n){n=n||{};var r=t.cacheKey(e,n),i=this.cache[r];if(i){var o=i.partials;for(var s in o)delete o[s].instance;return i}return i=this.generate(this.parse(this.scan(e,n.delimiters),e,n),e,n),this.cache[r]=i}}(e)},function(t,e,n){!function(t){function e(t,e,n){var r;return e&&"object"==typeof e&&(void 0!==e[t]?r=e[t]:n&&e.get&&"function"==typeof e.get&&(r=e.get(t))),r}t.Template=function(t,e,n,r){t=t||{},this.r=t.code||this.r,this.c=n,this.options=r||{},this.text=e||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,e,n){return""},v:function(t){return t=u(t),a.test(t)?t.replace(n,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(o,"&#39;").replace(s,"&quot;"):t},t:u,render:function(t,e,n){return this.ri([t],e||{},n)},ri:function(t,e,n){return this.r(t,e,n)},ep:function(t,e){var n=this.partials[t],r=e[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[t].base=r,n.subs){for(key in e.stackText||(e.stackText={}),n.subs)e.stackText[key]||(e.stackText[key]=void 0!==this.activeSub&&e.stackText[this.activeSub]?e.stackText[this.activeSub]:this.text);r=function(t,e,n,r,i,o){function s(){}function a(){}var u;s.prototype=t,a.prototype=t.subs;var c=new s;for(u in c.subs=new a,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=o,e)r[u]||(r[u]=e[u]);for(u in r)c.subs[u]=r[u];for(u in i=i||{},c.stackPartials=i,n)i[u]||(i[u]=n[u]);for(u in i)c.partials[u]=i[u];return c}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,e.stackText)}return this.partials[t].instance=r,r},rp:function(t,e,n,r){var i=this.ep(t,n);return i?i.ri(e,n,r):""},rs:function(t,e,n){var r=t[t.length-1];if(c(r))for(var i=0;i<r.length;i++)t.push(r[i]),n(t,e,this),t.pop();else n(t,e,this)},s:function(t,e,n,r,i,o,s){var a;return(!c(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,e,n,r,i,o,s)),a=!!t,!r&&a&&e&&e.push("object"==typeof t?t:e[e.length-1]),a)},d:function(t,n,r,i){var o,s=t.split("."),a=this.f(s[0],n,r,i),u=this.options.modelGet,l=null;if("."===t&&c(n[n.length-2]))a=n[n.length-1];else for(var h=1;h<s.length;h++)void 0!==(o=e(s[h],a,u))?(l=a,a=o):a="";return!(i&&!a)&&(i||"function"!=typeof a||(n.push(l),a=this.mv(a,n,r),n.pop()),a)},f:function(t,n,r,i){for(var o=!1,s=!1,a=this.options.modelGet,u=n.length-1;u>=0;u--)if(void 0!==(o=e(t,n[u],a))){s=!0;break}return s?(i||"function"!=typeof o||(o=this.mv(o,n,r)),o):!i&&""},ls:function(t,e,n,r,i){var o=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(u(t.call(e,r)),e,n)),this.options.delimiters=o,!1},ct:function(t,e,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,e,n,r,i,o,s){var a,u=e[e.length-1],c=t.call(u);return"function"==typeof c?!!r||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,u,n,a.substring(i,o),s)):c},mv:function(t,e,n){var r=e[e.length-1],i=t.call(r);return"function"==typeof i?this.ct(u(i.call(r)),r,n):i},sub:function(t,e,n,r){var i=this.subs[t];i&&(this.activeSub=t,i(e,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,i=/>/g,o=/\'/g,s=/\"/g,a=/[&<>\"\']/;function u(t){return String(null==t?"":t)}var c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},function(t,e,n){"use strict";var r=n(30),i=n(41);t.exports=i(r,"(lite) ")},function(t,e,n){t.exports=u;var r=n(5),i=n(31),o=n(32),s=n(38),a=Object({NODE_ENV:"production"}).RESET_APP_DATA_TIMER&&parseInt(Object({NODE_ENV:"production"}).RESET_APP_DATA_TIMER,10)||12e4;function u(t,e,i){var o=n(8)("algoliasearch"),s=n(3),a=n(6),u=n(7),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==i._allowEmptyCredentials&&!t)throw new r.AlgoliaSearchError("Please provide an application ID. "+l);if(!0!==i._allowEmptyCredentials&&!e)throw new r.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=t,this.apiKey=e,this.hosts={read:[],write:[]},i=i||{},this._timeouts=i.timeouts||{connect:1e3,read:2e3,write:3e4},i.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=i.timeout);var h=i.protocol||"https:";if(/:$/.test(h)||(h+=":"),"http:"!==h&&"https:"!==h)throw new r.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+i.protocol+"`)");if(this._checkAppIdData(),i.hosts)a(i.hosts)?(this.hosts.read=s(i.hosts),this.hosts.write=s(i.hosts)):(this.hosts.read=s(i.hosts.read),this.hosts.write=s(i.hosts.write));else{var f=u(this._shuffleResult,(function(e){return t+"-"+e+".algolianet.com"})),d=(!1===i.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+d].concat(f),this.hosts.write=[this.applicationID+".algolia.net"].concat(f)}this.hosts.read=u(this.hosts.read,c(h)),this.hosts.write=u(this.hosts.write,c(h)),this.extraHeaders={},this.cache=i._cache||{},this._ua=i._ua,this._useCache=!(void 0!==i._useCache&&!i._cache)||i._useCache,this._useRequestCache=this._useCache&&i._useRequestCache,this._useFallback=void 0===i.useFallback||i.useFallback,this._setTimeout=i._setTimeout,o("init done, %j",this)}function c(t){return function(e){return t+"//"+e.toLowerCase()}}function l(t){if(void 0===Array.prototype.toJSON)return JSON.stringify(t);var e=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(t);return Array.prototype.toJSON=e,n}function h(t){var e={};for(var n in t){var r;Object.prototype.hasOwnProperty.call(t,n)&&(r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":t[n],e[n]=r)}return e}u.prototype.initIndex=function(t){return new o(this,t)},u.prototype.setExtraHeader=function(t,e){this.extraHeaders[t.toLowerCase()]=e},u.prototype.getExtraHeader=function(t){return this.extraHeaders[t.toLowerCase()]},u.prototype.unsetExtraHeader=function(t){delete this.extraHeaders[t.toLowerCase()]},u.prototype.addAlgoliaAgent=function(t){-1===this._ua.indexOf(";"+t)&&(this._ua+=";"+t)},u.prototype._jsonRequest=function(t){this._checkAppIdData();var e,o,s,a=n(8)("algoliasearch:"+t.url),u=t.additionalUA||"",c=t.cache,f=this,d=0,p=!1,g=f._useFallback&&f._request.fallback&&t.fallback;this.apiKey.length>500&&void 0!==t.body&&(void 0!==t.body.params||void 0!==t.body.requests)?(t.body.apiKey=this.apiKey,s=this._computeRequestHeaders({additionalUA:u,withApiKey:!1,headers:t.headers})):s=this._computeRequestHeaders({additionalUA:u,headers:t.headers}),void 0!==t.body&&(e=l(t.body)),a("request start");var m=[];function y(t,e,n){return f._useCache&&t&&e&&void 0!==e[n]}function v(e,n){if(y(f._useRequestCache,c,o)&&e.catch((function(){delete c[o]})),"function"!=typeof t.callback)return e.then(n);e.then((function(e){i((function(){t.callback(null,n(e))}),f._setTimeout||setTimeout)}),(function(e){i((function(){t.callback(e)}),f._setTimeout||setTimeout)}))}if(f._useCache&&f._useRequestCache&&(o=t.url),f._useCache&&f._useRequestCache&&e&&(o+="_body_"+e),y(f._useRequestCache,c,o)){a("serving request from cache");var b=c[o];return v("function"!=typeof b.then?f._promise.resolve({responseText:b}):b,(function(t){return JSON.parse(t.responseText)}))}var w=function n(i,v){f._checkAppIdData();var b=new Date;if(f._useCache&&!f._useRequestCache&&(o=t.url),f._useCache&&!f._useRequestCache&&e&&(o+="_body_"+v.body),y(!f._useRequestCache,c,o)){a("serving response from cache");var w=c[o];return f._promise.resolve({body:JSON.parse(w),responseText:w})}if(d>=f.hosts[t.hostType].length)return!g||p?(a("could not get any response"),f._promise.reject(new r.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+f.applicationID,{debugData:m}))):(a("switching to fallback"),d=0,v.method=t.fallback.method,v.url=t.fallback.url,v.jsonBody=t.fallback.body,v.jsonBody&&(v.body=l(v.jsonBody)),s=f._computeRequestHeaders({additionalUA:u,headers:t.headers}),v.timeouts=f._getTimeoutsForRequest(t.hostType),f._setHostIndexByType(0,t.hostType),p=!0,n(f._request.fallback,v));var _=f._getHostByType(t.hostType),x=_+v.url,S={body:v.body,jsonBody:v.jsonBody,method:v.method,headers:s,timeouts:v.timeouts,debug:a,forceAuthHeaders:v.forceAuthHeaders};return a("method: %s, url: %s, headers: %j, timeouts: %d",S.method,x,S.headers,S.timeouts),i===f._request.fallback&&a("using fallback"),i.call(f,x,S).then((function(t){var n=t&&t.body&&t.body.message&&t.body.status||t.statusCode||t&&t.body&&200;a("received response: statusCode: %s, computed statusCode: %d, headers: %j",t.statusCode,n,t.headers);var i=2===Math.floor(n/100),u=new Date;if(m.push({currentHost:_,headers:h(s),content:e||null,contentLength:void 0!==e?e.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:u,duration:u-b,statusCode:n}),i)return f._useCache&&!f._useRequestCache&&c&&(c[o]=t.responseText),{responseText:t.responseText,body:t.body};if(4!==Math.floor(n/100))return d+=1,C();a("unrecoverable error");var l=new r.AlgoliaSearchError(t.body&&t.body.message,{debugData:m,statusCode:n});return f._promise.reject(l)}),(function(o){a("error: %s, stack: %s",o.message,o.stack);var u=new Date;return m.push({currentHost:_,headers:h(s),content:e||null,contentLength:void 0!==e?e.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:u,duration:u-b}),o instanceof r.AlgoliaSearchError||(o=new r.Unknown(o&&o.message,o)),d+=1,o instanceof r.Unknown||o instanceof r.UnparsableJSON||d>=f.hosts[t.hostType].length&&(p||!g)?(o.debugData=m,f._promise.reject(o)):o instanceof r.RequestTimeout?(a("retrying request with higher timeout"),f._incrementHostIndex(t.hostType),f._incrementTimeoutMultipler(),v.timeouts=f._getTimeoutsForRequest(t.hostType),n(i,v)):C()}));function C(){return a("retrying request"),f._incrementHostIndex(t.hostType),n(i,v)}}(f._request,{url:t.url,method:t.method,body:e,jsonBody:t.body,timeouts:f._getTimeoutsForRequest(t.hostType),forceAuthHeaders:t.forceAuthHeaders});return f._useCache&&f._useRequestCache&&c&&(c[o]=w),v(w,(function(t){return t.body}))},u.prototype._getSearchParams=function(t,e){if(null==t)return e;for(var n in t)null!==n&&void 0!==t[n]&&t.hasOwnProperty(n)&&(e+=""===e?"":"&",e+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(t[n])?l(t[n]):t[n]));return e},u.prototype._computeRequestHeaders=function(t){var e=n(2),r={"x-algolia-agent":t.additionalUA?this._ua+";"+t.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==t.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),e(this.extraHeaders,(function(t,e){r[e]=t})),t.headers&&e(t.headers,(function(t,e){r[e]=t})),r},u.prototype.search=function(t,e,r){var i=n(6),o=n(7);if(!i(t))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof e?(r=e,e={}):void 0===e&&(e={});var s=this,a={requests:o(t,(function(t){var e="";return void 0!==t.query&&(e+="query="+encodeURIComponent(t.query)),{indexName:t.indexName,params:s._getSearchParams(t.params,e)}}))},u=o(a.requests,(function(t,e){return e+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(t.indexName)+"?"+t.params)})).join("&");return void 0!==e.strategy&&(a.strategy=e.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:a,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:r})},u.prototype.searchForFacetValues=function(t){var e=n(6),r=n(7),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!e(t))throw new Error(i);var o=this;return o._promise.all(r(t,(function(t){if(!t||void 0===t.indexName||void 0===t.params.facetName||void 0===t.params.facetQuery)throw new Error(i);var e=n(3),r=n(14),s=t.indexName,a=t.params,u=a.facetName,c=r(e(a),(function(t){return"facetName"===t})),l=o._getSearchParams(c,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(s)+"/facets/"+encodeURIComponent(u)+"/query",hostType:"read",body:{params:l}})})))},u.prototype.setSecurityTags=function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],n=0;n<t.length;++n)if("[object Array]"===Object.prototype.toString.call(t[n])){for(var r=[],i=0;i<t[n].length;++i)r.push(t[n][i]);e.push("("+r.join(",")+")")}else e.push(t[n]);t=e.join(",")}this.securityTags=t},u.prototype.setUserToken=function(t){this.userToken=t},u.prototype.clearCache=function(){this.cache={}},u.prototype.setRequestTimeout=function(t){t&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=t)},u.prototype.setTimeouts=function(t){this._timeouts=t},u.prototype.getTimeouts=function(){return this._timeouts},u.prototype._getAppIdData=function(){var t=s.get(this.applicationID);return null!==t&&this._cacheAppIdData(t),t},u.prototype._setAppIdData=function(t){return t.lastChange=(new Date).getTime(),this._cacheAppIdData(t),s.set(this.applicationID,t)},u.prototype._checkAppIdData=function(){var t=this._getAppIdData(),e=(new Date).getTime();return null===t||e-t.lastChange>a?this._resetInitialAppIdData(t):t},u.prototype._resetInitialAppIdData=function(t){var e=t||{};return e.hostIndexes={read:0,write:0},e.timeoutMultiplier=1,e.shuffleResult=e.shuffleResult||function(t){for(var e,n,r=t.length;0!==r;)n=Math.floor(Math.random()*r),e=t[r-=1],t[r]=t[n],t[n]=e;return t}([1,2,3]),this._setAppIdData(e)},u.prototype._cacheAppIdData=function(t){this._hostIndexes=t.hostIndexes,this._timeoutMultiplier=t.timeoutMultiplier,this._shuffleResult=t.shuffleResult},u.prototype._partialAppIdDataUpdate=function(t){var e=n(2),r=this._getAppIdData();return e(t,(function(t,e){r[e]=t})),this._setAppIdData(r)},u.prototype._getHostByType=function(t){return this.hosts[t][this._getHostIndexByType(t)]},u.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},u.prototype._getHostIndexByType=function(t){return this._hostIndexes[t]},u.prototype._setHostIndexByType=function(t,e){var r=n(3)(this._hostIndexes);return r[e]=t,this._partialAppIdDataUpdate({hostIndexes:r}),t},u.prototype._incrementHostIndex=function(t){return this._setHostIndexByType((this._getHostIndexByType(t)+1)%this.hosts[t].length,t)},u.prototype._incrementTimeoutMultipler=function(){var t=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:t})},u.prototype._getTimeoutsForRequest=function(t){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[t]*this._timeoutMultiplier}}},function(t,e){t.exports=function(t,e){e(t,0)}},function(t,e,n){var r=n(13),i=n(33),o=n(34);function s(t,e){this.indexName=e,this.as=t,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}t.exports=s,s.prototype.clearCache=function(){this.cache={}},s.prototype.search=r("query"),s.prototype.similarSearch=r("similarQuery"),s.prototype.browse=function(t,e,r){var i,o,s=n(35),a=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(i=0,r=arguments[0],t=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],o=void 0),t=void 0,e=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),e=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],e=void 0),e=s({},e||{},{page:i,hitsPerPage:o,query:t});var u=this.as._getSearchParams(e,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",body:{params:u},hostType:"read",callback:r})},s.prototype.browseFrom=function(t,e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:t},hostType:"read",callback:e})},s.prototype.searchForFacetValues=function(t,e){var r=n(3),i=n(14);if(void 0===t.facetName||void 0===t.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var o=t.facetName,s=i(r(t),(function(t){return"facetName"===t})),a=this.as._getSearchParams(s,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:a},callback:e})},s.prototype.searchFacet=i((function(t,e){return this.searchForFacetValues(t,e)}),o("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),s.prototype._search=function(t,e,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:e||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:t},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:t}},callback:n,additionalUA:r})},s.prototype.getObject=function(t,e,n){var r=this;1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);var i="";if(void 0!==e){i="?attributes=";for(var o=0;o<e.length;++o)0!==o&&(i+=","),i+=e[o]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(t)+i,hostType:"read",callback:n})},s.prototype.getObjects=function(t,e,r){var i=n(6),o=n(7),s="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!i(t))throw new Error(s);var a=this;1!==arguments.length&&"function"!=typeof e||(r=e,e=void 0);var u={requests:o(t,(function(t){var n={indexName:a.indexName,objectID:t};return e&&(n.attributesToRetrieve=e.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:u,callback:r})},s.prototype.as=null,s.prototype.indexName=null,s.prototype.typeAheadArgs=null,s.prototype.typeAheadValueOption=null},function(t,e){t.exports=function(t,e){var n=!1;return function(){return n||(console.warn(e),n=!0),t.apply(this,arguments)}}},function(t,e){t.exports=function(t,e){var n=t.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+t+"` was replaced by `"+e+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},function(t,e,n){var r=n(2);t.exports=function t(e){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof e[r]&&"object"==typeof n[r]?e[r]=t({},e[r],n[r]):void 0!==n[r]&&(e[r]=n[r]))})),e}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Array.prototype.slice,s=n(37),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),o=s(t),a=e&&"[object String]"===i.call(t),f=[];if(!e&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(a&&t.length>0&&!r.call(t,0))for(var g=0;g<t.length;++g)f.push(String(g));if(o&&t.length>0)for(var m=0;m<t.length;++m)f.push(String(m));else for(var y in t)p&&"prototype"===y||!r.call(t,y)||f.push(String(y));if(u)for(var v=function(t){if("undefined"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)v&&"constructor"===l[b]||!r.call(t,l[b])||f.push(l[b]);return f};p.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return s(e)?t(o.call(e)):t(e)}}}else Object.keys=p;return Object.keys||p},t.exports=p},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){(function(e){var r,i=n(8)("algoliasearch:src/hostIndexState.js"),o={state:{},set:function(t,e){return this.state[t]=e,this.state[t]},get:function(t){return this.state[t]||null}},s={set:function(t,n){o.set(t,n);try{var r=JSON.parse(e.localStorage["algoliasearch-client-js"]);return r[t]=n,e.localStorage["algoliasearch-client-js"]=JSON.stringify(r),r[t]}catch(e){return a(t,e)}},get:function(t){try{return JSON.parse(e.localStorage["algoliasearch-client-js"])[t]||null}catch(e){return a(t,e)}}};function a(t,n){return i("localStorage failed with",n),function(){try{e.localStorage.removeItem("algoliasearch-client-js")}catch(t){}}(),(r=o).get(t)}function u(t,e){return 1===arguments.length?r.get(t):r.set(t,e)}function c(){try{return"localStorage"in e&&null!==e.localStorage&&(e.localStorage["algoliasearch-client-js"]||e.localStorage.setItem("algoliasearch-client-js",JSON.stringify({})),!0)}catch(t){return!1}}r=c()?s:o,t.exports={get:u,set:u,supportsLocalStorage:c}}).call(e,n(4))},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var i=e.formatters[r];if("function"==typeof i){var o=s[u];n=i.call(t,o),s.splice(u,1),u--}return n})),e.formatArgs.call(t,s);var c=n.log||e.log||console.log.bind(console);c.apply(t,s)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),"function"==typeof e.init&&e.init(n),n}(e=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(t=n[i].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(40),e.names=[],e.skips=[],e.formatters={}},function(t,e){var n=1e3,r=6e4,i=60*r,o=24*i;function s(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var a,u=typeof t;if("string"===u&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===u&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){"use strict";var r=n(42),i=r.Promise||n(43).Promise;t.exports=function(t,e){var o=n(12),s=n(5),a=n(44),u=n(46),c=n(47);function l(t,e,r){return(r=n(3)(r||{}))._ua=r._ua||l.ua,new f(t,e,r)}e=e||"",l.version=n(48),l.ua="Algolia for vanilla JavaScript "+e+l.version,l.initPlaces=c(l),r.__algolia={debug:n(8),algoliasearch:l};var h={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function f(){t.apply(this,arguments)}return h.hasXMLHttpRequest&&(h.cors="withCredentials"in new XMLHttpRequest),o(f,t),f.prototype._request=function(t,e){return new i((function(n,r){if(h.cors||h.hasXDomainRequest){t=a(t,e.headers);var i,o,u=e.body,c=h.cors?new XMLHttpRequest:new XDomainRequest,l=!1;i=setTimeout(f,e.timeouts.connect),c.onprogress=function(){l||d()},"onreadystatechange"in c&&(c.onreadystatechange=function(){!l&&c.readyState>1&&d()}),c.onload=function(){if(!o){var t;clearTimeout(i);try{t={body:JSON.parse(c.responseText),responseText:c.responseText,statusCode:c.status,headers:c.getAllResponseHeaders&&c.getAllResponseHeaders()||{}}}catch(e){t=new s.UnparsableJSON({more:c.responseText})}t instanceof s.UnparsableJSON?r(t):n(t)}},c.onerror=function(t){o||(clearTimeout(i),r(new s.Network({more:t})))},c instanceof XMLHttpRequest?(c.open(e.method,t,!0),e.forceAuthHeaders&&(c.setRequestHeader("x-algolia-application-id",e.headers["x-algolia-application-id"]),c.setRequestHeader("x-algolia-api-key",e.headers["x-algolia-api-key"]))):c.open(e.method,t),h.cors&&(u&&("POST"===e.method?c.setRequestHeader("content-type","application/x-www-form-urlencoded"):c.setRequestHeader("content-type","application/json")),c.setRequestHeader("accept","application/json")),u?c.send(u):c.send()}else r(new s.Network("CORS not supported"));function f(){o=!0,c.abort(),r(new s.RequestTimeout)}function d(){l=!0,clearTimeout(i),i=setTimeout(f,e.timeouts.complete)}}))},f.prototype._request.fallback=function(t,e){return t=a(t,e.headers),new i((function(n,r){u(t,e,(function(t,e){t?r(t):n(e)}))}))},f.prototype._promise={reject:function(t){return i.reject(t)},resolve:function(t){return i.resolve(t)},delay:function(t){return new i((function(e){setTimeout(e,t)}))},all:function(t){return i.all(t)}},l}},function(t,e,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(e,n(4))},function(t,e,n){(function(e,n){
 +/*!
 + * @overview es6-promise - a tiny implementation of Promises/A+.
 + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 + * @license   Licensed under MIT license
 + *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 + * @version   v4.2.4+314e4831
-  */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,s=void 0,o=void 0,a=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(o?o(g):w())},c="undefined"!=typeof window?window:void 0,u=c||{},l=u.MutationObserver||u.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(g,1)}}var p=new Array(1e3);function g(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}var m,v,y,b,w=void 0;function _(e,t){var n=this,r=new this.constructor(S);void 0===r[x]&&j(r);var i=n._state;if(i){var s=arguments[i-1];a((function(){return I(i,r,s,n._result)}))}else M(n,r,e,t);return r}function E(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return O(t,e),t}h?w=function(){return t.nextTick(g)}:l?(v=0,y=new l(g),b=document.createTextNode(""),y.observe(b,{characterData:!0}),w=function(){b.data=v=++v%2}):d?((m=new MessageChannel).port1.onmessage=g,w=function(){return m.port2.postMessage(0)}):w=void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(s=e.runOnLoop||e.runOnContext)?function(){s(g)}:f()}catch(e){return f()}}():f();var x=Math.random().toString(36).substring(2);function S(){}var C={error:null};function A(e){try{return e.then}catch(e){return C.error=e,C}}function N(t,n,r){n.constructor===t.constructor&&r===_&&n.constructor.resolve===E?function(e,t){1===t._state?k(e,t._result):2===t._state?R(e,t._result):M(t,void 0,(function(t){return O(e,t)}),(function(t){return R(e,t)}))}(t,n):r===C?(R(t,C.error),C.error=null):void 0===r?k(t,n):e(r)?function(e,t,n){a((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?O(e,n):k(e,n))}),(function(t){r||(r=!0,R(e,t))}),e._label);!r&&i&&(r=!0,R(e,i))}),e)}(t,n,r):k(t,n)}function O(e,t){var n,r;e===t?R(e,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=t),null===n||"object"!==r&&"function"!==r?k(e,t):N(e,t,A(t)))}function T(e){e._onerror&&e._onerror(e._result),L(e)}function k(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&a(L,e))}function R(e,t){void 0===e._state&&(e._state=2,e._result=t,a(T,e))}function M(e,t,n,r){var i=e._subscribers,s=i.length;e._onerror=null,i[s]=t,i[s+1]=n,i[s+2]=r,0===s&&e._state&&a(L,e)}function L(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,s=e._result,o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?I(n,r,i,s):i(s);e._subscribers.length=0}}function I(t,n,r,i){var s=e(r),o=void 0,a=void 0,c=void 0,u=void 0;if(s){if((o=function(e,t){try{return e(t)}catch(e){return C.error=e,C}}(r,i))===C?(u=!0,a=o.error,o.error=null):c=!0,n===o)return void R(n,new TypeError("A promises callback cannot return that same promise."))}else o=i,c=!0;void 0!==n._state||(s&&c?O(n,o):u?R(n,a):1===t?k(n,o):2===t&&R(n,o))}var D=0;function j(e){e[x]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[x]||j(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):R(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===E){var i=A(e);if(i===_&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===$){var s=new n(S);N(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?R(r,n):this._result[t]=n),0===this._remaining&&k(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;M(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),$=function(){function e(t){this[x]=D++,this._result=this._state=void 0,this._subscribers=[],S!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){try{t((function(t){O(e,t)}),(function(t){R(e,t)}))}catch(t){R(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},e}();return $.prototype.then=_,$.all=function(e){return new P(this,e).promise},$.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,s=0;s<i;s++)t.resolve(e[s]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},$.resolve=E,$.reject=function(e){var t=new this(S);return R(t,e),t},$._setScheduler=function(e){o=e},$._setAsap=function(e){a=e},$._asap=a,$.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=$},$.Promise=$,$},e.exports=r()}).call(t,n(9),n(4))},function(e,t,n){"use strict";e.exports=function(e,t){return/\?/.test(e)?e+="&":e+="?",e+r(t)};var r=n(45)},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?s(o(e),(function(o){var a=encodeURIComponent(r(o))+n;return i(e[o])?s(e[o],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[o]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n){if("GET"===t.method){t.debug("JSONP: start");var s=!1,o=!1;i+=1;var a=document.getElementsByTagName("head")[0],c=document.createElement("script"),u="algoliaJSONP_"+i,l=!1;window[u]=function(e){!function(){try{delete window[u],delete window[u+"_loaded"]}catch(e){window[u]=window[u+"_loaded"]=void 0}}(),o?t.debug("JSONP: Late answer, ignoring"):(s=!0,f(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+u,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var h=setTimeout((function(){t.debug("JSONP: Script timeout"),o=!0,f(),n(new r.RequestTimeout)}),t.timeouts.complete);c.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||d()},c.onload=d,c.onerror=function(){t.debug("JSONP: Script error"),l||o||(f(),n(new r.JSONPScriptError))},c.async=!0,c.defer=!0,c.src=e,a.appendChild(c)}else n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));function d(){t.debug("JSONP: success"),l||o||(l=!0,s||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),f(),n(new r.JSONPScriptFail)))}function f(){clearTimeout(h),c.onload=null,c.onreadystatechange=null,c.onerror=null,a.removeChild(c)}};var r=n(5),i=0},function(e,t,n){e.exports=function(e){return function(t,i,s){var o=n(3);(s=s&&o(s)||{}).hosts=s.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof t&&void 0!==t||(t="",i="",s._allowEmptyCredentials=!0);var a=e(t,i,s),c=a.initIndex("places");return c.search=r("query","/1/places/query"),c.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},c}};var r=n(13)},function(e,t,n){"use strict";e.exports="3.30.0"},function(e,t,n){"use strict";e.exports=n(50)},function(e,t,n){"use strict";var r=n(15);n(1).element=r;var i=n(0);i.isArray=r.isArray,i.isFunction=r.isFunction,i.isObject=r.isPlainObject,i.bind=r.proxy,i.each=function(e,t){r.each(e,(function(e,n){return t(n,e)}))},i.map=r.map,i.mixin=r.extend,i.Event=r.Event;var s=n(51),o=n(16);function a(e,t,n,a){n=i.isArray(n)?n:[].slice.call(arguments,2);var c=r(e).each((function(e,i){var c=r(i),u=new o({el:c}),l=a||new s({input:c,eventBus:u,dropdownMenuContainer:t.dropdownMenuContainer,hint:void 0===t.hint||!!t.hint,minLength:t.minLength,autoselect:t.autoselect,autoselectOnBlur:t.autoselectOnBlur,tabAutocomplete:t.tabAutocomplete,openOnFocus:t.openOnFocus,templates:t.templates,debug:t.debug,clearOnSelected:t.clearOnSelected,cssClasses:t.cssClasses,datasets:n,keyboardShortcuts:t.keyboardShortcuts,appendTo:t.appendTo,autoWidth:t.autoWidth});c.data("aaAutocomplete",l)}));return c.autocomplete={},i.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(e){c.autocomplete[e]=function(){var t,n=arguments;return c.each((function(i,s){var o=r(s).data("aaAutocomplete");t=o[e].apply(o,n)})),t}})),c}a.sources=s.sources,a.escapeHighlightedString=i.escapeHighlightedString;var c="autocomplete"in window,u=window.autocomplete;a.noConflict=function(){return c?window.autocomplete=u:delete window.autocomplete,a},e.exports=a},function(e,t,n){"use strict";var r=n(0),i=n(1),s=n(16),o=n(52),a=n(59),c=n(17),u=n(11);function l(e){var t,n;if((e=e||{}).input||r.error("missing input"),this.isActivated=!1,this.debug=!!e.debug,this.autoselect=!!e.autoselect,this.autoselectOnBlur=!!e.autoselectOnBlur,this.openOnFocus=!!e.openOnFocus,this.minLength=r.isNumber(e.minLength)?e.minLength:1,this.autoWidth=void 0===e.autoWidth||!!e.autoWidth,this.clearOnSelected=!!e.clearOnSelected,this.tabAutocomplete=void 0===e.tabAutocomplete||!!e.tabAutocomplete,e.hint=!!e.hint,e.hint&&e.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=e.css=r.mixin({},u,e.appendTo?u.appendTo:{}),this.cssClasses=e.cssClasses=r.mixin({},u.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix=r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=e.listboxId=[this.cssClasses.root,"listbox",r.getUniqueId()].join("-");var o=function(e){var t,n,s,o;t=i.element(e.input),n=i.element(c.wrapper.replace("%ROOT%",e.cssClasses.root)).css(e.css.wrapper),e.appendTo||"block"!==t.css("display")||"table"!==t.parent().css("display")||n.css("display","table-cell");var a,u=c.dropdown.replace("%PREFIX%",e.cssClasses.prefix).replace("%DROPDOWN_MENU%",e.cssClasses.dropdownMenu);s=i.element(u).css(e.css.dropdown).attr({role:"listbox",id:e.listboxId}),e.templates&&e.templates.dropdownMenu&&s.html(r.templatify(e.templates.dropdownMenu)()),(o=t.clone().css(e.css.hint).css((a=t,{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}))).val("").addClass(r.className(e.cssClasses.prefix,e.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),o.removeData&&o.removeData(),t.data("aaAttrs",{"aria-autocomplete":t.attr("aria-autocomplete"),"aria-expanded":t.attr("aria-expanded"),"aria-owns":t.attr("aria-owns"),autocomplete:t.attr("autocomplete"),dir:t.attr("dir"),role:t.attr("role"),spellcheck:t.attr("spellcheck"),style:t.attr("style"),type:t.attr("type")}),t.addClass(r.className(e.cssClasses.prefix,e.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":e.datasets&&e.datasets[0]&&e.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":e.ariaLabel,"aria-owns":e.listboxId}).css(e.hint?e.css.input:e.css.inputWithNoHint);try{t.attr("dir")||t.attr("dir","auto")}catch(e){}return(n=e.appendTo?n.appendTo(i.element(e.appendTo).eq(0)).eq(0):t.wrap(n).parent()).prepend(e.hint?o:null).append(s),{wrapper:n,input:t,hint:o,menu:s}}(e);this.$node=o.wrapper;var a=this.$input=o.input;t=o.menu,n=o.hint,e.dropdownMenuContainer&&i.element(e.dropdownMenuContainer).css("position","relative").append(t.css("top","0")),a.on("blur.aa",(function(e){var n=document.activeElement;r.isMsie()&&(t[0]===n||t[0].contains(n))&&(e.preventDefault(),e.stopImmediatePropagation(),r.defer((function(){a.focus()})))})),t.on("mousedown.aa",(function(e){e.preventDefault()})),this.eventBus=e.eventBus||new s({el:a}),this.dropdown=new l.Dropdown({appendTo:e.appendTo,wrapper:this.$node,menu:t,datasets:e.datasets,templates:e.templates,cssClasses:e.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new l.Input({input:a,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(e),this._setLanguageDirection()}r.mixin(l.prototype,{_bindKeyboardShortcuts:function(e){if(e.keyboardShortcuts){var t=this.$input,n=[];r.each(e.keyboardShortcuts,(function(e){"string"==typeof e&&(e=e.toUpperCase().charCodeAt(0)),n.push(e)})),i.element(document).keydown((function(e){var r=e.target||e.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var s=e.which||e.keyCode;-1!==n.indexOf(s)&&(t.focus(),e.stopPropagation(),e.preventDefault())}}))}},_onSuggestionClicked:function(e,t){var n;(n=this.dropdown.getDatumForSuggestion(t))&&this._select(n)},_onCursorMoved:function(e,t){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(r),n&&(t&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var e=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",e.width+"px");var t=this.$node[0].getBoundingClientRect(),n=e.bottom-t.top;this.$node.css("top",n+"px");var r=e.left-t.left;this.$node.css("left",r+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var e=this.input.getQuery();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var e,t;e=this.dropdown.getDatumForCursor(),t=this.dropdown.getDatumForTopSuggestion(),this.debug||(this.autoselectOnBlur&&e?this._select(e):this.autoselectOnBlur&&t?this._select(t):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(e,t){var n,r;n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion(),n?(this._select(n),t.preventDefault()):this.autoselect&&r&&(this._select(r),t.preventDefault())},_onTabKeyed:function(e,t){var n;this.tabAutocomplete?(n=this.dropdown.getDatumForCursor())?(this._select(n),t.preventDefault()):this._autocomplete(!0):this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(e,t){this.input.clearHintIfInvalid(),t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var e=this.input.getLanguageDirection();this.dir!==e&&(this.dir=e,this.$node.css("direction",e),this.dropdown.setLanguageDirection(e))},_updateHint:function(){var e,t,n,i,s;(e=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),n=o.normalizeQuery(t),i=r.escapeRegExChars(n),(s=new RegExp("^(?:"+i+")(.+$)","i").exec(e.value))?this.input.setHint(t+s[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(e){var t,n,r,i;t=this.input.getHint(),n=this.input.getQuery(),r=e||this.input.isCursorAtEnd(),t&&n!==t&&r&&((i=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(i.value),this.eventBus.trigger("autocompleted",i.raw,i.datasetName))},_select:function(e){void 0!==e.value&&this.input.setQuery(e.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(e.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",e.raw,e.datasetName).isDefaultPrevented()&&(this.dropdown.close(),r.defer(r.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var e=this.input.getInputValue();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(e){e=r.toStr(e),this.isActivated?this.input.setInputValue(e):(this.input.setQuery(e),this.input.setInputValue(e,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var e,t,n;this.input.destroy(),this.dropdown.destroy(),e=this.$node,t=this.cssClasses,n=e.find(r.className(t.prefix,t.input)),r.each(n.data("aaAttrs"),(function(e,t){void 0===e?n.removeAttr(t):n.attr(t,e)})),n.detach().removeClass(r.className(t.prefix,t.input,!0)).insertAfter(e),n.removeData&&n.removeData("aaAttrs"),e.remove(),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),l.Dropdown=a,l.Input=o,l.sources=n(61),e.exports=l},function(e,t,n){"use strict";var r;r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var i=n(0),s=n(1),o=n(10);function a(e){var t,n,o,a,c,u=this;(e=e||{}).input||i.error("input is missing"),t=i.bind(this._onBlur,this),n=i.bind(this._onFocus,this),o=i.bind(this._onKeydown,this),a=i.bind(this._onInput,this),this.$hint=s.element(e.hint),this.$input=s.element(e.input).on("blur.aa",t).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=i.noop),i.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(e){r[e.which||e.keyCode]||i.defer(i.bind(u._onInput,u,e))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(c=this.$input,s.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:c.css("font-family"),fontSize:c.css("font-size"),fontStyle:c.css("font-style"),fontVariant:c.css("font-variant"),fontWeight:c.css("font-weight"),wordSpacing:c.css("word-spacing"),letterSpacing:c.css("letter-spacing"),textIndent:c.css("text-indent"),textRendering:c.css("text-rendering"),textTransform:c.css("text-transform")}).insertAfter(c))}function c(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}a.normalizeQuery=function(e){return(e||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},i.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(e){var t=r[e.which||e.keyCode];this._managePreventDefault(t,e),t&&this._shouldTrigger(t,e)&&this.trigger(t+"Keyed",e)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(e,t){var n,r,i;switch(e){case"tab":r=this.getHint(),i=this.getInputValue(),n=r&&r!==i&&!c(t);break;case"up":case"down":n=!c(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){var n;switch(e){case"tab":n=!c(t);break;default:n=!0}return n},_checkInputValue:function(){var e,t,n,r,i;e=this.getInputValue(),r=e,i=this.query,n=!(!(t=a.normalizeQuery(r)===a.normalizeQuery(i))||!this.query)&&this.query.length!==e.length,this.query=e,t?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(e){this.query=e},getInputValue:function(){return this.$input.val()},setInputValue:function(e,t){void 0===e&&(e=this.query),this.$input.val(e),t?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(e){this.$input.attr("aria-activedescendant",e)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var e,t,n;n=(e=this.getInputValue())!==(t=this.getHint())&&0===t.indexOf(e),""!==e&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,t,n;return e=this.$input.val().length,t=this.$input[0].selectionStart,i.isNumber(t)?t===e:!document.selection||((n=document.selection.createRange()).moveStart("character",-e),e===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),e.exports=a},function(e,t,n){"use strict";var r,i,s,o=[n(54),n(55),n(56),n(57),n(58)],a=-1,c=[],u=!1;function l(){r&&i&&(r=!1,i.length?c=i.concat(c):a=-1,c.length&&h())}function h(){if(!r){u=!1,r=!0;for(var e=c.length,t=setTimeout(l);e;){for(i=c,c=[];i&&++a<e;)i[a].run();a=-1,e=c.length}i=null,a=-1,r=!1,clearTimeout(t)}}for(var d=-1,f=o.length;++d<f;)if(o[d]&&o[d].test&&o[d].test()){s=o[d].install(h);break}function p(e,t){this.fun=e,this.array=t}p.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},e.exports=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),u||r||(u=!0,s())}},function(e,t,n){"use strict";(function(e){t.test=function(){return void 0!==e&&!e.browser},t.install=function(t){return function(){e.nextTick(t)}}}).call(t,n(9))},function(e,t,n){"use strict";(function(e){var n=e.MutationObserver||e.WebKitMutationObserver;t.test=function(){return n},t.install=function(t){var r=0,i=new n(t),s=e.document.createTextNode("");return i.observe(s,{characterData:!0}),function(){s.data=r=++r%2}}}).call(t,n(4))},function(e,t,n){"use strict";(function(e){t.test=function(){return!e.setImmediate&&void 0!==e.MessageChannel},t.install=function(t){var n=new e.MessageChannel;return n.port1.onmessage=t,function(){n.port2.postMessage(0)}}}).call(t,n(4))},function(e,t,n){"use strict";(function(e){t.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},t.install=function(t){return function(){var n=e.document.createElement("script");return n.onreadystatechange=function(){t(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},e.document.documentElement.appendChild(n),t}}}).call(t,n(4))},function(e,t,n){"use strict";t.test=function(){return!0},t.install=function(e){return function(){setTimeout(e,0)}}},function(e,t,n){"use strict";var r=n(0),i=n(1),s=n(10),o=n(60),a=n(11);function c(e){var t,n,s,o=this;(e=e||{}).menu||r.error("menu is required"),r.isArray(e.datasets)||r.isObject(e.datasets)||r.error("1 or more datasets required"),e.datasets||r.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=e.minLength||0,this.templates={},this.appendTo=e.appendTo||!1,this.css=r.mixin({},a,e.appendTo?a.appendTo:{}),this.cssClasses=e.cssClasses=r.mixin({},a.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),t=r.bind(this._onSuggestionClick,this),n=r.bind(this._onSuggestionMouseEnter,this),s=r.bind(this._onSuggestionMouseLeave,this);var u=r.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=i.element(e.menu).on("mouseenter.aa",u,n).on("mouseleave.aa",u,s).on("click.aa",u,t),this.$container=e.appendTo?e.wrapper:this.$menu,e.templates&&e.templates.header&&(this.templates.header=r.templatify(e.templates.header),this.$menu.prepend(this.templates.header())),e.templates&&e.templates.empty&&(this.templates.empty=r.templatify(e.templates.empty),this.$empty=i.element('<div class="'+r.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=r.map(e.datasets,(function(t){return function(e,t,n){return new c.Dataset(r.mixin({$menu:e,cssClasses:n},t))}(o.$menu,t,e.cssClasses)})),r.each(this.datasets,(function(e){var t=e.getRoot();t&&0===t.parent().length&&o.$menu.append(t),e.onSync("rendered",o._onRendered,o)})),e.templates&&e.templates.footer&&(this.templates.footer=r.templatify(e.templates.footer),this.$menu.append(this.templates.footer()));var l=this;i.element(window).resize((function(){l._redraw()}))}r.mixin(c.prototype,s,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",i.element(e.currentTarget))},_onSuggestionMouseEnter:function(e){var t=i.element(e.currentTarget);if(!t.hasClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(t,!1)}),0)}},_onSuggestionMouseLeave:function(e){e.relatedTarget&&i.element(e.relatedTarget).closest("."+r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0||(this._removeCursor(),this.trigger("cursorRemoved"))},_onRendered:function(e,t){if(this.isEmpty=r.every(this.datasets,(function(e){return e.isEmpty()})),this.isEmpty)if(t.length>=this.minLength&&this.trigger("empty"),this.$empty)if(t.length<this.minLength)this._hide();else{var n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(n),this.$empty.show(),this._show()}else r.any(this.datasets,(function(e){return e.templates&&e.templates.empty}))?t.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),t.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(e,t){e.first().addClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",t)},_removeCursor:function(){this._getCursor().removeClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(e){var t,n,r,i;this.isOpen&&(n=this._getCursor(),t=this._getSuggestions(),this._removeCursor(),-1!=(r=((r=t.index(n)+e)+1)%(t.length+1)-1)?(r<-1&&(r=t.length-1),this._setCursor(i=t.eq(r),!0),this._ensureVisible(i)):this.trigger("cursorRemoved"))},_ensureVisible:function(e){var t,n,r,i;n=(t=e.position().top)+e.height()+parseInt(e.css("margin-top"),10)+parseInt(e.css("margin-bottom"),10),r=this.$menu.scrollTop(),i=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),t<0?this.$menu.scrollTop(r+t):i<n&&this.$menu.scrollTop(r+(n-i))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(e){this.$menu.css("ltr"===e?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(e){var t=null;return e.length&&(t={raw:o.extractDatum(e),value:o.extractValue(e),datasetName:o.extractDatasetName(e)}),t},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(e){r.each(this.datasets,(function(t){t.update(e)}))},empty:function(){r.each(this.datasets,(function(e){e.clear()})),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,r.each(this.datasets,(function(e){e.destroy()}))}}),c.Dataset=o,e.exports=c},function(e,t,n){"use strict";var r=n(0),i=n(1),s=n(17),o=n(11),a=n(10);function c(e){var t,n,a,c;(e=e||{}).templates=e.templates||{},e.source||r.error("missing source"),e.name&&(t=e.name,!/^[_a-zA-Z0-9-]+$/.test(t))&&r.error("invalid dataset name: "+e.name),this.query=null,this._isEmpty=!0,this.highlight=!!e.highlight,this.name=void 0===e.name||null===e.name?r.getUniqueId():e.name,this.source=e.source,this.displayFn=(n=(n=e.display||e.displayKey)||"value",r.isFunction(n)?n:function(e){return e[n]}),this.debounce=e.debounce,this.cache=!1!==e.cache,this.templates=(a=e.templates,c=this.displayFn,{empty:a.empty&&r.templatify(a.empty),header:a.header&&r.templatify(a.header),footer:a.footer&&r.templatify(a.footer),suggestion:a.suggestion||function(e){return"<p>"+c(e)+"</p>"}}),this.css=r.mixin({},o,e.appendTo?o.appendTo:{}),this.cssClasses=e.cssClasses=r.mixin({},o.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var u=r.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=e.$menu&&e.$menu.find(u+"-"+this.name).length>0?i.element(e.$menu.find(u+"-"+this.name)[0]):i.element(s.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=e.$menu,this.clearCachedSuggestions()}c.extractDatasetName=function(e){return i.element(e).data("aaDataset")},c.extractValue=function(e){return i.element(e).data("aaValue")},c.extractDatum=function(e){var t=i.element(e).data("aaDatum");return"string"==typeof t&&(t=JSON.parse(t)),t},r.mixin(c.prototype,a,{_render:function(e,t){if(this.$el){var n,o=this,a=[].slice.call(arguments,2);if(this.$el.empty(),n=t&&t.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(c.apply(this,a)).prepend(o.templates.header?l.apply(this,a):null).append(o.templates.footer?h.apply(this,a):null);else if(n)this.$el.html(u.apply(this,a)).prepend(o.templates.header?l.apply(this,a):null).append(o.templates.footer?h.apply(this,a):null);else if(t&&!Array.isArray(t))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",e)}function c(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),o.templates.empty.apply(this,t)}function u(){var e,n,a=[].slice.call(arguments,0),c=this,u=s.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return e=i.element(u).css(this.css.suggestions),n=r.map(t,l),e.append.apply(e,n),e;function l(e){var t,n=s.suggestion.replace("%PREFIX%",c.cssClasses.prefix).replace("%SUGGESTION%",c.cssClasses.suggestion);return(t=i.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(o.templates.suggestion.apply(this,[e].concat(a)))).data("aaDataset",o.name),t.data("aaValue",o.displayFn(e)||void 0),t.data("aaDatum",JSON.stringify(e)),t.children().each((function(){i.element(this).css(c.css.suggestionChild)})),t}}function l(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),o.templates.header.apply(this,t)}function h(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),o.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(e){function t(t){if(!this.canceled&&e===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(e,t,n),this._render.apply(this,[e,t].concat(n))}}if(this.query=e,this.canceled=!1,this.shouldFetchFromCache(e))t.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,r=function(){n.canceled||n.source(e,t.bind(n))};this.debounce?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,r()}),this.debounce)):r()}},cacheSuggestions:function(e,t,n){this.cachedQuery=e,this.cachedSuggestions=t,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(e){return this.cache&&this.cachedQuery===e&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered","")},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),e.exports=c},function(e,t,n){"use strict";e.exports={hits:n(62),popularIn:n(63)}},function(e,t,n){"use strict";var r=n(0),i=n(18),s=n(19);e.exports=function(e,t){var n=s(e.as._ua);return n&&n[0]>=3&&n[1]>20&&((t=t||{}).additionalUA="autocomplete.js "+i),function(n,i){e.search(n,t,(function(e,t){e?r.error(e.message):i(t.hits,t)}))}}},function(e,t,n){"use strict";var r=n(0),i=n(18),s=n(19);e.exports=function(e,t,n,o){var a=s(e.as._ua);if(a&&a[0]>=3&&a[1]>20&&((t=t||{}).additionalUA="autocomplete.js "+i),!n.source)return r.error("Missing 'source' key");var c=r.isFunction(n.source)?n.source:function(e){return e[n.source]};if(!n.index)return r.error("Missing 'index' key");var u=n.index;return o=o||{},function(a,l){e.search(a,t,(function(e,a){if(e)r.error(e.message);else{if(a.hits.length>0){var h=a.hits[0],d=r.mixin({hitsPerPage:0},n);delete d.source,delete d.index;var f=s(u.as._ua);return f&&f[0]>=3&&f[1]>20&&(t.additionalUA="autocomplete.js "+i),void u.search(c(h),d,(function(e,t){if(e)r.error(e.message);else{var n=[];if(o.includeAll){var i=o.allTitle||"All departments";n.push(r.mixin({facet:{value:i,count:t.nbHits}},r.cloneDeep(h)))}r.each(t.facets,(function(e,t){r.each(e,(function(e,i){n.push(r.mixin({facet:{facet:t,value:i,count:e}},r.cloneDeep(h)))}))}));for(var s=1;s<a.hits.length;++s)n.push(a.hits[s]);l(n,a)}}))}l([])}}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="algolia-docsearch-suggestion",i={suggestion:'\n  <a class="'+r+"\n    {{#isCategoryHeader}}"+r+"__main{{/isCategoryHeader}}\n    {{#isSubCategoryHeader}}"+r+'__secondary{{/isSubCategoryHeader}}\n    "\n    aria-label="Link to the result"\n    href="{{{url}}}"\n    >\n    <div class="'+r+'--category-header">\n        <span class="'+r+'--category-header-lvl0">{{{category}}}</span>\n    </div>\n    <div class="'+r+'--wrapper">\n      <div class="'+r+'--subcategory-column">\n        <span class="'+r+'--subcategory-column-text">{{{subcategory}}}</span>\n      </div>\n      {{#isTextOrSubcategoryNonEmpty}}\n      <div class="'+r+'--content">\n        <div class="'+r+'--subcategory-inline">{{{subcategory}}}</div>\n        <div class="'+r+'--title">{{{title}}}</div>\n        {{#text}}<div class="'+r+'--text">{{{text}}}</div>{{/text}}\n      </div>\n      {{/isTextOrSubcategoryNonEmpty}}\n    </div>\n  </a>\n  ',suggestionSimple:'\n  <div class="'+r+"\n    {{#isCategoryHeader}}"+r+"__main{{/isCategoryHeader}}\n    {{#isSubCategoryHeader}}"+r+'__secondary{{/isSubCategoryHeader}}\n    suggestion-layout-simple\n  ">\n    <div class="'+r+'--category-header">\n        {{^isLvl0}}\n        <span class="'+r+"--category-header-lvl0 "+r+'--category-header-item">{{{category}}}</span>\n          {{^isLvl1}}\n          {{^isLvl1EmptyOrDuplicate}}\n          <span class="'+r+"--category-header-lvl1 "+r+'--category-header-item">\n              {{{subcategory}}}\n          </span>\n          {{/isLvl1EmptyOrDuplicate}}\n          {{/isLvl1}}\n        {{/isLvl0}}\n        <div class="'+r+"--title "+r+'--category-header-item">\n            {{#isLvl2}}\n                {{{title}}}\n            {{/isLvl2}}\n            {{#isLvl1}}\n                {{{subcategory}}}\n            {{/isLvl1}}\n            {{#isLvl0}}\n                {{{category}}}\n            {{/isLvl0}}\n        </div>\n    </div>\n    <div class="'+r+'--wrapper">\n      {{#text}}\n      <div class="'+r+'--content">\n        <div class="'+r+'--text">{{{text}}}</div>\n      </div>\n      {{/text}}\n    </div>\n  </div>\n  ',footer:'\n    <div class="algolia-docsearch-footer">\n      Search by <a class="algolia-docsearch-footer--logo" href="https://www.algolia.com/docsearch">Algolia</a>\n    </div>\n  ',empty:'\n  <div class="'+r+'">\n    <div class="'+r+'--wrapper">\n        <div class="'+r+"--content "+r+'--no-results">\n            <div class="'+r+'--title">\n                <div class="'+r+'--text">\n                    No results found for query <b>"{{query}}"</b>\n                </div>\n            </div>\n        </div>\n    </div>\n  </div>\n  ',searchBox:'\n  <form novalidate="novalidate" onsubmit="return false;" class="searchbox">\n    <div role="search" class="searchbox__wrapper">\n      <input id="docsearch" type="search" name="search" placeholder="Search the docs" autocomplete="off" required="required" class="searchbox__input"/>\n      <button type="submit" title="Submit your search query." class="searchbox__submit" >\n        <svg width=12 height=12 role="img" aria-label="Search">\n          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use>\n        </svg>\n      </button>\n      <button type="reset" title="Clear the search query." class="searchbox__reset hide">\n        <svg width=12 height=12 role="img" aria-label="Reset">\n          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use>\n        </svg>\n      </button>\n    </div>\n</form>\n\n<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden">\n  <svg xmlns="http://www.w3.org/2000/svg">\n    <symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"></symbol>\n    <symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"></symbol>\n  </svg>\n</div>\n  '};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=n(20),o=(r=s)&&r.__esModule?r:{default:r},a={mergeKeyWithParent:function(e,t){if(void 0===e[t])return e;if("object"!==i(e[t]))return e;var n=o.default.extend({},e,e[t]);return delete n[t],n},groupBy:function(e,t){var n={};return o.default.each(e,(function(e,r){if(void 0===r[t])throw new Error("[groupBy]: Object has no key "+t);var i=r[t];"string"==typeof i&&(i=i.toLowerCase()),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[]),n[i].push(r)})),n},values:function(e){return Object.keys(e).map((function(t){return e[t]}))},flatten:function(e){var t=[];return e.forEach((function(e){Array.isArray(e)?e.forEach((function(e){t.push(e)})):t.push(e)})),t},flattenAndFlagFirst:function(e,t){var n=this.values(e).map((function(e){return e.map((function(e,n){return e[t]=0===n,e}))}));return this.flatten(n)},compact:function(e){var t=[];return e.forEach((function(e){e&&t.push(e)})),t},getHighlightedValue:function(e,t){return e._highlightResult&&e._highlightResult.hierarchy_camel&&e._highlightResult.hierarchy_camel[t]&&e._highlightResult.hierarchy_camel[t].matchLevel&&"none"!==e._highlightResult.hierarchy_camel[t].matchLevel&&e._highlightResult.hierarchy_camel[t].value?e._highlightResult.hierarchy_camel[t].value:e._highlightResult&&e._highlightResult&&e._highlightResult[t]&&e._highlightResult[t].value?e._highlightResult[t].value:e[t]},getSnippetedValue:function(e,t){if(!e._snippetResult||!e._snippetResult[t]||!e._snippetResult[t].value)return e[t];var n=e._snippetResult[t].value;return n[0]!==n[0].toUpperCase()&&(n="…"+n),-1===[".","!","?"].indexOf(n[n.length-1])&&(n+="…"),n},deepClone:function(e){return JSON.parse(JSON.stringify(e))}};t.default=a}])},e.exports=r()},function(e,t,n){var r=n(10);r.registerLanguage("bash",n(11)),r.registerLanguage("css",n(12)),r.registerLanguage("markdown",n(13)),r.registerLanguage("diff",n(14)),r.registerLanguage("javascript",n(15)),r.registerLanguage("json",n(16)),r.registerLanguage("yaml",n(17)),r.registerLanguage("xml",n(18)),r.registerLanguage("html",n(19)),r.registerLanguage("go",(function(e){var t={keyword:"code output note warning break default func interface select case map struct chan else goto package switch const fallthrough if range end type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune id autoplay Get",literal:"file download copy true false iota nil Pages with",built_in:"append cap close complex highlight copy imag len make new panic print println real recover delete Site Data tweet youtube ref relref vimeo instagram gist figure innershortcode"};return{aliases:["golang","hugo"],k:t,i:"</",c:[e.CLCM,e.CBCM,{cN:"string",v:[e.QSM,{b:"'",e:"[^\\\\]'"},{b:"`",e:"`"}]},{cN:"number",v:[{b:e.CNR+"[dflsi]",r:1},e.CNM]},{b:/:=/},{cN:"function",bK:"func",e:/\s*\{/,eE:!0,c:[e.TM,{cN:"params",b:/\(/,e:/\)/,k:t,i:/["']/}]}]}})),r.initHighlightingOnLoad()},function(e,t,n){!function(e){"object"==typeof window&&window||"object"==typeof self&&self;(function(e){var t=[],n=Object.keys,r={},i={},s=/^(no-?highlight|plain|text)$/i,o=/\blang(?:uage)?-([\w-]+)\b/i,a=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,c={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function u(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(e){return e.nodeName.toLowerCase()}function h(e,t){var n=e&&e.exec(t);return n&&0===n.index}function d(e){return s.test(e)}function f(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach((function(e){for(t in e)n[t]=e[t]})),n}function p(e){var t=[];return function e(n,r){for(var i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),l(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}function g(e){function t(e){return e&&e.source||e}function r(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function i(s,o){if(!s.compiled){if(s.compiled=!0,s.keywords=s.keywords||s.beginKeywords,s.keywords){var a={},c=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach((function(e){var n=e.split("|");a[n[0]]=[t,n[1]?Number(n[1]):1]}))};"string"==typeof s.keywords?c("keyword",s.keywords):n(s.keywords).forEach((function(e){c(e,s.keywords[e])})),s.keywords=a}s.lexemesRe=r(s.lexemes||/\w+/,!0),o&&(s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")\\b"),s.begin||(s.begin=/\B|\b/),s.beginRe=r(s.begin),s.endSameAsBegin&&(s.end=s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(s.endRe=r(s.end)),s.terminator_end=t(s.end)||"",s.endsWithParent&&o.terminator_end&&(s.terminator_end+=(s.end?"|":"")+o.terminator_end)),s.illegal&&(s.illegalRe=r(s.illegal)),null==s.relevance&&(s.relevance=1),s.contains||(s.contains=[]),s.contains=Array.prototype.concat.apply([],s.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return f(e,{variants:null},t)}))),e.cached_variants||e.endsWithParent&&[f(e)]||[e]}("self"===e?s:e)}))),s.contains.forEach((function(e){i(e,s)})),s.starts&&i(s.starts,o);var u=s.contains.map((function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin})).concat([s.terminator_end,s.illegal]).map(t).filter(Boolean);s.terminators=u.length?r(u.join("|"),!0):{exec:function(){return null}}}}(e)}function m(e,t,n,i){function s(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function o(e,t){var n=p.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function a(e,t,n,r){var i='<span class="'+(r?"":c.classPrefix);return(i+=e+'">')+t+(n?"":"</span>")}function l(){E+=null!=b.subLanguage?function(){var e="string"==typeof b.subLanguage;if(e&&!r[b.subLanguage])return u(x);var t=e?m(b.subLanguage,x,!0,w[b.subLanguage]):v(x,b.subLanguage.length?b.subLanguage:void 0);return b.relevance>0&&(S+=t.relevance),e&&(w[b.subLanguage]=t.top),a(t.language,t.value,!1,!0)}():function(){var e,t,n,r;if(!b.keywords)return u(x);for(r="",t=0,b.lexemesRe.lastIndex=0,n=b.lexemesRe.exec(x);n;)r+=u(x.substring(t,n.index)),(e=o(b,n))?(S+=e[1],r+=a(e[0],u(n[0]))):r+=u(n[0]),t=b.lexemesRe.lastIndex,n=b.lexemesRe.exec(x);return r+u(x.substr(t))}(),x=""}function d(e){E+=e.className?a(e.className,"",!0):"",b=Object.create(e,{parent:{value:b}})}function f(e,t){if(x+=e,null==t)return l(),0;var r=function(e,t){var n,r;for(n=0,r=t.contains.length;n<r;n++)if(h(t.contains[n].beginRe,e))return t.contains[n].endSameAsBegin&&(t.contains[n].endRe=s(t.contains[n].beginRe.exec(e)[0])),t.contains[n]}(t,b);if(r)return r.skip?x+=t:(r.excludeBegin&&(x+=t),l(),r.returnBegin||r.excludeBegin||(x=t)),d(r),r.returnBegin?0:t.length;var i=function e(t,n){if(h(t.endRe,n)){for(;t.endsParent&&t.parent;)t=t.parent;return t}if(t.endsWithParent)return e(t.parent,n)}(b,t);if(i){var o=b;o.skip?x+=t:(o.returnEnd||o.excludeEnd||(x+=t),l(),o.excludeEnd&&(x=t));do{b.className&&(E+="</span>"),b.skip||b.subLanguage||(S+=b.relevance),b=b.parent}while(b!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),d(i.starts)),o.returnEnd?0:t.length}if(function(e,t){return!n&&h(t.illegalRe,e)}(t,b))throw new Error('Illegal lexeme "'+t+'" for mode "'+(b.className||"<unnamed>")+'"');return x+=t,t.length||1}var p=_(e);if(!p)throw new Error('Unknown language: "'+e+'"');g(p);var y,b=i||p,w={},E="";for(y=b;y!==p;y=y.parent)y.className&&(E=a(y.className,"",!0)+E);var x="",S=0;try{for(var C,A,N=0;b.terminators.lastIndex=N,C=b.terminators.exec(t);)A=f(t.substring(N,C.index),C[0]),N=C.index+A;for(f(t.substr(N)),y=b;y.parent;y=y.parent)y.className&&(E+="</span>");return{relevance:S,value:E,language:e,top:b}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:u(t)};throw e}}function v(e,t){t=t||c.languages||n(r);var i={relevance:0,value:u(e)},s=i;return t.filter(_).filter(E).forEach((function(t){var n=m(t,e,!1);n.language=t,n.relevance>s.relevance&&(s=n),n.relevance>i.relevance&&(s=i,i=n)})),s.language&&(i.second_best=s),i}function y(e){return c.tabReplace||c.useBR?e.replace(a,(function(e,t){return c.useBR&&"\n"===e?"<br>":c.tabReplace?t.replace(/\t/g,c.tabReplace):""})):e}function b(e){var n,r,s,a,h,f=function(e){var t,n,r,i,s=e.className+" ";if(s+=e.parentNode?e.parentNode.className:"",n=o.exec(s))return _(n[1])?n[1]:"no-highlight";for(t=0,r=(s=s.split(/\s+/)).length;t<r;t++)if(d(i=s[t])||_(i))return i}(e);d(f)||(c.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):n=e,h=n.textContent,s=f?m(f,h,!0):v(h),(r=p(n)).length&&((a=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=s.value,s.value=function(e,n,r){var i=0,s="",o=[];function a(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:"start"===n[0].event?e:n:e.length?e:n}function c(e){s+="<"+l(e)+t.map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+u(e.value).replace('"',"&quot;")+'"'})).join("")+">"}function h(e){s+="</"+l(e)+">"}function d(e){("start"===e.event?c:h)(e.node)}for(;e.length||n.length;){var f=a();if(s+=u(r.substring(i,f[0].offset)),i=f[0].offset,f===e){o.reverse().forEach(h);do{d(f.splice(0,1)[0]),f=a()}while(f===e&&f.length&&f[0].offset===i);o.reverse().forEach(c)}else"start"===f[0].event?o.push(f[0].node):o.pop(),d(f.splice(0,1)[0])}return s+u(r.substr(i))}(r,p(a),h)),s.value=y(s.value),e.innerHTML=s.value,e.className=function(e,t,n){var r=t?i[t]:n,s=[e.trim()];return e.match(/\bhljs\b/)||s.push("hljs"),-1===e.indexOf(r)&&s.push(r),s.join(" ").trim()}(e.className,f,s.language),e.result={language:s.language,re:s.relevance},s.second_best&&(e.second_best={language:s.second_best.language,re:s.second_best.relevance}))}function w(){if(!w.called){w.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,b)}}function _(e){return e=(e||"").toLowerCase(),r[e]||r[i[e]]}function E(e){var t=_(e);return t&&!t.disableAutodetect}e.highlight=m,e.highlightAuto=v,e.fixMarkup=y,e.highlightBlock=b,e.configure=function(e){c=f(c,e)},e.initHighlighting=w,e.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",w,!1),addEventListener("load",w,!1)},e.registerLanguage=function(t,n){var s=r[t]=n(e);s.aliases&&s.aliases.forEach((function(e){i[e]=t}))},e.listLanguages=function(){return n(r)},e.getLanguage=_,e.autoDetection=E,e.inherit=f,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,r){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0}})(t)}()},function(e,t){e.exports=function(e){var t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)}/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]};return{aliases:["sh","zsh"],lexemes:/\b-?[a-z\._]+\b/,keywords:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[{className:"meta",begin:/^#![^\n]+sh\s*$/,relevance:10},{className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},e.HASH_COMMENT_MODE,n,{className:"string",begin:/'/,end:/'/},t]}}},function(e,t){e.exports=function(e){var t={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},function(e,t){e.exports=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},function(e,t){e.exports=function(e){return{aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/\*{5}/,end:/\*{5}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}},function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]};i.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,r,e.REGEXP_MODE];var o=i.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:o}]}]},{begin:/</,end:/(\/\w+|\w+\/)>/,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:[{begin:/<\w+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:o}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){var t={literal:"true false null"},n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},i={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})],illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return n.splice(n.length,0,i,s),{contains:n,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_][\\w\\-]*",n={className:"attr",variants:[{begin:"^[ \\-]*"+t+":"},{begin:'^[ \\-]*"'+t+'":'},{begin:"^[ \\-]*'"+t+"':"}]},r={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]}]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[n,{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>] *$",returnEnd:!0,contains:r.contains,end:n.variants[0].begin},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!"+e.UNDERSCORE_IDENT_RE},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"^ *-",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:"true false yes no null",keywords:{literal:"true false yes no null"}},e.C_NUMBER_MODE,r]}}},function(e,t){e.exports=function(e){var t={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"<!DOCTYPE",end:">",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:"<style(?=\\s|>|$)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>|$)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}},function(e,t){e.exports=function(e){var t={"builtin-name":"each in with if else unless bindattr action collection debugger log outlet template unbound view yield"};return{aliases:["hbs","html.hbs","html.handlebars"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,keywords:t,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,keywords:t}]}}},function(e,t,n){n(0),n(21)},function(e,t,n){!function(t,r){var i=function(){r(t.lazySizes),t.removeEventListener("lazyunveilread",i,!0)};r=r.bind(null,t,t.document),e.exports?r(n(0)):t.lazySizes?i():t.addEventListener("lazyunveilread",i,!0)}(window,(function(e,t,n){"use strict";var r,i,s={};function o(e,n){if(!s[e]){var r=t.createElement(n?"link":"script"),i=t.getElementsByTagName("script")[0];n?(r.rel="stylesheet",r.href=e):r.src=e,s[e]=!0,s[r.src||r.href]=!0,i.parentNode.insertBefore(r,i)}}t.addEventListener&&(i=/\(|\)|\s|'/,r=function(e,n){var r=t.createElement("img");r.onload=function(){r.onload=null,r.onerror=null,r=null,n()},r.onerror=r.onload,r.src=e,r&&r.complete&&r.onload&&r.onload()},addEventListener("lazybeforeunveil",(function(e){var t,s,a;e.detail.instance==n&&(e.defaultPrevented||("none"==e.target.preload&&(e.target.preload="auto"),(t=e.target.getAttribute("data-link"))&&o(t,!0),(t=e.target.getAttribute("data-script"))&&o(t),(t=e.target.getAttribute("data-require"))&&(n.cfg.requireJs?n.cfg.requireJs([t]):o(t)),(s=e.target.getAttribute("data-bg"))&&(e.detail.firesLoad=!0,r(s,(function(){e.target.style.backgroundImage="url("+(i.test(s)?JSON.stringify(s):s)+")",e.detail.firesLoad=!1,n.fire(e.target,"_lazyloaded",{},!0,!0)}))),(a=e.target.getAttribute("data-poster"))&&(e.detail.firesLoad=!0,r(a,(function(){e.target.poster=a,e.detail.firesLoad=!1,n.fire(e.target,"_lazyloaded",{},!0,!0)})))))}),!1))}))},function(e,t){for(var n=document.getElementsByClassName("js-toggle"),r=0;r<n.length;r++)n[r].addEventListener("click",i,!1);function i(){for(var e=this.dataset.target.split(" "),t=document.querySelector(".mobilemenu:not(.dn)"),n=document.querySelector(".desktopmenu:not(.dn)"),r=document.querySelector(".desktopmenu:not(.dn)"),i=0;i<e.length;i++){var s=document.querySelectorAll(e[i]);[].forEach.call(s,(function(e){return e.classList.contains("dn")?e.classList.remove("dn"):e.classList.add("dn"),!1})),t&&t.classList.add("dn"),n&&n.classList.add("dn"),r&&r.classList.remove("db")}}},function(e,t,n){n(24)},function(e,t,n){!function(){"use strict";var e,t,n="data-scrolldir",r="down",i=document.documentElement,s=window,o=document.body,a=Array(32),c=0;function u(){var u=s.scrollY||s.pageYOffset,l=e.timeStamp,h="down"===r?Math.max:Math.min,d=o.scrollHeight-s.innerHeight;if(u=Math.max(0,u),u=Math.min(d,u),a.unshift({y:u,t:l}),a.pop(),u===h(t,u))return c=l,void(t=u);var f=l-512;if(c<f){t=u;for(var p=0;p<32&&a[p]&&!(a[p].t<f);p+=1)t=h(t,a[p].y)}Math.abs(u-t)>64&&(t=u,c=l,r="down"===r?"up":"down",i.setAttribute(n,r))}function l(t){return e=t,s.requestAnimationFrame(u)}t=s.scrollY||s.pageYOffset,i.setAttribute(n,r),s.addEventListener("scroll",l)}()},function(e,t){!function(){"use strict";if("querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach){var e=document.querySelectorAll("#TableOfContents ul li a");[].forEach.call(e,(function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=e.getAttribute("href"),r=document.querySelector(n),i=e.getAttribute("data-speed");r&&function(e,t){var n,r=window.pageYOffset,i=e.offsetTop,s=(i-r)/(t/16);n=s>=0?function(){var e=window.pageYOffset;(e>=i-s||window.innerHeight+e>=document.body.offsetHeight)&&clearInterval(o)}:function(){window.pageYOffset<=(i||0)&&clearInterval(o)};var o=setInterval((function(){window.scrollBy(0,s),n()}),16)}(r,i||500)}),!1)}))}}()},function(e,t){var n,r=document.querySelectorAll("[data-toggle-tab]"),i=document.querySelectorAll("[data-pane]");function s(e){if(e.target){e.preventDefault();var t=e.currentTarget.getAttribute("data-toggle-tab")}else t=e;window.localStorage&&window.localStorage.setItem("configLangPref",t);for(var n=document.querySelectorAll("[data-toggle-tab='"+t+"']"),s=document.querySelectorAll("[data-pane='"+t+"']"),o=0;o<r.length;o++)r[o].classList.remove("active"),i[o].classList.remove("active");for(o=0;o<n.length;o++)n[o].classList.add("active"),s[o].classList.add("active")}for(n=0;n<r.length;n++)r[n].addEventListener("click",s);window.localStorage.getItem("configLangPref")&&s(window.localStorage.getItem("configLangPref"))},function(e,t){document.documentElement.className=document.documentElement.className.replace(/\bno-js\b/,"js")}]);
++ */var r;r=function(){"use strict";function t(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,o=void 0,s=void 0,a=function(t,e){p[i]=t,p[i+1]=e,2===(i+=2)&&(s?s(g):w())},u="undefined"!=typeof window?window:void 0,c=u||{},l=c.MutationObserver||c.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(g,1)}}var p=new Array(1e3);function g(){for(var t=0;t<i;t+=2)(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0;i=0}var m,y,v,b,w=void 0;function _(t,e){var n=this,r=new this.constructor(C);void 0===r[S]&&D(r);var i=n._state;if(i){var o=arguments[i-1];a((function(){return L(i,r,o,n._result)}))}else I(n,r,t,e);return r}function x(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(C);return k(e,t),e}h?w=function(){return e.nextTick(g)}:l?(y=0,v=new l(g),b=document.createTextNode(""),v.observe(b,{characterData:!0}),w=function(){b.data=y=++y%2}):f?((m=new MessageChannel).port1.onmessage=g,w=function(){return m.port2.postMessage(0)}):w=void 0===u?function(){try{var t=Function("return this")().require("vertx");return void 0!==(o=t.runOnLoop||t.runOnContext)?function(){o(g)}:d()}catch(t){return d()}}():d();var S=Math.random().toString(36).substring(2);function C(){}var A={error:null};function E(t){try{return t.then}catch(t){return A.error=t,A}}function T(e,n,r){n.constructor===e.constructor&&r===_&&n.constructor.resolve===x?function(t,e){1===e._state?N(t,e._result):2===e._state?j(t,e._result):I(e,void 0,(function(e){return k(t,e)}),(function(e){return j(t,e)}))}(e,n):r===A?(j(e,A.error),A.error=null):void 0===r?N(e,n):t(r)?function(t,e,n){a((function(t){var r=!1,i=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(n,e,(function(n){r||(r=!0,e!==n?k(t,n):N(t,n))}),(function(e){r||(r=!0,j(t,e))}),t._label);!r&&i&&(r=!0,j(t,i))}),t)}(e,n,r):N(e,n)}function k(t,e){var n,r;t===e?j(t,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=e),null===n||"object"!==r&&"function"!==r?N(t,e):T(t,e,E(e)))}function O(t){t._onerror&&t._onerror(t._result),R(t)}function N(t,e){void 0===t._state&&(t._result=e,t._state=1,0!==t._subscribers.length&&a(R,t))}function j(t,e){void 0===t._state&&(t._state=2,t._result=e,a(O,t))}function I(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+1]=n,i[o+2]=r,0===o&&t._state&&a(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,s=0;s<e.length;s+=3)r=e[s],i=e[s+n],r?L(n,r,i,o):i(o);t._subscribers.length=0}}function L(e,n,r,i){var o=t(r),s=void 0,a=void 0,u=void 0,c=void 0;if(o){if((s=function(t,e){try{return t(e)}catch(t){return A.error=t,A}}(r,i))===A?(c=!0,a=s.error,s.error=null):u=!0,n===s)return void j(n,new TypeError("A promises callback cannot return that same promise."))}else s=i,u=!0;void 0!==n._state||(o&&u?k(n,s):c?j(n,a):1===e?N(n,s):2===e&&j(n,s))}var P=0;function D(t){t[S]=P++,t._state=void 0,t._result=void 0,t._subscribers=[]}var $=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(C),this.promise[S]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?N(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&N(this.promise,this._result))):j(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===x){var i=E(t);if(i===_&&void 0!==t._state)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===q){var o=new n(C);T(o,t,i),this._willSettleAt(o,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===t?j(r,n):this._result[e]=n),0===this._remaining&&N(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;I(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},t}(),q=function(){function t(e){this[S]=P++,this._result=this._state=void 0,this._subscribers=[],C!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e((function(e){k(t,e)}),(function(e){j(t,e)}))}catch(e){j(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},t}();return q.prototype.then=_,q.all=function(t){return new $(this,t).promise},q.race=function(t){var e=this;return r(t)?new e((function(n,r){for(var i=t.length,o=0;o<i;o++)e.resolve(t[o]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},q.resolve=x,q.reject=function(t){var e=new this(C);return j(e,t),e},q._setScheduler=function(t){s=t},q._setAsap=function(t){a=t},q._asap=a,q.polyfill=function(){var t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=q},q.Promise=q,q},t.exports=r()}).call(e,n(9),n(4))},function(t,e,n){"use strict";t.exports=function(t,e){return/\?/.test(t)?t+="&":t+="?",t+r(e)};var r=n(45)},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(s(t),(function(s){var a=encodeURIComponent(r(s))+n;return i(t[s])?o(t[s],(function(t){return a+encodeURIComponent(r(t))})).join(e):a+encodeURIComponent(r(t[s]))})).join(e):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";t.exports=function(t,e,n){if("GET"===e.method){e.debug("JSONP: start");var o=!1,s=!1;i+=1;var a=document.getElementsByTagName("head")[0],u=document.createElement("script"),c="algoliaJSONP_"+i,l=!1;window[c]=function(t){!function(){try{delete window[c],delete window[c+"_loaded"]}catch(t){window[c]=window[c+"_loaded"]=void 0}}(),s?e.debug("JSONP: Late answer, ignoring"):(o=!0,d(),n(null,{body:t,responseText:JSON.stringify(t)}))},t+="&callback="+c,e.jsonBody&&e.jsonBody.params&&(t+="&"+e.jsonBody.params);var h=setTimeout((function(){e.debug("JSONP: Script timeout"),s=!0,d(),n(new r.RequestTimeout)}),e.timeouts.complete);u.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||f()},u.onload=f,u.onerror=function(){e.debug("JSONP: Script error"),l||s||(d(),n(new r.JSONPScriptError))},u.async=!0,u.defer=!0,u.src=t,a.appendChild(u)}else n(new Error("Method "+e.method+" "+t+" is not supported by JSONP."));function f(){e.debug("JSONP: success"),l||s||(l=!0,o||(e.debug("JSONP: Fail. Script loaded but did not call the callback"),d(),n(new r.JSONPScriptFail)))}function d(){clearTimeout(h),u.onload=null,u.onreadystatechange=null,u.onerror=null,a.removeChild(u)}};var r=n(5),i=0},function(t,e,n){t.exports=function(t){return function(e,i,o){var s=n(3);(o=o&&s(o)||{}).hosts=o.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof e&&void 0!==e||(e="",i="",o._allowEmptyCredentials=!0);var a=t(e,i,o),u=a.initIndex("places");return u.search=r("query","/1/places/query"),u.getObject=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(t),hostType:"read",callback:e})},u}};var r=n(13)},function(t,e,n){"use strict";t.exports="3.30.0"},function(t,e,n){"use strict";t.exports=n(50)},function(t,e,n){"use strict";var r=n(15);n(1).element=r;var i=n(0);i.isArray=r.isArray,i.isFunction=r.isFunction,i.isObject=r.isPlainObject,i.bind=r.proxy,i.each=function(t,e){r.each(t,(function(t,n){return e(n,t)}))},i.map=r.map,i.mixin=r.extend,i.Event=r.Event;var o=n(51),s=n(16);function a(t,e,n,a){n=i.isArray(n)?n:[].slice.call(arguments,2);var u=r(t).each((function(t,i){var u=r(i),c=new s({el:u}),l=a||new o({input:u,eventBus:c,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth});u.data("aaAutocomplete",l)}));return u.autocomplete={},i.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(t){u.autocomplete[t]=function(){var e,n=arguments;return u.each((function(i,o){var s=r(o).data("aaAutocomplete");e=s[t].apply(s,n)})),e}})),u}a.sources=o.sources,a.escapeHighlightedString=i.escapeHighlightedString;var u="autocomplete"in window,c=window.autocomplete;a.noConflict=function(){return u?window.autocomplete=c:delete window.autocomplete,a},t.exports=a},function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(16),s=n(52),a=n(59),u=n(17),c=n(11);function l(t){var e,n;if((t=t||{}).input||r.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=r.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=r.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=r.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",r.getUniqueId()].join("-");var s=function(t){var e,n,o,s;e=i.element(t.input),n=i.element(u.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var a,c=u.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=i.element(c).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(r.templatify(t.templates.dropdownMenu)()),(s=e.clone().css(t.css.hint).css((a=e,{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}))).val("").addClass(r.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),s.removeData&&s.removeData(),e.data("aaAttrs",{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(r.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(t){}return(n=t.appendTo?n.appendTo(i.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent()).prepend(t.hint?s:null).append(o),{wrapper:n,input:e,hint:s,menu:o}}(t);this.$node=s.wrapper;var a=this.$input=s.input;e=s.menu,n=s.hint,t.dropdownMenuContainer&&i.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),a.on("blur.aa",(function(t){var n=document.activeElement;r.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),r.defer((function(){a.focus()})))})),e.on("mousedown.aa",(function(t){t.preventDefault()})),this.eventBus=t.eventBus||new o({el:a}),this.dropdown=new l.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new l.Input({input:a,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}r.mixin(l.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];r.each(t.keyboardShortcuts,(function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)})),i.element(document).keydown((function(t){var r=t.target||t.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var o=t.which||t.keyCode;-1!==n.indexOf(o)&&(e.focus(),t.stopPropagation(),t.preventDefault())}}))}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n)},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(r),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var r=t.left-e.left;this.$node.css("left",r+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion(),this.debug||(this.autoselectOnBlur&&t?this._select(t):this.autoselectOnBlur&&e?this._select(e):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,r;n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion(),n?(this._select(n),e.preventDefault()):this.autoselect&&r&&(this._select(r),e.preventDefault())},_onTabKeyed:function(t,e){var n;this.tabAutocomplete?(n=this.dropdown.getDatumForCursor())?(this._select(n),e.preventDefault()):this._autocomplete(!0):this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,o;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=s.normalizeQuery(e),i=r.escapeRegExChars(n),(o=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+o[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,r,i;e=this.input.getHint(),n=this.input.getQuery(),r=t||this.input.isCursorAtEnd(),e&&n!==e&&r&&((i=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(i.value),this.eventBus.trigger("autocompleted",i.raw,i.datasetName))},_select:function(t){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName).isDefaultPrevented()&&(this.dropdown.close(),r.defer(r.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=r.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var t,e,n;this.input.destroy(),this.dropdown.destroy(),t=this.$node,e=this.cssClasses,n=t.find(r.className(e.prefix,e.input)),r.each(n.data("aaAttrs"),(function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)})),n.detach().removeClass(r.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData("aaAttrs"),t.remove(),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),l.Dropdown=a,l.Input=s,l.sources=n(61),t.exports=l},function(t,e,n){"use strict";var r;r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var i=n(0),o=n(1),s=n(10);function a(t){var e,n,s,a,u,c=this;(t=t||{}).input||i.error("input is missing"),e=i.bind(this._onBlur,this),n=i.bind(this._onFocus,this),s=i.bind(this._onKeydown,this),a=i.bind(this._onInput,this),this.$hint=o.element(t.hint),this.$input=o.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",s),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=i.noop),i.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(t){r[t.which||t.keyCode]||i.defer(i.bind(c._onInput,c,t))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,o.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},i.mixin(a.prototype,s,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=r[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,r,i;switch(t){case"tab":r=this.getHint(),i=this.getInputValue(),n=r&&r!==i&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;switch(t){case"tab":n=!u(e);break;default:n=!0}return n},_checkInputValue:function(){var t,e,n,r,i;t=this.getInputValue(),r=t,i=this.query,n=!(!(e=a.normalizeQuery(r)===a.normalizeQuery(i))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,i.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},function(t,e,n){"use strict";var r,i,o,s=[n(54),n(55),n(56),n(57),n(58)],a=-1,u=[],c=!1;function l(){r&&i&&(r=!1,i.length?u=i.concat(u):a=-1,u.length&&h())}function h(){if(!r){c=!1,r=!0;for(var t=u.length,e=setTimeout(l);t;){for(i=u,u=[];i&&++a<t;)i[a].run();a=-1,t=u.length}i=null,a=-1,r=!1,clearTimeout(e)}}for(var f=-1,d=s.length;++f<d;)if(s[f]&&s[f].test&&s[f].test()){o=s[f].install(h);break}function p(t,e){this.fun=t,this.array=e}p.prototype.run=function(){var t=this.fun,e=this.array;switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);default:return t.apply(null,e)}},t.exports=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),c||r||(c=!0,o())}},function(t,e,n){"use strict";(function(t){e.test=function(){return void 0!==t&&!t.browser},e.install=function(e){return function(){t.nextTick(e)}}}).call(e,n(9))},function(t,e,n){"use strict";(function(t){var n=t.MutationObserver||t.WebKitMutationObserver;e.test=function(){return n},e.install=function(e){var r=0,i=new n(e),o=t.document.createTextNode("");return i.observe(o,{characterData:!0}),function(){o.data=r=++r%2}}}).call(e,n(4))},function(t,e,n){"use strict";(function(t){e.test=function(){return!t.setImmediate&&void 0!==t.MessageChannel},e.install=function(e){var n=new t.MessageChannel;return n.port1.onmessage=e,function(){n.port2.postMessage(0)}}}).call(e,n(4))},function(t,e,n){"use strict";(function(t){e.test=function(){return"document"in t&&"onreadystatechange"in t.document.createElement("script")},e.install=function(e){return function(){var n=t.document.createElement("script");return n.onreadystatechange=function(){e(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},t.document.documentElement.appendChild(n),e}}}).call(e,n(4))},function(t,e,n){"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}},function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(10),s=n(60),a=n(11);function u(t){var e,n,o,s=this;(t=t||{}).menu||r.error("menu is required"),r.isArray(t.datasets)||r.isObject(t.datasets)||r.error("1 or more datasets required"),t.datasets||r.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=r.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=r.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=r.bind(this._onSuggestionClick,this),n=r.bind(this._onSuggestionMouseEnter,this),o=r.bind(this._onSuggestionMouseLeave,this);var c=r.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=i.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,o).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=r.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=r.templatify(t.templates.empty),this.$empty=i.element('<div class="'+r.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=r.map(t.datasets,(function(e){return function(t,e,n){return new u.Dataset(r.mixin({$menu:t,cssClasses:n},e))}(s.$menu,e,t.cssClasses)})),r.each(this.datasets,(function(t){var e=t.getRoot();e&&0===e.parent().length&&s.$menu.append(e),t.onSync("rendered",s._onRendered,s)})),t.templates&&t.templates.footer&&(this.templates.footer=r.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var l=this;i.element(window).resize((function(){l._redraw()}))}r.mixin(u.prototype,o,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",i.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=i.element(t.currentTarget);if(!e.hasClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(e,!1)}),0)}},_onSuggestionMouseLeave:function(t){t.relatedTarget&&i.element(t.relatedTarget).closest("."+r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0||(this._removeCursor(),this.trigger("cursorRemoved"))},_onRendered:function(t,e){if(this.isEmpty=r.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length<this.minLength)this._hide();else{var n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(n),this.$empty.show(),this._show()}else r.any(this.datasets,(function(t){return t.templates&&t.templates.empty}))?e.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),e.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,r,i;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!=(r=((r=e.index(n)+t)+1)%(e.length+1)-1)?(r<-1&&(r=e.length-1),this._setCursor(i=e.eq(r),!0),this._ensureVisible(i)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,r,i;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),r=this.$menu.scrollTop(),i=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(r+e):i<n&&this.$menu.scrollTop(r+(n-i))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:s.extractDatum(t),value:s.extractValue(t),datasetName:s.extractDatasetName(t)}),e},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(t){r.each(this.datasets,(function(e){e.update(t)}))},empty:function(){r.each(this.datasets,(function(t){t.clear()})),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,r.each(this.datasets,(function(t){t.destroy()}))}}),u.Dataset=s,t.exports=u},function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(17),s=n(11),a=n(10);function u(t){var e,n,a,u;(t=t||{}).templates=t.templates||{},t.source||r.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&r.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?r.getUniqueId():t.name,this.source=t.source,this.displayFn=(n=(n=t.display||t.displayKey)||"value",r.isFunction(n)?n:function(t){return t[n]}),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=(a=t.templates,u=this.displayFn,{empty:a.empty&&r.templatify(a.empty),header:a.header&&r.templatify(a.header),footer:a.footer&&r.templatify(a.footer),suggestion:a.suggestion||function(t){return"<p>"+u(t)+"</p>"}}),this.css=r.mixin({},s,t.appendTo?s.appendTo:{}),this.cssClasses=t.cssClasses=r.mixin({},s.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var c=r.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(c+"-"+this.name).length>0?i.element(t.$menu.find(c+"-"+this.name)[0]):i.element(o.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}u.extractDatasetName=function(t){return i.element(t).data("aaDataset")},u.extractValue=function(t){return i.element(t).data("aaValue")},u.extractDatum=function(t){var e=i.element(t).data("aaDatum");return"string"==typeof e&&(e=JSON.parse(e)),e},r.mixin(u.prototype,a,{_render:function(t,e){if(this.$el){var n,s=this,a=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(u.apply(this,a)).prepend(s.templates.header?l.apply(this,a):null).append(s.templates.footer?h.apply(this,a):null);else if(n)this.$el.html(c.apply(this,a)).prepend(s.templates.header?l.apply(this,a):null).append(s.templates.footer?h.apply(this,a):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function u(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),s.templates.empty.apply(this,e)}function c(){var t,n,a=[].slice.call(arguments,0),u=this,c=o.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=i.element(c).css(this.css.suggestions),n=r.map(e,l),t.append.apply(t,n),t;function l(t){var e,n=o.suggestion.replace("%PREFIX%",u.cssClasses.prefix).replace("%SUGGESTION%",u.cssClasses.suggestion);return(e=i.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(s.templates.suggestion.apply(this,[t].concat(a)))).data("aaDataset",s.name),e.data("aaValue",s.displayFn(t)||void 0),e.data("aaDatum",JSON.stringify(t)),e.children().each((function(){i.element(this).css(u.css.suggestionChild)})),e}}function l(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),s.templates.header.apply(this,e)}function h(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),s.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,r=function(){n.canceled||n.source(t,e.bind(n))};this.debounce?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,r()}),this.debounce)):r()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered","")},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=u},function(t,e,n){"use strict";t.exports={hits:n(62),popularIn:n(63)}},function(t,e,n){"use strict";var r=n(0),i=n(18),o=n(19);t.exports=function(t,e){var n=o(t.as._ua);return n&&n[0]>=3&&n[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+i),function(n,i){t.search(n,e,(function(t,e){t?r.error(t.message):i(e.hits,e)}))}}},function(t,e,n){"use strict";var r=n(0),i=n(18),o=n(19);t.exports=function(t,e,n,s){var a=o(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+i),!n.source)return r.error("Missing 'source' key");var u=r.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return r.error("Missing 'index' key");var c=n.index;return s=s||{},function(a,l){t.search(a,e,(function(t,a){if(t)r.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],f=r.mixin({hitsPerPage:0},n);delete f.source,delete f.index;var d=o(c.as._ua);return d&&d[0]>=3&&d[1]>20&&(e.additionalUA="autocomplete.js "+i),void c.search(u(h),f,(function(t,e){if(t)r.error(t.message);else{var n=[];if(s.includeAll){var i=s.allTitle||"All departments";n.push(r.mixin({facet:{value:i,count:e.nbHits}},r.cloneDeep(h)))}r.each(e.facets,(function(t,e){r.each(t,(function(t,i){n.push(r.mixin({facet:{facet:e,value:i,count:t}},r.cloneDeep(h)))}))}));for(var o=1;o<a.hits.length;++o)n.push(a.hits[o]);l(n,a)}}))}l([])}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="algolia-docsearch-suggestion",i={suggestion:'\n  <a class="'+r+"\n    {{#isCategoryHeader}}"+r+"__main{{/isCategoryHeader}}\n    {{#isSubCategoryHeader}}"+r+'__secondary{{/isSubCategoryHeader}}\n    "\n    aria-label="Link to the result"\n    href="{{{url}}}"\n    >\n    <div class="'+r+'--category-header">\n        <span class="'+r+'--category-header-lvl0">{{{category}}}</span>\n    </div>\n    <div class="'+r+'--wrapper">\n      <div class="'+r+'--subcategory-column">\n        <span class="'+r+'--subcategory-column-text">{{{subcategory}}}</span>\n      </div>\n      {{#isTextOrSubcategoryNonEmpty}}\n      <div class="'+r+'--content">\n        <div class="'+r+'--subcategory-inline">{{{subcategory}}}</div>\n        <div class="'+r+'--title">{{{title}}}</div>\n        {{#text}}<div class="'+r+'--text">{{{text}}}</div>{{/text}}\n      </div>\n      {{/isTextOrSubcategoryNonEmpty}}\n    </div>\n  </a>\n  ',suggestionSimple:'\n  <div class="'+r+"\n    {{#isCategoryHeader}}"+r+"__main{{/isCategoryHeader}}\n    {{#isSubCategoryHeader}}"+r+'__secondary{{/isSubCategoryHeader}}\n    suggestion-layout-simple\n  ">\n    <div class="'+r+'--category-header">\n        {{^isLvl0}}\n        <span class="'+r+"--category-header-lvl0 "+r+'--category-header-item">{{{category}}}</span>\n          {{^isLvl1}}\n          {{^isLvl1EmptyOrDuplicate}}\n          <span class="'+r+"--category-header-lvl1 "+r+'--category-header-item">\n              {{{subcategory}}}\n          </span>\n          {{/isLvl1EmptyOrDuplicate}}\n          {{/isLvl1}}\n        {{/isLvl0}}\n        <div class="'+r+"--title "+r+'--category-header-item">\n            {{#isLvl2}}\n                {{{title}}}\n            {{/isLvl2}}\n            {{#isLvl1}}\n                {{{subcategory}}}\n            {{/isLvl1}}\n            {{#isLvl0}}\n                {{{category}}}\n            {{/isLvl0}}\n        </div>\n    </div>\n    <div class="'+r+'--wrapper">\n      {{#text}}\n      <div class="'+r+'--content">\n        <div class="'+r+'--text">{{{text}}}</div>\n      </div>\n      {{/text}}\n    </div>\n  </div>\n  ',footer:'\n    <div class="algolia-docsearch-footer">\n      Search by <a class="algolia-docsearch-footer--logo" href="https://www.algolia.com/docsearch">Algolia</a>\n    </div>\n  ',empty:'\n  <div class="'+r+'">\n    <div class="'+r+'--wrapper">\n        <div class="'+r+"--content "+r+'--no-results">\n            <div class="'+r+'--title">\n                <div class="'+r+'--text">\n                    No results found for query <b>"{{query}}"</b>\n                </div>\n            </div>\n        </div>\n    </div>\n  </div>\n  ',searchBox:'\n  <form novalidate="novalidate" onsubmit="return false;" class="searchbox">\n    <div role="search" class="searchbox__wrapper">\n      <input id="docsearch" type="search" name="search" placeholder="Search the docs" autocomplete="off" required="required" class="searchbox__input"/>\n      <button type="submit" title="Submit your search query." class="searchbox__submit" >\n        <svg width=12 height=12 role="img" aria-label="Search">\n          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use>\n        </svg>\n      </button>\n      <button type="reset" title="Clear the search query." class="searchbox__reset hide">\n        <svg width=12 height=12 role="img" aria-label="Reset">\n          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use>\n        </svg>\n      </button>\n    </div>\n</form>\n\n<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden">\n  <svg xmlns="http://www.w3.org/2000/svg">\n    <symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"></symbol>\n    <symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"></symbol>\n  </svg>\n</div>\n  '};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(20),s=(r=o)&&r.__esModule?r:{default:r},a={mergeKeyWithParent:function(t,e){if(void 0===t[e])return t;if("object"!==i(t[e]))return t;var n=s.default.extend({},t,t[e]);return delete n[e],n},groupBy:function(t,e){var n={};return s.default.each(t,(function(t,r){if(void 0===r[e])throw new Error("[groupBy]: Object has no key "+e);var i=r[e];"string"==typeof i&&(i=i.toLowerCase()),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[]),n[i].push(r)})),n},values:function(t){return Object.keys(t).map((function(e){return t[e]}))},flatten:function(t){var e=[];return t.forEach((function(t){Array.isArray(t)?t.forEach((function(t){e.push(t)})):e.push(t)})),e},flattenAndFlagFirst:function(t,e){var n=this.values(t).map((function(t){return t.map((function(t,n){return t[e]=0===n,t}))}));return this.flatten(n)},compact:function(t){var e=[];return t.forEach((function(t){t&&e.push(t)})),e},getHighlightedValue:function(t,e){return t._highlightResult&&t._highlightResult.hierarchy_camel&&t._highlightResult.hierarchy_camel[e]&&t._highlightResult.hierarchy_camel[e].matchLevel&&"none"!==t._highlightResult.hierarchy_camel[e].matchLevel&&t._highlightResult.hierarchy_camel[e].value?t._highlightResult.hierarchy_camel[e].value:t._highlightResult&&t._highlightResult&&t._highlightResult[e]&&t._highlightResult[e].value?t._highlightResult[e].value:t[e]},getSnippetedValue:function(t,e){if(!t._snippetResult||!t._snippetResult[e]||!t._snippetResult[e].value)return t[e];var n=t._snippetResult[e].value;return n[0]!==n[0].toUpperCase()&&(n="…"+n),-1===[".","!","?"].indexOf(n[n.length-1])&&(n+="…"),n},deepClone:function(t){return JSON.parse(JSON.stringify(t))}};e.default=a}])},t.exports=r()},function(t,e,n){n(0),n(10)},function(t,e,n){!function(e,r){var i=function(){r(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};r=r.bind(null,e,e.document),t.exports?r(n(0)):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,(function(t,e,n){"use strict";var r,i,o={};function s(t,n){if(!o[t]){var r=e.createElement(n?"link":"script"),i=e.getElementsByTagName("script")[0];n?(r.rel="stylesheet",r.href=t):r.src=t,o[t]=!0,o[r.src||r.href]=!0,i.parentNode.insertBefore(r,i)}}e.addEventListener&&(i=/\(|\)|\s|'/,r=function(t,n){var r=e.createElement("img");r.onload=function(){r.onload=null,r.onerror=null,r=null,n()},r.onerror=r.onload,r.src=t,r&&r.complete&&r.onload&&r.onload()},addEventListener("lazybeforeunveil",(function(t){var e,o,a;t.detail.instance==n&&(t.defaultPrevented||("none"==t.target.preload&&(t.target.preload="auto"),(e=t.target.getAttribute("data-link"))&&s(e,!0),(e=t.target.getAttribute("data-script"))&&s(e),(e=t.target.getAttribute("data-require"))&&(n.cfg.requireJs?n.cfg.requireJs([e]):s(e)),(o=t.target.getAttribute("data-bg"))&&(t.detail.firesLoad=!0,r(o,(function(){t.target.style.backgroundImage="url("+(i.test(o)?JSON.stringify(o):o)+")",t.detail.firesLoad=!1,n.fire(t.target,"_lazyloaded",{},!0,!0)}))),(a=t.target.getAttribute("data-poster"))&&(t.detail.firesLoad=!0,r(a,(function(){t.target.poster=a,t.detail.firesLoad=!1,n.fire(t.target,"_lazyloaded",{},!0,!0)})))))}),!1))}))},function(t,e){for(var n=document.getElementsByClassName("js-toggle"),r=0;r<n.length;r++)n[r].addEventListener("click",i,!1);function i(){for(var t=this.dataset.target.split(" "),e=document.querySelector(".mobilemenu:not(.dn)"),n=document.querySelector(".desktopmenu:not(.dn)"),r=document.querySelector(".desktopmenu:not(.dn)"),i=0;i<t.length;i++){var o=document.querySelectorAll(t[i]);[].forEach.call(o,(function(t){return t.classList.contains("dn")?t.classList.remove("dn"):t.classList.add("dn"),!1})),e&&e.classList.add("dn"),n&&n.classList.add("dn"),r&&r.classList.remove("db")}}},function(t,e,n){n(13)},function(t,e,n){!function(){"use strict";var t,e,n="data-scrolldir",r="down",i=document.documentElement,o=window,s=document.body,a=Array(32),u=0;function c(){var c=o.scrollY||o.pageYOffset,l=t.timeStamp,h="down"===r?Math.max:Math.min,f=s.scrollHeight-o.innerHeight;if(c=Math.max(0,c),c=Math.min(f,c),a.unshift({y:c,t:l}),a.pop(),c===h(e,c))return u=l,void(e=c);var d=l-512;if(u<d){e=c;for(var p=0;p<32&&a[p]&&!(a[p].t<d);p+=1)e=h(e,a[p].y)}Math.abs(c-e)>64&&(e=c,u=l,r="down"===r?"up":"down",i.setAttribute(n,r))}function l(e){return t=e,o.requestAnimationFrame(c)}e=o.scrollY||o.pageYOffset,i.setAttribute(n,r),o.addEventListener("scroll",l)}()},function(t,e){!function(){"use strict";if("querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach){var t=document.querySelectorAll("#TableOfContents ul li a");[].forEach.call(t,(function(t){t.addEventListener("click",(function(e){e.preventDefault();var n=t.getAttribute("href"),r=document.querySelector(n),i=t.getAttribute("data-speed");r&&function(t,e){var n,r=window.pageYOffset,i=t.offsetTop,o=(i-r)/(e/16);n=o>=0?function(){var t=window.pageYOffset;(t>=i-o||window.innerHeight+t>=document.body.offsetHeight)&&clearInterval(s)}:function(){window.pageYOffset<=(i||0)&&clearInterval(s)};var s=setInterval((function(){window.scrollBy(0,o),n()}),16)}(r,i||500)}),!1)}))}}()},function(t,e){var n,r=document.querySelectorAll("[data-toggle-tab]"),i=document.querySelectorAll("[data-pane]");function o(t){if(t.target){t.preventDefault();var e=t.currentTarget.getAttribute("data-toggle-tab")}else e=t;window.localStorage&&window.localStorage.setItem("configLangPref",e);for(var n=document.querySelectorAll("[data-toggle-tab='"+e+"']"),o=document.querySelectorAll("[data-pane='"+e+"']"),s=0;s<r.length;s++)r[s].classList.remove("active"),i[s].classList.remove("active");for(s=0;s<n.length;s++)n[s].classList.add("active"),o[s].classList.add("active")}for(n=0;n<r.length;n++)r[n].addEventListener("click",o);window.localStorage.getItem("configLangPref")&&o(window.localStorage.getItem("configLangPref"))},function(t,e){document.documentElement.className=document.documentElement.className.replace(/\bno-js\b/,"js")}]);
index 0d276b374f42d6a20adf93b635ca83aa8b2f6a1c,0000000000000000000000000000000000000000..1e46fc07c65fdab4c3f90343ae87af8ba21af9bf
mode 100644,000000..100644
--- /dev/null
@@@ -1,18 -1,0 +1,22 @@@
-     name = "Linode"
-     link = "https://www.linode.com/"
-     logo = "/images/sponsors/linode-logo_standard_light_medium.png"
-     copy = ""
 +[[banners]]
-     name = "eSolia"
-     link = "https://esolia.com/post/why-did-esolia-choose-hugo/"
-     logo = "/images/sponsors/esolia-logo.svg"
-     copy = ""
++    name         = "Linode"
++    link         = "https://www.linode.com/"
++    logo         = "/images/sponsors/linode-logo_standard_light_medium.png"
++    utm_campaign = "hugosponsor"
 +
 +[[banners]]
-     name    = "BEP Consulting"
-     link    = "https://bep.consulting"
-     logo    = "/images/sponsors/bep-consulting.svg"
-     bgcolor = "#004887"
-     copy    = ""
++    name         = "eSolia"
++    link         = "https://esolia.com/post/why-did-esolia-choose-hugo/"
++    logo         = "/images/sponsors/esolia-logo.svg"
++    utm_campaign = "hugosponsor"
 +
 +[[banners]]
++    name         = "ButterCMS"
++    link         = "https://buttercms.com/hugo-cms/"
++    logo         = "/images/sponsors/butter-light.svg"
++    utm_campaign = "sponsorship"
++    bgcolor      = "#131A3E"
++
++    #hugohome
++    #hugofooter
++    #hugogithub
index a808655a676a3ba6ad15dd6baff8dda69016c7d3,0000000000000000000000000000000000000000..e0f6670be64b4a07f7b07116de4aa86a8c93fa2b
mode 100644,000000..100644
--- /dev/null
@@@ -1,38 -1,0 +1,41 @@@
- {{$classes_box := "ba b--dark-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l "}}
- {{$gtag := .gtag | default "unknown" }}
++{{ $classes_box := "ba b--dark-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l " }}
++{{ $gtag := .gtag | default "unknown" }}
++{{ $classes_box := "ba b--dark-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l " }}
++{{ $gtag := .gtag | default "unknown" }}
++{{ $utmSource := cond (eq $gtag "footer") "hugofooter" "hugohome" }}
 +{{ with .cx.Site.Data.sponsors }}
-   <section class="{{ $.classes_section | default "bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100"}}">
-     <div class="center mw9"> 
++  <section
++    class="{{ $.classes_section | default "bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100" }}">
++    <div class="center mw9">
 +      <h3 class="b f3 mv0 light-gray">Hugo Sponsors</h3>
 +      <div class="flex-ns flex-wrap center justify-between pt3">
 +        {{ range .banners }}
-           {{ $banner := . }}
-           {{if .logo}}
-             <div class="{{$classes_box}} o-100"{{ with .bgcolor }} style="background-color: {{ . }};"{{ end}}>
-               {{with .link -}}
-                 {{ $url := printf "%s?%s" . (querify "utm_source" "homepage" "utm_medium" "banner" "utm_campaign" "hugosponsor") | safeURL }}
-                 {{ if eq (getenv "HUGO_ENV") "production" | or (eq $.cx.Site.Params.env "production")  }}
-                    {{ $gtagID := printf "Sponsor %s %s" $banner.name $gtag | title }}
-                    <a href="{{ $url }}" onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});" class="grow">
-                 {{ else }}
-                    <a href="{{ $url }}" class="grow">
-                 {{ end }}
-               {{- end}}
-               <img src="{{ .logo }}" alt="Logo for {{ .name }}" class="img h3 center" />
-               {{with .link}}</a>{{end}}
-               {{with .copy}}
-                 <p class="center lh-copy gray mv1 tc {{$.classes_copy | default "f5 w-70-ns"}}">
-                   {{- . -}}
-                 </p>
-               {{end}}
-             </div>
-           {{else}}
-             <div class="{{$classes_box}} o-10">
-               <p class="b black tc">Your Logo Here</p>
-             </div>
-           {{end}}
-         {{end}}
++          <div
++            class="{{ $classes_box }} o-100"
++            {{ with .bgcolor }}style="background-color: {{ . }};"{{ end }}>
++            {{ $url := printf "%s?%s" .link (querify "utm_source" $utmSource "utm_medium" "banner" "utm_campaign" (.utm_campaign | default "hugosponsor")) | safeURL }}
++            {{ if eq (getenv "HUGO_ENV") "production" | or (eq $.cx.Site.Params.env "production") }}
++              {{ $gtagID := printf "Sponsor %s %s" .name $gtag | title }}
++              <a
++                href="{{ $url }}"
++                onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});"
++                class="grow">
++                <img
++                  src="{{ .logo }}"
++                  alt="Logo for {{ .name }}"
++                  class="img h3 center" />
++              </a>
++            {{ else }}
++              <a href="{{ $url }}" class="grow">
++                <img
++                  src="{{ .logo }}"
++                  alt="Logo for {{ .name }}"
++                  class="img h3 center"
++              /></a>
++            {{ end }}
++          </div>
++        {{ end }}
 +      </div>
 +    </div>
 +  </section>
- {{end}}
++{{ end }}
index 9222aad764487a0caa0727b8124241117af09fcb,0000000000000000000000000000000000000000..012a7b9f90fa8c7184610feef02e28ae99395b42
mode 100644,000000..100644
--- /dev/null
@@@ -1,43 -1,0 +1,35 @@@
-   "homepage": "https://gohugo.io/",
-   "bugs": {
-     "url": "https://github.com/gohugoio/gohugoioTheme/issues"
-   },
-   "repository": {
-     "type": "git",
-     "url": "git+https://github.com/gohugoio/gohugoioTheme.git"
-   },
 +{
 +  "name": "gohugo-default-styles",
 +  "version": "1.1.0",
 +  "description": "Default Theme for Hugo Sites",
 +  "main": "index.js",
-     "css-loader": "^4.3.0",
++  "repository": "",
 +  "author": "budparr",
 +  "license": "MIT",
 +  "scripts": {
 +    "build": "NODE_ENV=production webpack",
 +    "build-dev": "NODE_ENV=development webpack --progress --watch",
 +    "start": "npm run build-dev"
 +  },
 +  "devDependencies": {
 +    "clean-webpack-plugin": "^1.0.0",
 +    "clipboard": "^2.0.4",
-     "highlight.js": "^9.13.1",
-     "lazysizes": "^5.2.1",
++    "css-loader": "^1.0.1",
 +    "docsearch.js": "^2.6.1",
 +    "file-loader": "^2.0.0",
 +    "glob-all": "^3.1.0",
-     "postcss": "^7.0.36",
++    "lazysizes": "^4.1.4",
 +    "mini-css-extract-plugin": "^0.4.4",
-     "webpack": "^4.44.1",
++    "postcss": "^7.0.5",
 +    "postcss-cssnext": "^3.1.0",
 +    "postcss-import": "^12.0.1",
 +    "postcss-loader": "^3.0.0",
 +    "purgecss-webpack-plugin": "^1.3.1",
 +    "scrolldir": "^1.4.0",
 +    "tachyons": "^4.7.0",
 +    "typeface-muli": "0.0.54",
++    "webpack": "^4.25.1",
 +    "webpack-command": "^0.4.2"
 +  },
 +  "dependencies": {}
 +}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..657b75c5033b51b18bfe256d619b1027702f699f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 402 58"><g fill="#231F20"><path d="M24.6 23c.4 0 .7-.1 1-.2l10-5.4c1-.5 1.3-1.8.8-2.8-.5-1-1.8-1.3-2.8-.8l-9.9 5.4c-1 .3-1.5 1.3-1.3 2.3.3 1 1.3 1.7 2.3 1.5h-.1zM39.8 30.9c.3 0 .7-.1 1-.3L56.7 22c.6-.3 1-1 1-1.7 0-.8-.3-1.5-.9-1.8-.7-.4-1.4-.4-2.1-.1L38.8 27c-.9.4-1.5 1.4-1.2 2.4.2 1 1.2 1.6 2.2 1.5z"/><path d="M81 19.6c-.4-1.2-1.3-2.2-2.4-2.7L61.4 7.7c-2.8-1.4-6.1-1.4-9 0l-1.4.7L39.1 2C36.3.6 33 .6 30.1 2L2.5 16.9c-1.4.6-2.3 1.9-2.5 3.4v15.2c0 .8.4 1.5 1.1 1.8l35 19c2.8 1.4 6.2 1.4 9 0L80 37.1c.7-.3 1.1-1 1.1-1.8v-15c0-.2-.1-.5-.1-.7zm-76.5.9L32 5.6c1.6-.7 3.5-.7 5.2 0L51 13l3.3-1.8c1.7-.7 3.6-.7 5.2 0l17.1 9.2.2.1-.2.1-33.4 18c-1.7.8-3.6.8-5.2 0l-33.5-18-.2-.1h.2zm38.6 32.2c-1.6.7-3.5.7-5.1 0L4.1 34.3v-9.2L36 42.3c2.8 1.4 6.2 1.4 9 0l32-17.2v9L43.1 52.7zM115.7 10.2h18.2c8.7 0 13.1 3.1 13.1 9.1 0 1.9-.5 3.7-1.6 5.2s-2.6 2.6-4.3 3.2c2.2.4 4.2 1.5 5.7 3.1s2.2 3.6 2.2 5.7c0 3.8-1.4 6.7-4.1 8.7-2.7 2-6.6 3-11.8 3h-17.5v-5.4l1.8-.2c.4 0 .8-.2 1.1-.5.2-.4.3-.9.3-1.3V16.1l-3.1-.3v-5.6zm13.1 6.4v9h2.7c3.5 0 5.3-1.6 5.3-4.8 0-2.8-1.7-4.2-5.1-4.2h-2.9zm0 15.1v9.9h3.7c3.8 0 5.8-1.8 5.8-5.2 0-3.1-1.9-4.7-5.7-4.7h-3.8zM180.7 19v22c0 .5 0 .9.3 1.3.2.3.6.4 1 .5l1.5.1v5.2h-11.7v-3.6h-.2c-1.7 3-4.5 4.4-8.5 4.4-3.1 0-5.3-.8-6.8-2.3-1.4-1.6-2.1-4-2.1-7.3V26.2c0-.4-.1-.8-.4-1.1-.2-.3-.6-.5-1-.5l-1.6-.2V19H164v18.4c-.1 1.1.1 2.2.6 3.1.6.8 1.6 1.1 2.5 1 1.1.1 2.2-.4 2.9-1.2.7-1 1.1-2.2 1-3.4V26.3c0-.5-.1-.9-.3-1.3-.3-.3-.7-.4-1.1-.4l-1.3-.2V19h12.4zM198.9 12.3V19h8.1c2.5-1.1 4.3-3.4 5.5-6.7h5.3V19h6.9l-.5 6.3h-6.4v12.3c-.1 1.1.2 2.2.7 3.2.4.5 1.3.8 2.7.8 1.2 0 2.5-.3 3.6-.8l1.4 6.3c-2.5 1.3-5.2 1.9-7.9 1.8-1.3 0-2.5-.1-3.8-.3-.9-.2-1.8-.4-2.7-.8-.7-.3-1.3-.8-1.8-1.4-.4-.5-.8-1-1.1-1.6-.3-.6-.5-1.3-.6-2-.1-.6-.2-1.3-.3-2V25.3h-9v12.3c-.1 1 .1 2.1.6 3.1.5.7 1.4 1.1 2.3 1 1.1 0 2.2-.3 3.2-.8l1.7 6.2c-2.3 1.2-4.9 1.9-7.5 1.8-3.7 0-6.4-.9-7.9-2.6-1.5-1.7-2.3-4.2-2.3-7.6V25.3h-3.9l.8-5.5c3.6-.8 6.2-3.3 7.6-7.4l5.3-.1zM242.7 18.2c2.7-.1 5.3.6 7.5 2.2 2 1.6 3 4.1 2.8 6.6 0 6.9-5.3 10.2-16 10 .1 1.3.7 2.6 1.7 3.5 1.2 1 2.7 1.4 4.2 1.4 2.6-.1 5.2-.9 7.4-2.3l2.6 6.3c-.5.4-1 .7-1.6.9-1.3.6-2.6 1-4 1.4-1.9.5-3.8.7-5.7.7-4.9 0-8.5-1.3-10.8-4-2.3-2.6-3.5-6.2-3.5-10.7-.1-4.1 1.3-8.2 4-11.4 2.7-3 6.5-4.6 11.4-4.6zm2 9.3c0-.7-.2-1.4-.7-1.9-.5-.5-1.2-.7-1.9-.6-1.4 0-2.8.6-3.6 1.8-1 1.3-1.6 2.9-1.6 4.6 5.2.2 7.7-1.2 7.7-3.9h.1zM272.5 25.5c-1.1 0-2.1.5-2.7 1.3-.7.9-1.1 2.1-1 3.3v12.5l5.1.3v5.3h-18.1V43l1.9-.2c.4.1.8-.1 1.1-.4.2-.4.3-.9.3-1.4V26.2c0-.4-.1-.8-.3-1.2-.3-.3-.6-.4-1-.4l-2-.2V19H268v4.4h.1c.7-1.4 1.7-2.7 3-3.6 1.6-1.1 3.5-1.7 5.4-1.6 1.9-.1 3.7.2 5.4.9v11.3l-7.6.4v-3.9c0-.7-.2-1.1-.5-1.2-.4-.1-.9-.2-1.3-.2zM308.7 17.5c-1.2-.3-2.3-.4-3.4-.4-6.1 0-9.2 3.9-9.2 11.8 0 3.8.8 6.8 2.3 9 1.5 2.2 3.9 3.3 7.1 3.4 1.1 0 2.1-.1 3.2-.4.6-.2 1-.8 1-1.5v-3.7l7.3.4v10.5c-3.8 1.7-7.9 2.5-12.1 2.3-6.1 0-10.8-1.6-14.1-4.9-3.3-3.3-5-8.1-5-14.5 0-3.2.5-6.4 1.6-9.4.9-2.5 2.4-4.6 4.4-6.3 1.8-1.4 3.8-2.5 6-3.3 2.2-.7 4.6-1 6.9-1 4.2-.1 8.3.7 12.2 2.4v10l-7.4.4V19c0-.9-.3-1.4-.8-1.5zM323.6 10.2h14.6l7.5 24.8h.2l7.7-24.7h14.6v5.4l-1.8.2c-.5 0-.9.2-1.2.5-.3.4-.4.9-.3 1.3l1.9 24.8 2.9.1v5.6h-15.3v-5.5l1.8-.2c.4.1.8-.1 1-.4.2-.4.3-.9.2-1.3l-.9-16.1h-.1l-7.2 23.5h-7.1l-7-23.1h-.2l-1 17.3 2.8.2v5.6h-15.3v-5.5l1.8-.2c.5 0 .9-.2 1.2-.5.2-.4.4-.9.4-1.4l2-24.6-3.2-.2v-5.6zM385.5 41.6c3.5 0 5.3-1.4 5.3-4.2 0-1.1-.5-2.2-1.4-2.8-1.4-.8-2.9-1.4-4.5-1.8-1.3-.3-2.7-.8-4-1.3-1.2-.5-2.3-1.2-3.4-1.9-1.2-.9-2.2-2-2.8-3.3-.6-1.5-1-3.2-1-4.8-.1-3.4 1.4-6.7 4-8.8 2.7-2.1 6.2-3.1 10.6-3.1 4-.2 8 .6 11.7 2.2v9.3l-7.4.5v-2.9c0-.8-.3-1.3-.8-1.4-1.1-.3-2.2-.4-3.3-.4-1.1 0-2.2.3-3.1.8-.8.6-1.3 1.6-1.2 2.6-.1 1.1.5 2.2 1.4 2.8 1.5.9 3.1 1.6 4.8 2 1.4.4 2.5.8 3.3 1.1.9.4 1.9.8 2.8 1.3 1 .5 1.9 1.2 2.6 2 .7.9 1.2 1.8 1.6 2.9.5 1.3.7 2.6.7 4 .2 3.6-1.3 7-4.1 9.3-2.7 2.2-6.4 3.3-11.2 3.3-4.3.1-8.6-.7-12.6-2.3v-9.8l7.5-.5v3.2c0 .9.3 1.4.9 1.6 1.1.2 2.3.4 3.6.4z"/></g></svg>
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a0697df083d606e33826afb99f04f4ba48b1f3ba
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 402 58"><g fill="#fff"><path d="M24.6 23c.4 0 .7-.1 1-.2l10-5.4c1-.5 1.3-1.8.8-2.8-.5-1-1.8-1.3-2.8-.8l-9.9 5.4c-1 .3-1.5 1.3-1.3 2.3.3 1 1.3 1.7 2.3 1.5h-.1zM39.8 30.9c.3 0 .7-.1 1-.3L56.7 22c.6-.3 1-1 1-1.7 0-.8-.3-1.5-.9-1.8-.7-.4-1.4-.4-2.1-.1L38.8 27c-.9.4-1.5 1.4-1.2 2.4.2 1 1.2 1.6 2.2 1.5z"/><path d="M81 19.6c-.4-1.2-1.3-2.2-2.4-2.7L61.4 7.7c-2.8-1.4-6.1-1.4-9 0l-1.4.7L39.1 2C36.3.6 33 .6 30.1 2L2.5 16.9c-1.4.6-2.3 1.9-2.5 3.4v15.2c0 .8.4 1.5 1.1 1.8l35 19c2.8 1.4 6.2 1.4 9 0L80 37.1c.7-.3 1.1-1 1.1-1.8v-15c0-.2-.1-.5-.1-.7zm-76.5.9L32 5.6c1.6-.7 3.5-.7 5.2 0L51 13l3.3-1.8c1.7-.7 3.6-.7 5.2 0l17.1 9.2.2.1-.2.1-33.4 18c-1.7.8-3.6.8-5.2 0l-33.5-18-.2-.1h.2zm38.6 32.2c-1.6.7-3.5.7-5.1 0L4.1 34.3v-9.2L36 42.3c2.8 1.4 6.2 1.4 9 0l32-17.2v9L43.1 52.7zM115.7 10.2h18.2c8.7 0 13.1 3.1 13.1 9.1 0 1.9-.5 3.7-1.6 5.2s-2.6 2.6-4.3 3.2c2.2.4 4.2 1.5 5.7 3.1s2.2 3.6 2.2 5.7c0 3.8-1.4 6.7-4.1 8.7-2.7 2-6.6 3-11.8 3h-17.5v-5.4l1.8-.2c.4 0 .8-.2 1.1-.5.2-.4.3-.9.3-1.3V16.1l-3.1-.3v-5.6zm13.1 6.4v9h2.7c3.5 0 5.3-1.6 5.3-4.8 0-2.8-1.7-4.2-5.1-4.2h-2.9zm0 15.1v9.9h3.7c3.8 0 5.8-1.8 5.8-5.2 0-3.1-1.9-4.7-5.7-4.7h-3.8zM180.7 19v22c0 .5 0 .9.3 1.3.2.3.6.4 1 .5l1.5.1v5.2h-11.7v-3.6h-.2c-1.7 3-4.5 4.4-8.5 4.4-3.1 0-5.3-.8-6.8-2.3-1.4-1.6-2.1-4-2.1-7.3V26.2c0-.4-.1-.8-.4-1.1-.2-.3-.6-.5-1-.5l-1.6-.2V19H164v18.4c-.1 1.1.1 2.2.6 3.1.6.8 1.6 1.1 2.5 1 1.1.1 2.2-.4 2.9-1.2.7-1 1.1-2.2 1-3.4V26.3c0-.5-.1-.9-.3-1.3-.3-.3-.7-.4-1.1-.4l-1.3-.2V19h12.4zM198.9 12.3V19h8.1c2.5-1.1 4.3-3.4 5.5-6.7h5.3V19h6.9l-.5 6.3h-6.4v12.3c-.1 1.1.2 2.2.7 3.2.4.5 1.3.8 2.7.8 1.2 0 2.5-.3 3.6-.8l1.4 6.3c-2.5 1.3-5.2 1.9-7.9 1.8-1.3 0-2.5-.1-3.8-.3-.9-.2-1.8-.4-2.7-.8-.7-.3-1.3-.8-1.8-1.4-.4-.5-.8-1-1.1-1.6-.3-.6-.5-1.3-.6-2-.1-.6-.2-1.3-.3-2V25.3h-9v12.3c-.1 1 .1 2.1.6 3.1.5.7 1.4 1.1 2.3 1 1.1 0 2.2-.3 3.2-.8l1.7 6.2c-2.3 1.2-4.9 1.9-7.5 1.8-3.7 0-6.4-.9-7.9-2.6-1.5-1.7-2.3-4.2-2.3-7.6V25.3h-3.9l.8-5.5c3.6-.8 6.2-3.3 7.6-7.4l5.3-.1zM242.7 18.2c2.7-.1 5.3.6 7.5 2.2 2 1.6 3 4.1 2.8 6.6 0 6.9-5.3 10.2-16 10 .1 1.3.7 2.6 1.7 3.5 1.2 1 2.7 1.4 4.2 1.4 2.6-.1 5.2-.9 7.4-2.3l2.6 6.3c-.5.4-1 .7-1.6.9-1.3.6-2.6 1-4 1.4-1.9.5-3.8.7-5.7.7-4.9 0-8.5-1.3-10.8-4-2.3-2.6-3.5-6.2-3.5-10.7-.1-4.1 1.3-8.2 4-11.4 2.7-3 6.5-4.6 11.4-4.6zm2 9.3c0-.7-.2-1.4-.7-1.9-.5-.5-1.2-.7-1.9-.6-1.4 0-2.8.6-3.6 1.8-1 1.3-1.6 2.9-1.6 4.6 5.2.2 7.7-1.2 7.7-3.9h.1zM272.5 25.5c-1.1 0-2.1.5-2.7 1.3-.7.9-1.1 2.1-1 3.3v12.5l5.1.3v5.3h-18.1V43l1.9-.2c.4.1.8-.1 1.1-.4.2-.4.3-.9.3-1.4V26.2c0-.4-.1-.8-.3-1.2-.3-.3-.6-.4-1-.4l-2-.2V19H268v4.4h.1c.7-1.4 1.7-2.7 3-3.6 1.6-1.1 3.5-1.7 5.4-1.6 1.9-.1 3.7.2 5.4.9v11.3l-7.6.4v-3.9c0-.7-.2-1.1-.5-1.2-.4-.1-.9-.2-1.3-.2zM308.7 17.5c-1.2-.3-2.3-.4-3.4-.4-6.1 0-9.2 3.9-9.2 11.8 0 3.8.8 6.8 2.3 9 1.5 2.2 3.9 3.3 7.1 3.4 1.1 0 2.1-.1 3.2-.4.6-.2 1-.8 1-1.5v-3.7l7.3.4v10.5c-3.8 1.7-7.9 2.5-12.1 2.3-6.1 0-10.8-1.6-14.1-4.9-3.3-3.3-5-8.1-5-14.5 0-3.2.5-6.4 1.6-9.4.9-2.5 2.4-4.6 4.4-6.3 1.8-1.4 3.8-2.5 6-3.3 2.2-.7 4.6-1 6.9-1 4.2-.1 8.3.7 12.2 2.4v10l-7.4.4V19c0-.9-.3-1.4-.8-1.5zM323.6 10.2h14.6l7.5 24.8h.2l7.7-24.7h14.6v5.4l-1.8.2c-.5 0-.9.2-1.2.5-.3.4-.4.9-.3 1.3l1.9 24.8 2.9.1v5.6h-15.3v-5.5l1.8-.2c.4.1.8-.1 1-.4.2-.4.3-.9.2-1.3l-.9-16.1h-.1l-7.2 23.5h-7.1l-7-23.1h-.2l-1 17.3 2.8.2v5.6h-15.3v-5.5l1.8-.2c.5 0 .9-.2 1.2-.5.2-.4.4-.9.4-1.4l2-24.6-3.2-.2v-5.6zM385.5 41.6c3.5 0 5.3-1.4 5.3-4.2 0-1.1-.5-2.2-1.4-2.8-1.4-.8-2.9-1.4-4.5-1.8-1.3-.3-2.7-.8-4-1.3-1.2-.5-2.3-1.2-3.4-1.9-1.2-.9-2.2-2-2.8-3.3-.6-1.5-1-3.2-1-4.8-.1-3.4 1.4-6.7 4-8.8 2.7-2.1 6.2-3.1 10.6-3.1 4-.2 8 .6 11.7 2.2v9.3l-7.4.5v-2.9c0-.8-.3-1.3-.8-1.4-1.1-.3-2.2-.4-3.3-.4-1.1 0-2.2.3-3.1.8-.8.6-1.3 1.6-1.2 2.6-.1 1.1.5 2.2 1.4 2.8 1.5.9 3.1 1.6 4.8 2 1.4.4 2.5.8 3.3 1.1.9.4 1.9.8 2.8 1.3 1 .5 1.9 1.2 2.6 2 .7.9 1.2 1.8 1.6 2.9.5 1.3.7 2.6.7 4 .2 3.6-1.3 7-4.1 9.3-2.7 2.2-6.4 3.3-11.2 3.3-4.3.1-8.6-.7-12.6-2.3v-9.8l7.5-.5v3.2c0 .9.3 1.4.9 1.6 1.1.2 2.3.4 3.6.4z"/></g></svg>
index 2147e7a1c5d39d5960c5481cbfec38631f6c2fbd,0000000000000000000000000000000000000000..1ba50a741016b398e9e737662348665008844eb5
mode 100644,000000..100644
--- /dev/null
@@@ -1,1 -1,0 +1,1 @@@
- # github.com/gohugoio/gohugoioTheme v0.0.0-20220912070954-88dcaf003b4d
++# github.com/gohugoio/gohugoioTheme v0.0.0-20221116211530-5ae8dcdd68d6
index 4d3bb1f60bd15249dec62f03a3d2360b73edea5b,0000000000000000000000000000000000000000..f4965dff1db5ac1f93f8ad0d129bac891924b7e4
mode 100644,000000..100644
--- /dev/null
@@@ -1,91 -1,0 +1,85 @@@
- paginate = 100
 +baseURL = "https://gohugo.io/"
- # Set the unicode character used for the "return" link in page footnotes.
- footnotereturnlinkcontents = "↩"
- languageCode = "en-us"
- title = "Hugo"
 +defaultContentLanguage = "en"
 +enableEmoji = true
 +googleAnalytics = "UA-7131036-4"
++ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
++languageCode = "en-us"
++paginate = 100
 +pluralizeListTitles = false
++timeZone = "Europe/Oslo"
++title = "Hugo"
 +
 +# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
 +disableAliases = true
 +
++[minify]
++[minify.tdewolff]
++[minify.tdewolff.html]
++keepWhitespace = true
++
++[module]
++[module.hugoVersion]
++min = "0.56.0"
++[[module.imports]]
++path = "github.com/gohugoio/gohugoioTheme"
++
 +[outputs]
 +home = [ "HTML", "RSS", "REDIR", "HEADERS" ]
 +section = [ "HTML", "RSS"]
 +
 +[mediaTypes]
 +[mediaTypes."text/netlify"]
 +delimiter = ""
 +
 +[outputFormats]
 +[outputFormats.REDIR]
 +mediatype = "text/netlify"
 +baseName = "_redirects"
 +isPlainText = true
 +notAlternative = true
 +[outputFormats.HEADERS]
 +mediatype = "text/netlify"
 +baseName = "_headers"
 +isPlainText = true
 +notAlternative = true
 +
 +[caches]
 +[caches.getjson]
 +dir = ":cacheDir/:project"
 +maxAge = -1
 +[caches.getcsv]
 +dir = ":cacheDir/:project"
 +maxAge = -1
 +[caches.images]
 +dir = ":cacheDir/images"
 +maxAge = "1440h"
 +[caches.assets]
 +dir = ":resourceDir/_gen"
 +maxAge = -1
 +
 +[related]
 +threshold = 80
 +includeNewer = true
 +toLower = false
- # MARKDOWN
- ## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
- [blackfriday]
- plainIDAnchors = true
- # See https://github.com/gohugoio/hugo/issues/2424
- hrefTargetBlank = false
- angledQuotes = false
- latexDashes = true
 +[[related.indices]]
 +name = "keywords"
 +weight = 100
 +[[related.indices]]
 +name = "date"
 +weight = 10
 +pattern = "2006"
 +
 +[social]
 +twitter = "GoHugoIO"
 +
 +[imaging]
 +# See https://github.com/disintegration/imaging
 +# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots.
 +# Note that you can also set this per image processing.
 +resampleFilter = "CatmullRom"
 +# Default JPEG quality setting. Default is 75.
 +quality = 75
 +anchor = "smart"
 +
 +[taxonomies]
 +category = "categories"
index a31218a4f8a412c5a9e77f63aef1bef2ff33e158,0000000000000000000000000000000000000000..7a956a47f3af820a2d36ce523f8e59403926bc76
mode 100644,000000..100644
--- /dev/null
@@@ -1,154 -1,0 +1,142 @@@
-   weight = 1
 +[[docs]]
 +  name = "About Hugo"
-   weight = 5
++  weight = 10
 +  identifier = "about"
 +  url = "/about/"
 +
++[[docs]]
++  name = "Installation"
++  weight = 20
++  identifier = "installation"
++  url = "/installation/"
++
 +[[docs]]
 +  name = "Getting Started"
-   weight = 15
++  weight = 30
 +  identifier = "getting-started"
 +  url = "/getting-started/"
 +
 +[[docs]]
 +  name = "Hugo Modules"
- # Core Menus
++  weight = 40
 +  identifier = "modules"
 +  post = "break"
 +  url = "/hugo-modules/"
 +
-   weight = 20
++# Core menus
 +
 +[[docs]]
 +  name = "Content Management"
-   weight = 25
++  weight = 50
 +  identifier = "content-management"
 +  post = "expanded"
 +  url = "/content-management/"
 +
 +[[docs]]
 +  name = "Templates"
++  weight = 60
 +  identifier = "templates"
-   weight = 30
 +  url = "/templates/"
 +
 +[[docs]]
 +  name = "Functions"
-   weight = 35
++  weight = 70
 +  identifier = "functions"
 +  url = "/functions/"
 +
 +[[docs]]
 +  name = "Variables"
-   weight = 36
++  weight = 80
 +  identifier = "variables"
 +  url = "/variables/"
++
 +[[docs]]
 +  name = "Hugo Pipes"
-   weight = 40
++  weight = 90
 +  identifier = "pipes"
 +  url = "/hugo-pipes/"
++
 +[[docs]]
 +  name = "CLI"
- # LOW LEVEL ITEMS
++  weight = 100
 +  post = "break"
 +  identifier = "commands"
 +  url = "/commands/"
 +
-   weight = 60
++# Low level items
 +
 +[[docs]]
 +  name = "Troubleshooting"
-   weight = 70
++  weight = 110
 +  identifier = "troubleshooting"
 +  url = "/troubleshooting/"
 +
 +[[docs]]
 +  name = "Tools"
-   weight = 80
++  weight = 120
 +  identifier = "tools"
 +  url = "/tools/"
 +
 +[[docs]]
 +  name = "Hosting & Deployment"
-   weight = 100
++  weight = 130
 +  identifier = "hosting-and-deployment"
 +  url = "/hosting-and-deployment/"
 +
 +[[docs]]
 +  name = "Contribute"
- #[[docs]]
- #  name = "Tags"
- #  weight = 120
- #  identifier = "tags"
- #  url = "/tags/"
- # [[docs]]
- #   name = "Categories"
- #   weight = 140
- #   identifier = "categories"
- #   url = "/categories/"
++  weight = 140
 +  post = "break"
 +  identifier = "contribute"
 +  url = "/contribute/"
 +
-   [[quicklinks]]
-     name = "Fundamentals"
-     weight = 1
-     identifier = "fundamentals"
-     url = "/tags/fundamentals/"
 +######## QUICKLINKS
 +
-   [[global]]
-     name = "Docs"
-     weight = 5
-     identifier = "docs"
-     url = "/documentation/"
-   [[global]]
-     name = "Themes"
-     weight = 10
-     identifier = "themes"
-     url = "https://themes.gohugo.io/"
-     [[global]]
-       name = "Showcase"
-       weight = 20
-       identifier = "showcase"
-       url = "/showcase/"
-   # Anything with a weight > 100 gets an external icon
-   [[global]]
-     name = "Community"
-     weight = 150
-     icon = true
-     identifier = "community"
-     post = "external"
-     url = "https://discourse.gohugo.io/"
-   [[global]]
-     name = "GitHub"
-     weight = 200
-     identifier = "github"
-     post = "external"
-     url = "https://github.com/gohugoio/hugo"
++[[quicklinks]]
++  name = "Fundamentals"
++  weight = 1
++  identifier = "fundamentals"
++  url = "/tags/fundamentals/"
 +
 +######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES
 +
 +[[global]]
 +    name = "News"
 +    weight = 1
 +    identifier = "news"
 +    url = "/news/"
 +
++[[global]]
++  name = "Docs"
++  weight = 5
++  identifier = "docs"
++  url = "/documentation/"
++
++[[global]]
++  name = "Themes"
++  weight = 10
++  identifier = "themes"
++  url = "https://themes.gohugo.io/"
++
++[[global]]
++  name = "Showcase"
++  weight = 20
++  identifier = "showcase"
++  url = "/showcase/"
++
++# Anything with a weight > 100 gets an external icon
++
++[[global]]
++  name = "Community"
++  weight = 150
++  icon = true
++  identifier = "community"
++  post = "external"
++  url = "https://discourse.gohugo.io/"
++
++[[global]]
++  name = "GitHub"
++  weight = 200
++  identifier = "github"
++  post = "external"
++  url = "https://github.com/gohugoio/hugo"
index 961f04d351bc00af3fd687c3e9a5250150b2a560,0000000000000000000000000000000000000000..a54fe56695f752330e50131d5ef2c56942483afa
mode 100644,000000..100644
--- /dev/null
@@@ -1,6 -1,0 +1,6 @@@
- # This is turned off in development as it is relatively slow. 
 +# Config for production
 +
++# This is turned off in development as it is relatively slow.
 +# This is needed to get accurate lastMod and Git commit info
 +# on the docs pages.
 +enableGitInfo = true
index d5c13a9c38ddf1205f5d093fe0f64dea2470d479,0000000000000000000000000000000000000000..e4fec5bb2936800bb2742fa96f2a9307420266ea
mode 100644,000000..100644
--- /dev/null
@@@ -1,43 -1,0 +1,42 @@@
 +---
 +title: The Benefits of Static Site Generators
 +linktitle: The Benefits of Static
 +description: Improved performance, security and ease of use are just a few of the reasons static site generators are so appealing.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +keywords: [ssg,static,performance,security]
 +menu:
 +  docs:
 +    parent: "about"
 +    weight: 30
 +weight: 30
 +sections_weight: 30
 +draft: false
 +aliases: []
 +toc: false
 +---
 +
 +The purpose of website generators is to render content into HTML files. Most are "dynamic site generators." That means the HTTP server---i.e., the program that sends files to the browser to be viewed---runs the generator to create a new HTML file every time an end user requests a page.
 +
 +Over time, dynamic site generators were programmed to cache their HTML files to prevent unnecessary delays in delivering pages to end users. A cached page is a static version of a web page.
 +
 +Hugo takes caching a step further and all HTML files are rendered on your computer. You can review the files locally before copying them to the computer hosting the HTTP server. Since the HTML files aren't generated dynamically, we say that Hugo is a *static site generator*.
 +
 +This has many benefits. The most noticeable is performance. HTTP servers are *very* good at sending files---so good, in fact, that you can effectively serve the same number of pages with a fraction of the memory and CPU needed for a dynamic site.
 +
 +## More on Static Site Generators
 +
 +* ["An Introduction to Static Site Generators", David Walsh][]
 +* ["Hugo vs. WordPress page load speed comparison: Hugo leaves WordPress in its dust", GettingThingsTech][hugovwordpress]
 +* ["Static Site Generators", O'Reilly][]
 +* [StaticGen: Top Open-Source Static Site Generators (GitHub Stars)][]
 +* ["Top 10 Static Website Generators", Netlify blog][]
 +* ["The Resurgence of Static", dotCMS][dotcms]
 +
 +["An Introduction to Static Site Generators", David Walsh]: https://davidwalsh.name/introduction-static-site-generators
 +["Static Site Generators", O'Reilly]: https://github.com/gohugoio/hugoDocs/files/1242701/static-site-generators.pdf
 +["Top 10 Static Website Generators", Netlify blog]: https://www.netlify.com/blog/2016/05/02/top-ten-static-website-generators/
 +[hugovwordpress]: https://gettingthingstech.com/hugo-vs.-wordpress-page-load-speed-comparison-hugo-leaves-wordpress-in-its-dust/
 +[StaticGen: Top Open-Source Static Site Generators (GitHub Stars)]: https://www.staticgen.com/
 +[dotcms]: https://dotcms.com/blog/post/the-resurgence-of-static
index ed8c258214c4e715049ff094988607ea451cf25a,0000000000000000000000000000000000000000..5e94de38c598ca9a098e7e4050319a5d36890278
mode 100644,000000..100644
--- /dev/null
@@@ -1,85 -1,0 +1,84 @@@
 +---
 +title: Hugo Features
 +linktitle: Hugo Features
 +description: Hugo boasts blistering speed, robust content management, and a powerful templating language making it a great fit for all kinds of static websites.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +menu:
 +  docs:
 +    parent: "about"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
 +draft: false
 +toc: true
 +---
 +
 +## General
 +
 +* [Extremely fast][] build times (&lt; 1 ms per page)
 +* Completely cross platform, with [easy installation][install] on macOS, Linux, Windows, and more
 +* Renders changes on the fly with [LiveReload][] as you develop
 +* [Powerful theming][]
 +* [Host your site anywhere][hostanywhere]
 +
 +## Organization
 +
 +* Straightforward [organization for your projects][], including website sections
 +* Customizable [URLs][]
 +* Support for configurable [taxonomies][], including categories and tags
 +* [Sort content][] as you desire through powerful template [functions][]
 +* Automatic [table of contents][] generation
 +* [Dynamic menu][] creation
 +* [Pretty URLs][] support
 +* [Permalink][] pattern support
 +* Redirects via [aliases][]
 +
 +## Content
 +
 +* Native Markdown and Emacs Org-Mode support, as well as other languages via *external helpers* (see [supported formats][])
 +* TOML, YAML, and JSON metadata support in [front matter][]
 +* Customizable [homepage][]
 +* Multiple [content types][]
 +* Automatic and user defined [content summaries][]
 +* [Shortcodes][] to enable rich content inside of Markdown
 +* ["Minutes to Read"][pagevars] functionality
 +* ["WordCount"][pagevars] functionality
 +
 +## Additional Features
 +
 +* Integrated [Disqus][] comment support
 +* Integrated [Google Analytics][] support
 +* Automatic [RSS][] creation
 +* Support for [Go][] HTML templates
 +* [Syntax highlighting][] powered by [Chroma][]
 +
- [Go]: https://golang.org/pkg/html/template/
 +[aliases]: /content-management/urls/#aliases
 +[Chroma]: https://github.com/alecthomas/chroma
 +[content summaries]: /content-management/summaries/
 +[content types]: /content-management/types/
 +[Disqus]: https://disqus.com/
 +[Dynamic menu]: /templates/menu-templates/
 +[Extremely fast]: https://github.com/bep/hugo-benchmark
 +[front matter]: /content-management/front-matter/
 +[functions]: /functions/
- [install]: /getting-started/installing/
++[Go]: https://pkg.go.dev/html/template
 +[Google Analytics]: https://google-analytics.com/
 +[homepage]: /templates/homepage/
 +[hostanywhere]: /hosting-and-deployment/
++[install]: /installation/
 +[LiveReload]: /getting-started/usage/
 +[organization for your projects]: /getting-started/directory-structure/
 +[pagevars]: /variables/page/
 +[Permalink]: /content-management/urls/#permalinks
 +[Powerful theming]: /hugo-modules/theme-components/
 +[Pretty URLs]: /content-management/urls/
 +[RSS]: /templates/rss/
 +[Shortcodes]: /content-management/shortcodes/
 +[sort content]: /templates/
 +[supported formats]: /content-management/formats/
 +[Syntax highlighting]: /content-management/syntax-highlighting/
 +[table of contents]: /content-management/toc/
 +[taxonomies]: /content-management/taxonomies/
 +[URLs]: /content-management/urls/
index 269c5d4325515acfcde9c3d662280e85c8b7b687,0000000000000000000000000000000000000000..2d4fba872fa9f859472039d1ad64d1a7dc2d3add
mode 100644,000000..100644
--- /dev/null
@@@ -1,140 -1,0 +1,138 @@@
 +---
 +title: Hugo and the  General Data Protection Regulation (GDPR)
 +linktitle: Hugo and GDPR
 +description: About how to configure your Hugo site to meet the new regulations.
 +date: 2018-05-25
 +layout: single
 +keywords: ["GDPR", "Privacy", "Data Protection"]
 +menu:
 +  docs:
 +    parent: "about"
 +    weight: 5
 +weight: 5
 +sections_weight: 5
 +draft: false
 +aliases: [/privacy/,/gdpr/]
 +toc: true
 +---
 +
- **Note:** If you use the _simple mode_ for Twitter, you may want to disable the inlines styles provided by Hugo:
 + General Data Protection Regulation ([GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation)) is a regulation in EU law on data protection and privacy for all individuals within the European Union and the European Economic Area. It became enforceable on 25 May 2018.
 +
 + **Hugo is a static site generator. By using Hugo you are already standing on very solid ground. Static HTML files on disk are much easier to reason about compared to server and database driven web sites.**
 +
 + But even static websites can integrate with external services, so from version `0.41`, Hugo provides a **Privacy Config** that covers the relevant built-in templates.
 +
 + Note that:
 +
 + * These settings have their defaults setting set to _off_, i.e. how it worked before Hugo `0.41`. You must do your own evaluation of your site and apply the appropriate settings.
 + * These settings work with the [internal templates](/templates/internal/). Some theme may contain custom templates for embedding services like Google Analytics. In that case these options have no effect.
 + * We will continue this work and improve this further in future Hugo versions.
 +
 +## All Privacy Settings
 +
 +Below are all privacy settings and their default value. These settings need to be put in your site config (e.g. `config.toml`).
 +
 + {{< code-toggle file="config">}}
 +[privacy]
 +[privacy.disqus]
 +disable = false
 +[privacy.googleAnalytics]
 +disable = false
 +respectDoNotTrack = false
 +anonymizeIP = false
 +useSessionStorage = false
 +[privacy.instagram]
 +disable = false
 +simple = false
 +[privacy.twitter]
 +disable = false
 +enableDNT = false
 +simple = false
 +[privacy.vimeo]
 +disable = false
 +enableDNT = false
 +simple = false
 +[privacy.youtube]
 +disable = false
 +privacyEnhanced = false
 +{{< /code-toggle >}}
 +
 +
 +## Disable All Services
 +
 +An example Privacy Config that disables all the relevant services in Hugo. With this configuration, the other settings will not matter.
 +
 + {{< code-toggle file="config">}}
 +[privacy]
 +[privacy.disqus]
 +disable = true
 +[privacy.googleAnalytics]
 +disable = true
 +[privacy.instagram]
 +disable = true
 +[privacy.twitter]
 +disable = true
 +[privacy.vimeo]
 +disable = true
 +[privacy.youtube]
 +disable = true
 +{{< /code-toggle >}}
 +
 +## The Privacy Settings Explained
 +
 +### GoogleAnalytics
 +
 +anonymizeIP
 +: Enabling this will make it so the users' IP addresses are anonymized within Google Analytics.
 +
 +respectDoNotTrack
 +: Enabling this will make the GA templates respect the "Do Not Track" HTTP header.
 +
 +useSessionStorage
 +: Enabling this will disable the use of Cookies and use Session Storage to Store the GA Client ID.
 +
 +{{% warning %}}
 +`useSessionStorage` is not supported when using Google Analytics v4 (gtag.js).
 +{{% /warning %}}
++
 +### Instagram
 +
 +simple
 +: If simple mode is enabled, a static and no-JS version of the Instagram image card will be built. Note that this only supports image cards and the image itself will be fetched from Instagram's servers.
 +
 +**Note:** If you use the _simple mode_ for Instagram and a site styled with Bootstrap 4, you may want to disable the inline styles provided by Hugo:
 +
 + {{< code-toggle file="config">}}
 +[services]
 +[services.instagram]
 +disableInlineCSS = true
 +{{< /code-toggle >}}
 +
 +### Twitter
 +
 +enableDNT
 +: Enabling this for the twitter/tweet shortcode, the tweet and its embedded page on your site are not used for purposes that include personalized suggestions and personalized ads.
 +
 +simple
 +: If simple mode is enabled, a static and no-JS version of a tweet will be built.
 +
++**Note:** If you use the _simple mode_ for Twitter, you may want to disable the inline styles provided by Hugo:
 +
 + {{< code-toggle file="config">}}
 +[services]
 +[services.twitter]
 +disableInlineCSS = true
 +{{< /code-toggle >}}
 +
 +### YouTube
 +
 +privacyEnhanced
 +: When you turn on privacy-enhanced mode, YouTube won’t store information about visitors on your website unless the user plays the embedded video.
 +
 +### Vimeo
 +
 +enableDNT
 +: Enabling this for the vimeo shortcode, the Vimeo player will be blocked from tracking any session data, including all cookies and stats.
 +
 +simple
 +: If simple mode is enabled, the video thumbnail is fetched from Vimeo's servers and it is overlayed with a play button. If the user clicks to play the video, it will open in a new tab directly on Vimeo's website.
index 461c7fe7782ba4cdf1707b9e36a75798fc1fc2e9,0000000000000000000000000000000000000000..66cb15463311ce9ef3c62af3b9541a34d4a708f3
mode 100644,000000..100644
--- /dev/null
@@@ -1,69 -1,0 +1,65 @@@
- draft: false
 +---
 +title: Hugo's Security Model
 +description: A summary of Hugo's security model.
 +date: 2019-10-01
 +layout: single
 +keywords: ["Security", "Privacy"]
 +menu:
 +  docs:
 +    parent: "about"
 +    weight: 4
 +weight: 5
 +sections_weight: 5
 +aliases: [/security/]
 +toc: true
 +---
 +
 +## Runtime Security
 +
 +Hugo produces static output, so once built, the runtime is the browser (assuming the output is HTML) and any server (API) that you integrate with.
 +
 +But when developing and building your site, the runtime is the `hugo` executable. Securing a runtime can be [a real challenge](https://blog.logrocket.com/how-to-protect-your-node-js-applications-from-malicious-dependencies-5f2e60ea08f9/).
 +
 +**Hugo's main approach is that of sandboxing and a security policy with strict defaults:**
 +
 +* Hugo has a virtual file system and only the main project (not third-party components) is allowed to mount directories or files outside the project root.
 +* Only the main project can walk symbolic links.
 +* User-defined components have read-only access to the filesystem.
 +* We shell out to some external binaries to support [Asciidoctor](/content-management/formats/#list-of-content-formats) and similar, but those binaries and their flags are predefined and disabled by default (see [Security Policy](#security-policy)). General functions to run arbitrary external OS commands have been [discussed](https://github.com/gohugoio/hugo/issues/796), but not implemented because of security concerns.
 +
- {{< new-in "0.91.0" >}}
 +## Security Policy
 +
- ```
 +Hugo has a built-in security policy that restricts access to [os/exec](https://pkg.go.dev/os/exec), remote communication and similar.
 +
 +The default configuration is listed below. Any build using features not in the allow list of the security policy will fail with a detailed message about what needs to be done. Most of these settings are allow lists (string or slice, [Regular Expressions](https://pkg.go.dev/regexp) or `none` which matches nothing).
 +
 +{{< code-toggle config="security" />}}
 +
 +Note that these and other config settings in Hugo can be overridden by the OS environment. If you want to block all remote HTTP fetching of data:
 +
- https://golang.org/pkg/html/template/#hdr-Security_Model
++```txt
 +HUGO_SECURITY_HTTP_URLS=none hugo
 +```
 +
 +## Dependency Security
 +
 +Hugo is built as a static binary using [Go Modules](https://github.com/golang/go/wiki/Modules) to manage its dependencies. Go Modules have several safeguards, one of them being the `go.sum` file. This is a database of the expected cryptographic checksums of all of your dependencies, including transitive dependencies.
 +
 +[Hugo Modules](/hugo-modules/) is a feature built on top of the functionality of Go Modules. Like Go Modules, a Hugo project using Hugo Modules will have a `go.sum` file. We recommend that you commit this file to your version control system. The Hugo build will fail if there is a checksum mismatch, which would be an indication of [dependency tampering](https://julienrenaux.fr/2019/12/20/github-actions-security-risk/).
 +
 +## Web Application Security
 +
 +These are the security threats as defined by [OWASP](https://en.wikipedia.org/wiki/OWASP).
 +
 +For HTML output, this is the core security model:
 +
++<https://pkg.go.dev/html/template#hdr-Security_Model>
 +
 +In short:
 +
 +Templates authors (you) are trusted, but the data you send in is not.
 +This is why you sometimes need to use the _safe_ functions, such as `safeHTML`, to avoid escaping of data you know is safe.
 +There is one exception to the above, as noted in the documentation: If you enable inline shortcodes, you also say that the shortcodes and data handling in content files are trusted, as those macros are treated as pure text.
 +It may be worth adding that Hugo is a static site generator with no concept of dynamic user input.
 +
 +For content, the default Markdown renderer is [configured](/getting-started/configuration-markup) to remove or escape potentially unsafe content. This behavior can be reconfigured if you trust your content.
index 69ca1fddb9dd6fbb6ecb506f960de2955986a32b,0000000000000000000000000000000000000000..01fac90c8fd8ddd60f137de2b6b9048e92d6b58e
mode 100644,000000..100644
--- /dev/null
@@@ -1,62 -1,0 +1,62 @@@
- [Go language]: https://golang.org/
 +---
 +title: What is Hugo
 +linktitle: What is Hugo
 +description: Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +layout: single
 +menu:
 +  docs:
 +    parent: "about"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +draft: false
 +aliases: [/overview/introduction/,/about/why-i-built-hugo/]
 +toc: true
 +---
 +
 +Hugo is a general-purpose website framework. Technically speaking, Hugo is a [static site generator][]. Unlike systems that dynamically build a page with each visitor request, Hugo builds pages when you create or update your content. Since websites are viewed far more often than they are edited, Hugo is designed to provide an optimal viewing experience for your website's end users and an ideal writing experience for website authors.
 +
 +Websites built with Hugo are extremely fast and secure. Hugo sites can be hosted anywhere, including [Netlify][], [Heroku][], [GoDaddy][], [DreamHost][], [GitHub Pages][], [GitLab Pages][], [Surge][], [Firebase][], [Google Cloud Storage][], [Amazon S3][], [Rackspace][], [Azure][], and [CloudFront][] and work well with CDNs. Hugo sites run without the need for a database or dependencies on expensive runtimes like Ruby, Python, or PHP.
 +
 +We think of Hugo as the ideal website creation tool with nearly instant build times, able to rebuild whenever a change is made.
 +
 +## How Fast is Hugo?
 +
 +{{< youtube "CdiDYZ51a2o" >}}
 +
 +## What Does Hugo Do?
 +
 +In technical terms, Hugo takes a source directory of files and templates and uses these as input to create a complete website.
 +
 +## Who Should Use Hugo?
 +
 +Hugo is for people that prefer writing in a text editor over a browser.
 +
 +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
 +
 +Hugo is for people building a blog, a company site, a portfolio site, documentation, a single landing page, or a website with thousands of pages.
 +
 +[@spf13]: https://twitter.com/spf13
 +[Amazon S3]: https://aws.amazon.com/s3/
 +[Azure]: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website
 +[CloudFront]: https://aws.amazon.com/cloudfront/ "Amazon CloudFront"
 +[DreamHost]: https://www.dreamhost.com/
 +[Firebase]: https://firebase.google.com/docs/hosting/ "Firebase static hosting"
 +[GitHub Pages]: https://pages.github.com/
 +[GitLab Pages]: https://about.gitlab.com/features/pages/
++[Go language]: https://go.dev/
 +[GoDaddy]: https://www.godaddy.com/ "GoDaddy.com Hosting"
 +[Google Cloud Storage]: https://cloud.google.com/storage/
 +[Heroku]: https://www.heroku.com/
 +[Jekyll]: https://jekyllrb.com/
 +[Middleman]: https://middlemanapp.com/
 +[Nanoc]: https://nanoc.ws/
 +[Netlify]: https://netlify.com
 +[Rackspace]: https://www.rackspace.com/cloud/files
 +[Surge]: https://surge.sh
 +[contributing to it]: https://github.com/gohugoio/hugo
 +[rackspace]: https://www.rackspace.com/openstack/public/files
 +[static site generator]: /about/benefits/
index 28f2ecf827693be568e933b05acc13007a3bc027,0000000000000000000000000000000000000000..7cb6357c641240cb7ead2ff801d84076642daf10
mode 100644,000000..100644
--- /dev/null
@@@ -1,20 -1,0 +1,16 @@@
- linktitle: Content Management Overview
 +---
 +title: Content Management
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
++linkTitle: Content Management Overview
 +description: Hugo makes managing large static sites easy with support for archetypes, content types, menus, cross references, summaries, and more.
-     parent: "content-management"
-     weight: 1
 +menu:
 +  docs:
- weight: 01    #rem
- draft: false
- aliases: [/content/,/content/organization]
++    parent: content-management
++    weight: 10
 +keywords: [source, organization]
 +categories: [content management]
 +toc: false
++weight: 10
++aliases: [/content/,/content/organization]
 +---
 +
 +A static site generator needs to extend beyond front matter and a couple of templates to be both scalable and *manageable*. Hugo was designed with not only developers in mind, but also content managers and authors.
index 354ef0fef7f9fab0fb659336b9793605fed7dd77,0000000000000000000000000000000000000000..31e22983828be37648a575b80e841e301cad5296
mode 100644,000000..100644
--- /dev/null
@@@ -1,97 -1,0 +1,91 @@@
- linktitle: Archetypes
 +---
 +title: Archetypes
- date: 2017-02-01
- publishdate: 2017-02-01
++linkTitle: Archetypes
 +description: Archetypes are templates used when creating new content.
- categories: ["content management"]
 +keywords: [archetypes,generators,metadata,front matter]
-     parent: "content-management"
-     weight: 70
++categories: [content management]
 +menu:
 +  docs:
- weight: 70    #rem
- draft: false
- aliases: [/content/archetypes/]
++    parent: content-management
++    weight: 140
 +  quicklinks:
 +toc: true
++weight: 140
++aliases: [/content/archetypes/]
 +---
 +
 +## What are Archetypes?
 +
 +**Archetypes** are content template files in the [archetypes directory][] of your project that contain preconfigured [front matter][] and possibly also a content disposition for your website's [content types][]. These will be used when you run `hugo new`.
 +
 +
 +The `hugo new` uses the `content-section` to find the most suitable archetype template in your project. If your project does not contain any archetype files, it will also look in the theme.
 +
 +{{< code file="archetype-example.sh" >}}
 +hugo new posts/my-first-post.md
 +{{< /code >}}
 +
 +The above will create a new content file in `content/posts/my-first-post.md` using the first archetype file found of these:
 +
 +1. `archetypes/posts.md`
 +2. `archetypes/default.md`
 +3. `themes/my-theme/archetypes/posts.md`
 +4. `themes/my-theme/archetypes/default.md`
 +
 +The last two list items are only applicable if you use a theme and it uses the `my-theme` theme name as an example.
 +
 +## Create a New Archetype Template
 +
 +A fictional example for the section `newsletter` and the archetype file `archetypes/newsletter.md`. Create a new file in `archetypes/newsletter.md` and open it in a text editor.
 +
 +{{< code file="archetypes/newsletter.md" >}}
 +---
 +title: "{{ replace .Name "-" " " | title }}"
 +date: {{ .Date }}
 +draft: true
 +---
 +
 +**Insert Lead paragraph here.**
 +
 +## New Cool Posts
 +
 +{{ range first 10 ( where .Site.RegularPages "Type" "cool" ) }}
 +* {{ .Title }}
 +{{ end }}
 +{{< /code >}}
 +
 +When you create a new newsletter with:
 +
 +```bash
 +hugo new newsletter/the-latest-cool.stuff.md
 +```
 +
 +It will create a new newsletter type of content file based on the archetype template.
 +
 +**Note:** the site will only be built if the `.Site` is in use in the archetype file, and this can be time consuming for big sites.
 +
 +The above _newsletter type archetype_ illustrates the possibilities: The full Hugo `.Site` and all of Hugo&#39;s template funcs can be used in the archetype file.
 +
 +## Directory based archetypes
 +
 +Since Hugo `0.49` you can use complete directories as archetype templates. Given this archetype directory:
 +
 +```bash
 +archetypes
 +├── default.md
 +└── post-bundle
 +    ├── bio.md
 +    ├── images
 +    │   └── featured.jpg
 +    └── index.md
 +```
 +
 +```bash
 +hugo new --kind post-bundle posts/my-post
 +```
 +
 +Will create a new folder in `/content/posts/my-post` with the same set of files as in the `post-bundle` archetypes folder. All content files (`index.md` etc.) can contain template logic, and will receive the correct `.Site` for the content's language.
 +
 +[archetypes directory]: /getting-started/directory-structure/
 +[content types]: /content-management/types/
 +[front matter]: /content-management/front-matter/
index 7bbb772df2a31cc857e9a66bff5258885ad31a0e,0000000000000000000000000000000000000000..f798754f1557ba2525de260449ed9060cad50c86
mode 100644,000000..100644
--- /dev/null
@@@ -1,116 -1,0 +1,115 @@@
- linktitle: Build Options
 +---
 +title: Build Options
- date: 2020-03-02
- publishdate: 2020-03-02
++linkTitle: Build Options
 +description: Build options help define how Hugo must treat a given page when building the site.
- categories: ["content management"]
 +keywords: [build,content,front matter, page resources]
-     parent: "content-management"
-     weight: 31
- weight: 31    #rem
- draft: false
- aliases: [/content/build-options/]
++categories: [content management]
 +menu:
 +  docs:
- {{< new-in "0.76.0" >}} We extended this property from a boolean to an enum in Hugo 0.76.0. Valid values are:
++    parent: content-management
++    weight: 70
 +toc: true
++weight: 70
++aliases: [/content/build-options/]
 +---
 +
 +They are stored in a reserved Front Matter object named `_build` with the following defaults:
 +
 +{{< code-toggle >}}
 +_build:
 +  render: always
 +  list: always
 +  publishResources: true
 +{{< /code-toggle >}}
 +
 +#### render
++
 +If `always`, the page will be treated as a published page, holding its dedicated output files (`index.html`, etc...) and permalink.
 +
- : The page will be included in any _local_ page collection, e.g. `$page.RegularPages`, `$page.Pages`. One use case for this would be to create fully navigable, but headless content sections. {{< new-in "0.68.0" >}}
++We extended this property from a boolean to an enum in Hugo 0.76.0. Valid values are:
 +
 +never
 +: The page will not be included in any page collection.
 +
 +always (default)
 +: The page will be rendered to disk and get a `RelPermalink` etc.
 +
 +link
 +: The page will be not be rendered to disk, but will get a `RelPermalink`.
 +
 +#### list
 +
 +Note that we extended this property from a boolean to an enum in Hugo 0.68.0.
 +
 +Valid values are:
 +
 +never
 +: The page will not be included in any page collection.
 +
 +always (default)
 +: The page will be included in all page collections, e.g. `site.RegularPages`, `$page.Pages`.
 +
 +local
- If set to true the [Bundle's Resources]({{< relref "content-management/page-bundles" >}}) will be published. 
++: The page will be included in any _local_ page collection, e.g. `$page.RegularPages`, `$page.Pages`. One use case for this would be to create fully navigable, but headless content sections.
 +
 +If true, the page will be treated as part of the project's collections and, when appropriate, returned by Hugo's listing methods (`.Pages`, `.RegularPages` etc...).
 +
 +#### publishResources
 +
++If set to true the [Bundle's Resources]({{< relref "content-management/page-bundles" >}}) will be published.
 +Setting this to false will still publish Resources on demand (when a resource's `.Permalink` or `.RelPermalink` is invoked from the templates) but will skip the others.
 +
 +{{% note %}}
 +Any page, regardless of their build options, will always be available using the [`.GetPage`]({{< relref "functions/GetPage" >}}) methods.
 +{{% /note %}}
 +
 +------
 +
 +### Illustrative use cases
 +
 +#### Not publishing a page
++
 +Project needs a "Who We Are" content file for Front Matter and body to be used by the homepage but nowhere else.
 +
 +```yaml
 +# content/who-we-are.md`
 +title: Who we are
 +_build:
 + list: false
 + render: false
 +```
 +
 +```go-html-template
 +{{/* layouts/index.html */}}
 +<section id="who-we-are">
 +{{ with site.GetPage "who-we-are" }}
 +  {{ .Content }}
 +{{ end }}
 +</section>
 +```
 +
 +#### Listing pages without publishing them
 +
 +Website needs to showcase a few of the hundred "testimonials" available as content files without publishing any of them.
 +
 +To avoid setting the build options on every testimonials, one can use [`cascade`]({{< relref "/content-management/front-matter#front-matter-cascade" >}}) on the testimonial section's content file.
 +
 +{{< code-toggle >}}
 +title: Testimonials
 +_build:
 +  render: true
 +cascade:
 +  _build:
 +    render: false
 +    list: true # default
 +{{< /code-toggle >}}
 +
 +```go-html-template
 +{{/* layouts/_defaults/testimonials.html */}}
 +<section id="testimonials">
 +{{ range first 5 .Pages }}
 +  <blockquote cite="{{ .Params.cite }}">
 +    {{ .Content }}
 +  </blockquote>
 +{{ end }}
 +</section>
index 5c604fdeb73e1770fea20f0375b34e050115d44e,0000000000000000000000000000000000000000..bb6a8d6ce88c02649c5d1b143dfe1314731ecc97
mode 100644,000000..100644
--- /dev/null
@@@ -1,74 -1,0 +1,72 @@@
- linktitle: Comments
 +---
 +title: Comments
- date: 2017-02-01
- publishdate: 2017-02-01
++linkTitle: Comments
 +description: Hugo ships with an internal Disqus template, but this isn't the only commenting system that will work with your new Hugo website.
-     parent: "content-management"
-     weight: 140
- weight: 140   #rem
- draft: false
- aliases: [/extras/comments/]
 +keywords: [sections,content,organization]
 +categories: [project organization, fundamentals]
 +menu:
 +  docs:
- ```
++    parent: content-management
++    weight: 220
 +toc: true
++weight: 220
++aliases: [/extras/comments/]
 +---
 +
 +Hugo ships with support for [Disqus](https://disqus.com/), a third-party service that provides comment and community capabilities to websites via JavaScript.
 +
 +Your theme may already support Disqus, but if not, it is easy to add to your templates via [Hugo's built-in Disqus partial][disquspartial].
 +
 +## Add Disqus
 +
 +Hugo comes with all the code you need to load Disqus into your templates. Before adding Disqus to your site, you'll need to [set up an account][disqussetup].
 +
 +### Configure Disqus
 +
 +Disqus comments require you set a single value in your [site's configuration file][configuration] like so:
 +
 +{{< code-toggle copy="false" >}}
 +disqusShortname = "yourDisqusShortname"
 +{{</ code-toggle >}}
 +
 +For many websites, this is enough configuration. However, you also have the option to set the following in the [front matter][] of a single content file:
 +
 +* `disqus_identifier`
 +* `disqus_title`
 +* `disqus_url`
 +
 +### Render Hugo's Built-in Disqus Partial Template
 +
 +Disqus has its own [internal template](https://gohugo.io/templates/internal/#disqus) available, to render it add the following code where you want comments to appear:
 +
- * [Isso](https://posativ.org/isso/) (Self-hosted, Python) ([tutorial][issotutorial])
++```go-html-template
 +{{ template "_internal/disqus.html" . }}
 +```
 +
 +## Alternatives
 +
 +These are some alternatives to Disqus:
 +
 +* [Cactus Comments](https://cactus.chat/docs/integrations/hugo/) (Open Source, Matrix appservice, Docker install)
 +* [Commento](https://commento.io/) (Open Source, available as a service, local install, or docker image)
 +* [Graph Comment](https://graphcomment.com/)
 +* [Hyvor Talk](https://talk.hyvor.com/) (Available as a service)
 +* [IntenseDebate](https://intensedebate.com/)
++* [Isso](https://isso-comments.de/) (Self-hosted, Python) ([tutorial][issotutorial])
 +* [Muut](https://muut.com/)
 +* [Remark42](https://remark42.com/) (Open source, Golang, Easy to run docker)
++* [ReplyBox](https://getreplybox.com/)
 +* [Staticman](https://staticman.net/)
 +* [Talkyard](https://blog-comments.talkyard.io/) (Open source, & serverless hosting)
 +* [Utterances](https://utteranc.es/) (Open source, GitHub comments widget built on GitHub issues)
 +
 +[configuration]: /getting-started/configuration/
 +[disquspartial]: /templates/internal/#disqus
 +[disqussetup]: https://disqus.com/profile/signup/
 +[forum]: https://discourse.gohugo.io
 +[front matter]: /content-management/front-matter/
 +[kaijuissue]: https://github.com/spf13/kaiju/issues/new
 +[issotutorial]: https://stiobhart.net/2017-02-24-isso-comments/
 +[partials]: /templates/partials/
 +[MongoDB]: https://www.mongodb.com/
 +[tweet]: https://twitter.com/spf13
index b5dd8a4c3f76e1e8f468b76409042b689ee94c3f,0000000000000000000000000000000000000000..00fb2d973d0b2f64579501bf3122655c72f4c348
mode 100644,000000..100644
--- /dev/null
@@@ -1,128 -1,0 +1,153 @@@
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-03-31
 +---
 +title: Links and Cross References
++linkTitle: Links and Cross References
 +description: Shortcodes for creating links to documents.
-     parent: "content-management"
-     weight: 100
- weight: 100   #rem
- aliases: [/extras/crossreferences/]
 +categories: [content management]
 +keywords: ["cross references","references", "anchors", "urls"]
 +menu:
 +  docs:
- ## Use `ref` and `relref`
++    parent: content-management
++    weight: 170
 +toc: true
++weight: 170
++aliases: [/extras/crossreferences/]
 +---
 +
 +The `ref` and `relref` shortcodes display the absolute and relative permalinks to a document, respectively.
 +
- ```go-html-template
- {{</* ref "document" */>}}
- {{</* ref "document#anchor" */>}}
- {{</* ref "document.md" */>}}
- {{</* ref "document.md#anchor" */>}}
- {{</* ref "#anchor" */>}}
- {{</* ref "/blog/my-post" */>}}
++## Use of `ref` and `relref`
 +
- To generate a hyperlink using `ref` or `relref` in markdown:
++The `ref` and `relref` shortcodes require a single parameter: the path to a content document, with or without a file extension, with or without an anchor. Paths without a leading `/` are first resolved relative to the current page, then to the remainder of the site.
++
++```
++.
++└── content
++    ├── about
++    |   ├── _index.md
++    |   └── credits.md
++    ├── pages
++    |   ├── document1.md
++    |   └── document2.md    // has anchor #anchor
++    ├── products
++    |   └── index.md
++    └── blog
++        └── my-post.md
++```
++
++The pages can be referenced as follows:
++
++
++```text
++{{</* ref "document2" */>}}             // <- From pages/document1.md, relative path
++{{</* ref "document2#anchor" */>}}      
++{{</* ref "document2.md" */>}}          
++{{</* ref "document2.md#anchor" */>}}   
++{{</* ref "#anchor" */>}}               // <- From pages/document2.md
++{{</* ref "/blog/my-post" */>}}         // <- From anywhere, absolute path
 +{{</* ref "/blog/my-post.md" */>}}
 +{{</* relref "document" */>}}
 +{{</* relref "document.md" */>}}
 +{{</* relref "#anchor" */>}}
 +{{</* relref "/blog/my-post.md" */>}}
 +```
 +
- ```md
- [About]({{</* ref "/page/about" */>}} "About Us")
++index.md can be reference either by its path or by its containing folder without the ending `/`. \_index.md can be referenced only by its containing folder:
 +
- The `ref` and `relref` shortcodes require a single parameter: the path to a content document, with or without a file extension, with or without an anchor.
++```text
++{{</* ref "/about" */>}}             // <- References /about/_index.md
++{{</* ref "/about/_index" */>}}      //    Raises REF_NOT_FOUND error
++{{</* ref "/about/credits.md" */>}}  // <- References /about/credits.md
++
++{{</* ref "/products" */>}}          // <- References /products/index.md
++{{</* ref "/products/index" */>}}    // <- References /products/index.md
 +```
 +
- **Paths without a leading `/` are first resolved relative to the current page, then to the remainder of the site.
++To generate a hyperlink using `ref` or `relref` in markdown:
 +
- refLinksErrorLevel ("ERROR") 
++```text
++[About]({{</* ref "/about" */>}} "About Us")
++```
 +
 +Hugo emits an error or warning if a document cannot be uniquely resolved. The error behavior is configurable; see below.
 +
 +### Link to another language version
 +
 +To link to another language version of a document, use this syntax:
 +
 +```go-html-template
 +{{</* relref path="document.md" lang="ja" */>}}
 +```
 +
 +### Get another Output Format
 +
 +To link to another Output Format of a document, use this syntax:
 +
 +```go-html-template
 +{{</* relref path="document.md" outputFormat="rss" */>}}
 +```
 +
 +### Heading IDs
 +
 +When using Markdown document types, Hugo generates element IDs for every heading on a page. For example:
 +
 +```md
 +## Reference
 +```
 +
 +produces this HTML:
 +
 +```html
 +<h2 id="reference">Reference</h2>
 +```
 +
 +Get the permalink to a heading by appending the ID to the path when using the `ref` or `relref` shortcodes:
 +
 +```go-html-template
 +{{</* ref "document.md#reference" */>}}
 +{{</* relref "document.md#reference" */>}}
 +```
 +
 +Generate a custom heading ID by including an attribute. For example:
 +
 +```md
 +## Reference A {#foo}
 +## Reference B {id="bar"}
 +```
 +
 +produces this HTML:
 +
 +```html
 +<h2 id="foo">Reference A</h2>
 +<h2 id="bar">Reference B</h2>
 +```
 +
 +Hugo will generate unique element IDs if the same heading appears more than once on a page. For example:
 +
 +```md
 +## Reference
 +## Reference
 +## Reference
 +```
 +
 +produces this HTML:
 +
 +```html
 +<h2 id="reference">Reference</h2>
 +<h2 id="reference-1">Reference</h2>
 +<h2 id="reference-2">Reference</h2>
 +```
 +
 +## Ref and RelRef Configuration
 +
 +The behavior can, since Hugo 0.45, be configured in `config.toml`:
 +
++refLinksErrorLevel ("ERROR")
 +: When using `ref` or `relref` to resolve page links and a link cannot resolved, it will be logged with this log level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`).
 +
 +refLinksNotFoundURL
 +: URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is.
 +
 +
 +[lists]: /templates/lists/
 +[output formats]: /templates/output-formats/
 +[shortcode]: /content-management/shortcodes/
index 243a70fd4f0f7b2d0420f5485794339266797a90,0000000000000000000000000000000000000000..c95548249f6d5ac33c292fcbf6a098758e833bfe
mode 100644,000000..100644
--- /dev/null
@@@ -1,277 -1,0 +1,265 @@@
- date: 2022-02-20
 +---
 +title: Diagrams
-     parent: "content-management"
-     weight: 22
- weight: 22
++LinkTitle: Diagrams
++description: Use fenced code blocks and markdown render hooks to display diagrams.
 +categories: [content management]
 +keywords: [diagrams,drawing]
 +menu:
 +  docs:
++    parent: content-management
++    weight: 50
 +toc: true
++weight: 50
 +---
 +{{< new-in "0.93.0" >}}
 +
- Hugo! supports [GoAT](https://github.com/bep/goat) natively. This means that this code block:
 +## GoAT Diagrams (Ascii)
 +
- ````
++Hugo supports [GoAT](https://github.com/bep/goat) natively. This means that this code block:
 +
++````txt
 +```goat
 +      .               .                .               .--- 1          .-- 1     / 1
 +     / \              |                |           .---+            .-+         +
 +    /   \         .---+---.         .--+--.        |   '--- 2      |   '-- 2   / \ 2
 +   +     +        |       |        |       |    ---+            ---+          +
 +  / \   / \     .-+-.   .-+-.     .+.     .+.      |   .--- 3      |   .-- 3   \ / 3
 + /   \ /   \    |   |   |   |    |   |   |   |     '---+            '-+         +
 + 1   2 3   4    1   2   3   4    1   2   3   4         '--- 4          '-- 4     \ 4
 +
 +```
 +````
 +
 +Will be rendered as:
 +
 +```goat
 +
 +          .               .                .               .--- 1          .-- 1     / 1
 +         / \              |                |           .---+            .-+         +
 +        /   \         .---+---.         .--+--.        |   '--- 2      |   '-- 2   / \ 2
 +       +     +        |       |        |       |    ---+            ---+          +
 +      / \   / \     .-+-.   .-+-.     .+.     .+.      |   .--- 3      |   .-- 3   \ / 3
 +     /   \ /   \    |   |   |   |    |   |   |   |     '---+            '-+         +
 +     1   2 3   4    1   2   3   4    1   2   3   4         '--- 4          '-- 4     \ 4
 +```
 +
- Hugo currently does not provide default templates for Mermaid diagrams. But you can easily add your own. One way to do it would be to create ` layouts/_default/_markup/render-codeblock-mermaid.html`:
 +## Mermaid Diagrams
 +
- And then include this snippet at the bottom of the content template (below `.Content`):
++Hugo currently does not provide default templates for Mermaid diagrams. But you can easily add your own. One way to do it would be to create `layouts/_default/_markup/render-codeblock-mermaid.html`:
 +
 +```go-html-template
 +<div class="mermaid">
 +  {{- .Inner | safeHTML }}
 +</div>
 +{{ .Page.Store.Set "hasMermaid" true }}
 +```
 +
++And then include this snippet at the bottom of the content template (**Note**: below `.Content` as the render hook is not processed until `.Content` is executed):
 +
 +```go-html-template
 +{{ if .Page.Store.Get "hasMermaid" }}
 +  <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
 +  <script>
 +    mermaid.initialize({ startOnLoad: true });
 +  </script>
 +{{ end }}
 +```
 +
 +With that you can use the `mermaid` language in Markdown code blocks:
 +
 +```mermaid
 +sequenceDiagram
 +    participant Alice
 +    participant Bob
 +    Alice->>John: Hello John, how are you?
 +    loop Healthcheck
 +        John->>John: Fight against hypochondria
 +    end
 +    Note right of John: Rational thoughts <br/>prevail!
 +    John-->>Alice: Great!
 +    John->>Bob: How about you?
 +    Bob-->>John: Jolly good!
 +```
 +
- Created from https://arthursonzogni.com/Diagon/#Tree
 +## Goat Ascii Diagram Examples
 +
 +### Graphics
 +
 +```goat
 +                                                                             .
 +    0       3                          P *              Eye /         ^     /
 +     *-------*      +y                    \                +)          \   /  Reflection
 +  1 /|    2 /|       ^                     \                \           \ v
 +   *-------* |       |                v0    \       v3           --------*--------
 +   | |4    | |7      |                  *----\-----*
 +   | *-----|-*       +-----> +x        /      v X   \          .-.<--------        o
 +   |/      |/       /                 /        o     \        | / | Refraction    / \
 +   *-------*       v                 /                \        +-'               /   \
 +  5       6      +z              v1 *------------------* v2    |                o-----o
 +                                                               v
 +
 +```
 +
 +### Complex
 +
 +```goat
 ++-------------------+                           ^                      .---.
 +|    A Box          |__.--.__    __.-->         |      .-.             |   |
 +|                   |        '--'               v     | * |<---        |   |
 ++-------------------+                                  '-'             |   |
 +                       Round                                       *---(-. |
 +  .-----------------.  .-------.    .----------.         .-------.     | | |
 + |   Mixed Rounded  | |         |  / Diagonals  \        |   |   |     | | |
 + | & Square Corners |  '--. .--'  /              \       |---+---|     '-)-'       .--------.
 + '--+------------+-'  .--. |     '-------+--------'      |   |   |       |        / Search /
 +    |            |   |    | '---.        |               '-------'       |       '-+------'
 +    |<---------->|   |    |      |       v                Interior                 |     ^
 +    '           <---'      '----'   .-----------.              ---.     .---       v     |
 + .------------------.  Diag line    | .-------. +---.              \   /           .     |
 + |   if (a > b)     +---.      .--->| |       | |    | Curved line  \ /           / \    |
 + |   obj->fcn()     |    \    /     | '-------' |<--'                +           /   \   |
 + '------------------'     '--'      '--+--------'      .--. .--.     |  .-.     +Done?+-'
 +    .---+-----.                        |   ^           |\ | | /|  .--+ |   |     \   /
 +    |   |     | Join        \|/        |   | Curved    | \| |/ | |    \    |      \ /
 +    |   |     +---->  o    --o--        '-'  Vertical  '--' '--'  '--  '--'        +  .---.
 + <--+---+-----'       |     /|\                                                    |  | 3 |
 +                      v                             not:line    'quotes'        .-'   '---'
 +  .-.             .---+--------.            /            A || B   *bold*       |        ^
 + |   |           |   Not a dot  |      <---+---<--    A dash--is not a line    v        |
 +  '-'             '---------+--'          /           Nor/is this.            ---
 +
 +```
 +
 +### Process
 +
 +```goat
 +                                      .
 +   .---------.                       / \
 +  |   START   |                     /   \        .-+-------+-.      ___________
 +   '----+----'    .-------.    A   /     \   B   | |COMPLEX| |     /           \      .-.
 +        |        |   END   |<-----+CHOICE +----->| |       | +--->+ PREPARATION +--->| X |
 +        v         '-------'        \     /       | |PROCESS| |     \___________/      '-'
 +    .---------.                     \   /        '-+---+---+-'
 +   /  INPUT  /                       \ /
 +  '-----+---'                         '
 +        |                             ^
 +        v                             |
 +  .-----------.                 .-----+-----.        .-.
 +  |  PROCESS  +---------------->|  PROCESS  |<------+ X |
 +  '-----------'                 '-----------'        '-'
 +```
 +
 +### File tree
 +
- https://arthursonzogni.com/Diagon/#Sequence
++Created from <https://arthursonzogni.com/Diagon/#Tree>
 +
 +```goat  { width=300  color="orange" }
 +───Linux─┬─Android
 +         ├─Debian─┬─Ubuntu─┬─Lubuntu
 +         │        │        ├─Kubuntu
 +         │        │        ├─Xubuntu
 +         │        │        └─Xubuntu
 +         │        └─Mint
 +         ├─Centos
 +         └─Fedora
 +```
 +
 +
 +### Sequence Diagram
 +
- https://arthursonzogni.com/Diagon/#Flowchart
++<https://arthursonzogni.com/Diagon/#Sequence>
 +
 +```goat { class="w-40" }
 +┌─────┐       ┌───┐
 +│Alice│       │Bob│
 +└──┬──┘       └─┬─┘
 +   │            │  
 +   │ Hello Bob! │  
 +   │───────────>│  
 +   │            │  
 +   │Hello Alice!│  
 +   │<───────────│  
 +┌──┴──┐       ┌─┴─┐
 +│Alice│       │Bob│
 +└─────┘       └───┘
 +
 +```
 +
 +
 +### Flowchart
 +
- https://arthursonzogni.com/Diagon/#Table
++<https://arthursonzogni.com/Diagon/#Flowchart>
 +
 +```goat
 +   _________________                                                              
 +  ╱                 ╲                                                     ┌─────┐ 
 + ╱ DO YOU UNDERSTAND ╲____________________________________________________│GOOD!│ 
 + ╲ FLOW CHARTS?      ╱yes                                                 └──┬──┘ 
 +  ╲_________________╱                                                        │    
 +           │no                                                               │    
 +  _________▽_________                    ______________________              │    
 + ╱                   ╲                  ╱                      ╲    ┌────┐   │    
 +╱ OKAY, YOU SEE THE   ╲________________╱ ... AND YOU CAN SEE    ╲___│GOOD│   │    
 +╲ LINE LABELED 'YES'? ╱yes             ╲ THE ONES LABELED 'NO'? ╱yes└──┬─┘   │    
 + ╲___________________╱                  ╲______________________╱       │     │    
 +           │no                                     │no                 │     │    
 +   ________▽_________                     _________▽__________         │     │    
 +  ╱                  ╲    ┌───────────┐  ╱                    ╲        │     │    
 + ╱ BUT YOU SEE THE    ╲___│WAIT, WHAT?│ ╱ BUT YOU JUST         ╲___    │     │    
 + ╲ ONES LABELED 'NO'? ╱yes└───────────┘ ╲ FOLLOWED THEM TWICE? ╱yes│   │     │    
 +  ╲__________________╱                   ╲____________________╱    │   │     │    
 +           │no                                     │no             │   │     │    
 +       ┌───▽───┐                                   │               │   │     │    
 +       │LISTEN.│                                   └───────┬───────┘   │     │    
 +       └───┬───┘                                    ┌──────▽─────┐     │     │    
 +     ┌─────▽────┐                                   │(THAT WASN'T│     │     │    
 +     │I HATE YOU│                                   │A QUESTION) │     │     │    
 +     └──────────┘                                   └──────┬─────┘     │     │    
 +                                                      ┌────▽───┐       │     │    
 +                                                      │SCREW IT│       │     │    
 +                                                      └────┬───┘       │     │    
 +                                                           └─────┬─────┘     │    
 +                                                                 │           │    
 +                                                                 └─────┬─────┘    
 +                                                               ┌───────▽──────┐   
 +                                                               │LET'S GO DRING│   
 +                                                               └───────┬──────┘   
 +                                                             ┌─────────▽─────────┐
 +                                                             │HEY, I SHOULD TRY  │
 +                                                             │INSTALLING FREEBSD!│
 +                                                             └───────────────────┘
 +
 +```
 +
 +
 +### Table
 +
++<https://arthursonzogni.com/Diagon/#Table>
 +
 +```goat { class="w-80 dark-blue" }
 +┌────────────────────────────────────────────────┐
 +│                                                │
 +├────────────────────────────────────────────────┤
 +│SYNTAX     = { PRODUCTION } .                   │
 +├────────────────────────────────────────────────┤
 +│PRODUCTION = IDENTIFIER "=" EXPRESSION "." .    │
 +├────────────────────────────────────────────────┤
 +│EXPRESSION = TERM { "|" TERM } .                │
 +├────────────────────────────────────────────────┤
 +│TERM       = FACTOR { FACTOR } .                │
 +├────────────────────────────────────────────────┤
 +│FACTOR     = IDENTIFIER                         │
 +├────────────────────────────────────────────────┤
 +│          | LITERAL                             │
 +├────────────────────────────────────────────────┤
 +│          | "[" EXPRESSION "]"                  │
 +├────────────────────────────────────────────────┤
 +│          | "(" EXPRESSION ")"                  │
 +├────────────────────────────────────────────────┤
 +│          | "{" EXPRESSION "}" .                │
 +├────────────────────────────────────────────────┤
 +│IDENTIFIER = letter { letter } .                │
 +├────────────────────────────────────────────────┤
 +│LITERAL    = """" character { character } """" .│
 +└────────────────────────────────────────────────┘
 +```
index 303bb4596c90724aa0b8ad2b5c6e54c504f5d2a2,0000000000000000000000000000000000000000..a98898821c30a1554c300c909cd29600059f436a
mode 100644,000000..100644
--- /dev/null
@@@ -1,148 -1,0 +1,145 @@@
- linktitle: Content Formats
 +---
 +title: Content Formats
- date: 2017-01-10
- publishdate: 2017-01-10
++linkTitle: Content Formats
 +description: Both HTML and Markdown are supported content formats.
-     parent: "content-management"
-     weight: 20
- weight: 20    #rem
- draft: false
- aliases: [/content/markdown-extras/,/content/supported-formats/,/doc/supported-formats/]
 +categories: [content management]
 +keywords: [markdown,asciidoc,pandoc,content format]
 +menu:
 +  docs:
- | Goldmark  | md, markdown, goldmark  |Note that you can set the default handler of `md` and `markdown` to something else, see [Configure Markup](/getting-started/configuration-markup/).{{< new-in "0.60.0" >}} |
++    parent: content-management
++    weight: 40
 +toc: true
++weight: 40
++aliases: [/content/markdown-extras/,/content/supported-formats/,/doc/supported-formats/]
 +---
 +
 +You can put any file type into your `/content` directories, but Hugo uses the `markup` front matter value if set or the file extension (see `Markup identifiers` in the table below) to determine if the markup needs to be processed, e.g.:
 +
 +* Markdown converted to HTML
 +* [Shortcodes](/content-management/shortcodes/) processed
 +* Layout applied
 +
 +## List of content formats
 +
 +The current list of content formats in Hugo:
 +
 +| Name  | Markup identifiers | Comment |
 +| ------------- | ------------- |-------------|
- [AsciiDoc](https://github.com/asciidoc/asciidoc) implementation EOLs in Jan 2020 and is no longer supported. 
- AsciiDoc development is being continued under [Asciidoctor](https://github.com/asciidoctor). The format AsciiDoc 
++| Goldmark  | md, markdown, goldmark  |Note that you can set the default handler of `md` and `markdown` to something else, see [Configure Markup](/getting-started/configuration-markup/).|
 +|Emacs Org-Mode|org|See [go-org](https://github.com/niklasfasching/go-org).|
 +|AsciiDoc|asciidocext, adoc, ad|Needs [Asciidoctor][ascii] installed.|
 +|RST|rst|Needs [RST](https://docutils.sourceforge.io/rst.html) installed.|
 +|Pandoc|pandoc, pdc|Needs [Pandoc](https://www.pandoc.org/) installed.|
 +|HTML|html, htm|To be treated as a content file, with layout, shortcodes etc., it must have front matter. If not, it will be copied as-is.|
 +
 +The `markup identifier` is fetched from either the `markup` variable in front matter or from the file extension. For markup-related configuration, see [Configure Markup](/getting-started/configuration-markup/).
 +
 +## External Helpers
 +
 +Some of the formats in the table above need external helpers installed on your PC. For example, for AsciiDoc files,
 +Hugo will try to call the `asciidoctor` command. This means that you will have to install the associated
 +tool on your machine to be able to use these formats.
 +
 +Hugo passes reasonable default arguments to these external helpers by default:
 +
 +- `asciidoctor`: `--no-header-footer -`
 +- `rst2html`: `--leave-comments --initial-header-level=2`
 +- `pandoc`: `--mathjax`
 +
 +{{% warning "Performance of External Helpers" %}}
 +Because additional formats are external commands, generation performance will rely heavily on the performance of the external tool you are using. As this feature is still in its infancy, feedback is welcome.
 +{{% /warning %}}
 +
 +### External Helper AsciiDoc
 +
- The Asciidoctor community offers a wide set of tools for the AsciiDoc format that can be installed additionally to Hugo. 
++[AsciiDoc](https://github.com/asciidoc/asciidoc) implementation EOLs in Jan 2020 and is no longer supported.
++AsciiDoc development is being continued under [Asciidoctor](https://github.com/asciidoctor). The format AsciiDoc
 +remains of course. Please continue with the implementation Asciidoctor.
 +
 +### External Helper Asciidoctor
 +
- ```
++The Asciidoctor community offers a wide set of tools for the AsciiDoc format that can be installed additionally to Hugo.
 +[See the Asciidoctor docs for installation instructions](https://asciidoctor.org/docs/install-toolchain/). Make sure that also all
 +optional extensions like `asciidoctor-diagram` or `asciidoctor-html5s` are installed if required.
 +
 +{{% note %}}
 +External `asciidoctor` command requires Hugo rendering to _disk_ to a specific destination directory. It is required to run Hugo with the command option `--destination`.
 +{{% /note %}}
 +
 +Some [Asciidoctor](https://asciidoctor.org/man/asciidoctor/) parameters can be customized in Hugo:
 +
 +Parameter | Comment
 +--- | ---
 +backend | Don't change this unless you know what you are doing.
 +doctype | Currently, the only document type supported in Hugo is `article`.
 +extensions | Possible extensions are `asciidoctor-html5s`, `asciidoctor-bibtex`, `asciidoctor-diagram`, `asciidoctor-interdoc-reftext`, `asciidoctor-katex`, `asciidoctor-latex`, `asciidoctor-mathematical`, `asciidoctor-question`, `asciidoctor-rouge`.
 +attributes | Variables to be referenced in your AsciiDoc file. This is a list of variable name/value maps. See [Asciidoctor's attributes](https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#attributes-and-substitutions).
 +noHeaderOrFooter | Output an embeddable document, which excludes the header, the footer, and everything outside the body of the document. Don't change this unless you know what you are doing.
 +safeMode | Safe mode level `unsafe`, `safe`, `server` or `secure`. Don't change this unless you know what you are doing.
 +sectionNumbers | Auto-number section titles.
 +verbose | Verbosely print processing information and configuration file checks to stderr.
 +trace | Include backtrace information on errors.
 +failureLevel | The minimum logging level that triggers a non-zero exit code (failure).
 +
 +Hugo provides additional settings that don't map directly to Asciidoctor's CLI options:
 +
 +workingFolderCurrent
 +: Sets the working directory to be the same as that of the AsciiDoc file being processed, so that [include](https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#include-files) will work with relative paths. This setting uses the `asciidoctor` cli parameter `--base-dir` and attribute `outdir=`. For rendering diagrams with [asciidoctor-diagram](https://asciidoctor.org/docs/asciidoctor-diagram/), `workingFolderCurrent` must be set to `true`.
 +
 +preserveTOC
 +: By default, Hugo removes the table of contents generated by Asciidoctor and provides it through the built-in variable [`.TableOfContents`](/content-management/toc/) to enable further customization and better integration with the various Hugo themes. This option can be set to `true` to preserve Asciidoctor's TOC in the generated page.
 +
 +Below are all the AsciiDoc related settings in Hugo with their default values:
 +
 +{{< code-toggle config="markup.asciidocExt" />}}
 +
 +Notice that for security concerns only extensions that do not have path separators (either `\`, `/` or `.`) are allowed. That means that extensions can only be invoked if they are in one's ruby's `$LOAD_PATH` (ie. most likely, the extension has been installed by the user). Any extension declared relative to the website's path will not be accepted.
 +
 +Example of how to set extensions and attributes:
 +
- In a complex Asciidoctor environment it is sometimes helpful to debug the exact call to your external helper with all 
++```yml
 +[markup.asciidocExt]
 +    extensions = ["asciidoctor-html5s", "asciidoctor-diagram"]
 +    workingFolderCurrent = true
 +    [markup.asciidocExt.attributes]
 +        my-base-url = "https://example.com/"
 +        my-attribute-name = "my value"
 +```
 +
- ```
++In a complex Asciidoctor environment it is sometimes helpful to debug the exact call to your external helper with all
 +parameters. Run Hugo with `-v`. You will get an output like
 +
++```txt
 +INFO 2019/12/22 09:08:48 Rendering book-as-pdf.adoc with C:\Ruby26-x64\bin\asciidoctor.bat using asciidoc args [--no-header-footer -r asciidoctor-html5s -b html5s -r asciidoctor-diagram --base-dir D:\prototypes\hugo_asciidoc_ddd\docs -a outdir=D:\prototypes\hugo_asciidoc_ddd\build -] ...
 +```
 +
 +## Learn Markdown
 +
 +Markdown syntax is simple enough to learn in a single sitting. The following are excellent resources to get you up and running:
 +
 +* [Daring Fireball: Markdown, John Gruber (Creator of Markdown)][fireball]
 +* [Markdown Cheatsheet, Adam Pritchard][mdcheatsheet]
 +* [Markdown Tutorial (Interactive), Garen Torikian][mdtutorial]
 +* [The Markdown Guide, Matt Cone][mdguide]
 +
 +[`emojify` function]: /functions/emojify/
 +[ascii]: https://asciidoctor.org/
 +[config]: /getting-started/configuration/
 +[developer tools]: /tools/
 +[emojis]: https://www.webpagefx.com/tools/emoji-cheat-sheet/
 +[fireball]: https://daringfireball.net/projects/markdown/
 +[gfmtasks]: https://guides.github.com/features/mastering-markdown/#syntax
 +[helperssource]: https://github.com/gohugoio/hugo/blob/77c60a3440806067109347d04eb5368b65ea0fe8/helpers/general.go#L65
 +[hl]: /content-management/syntax-highlighting/
 +[hlsc]: /content-management/shortcodes/#highlight
 +[hugocss]: /css/style.css
 +[ietf]: https://tools.ietf.org/html/
 +[mathjaxdocs]: https://docs.mathjax.org/en/latest/
 +[mdcheatsheet]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
 +[mdguide]: https://www.markdownguide.org/
 +[mdtutorial]: https://www.markdowntutorial.com/
 +[org]: https://orgmode.org/
 +[pandoc]: https://www.pandoc.org/
 +[rest]: https://docutils.sourceforge.io/rst.html
 +[sc]: /content-management/shortcodes/
 +[sct]: /templates/shortcode-templates/
index 0d8c2e3a6d93ebe3e75869b8471edcf416ddedd8,0000000000000000000000000000000000000000..71e6e36eaadccaae8039b017242154316a3a0f61
mode 100644,000000..100644
--- /dev/null
@@@ -1,248 -1,0 +1,241 @@@
- linktitle:
 +---
 +title: Front Matter
- date: 2017-01-09
- publishdate: 2017-01-09
++linkTitle: Front Matter
 +description: Hugo allows you to add front matter in yaml, toml, or json to your content files.
-     parent: "content-management"
-     weight: 30
- weight: 30    #rem
- draft: false
- aliases: [/content/front-matter/]
 +lastmod: 2017-02-24
 +categories: [content management]
 +keywords: ["front matter", "yaml", "toml", "json", "metadata", "archetypes"]
 +menu:
 +  docs:
- : the datetime assigned to this page. This is usually fetched from the `date` field in front matter, but this behaviour is configurable.
++    parent: content-management
++    weight: 60
 +toc: true
++weight: 60
++aliases: [/content/front-matter/]
 +---
 +
 +**Front matter** allows you to keep metadata attached to an instance of a [content type][]---i.e., embedded inside a content file---and is one of the many features that gives Hugo its strength.
 +
 +{{< youtube Yh2xKRJGff4 >}}
 +
 +## Front Matter Formats
 +
 +Hugo supports four formats for front matter, each with their own identifying tokens.
 +
 +TOML
 +: identified by opening and closing `+++`.
 +
 +YAML
 +: identified by opening and closing `---`.
 +
 +JSON
 +: a single JSON object surrounded by '`{`' and '`}`', followed by a new line.
 +
 +ORG
 +: a group of Org mode keywords in the format '`#+KEY: VALUE`'. Any line that does not start with `#+` ends the front matter section.
 +  Keyword values can be either strings (`#+KEY: VALUE`) or a whitespace separated list of strings (`#+KEY[]: VALUE_1 VALUE_2`).
 +
 +### Example
 +
 +{{< code-toggle >}}
 +title = "spf13-vim 3.0 release and new website"
 +description = "spf13-vim is a cross platform distribution of vim plugins and resources for Vim."
 +tags = [ ".vimrc", "plugins", "spf13-vim", "vim" ]
 +date = "2012-04-06"
 +categories = [
 +  "Development",
 +  "VIM"
 +]
 +slug = "spf13-vim-3-0-release-and-new-website"
 +{{< /code-toggle >}}
 +
 +## Front Matter Variables
 +
 +### Predefined
 +
 +There are a few predefined variables that Hugo is aware of. See [Page Variables][pagevars] for how to call many of these predefined variables in your templates.
 +
 +aliases
 +: an array of one or more aliases (e.g., old published paths of renamed content) that will be created in the output directory structure . See [Aliases][aliases] for details.
 +
 +audio
 +: an array of paths to audio files related to the page; used by the `opengraph` [internal template](/templates/internal) to populate `og:audio`.
 +
 +cascade
 +: a map of Front Matter keys whose values are passed down to the page's descendants unless overwritten by self or a closer ancestor's cascade. See [Front Matter Cascade](#front-matter-cascade) for details.
 +
 +date
- : field name of the *plural* form of the index. See `tags` and `categories` in the above front matter examples. _Note that the plural form of user-defined taxonomies cannot be the same as any of the predefined front matter variables._
++: the datetime assigned to this page. This is usually fetched from the `date` field in front matter, but this behavior is configurable.
 +
 +description
 +: the description for the content.
 +
 +draft
 +: if `true`, the content will not be rendered unless the `--buildDrafts` flag is passed to the `hugo` command.
 +
 +expiryDate
 +: the datetime at which the content should no longer be published by Hugo; expired content will not be rendered unless the `--buildExpired` flag is passed to the `hugo` command.
 +
 +headless
 +: if `true`, sets a leaf bundle to be [headless][headless-bundle].
 +
 +images
 +: an array of paths to images related to the page; used by [internal templates](/templates/internal) such as `_internal/twitter_cards.html`.
 +
 +isCJKLanguage
 +: if `true`, Hugo will explicitly treat the content as a CJK language; both `.Summary` and `.WordCount` work properly in CJK languages.
 +
 +keywords
 +: the meta keywords for the content.
 +
 +layout
 +: the layout Hugo should select from the [lookup order][lookup] when rendering the content. If a `type` is not specified in the front matter, Hugo will look for the layout of the same name in the layout directory that corresponds with a content's section. See [Content Types][content type].
 +
 +lastmod
 +: the datetime at which the content was last modified.
 +
 +linkTitle
 +: used for creating links to content; if set, Hugo defaults to using the `linktitle` before the `title`. Hugo can also [order lists of content by `linktitle`][bylinktitle].
 +
 +markup
 +: **experimental**; specify `"rst"` for reStructuredText (requires`rst2html`) or `"md"` (default) for Markdown.
 +
 +outputs
 +: allows you to specify output formats specific to the content. See [output formats][outputs].
 +
 +publishDate
 +: if in the future, content will not be rendered unless the `--buildFuture` flag is passed to `hugo`.
 +
 +resources
 +: used for configuring page bundle resources. See [Page Resources][page-resources].
 +
 +series
 +: an array of series this page belongs to, as a subset of the `series` [taxonomy](/content-management/taxonomies/); used by the `opengraph` [internal template](/templates/internal) to populate `og:see_also`.
 +
 +slug
 +: appears as the tail of the output URL. A value specified in front matter will override the segment of the URL based on the filename.
 +
 +summary
 +: text used when providing a summary of the article in the `.Summary` page variable; details available in the [content-summaries](/content-management/summaries/) section.
 +
 +title
 +: the title for the content.
 +
 +type
 +: the type of the content; this value will be automatically derived from the directory (i.e., the [section][]) if not specified in front matter.
 +
 +url
 +: the full path to the content from the web root. It makes no assumptions about the path of the content file. See [URL Management](/content-management/urls/#set-url-in-front-matter).
 +
 +videos
 +: an array of paths to videos related to the page; used by the `opengraph` [internal template](/templates/internal) to populate `og:video`.
 +
 +weight
 +: used for [ordering your content in lists][ordering]. Lower weight gets higher precedence. So content with lower weight will come first. If set, weights should be non-zero, as 0 is interpreted as an *unset* weight.
 +
 +\<taxonomies\>
- {{< new-in "0.76.0" >}}
- Since Hugo 0.76 the `cascade` block can be a slice with a optional `_target` keyword, allowing for multiple `cascade` values targeting different page sets.
++: field name of the *plural* form of the index. See `tags` and `categories` in the above front matter examples. *Note that the plural form of user-defined taxonomies cannot be the same as any of the predefined front matter variables.*
 +
 +{{% note "Hugo's Default URL Destinations" %}}
 +If neither `slug` nor `url` is present and [permalinks are not configured otherwise in your site `config` file](/content-management/urls/#permalinks), Hugo will use the filename of your content to create the output URL. See [Content Organization](/content-management/organization) for an explanation of paths in Hugo and [URL Management](/content-management/urls/) for ways to customize Hugo's default behaviors.
 +{{% /note %}}
 +
 +### User-Defined
 +
 +You can add fields to your front matter arbitrarily to meet your needs. These user-defined key-values are placed into a single `.Params` variable for use in your templates.
 +
 +The following fields can be accessed via `.Params.include_toc` and `.Params.show_comments`, respectively. The [Variables][] section provides more information on using Hugo's page- and site-level variables in your templates.
 +
 +{{< code-toggle copy="false" >}}
 +include_toc: true
 +show_comments: false
 +{{</ code-toggle >}}
 +
 +## Front Matter Cascade
 +
 +Any node or section can pass down to descendants a set of Front Matter values as long as defined underneath the reserved `cascade` Front Matter key.
 +
 +### Target Specific Pages
 +
- : A [Glob](https://github.com/gobwas/glob) pattern matching the content path below /content. Expects Unix-styled slashes. Note that this is the virtual path, so it starts at the mount root. The matching support double-asterisks so you can match for patterns like `/blog/*/**` to match anything from the third level and down.
++The `cascade` block can be a slice with a optional `_target` keyword, allowing for multiple `cascade` values targeting different page sets.
 +
 +{{< code-toggle copy="false" >}}
 +title ="Blog"
 +[[cascade]]
 +background = "yosemite.jpg"
 +[cascade._target]
 +path="/blog/**"
 +lang="en"
 +kind="page"
 +[[cascade]]
 +background = "goldenbridge.jpg"
 +[cascade._target]
 +kind="section"
 +{{</ code-toggle >}}
 +
 +Keywords available for `_target`:
 +
 +path
- Any of the above can be omitted. 
++: A [Glob](https://github.com/gobwas/glob) pattern matching the content path below /content. Expects Unix-styled slashes. Note that this is the virtual path, so it starts at the mount root. The matching supports double-asterisks so you can match for patterns like `/blog/*/**` to match anything from the third level and down.
 +
 +kind
 +: A Glob pattern matching the Page's Kind(s), e.g. "{home,section}".
 +
 +lang
 +: A Glob pattern matching the Page's language, e.g. "{en,sv}".
 +
 +environment
 +: A Glob pattern matching the build environment, e.g. "{production,development}"
 +
- - Said descendant has its own `banner` value set 
++Any of the above can be omitted.
 +
 +### Example
 +
 +In `content/blog/_index.md`
 +
 +{{< code-toggle copy="false" >}}
 +title: Blog
 +cascade:
 +  banner: images/typewriter.jpg
 +{{</ code-toggle >}}
 +
 +With the above example the Blog section page and its descendants will return `images/typewriter.jpg` when `.Params.banner` is invoked unless:
 +
++- Said descendant has its own `banner` value set
 +- Or a closer ancestor node has its own `cascade.banner` value set.
 +
- * [TOML Spec][toml]
- * [YAML Spec][yaml]
- * [JSON Spec][json]
 +## Order Content Through Front Matter
 +
 +You can assign content-specific `weight` in the front matter of your content. These values are especially useful for [ordering][ordering] in list views. You can use `weight` for ordering of content and the convention of [`<TAXONOMY>_weight`][taxweight] for ordering content within a taxonomy. See [Ordering and Grouping Hugo Lists][lists] to see how `weight` can be used to organize your content in list views.
 +
 +## Override Global Markdown Configuration
 +
 +It's possible to set some options for Markdown rendering in a content's front matter as an override to the [Rendering options set in your project configuration][config].
 +
 +## Front Matter Format Specs
 +
++- [TOML Spec][toml]
++- [YAML Spec][yaml]
++- [JSON Spec][json]
 +
 +[variables]: /variables/
 +[aliases]: /content-management/urls/#aliases
 +[archetype]: /content-management/archetypes/
 +[bylinktitle]: /templates/lists/#by-link-title
 +[config]: /getting-started/configuration/ "Hugo documentation for site configuration"
 +[content type]: /content-management/types/
 +[contentorg]: /content-management/organization/
 +[headless-bundle]: /content-management/page-bundles/#headless-bundle
 +[json]: https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf "Specification for JSON, JavaScript Object Notation"
 +[lists]: /templates/lists/#order-content "See how to order content in list pages; for example, templates that look to specific _index.md for content and front matter."
 +[lookup]: /templates/lookup-order/ "Hugo traverses your templates in a specific order when rendering content to allow for DRYer templating."
 +[ordering]: /templates/lists/ "Hugo provides multiple ways to sort and order your content in list templates"
 +[outputs]: /templates/output-formats/ "With the release of v22, you can output your content to any text format using Hugo's familiar templating"
 +[page-resources]: /content-management/page-resources/
 +[pagevars]: /variables/page/
 +[section]: /content-management/sections/
 +[taxweight]: /content-management/taxonomies/
 +[toml]: https://github.com/toml-lang/toml "Specification for TOML, Tom's Obvious Minimal Language"
 +[urls]: /content-management/urls/
 +[variables]: /variables/
 +[yaml]: https://yaml.org/spec/ "Specification for YAML, YAML Ain't Markup Language"
index d99ea78463609925c4edf49c6b7a4a2be3da9cd4,0000000000000000000000000000000000000000..3f71b42448ceae4bdb7be60e5704537eea710614
mode 100644,000000..100644
--- /dev/null
@@@ -1,479 -1,0 +1,477 @@@
- title: "Image Processing"
- description: "Resize, crop, rotate, filter, and convert images."
- date: 2018-01-24T13:10:00-05:00
- categories: ["content management"]
 +---
- weight: 4004
- draft: false
- toc: true
++title: Image Processing
++linkTitle: Image Processing
++description: Resize, crop, rotate, filter, and convert images.
++categories: [content management]
 +keywords: [resources, images]
-     parent: "content-management"
-     weight: 32
 +menu:
 +  docs:
- ## The Image Resource
- The `image` resource gives you access to image-specific attributes like the picture's `Width` and `Height`, as well as powerful processing methods and filters. More on that below.
- Note that the `image` resource can also be retrieved from a [global resource]({{< relref "/hugo-pipes/introduction#from-file-to-resource" >}})
- ```go-html-template
- {{ $image := .Resources.GetMatch "sunset.jpg" }}
- ```
++    parent: content-management
++    weight: 90
++toc: true
++weight: 90
 +---
 +## Image Resources
 +
 +To process an image, you must access the image as either a page resource or a global resource.
 +
 +### Page Resources
 +
 +A page resource is a file within a [page bundle]. A page bundle is a directory with an `index.md` or `_index.md` file at its root.
 +
 +```text
 +content/
 +└── posts/
 +    └── post-1/           <-- page bundle
 +        ├── index.md
 +        └── sunset.jpg    <-- page resource
 +```
 +
- The `image` resource implements the  `Resize`, `Fit`, `Fill`, `Crop`, `Filter`, and `Exif` methods.
 +### Global Resources
 +
 +A global resource is a file:
 +
 +- Within the `assets` directory, or
 +- Within any directory [mounted] to the `assets` directory, or
 +- Located on a remote server accessible via `http` or `https`
 +
 +```text
 +assets/
 +└── images/
 +    └── sunset.jpg    <-- global resource
 +```
 +
 +To access a local image as a global resource:
 +
 +```go-html-template
 +{{ $image := resources.Get "images/sunset.jpg" }}
 +```
 +
 +To access a remote image as a global resource:
 +
 +```go-html-template
 +{{ $image := resources.GetRemote "https://gohugo.io/img/hugo-logo.png" }}
 +```
 +
 +## Image Rendering
 +
 +Once you have accessed an image as either a page resource or a global resource, render it in your templates using the `Permalink`, `RelPermalink`, `Width`, and `Height` properties.
 +
 +Example 1: Throws an error if the resource is not found.
 +
 +```go-html-template
 +{{ $image := .Resources.GetMatch "sunset.jpg" }}
 +<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}">
 +```
 +
 +Example 2: Skips image rendering if the resource is not found.
 +
 +```go-html-template
 +{{ $image := .Resources.GetMatch "sunset.jpg" }}
 +{{ with $image }}
 +  <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}">
 +{{ end }}
 +```
 +
 +Example 3: A more concise way to skip image rendering if the resource is not found.
 +
 +```go-html-template
 +{{ with .Resources.GetMatch "sunset.jpg" }}
 +  <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}">
 +{{ end }}
 +```
 +
 +## Image Processing Methods
 +
- Metadata (Exif, IPTC, XMP, etc.) is not preserved during image transformation. Use the`Exif` method with the _original_ image to extract Exif metadata from JPEG or TIFF images.
++The `image` resource implements the  [`Resize`], [`Fit`], [`Fill`], [`Crop`], [`Filter`], [`Colors`] and [`Exif`] methods.
 +
 +{{% note %}}
- `.Colors` returns a slice of hex string with the dominant colors in the image using a simple histogram method.
++Metadata (Exif, IPTC, XMP, etc.) is not preserved during image transformation. Use the [`Exif`] method with the _original_ image to extract Exif metadata from JPEG or TIFF images.
 +{{% /note %}}
 +
 +### Resize
 +
 +Resize an image to the specified width and/or height.
 +
 +If you specify both width and height, the resulting image will be disproportionally scaled unless the original image has the same aspect ratio.
 +
 +```go-html-template
 +{{/* Resize to a width of 600px and preserve aspect ratio */}}
 +{{ $image := $image.Resize "600x" }}
 +
 +{{/* Resize to a height of 400px and preserve aspect ratio */}}
 +{{ $image := $image.Resize "x400" }}
 +
 +{{/* Resize to a width of 600px and a height of 400px */}}
 +{{ $image := $image.Resize "600x400" }}
 +```
 +
 +### Fit
 +
 +Downscale an image to fit the given dimensions while maintaining aspect ratio. You must provide both width and height.
 +
 +```go-html-template
 +{{ $image := $image.Fit "600x400" }}
 +```
 +
 +### Fill
 +
 +Crop and resize an image to match the given dimensions. You must provide both width and height. Use the [`anchor`] option to change the crop box anchor point.
 +
 +```go-html-template
 +{{ $image := $image.Fill "600x400" }}
 +```
 +
 +### Crop
 +
 +Crop an image to match the given dimensions without resizing. You must provide both width and height. Use the [`anchor`] option to change the crop box anchor point.
 +
 +```go-html-template
 +{{ $image := $image.Crop "600x400" }}
 +```
 +
 +### Filter
 +
 +Apply one or more [filters] to an image.
 +
 +```go-html-template
 +{{ $image := $image.Filter (images.GaussianBlur 6) (images.Pixelate 8) }}
 +```
 +
 +Write this in a more functional style using pipes. Hugo applies the filters in the order given.
 +
 +```go-html-template
 +{{ $image := $image | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }}
 +```
 +
 +Sometimes it can be useful to create the filter chain once and then reuse it.
 +
 +```go-html-template
 +{{ $filters := slice  (images.GaussianBlur 6) (images.Pixelate 8) }}
 +{{ $image1 := $image1.Filter $filters }}
 +{{ $image2 := $image2.Filter $filters }}
 +```
 +
 +### Colors
 +
 +{{< new-in "0.104.0" >}}
 +
- You may access Exif data in JPEG and TIFF images. To prevent errors when processing images without Exif data, wrap the access in a `with` statement.
++`.Colors` returns a slice of hex strings with the dominant colors in the image using a simple histogram method.
 +
 +```go-html-template
 +{{ $colors := $image.Colors }}
 +```
 +
 +This method is fast, but if you also scale down your images, it would be good for performance to extract the colors from the scaled down image.
 +
 +
 +### Exif
 +
 +Provides an [Exif] object containing image metadata.
 +
- The `Resize`, `Fit`, `Fill`, and `Crop` methods accept a space-separated, case-insensitive list of options. The order of the options within the list is irrelevant.
++You may access Exif data in JPEG and TIFF images. To prevent errors when processing images without Exif data, wrap the access in a [`with`] statement.
 +
 +```go-html-template
 +{{ with $image.Exif }}
 +  Date: {{ .Date }}
 +  Lat/Long: {{ .Lat }}/{{ .Long }}
 +  Tags:
 +  {{ range $k, $v := .Tags }}
 +    TAG: {{ $k }}: {{ $v }}
 +  {{ end }}
 +{{ end }}
 +```
 +
 +You may also access Exif fields individually, using the [`lang.FormatNumber`] function to format the fields as needed.
 +
 +```go-html-template
 +{{ with $image.Exif }}
 +  <ul>
 +    {{ with .Date }}<li>Date: {{ .Format "January 02, 2006" }}</li>{{ end }}
 +    {{ with .Tags.ApertureValue }}<li>Aperture: {{ lang.FormatNumber 2 . }}</li>{{ end }}
 +    {{ with .Tags.BrightnessValue }}<li>Brightness: {{ lang.FormatNumber 2 . }}</li>{{ end }}
 +    {{ with .Tags.ExposureTime }}<li>Exposure Time: {{ . }}</li>{{ end }}
 +    {{ with .Tags.FNumber }}<li>F Number: {{ . }}</li>{{ end }}
 +    {{ with .Tags.FocalLength }}<li>Focal Length: {{ . }}</li>{{ end }}
 +    {{ with .Tags.ISOSpeedRatings }}<li>ISO Speed Ratings: {{ . }}</li>{{ end }}
 +    {{ with .Tags.LensModel }}<li>Lens Model: {{ . }}</li>{{ end }}
 +  </ul>
 +{{ end }}
 +```
 +
 +#### Exif Variables
 +
 +.Date
 +: Image creation date/time. Format with the [time.Format] function.
 +
 +.Lat
 +: GPS latitude in degrees.
 +
 +.Long
 +: GPS longitude in degrees.
 +
 +.Tags
 +: A collection of the available Exif tags for this image. You may include or exclude specific tags from this collection in the [site configuration](#exif-data).
 +
 +## Image Processing Options
 +
- With the `Resize` method you must specify width, height, or both. The `Fit`, `Fill`, and `Crop` methods require both width and height. All dimensions are in pixels.
++The [`Resize`], [`Fit`], [`Fill`], and [`Crop`] methods accept a space-separated, case-insensitive list of options. The order of the options within the list is irrelevant.
 +
 +### Dimensions
 +
- When using the `Crop` or `Fill` method, the _anchor_ determines the placement of the crop box. You may specify `TopLeft`, `Top`, `TopRight`, `Left`, `Center`,`Right`, `BottomLeft`, `Bottom`, `BottomRight`, or `Smart`.
++With the [`Resize`] method you must specify width, height, or both. The [`Fit`], [`Fill`], and [`Crop`] methods require both width and height. All dimensions are in pixels.
 +
 +```go-html-template
 +{{ $image := $image.Resize "600x" }}
 +{{ $image := $image.Resize "x400" }}
 +{{ $image := $image.Resize "600x400" }}
 +{{ $image := $image.Fit "600x400" }}
 +{{ $image := $image.Fill "600x400" }}
 +{{ $image := $image.Crop "600x400" }}
 +```
 +
 +### Rotation
 +
 +Rotates an image counter-clockwise by the given angle. Hugo performs rotation _before_ scaling. For example, if the original image is 600x400 and you wish to rotate the image 90 degrees counter-clockwise while scaling it by 50%:
 +
 +```go-html-template
 +{{ $image = $image.Resize "200x r90" }}
 +```
 +
 +In the example above, the width represents the desired width _after_ rotation.
 +
 +To rotate an image without scaling, use the dimensions of the original image:
 +
 +```go-html-template
 +{{ with .Resources.GetMatch "sunset.jpg" }}
 +  {{ with .Resize (printf "%dx%d r90" .Height .Width) }}
 +    <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}">
 +  {{ end }}
 +{{ end }}
 +```
 +
 +In the example above, on the second line, we have reversed width and height to reflect the desired dimensions _after_ rotation.
 +
 +### Anchor
 +
- The default value is `Smart`, which uses [Smartcrop] image analysis to determine the optimal placement of the crop box. You may override the default value in the [site configuration](#processing-options).
++When using the [`Crop`] or [`Fill`] method, the _anchor_ determines the placement of the crop box. You may specify `TopLeft`, `Top`, `TopRight`, `Left`, `Center`,`Right`, `BottomLeft`, `Bottom`, `BottomRight`, or `Smart`.
 +
- If you apply rotation when using the `Crop` or `Fill` method, specify the anchor relative to the rotated image.
++The default value is `Smart`, which uses [Smartcrop] image analysis to determine the optimal placement of the crop box. You may override the default value in the [site configuration].
 +
 +For example, if you have a 400x200 image with a bird in the upper left quadrant, you can create a 200x100 thumbnail containing the bird:
 +
 +```go-html-template
 +{{ $image.Crop "200x100 TopLeft" }}
 +```
 +
- The default value is 75. You may override the default value in the [site configuration](#processing-options).
++If you apply [rotation](#rotation) when using the [`Crop`] or [`Fill`] method, specify the anchor relative to the rotated image.
 +
 +### Target Format
 +
 +By default, Hugo encodes the image in the source format. You may convert the image to another format by specifying `bmp`, `gif`, `jpeg`, `jpg`, `png`, `tif`, `tiff`, or `webp`.
 +
 +```go-html-template
 +{{ $image.Resize "600x webp" }}
 +```
 +
 +To convert an image without scaling, use the dimensions of the original image:
 +
 +```go-html-template
 +{{ with .Resources.GetMatch "sunset.jpg" }}
 +  {{ with .Resize (printf "%dx%d webp" .Width .Height) }}
 +    <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}">
 +  {{ end }}
 +{{ end }}
 +```
 +
 +### Quality
 +
 +Applicable to JPEG and WebP images, the `q` value determines the quality of the converted image. Higher values produce better quality images, while lower values produce smaller files. Set this value to a whole number between 1 and 100, inclusive.
 +
- Applicable to WebP images, this option corresponds to a set of pre-defined encoding parameters.
++The default value is 75. You may override the default value in the [site configuration].
 +
 +```go-html-template
 +{{ $image.Resize "600x webp q50" }}
 +```
 +
 +### Hint
 +
 +<!-- Specifies a libwebp preset, not a libwebp image hint. -->
 +
- The default value is `photo`. You may override the default value in the [site configuration](#processing-options).
++Applicable to WebP images, this option corresponds to a set of predefined encoding parameters.
 +
 +Value|Example
 +:--|:--
 +`drawing`|Hand or line drawing with high-contrast details
 +`icon`|Small colorful image
 +`photo`|Outdoor photograph with natural lighting
 +`picture`|Indoor photograph such as a portrait
 +`text`|Image that is primarily text
 +
- The default value is `#ffffff` (white). You may override the default value in the [site configuration](#processing-options).
++The default value is `photo`. You may override the default value in the [site configuration].
 +
 +```go-html-template
 +{{ $image.Resize "600x webp picture" }}
 +```
 +
 +### Background Color
 +
 +When converting an image from a format that supports transparency (e.g., PNG) to a format that does _not_ support transparency (e.g., JPEG), you may specify the background color of the resulting image.
 +
 +Use either a 3-digit or a 6-digit hexadecimal color code (e.g., `#00f` or `#0000ff`).
 +
- The default value is `Box`. You may override the default value in the [site configuration](#processing-options).
++The default value is `#ffffff` (white). You may override the default value in the [site configuration].
 +
 +```go-html-template
 +{{ $image.Resize "600x jpg #b31280" }}
 +```
 +
 +### Resampling Filter
 +
 +You may specify the resampling filter used when resizing an image. Commonly used resampling filters include:
 +
 +Filter|Description
 +:--|:--
 +`Box`|Simple and fast averaging filter appropriate for downscaling
 +`Lanczos`|High-quality resampling filter for photographic images yielding sharp results
 +`CatmullRom`|Sharp cubic filter that is faster than the Lanczos filter while providing similar results
 +`MitchellNetravali`|Cubic filter that produces smoother results with less ringing artifacts than CatmullRom
 +`Linear`|Bilinear resampling filter, produces smooth output, faster than cubic filters
 +`NearestNeighbor`|Fastest resampling filter, no antialiasing
 +
- {{< readfile file="layouts/shortcodes/imgproc.html" >}}  
++The default value is `Box`. You may override the default value in the [site configuration].
 +
 +```go-html-template
 +{{ $image.Resize "600x400 Lanczos" }}
 +```
 +
 +See [github.com/disintegration/imaging] for the complete list of resampling filters. If you wish to improve image quality at the expense of performance, you may wish to experiment with the alternative filters.
 +
 +## Image Processing Examples
 +
 +_The photo of the sunset used in the examples below is Copyright [Bjørn Erik Pedersen](https://commons.wikimedia.org/wiki/User:Bep) (Creative Commons Attribution-Share Alike 4.0 International license)_
 +
 +{{< imgproc sunset Resize "300x" />}}
 +
 +{{< imgproc sunset Fill "90x120 left" />}}
 +
 +{{< imgproc sunset Fill "90x120 right" />}}
 +
 +{{< imgproc sunset Fit "90x90" />}}
 +
 +{{< imgproc sunset Crop "250x250 center" />}}
 +
 +{{< imgproc sunset Resize "300x q10" />}}
 +
 +This is the shortcode used to generate the examples above:
 +
 +{{< code file="layouts/shortcodes/imgproc.html" >}}
- Call the shortcode from your markdown like this:
++{{< readfile file="layouts/shortcodes/imgproc.html" >}}
 +{{< /code >}}
 +
++Call the shortcode from your Markdown like this:
 +
 +```go-html-template
 +{{</* imgproc sunset Resize "300x" /*/>}}
 +```
 +
 +{{% note %}}
 +Note the self-closing shortcode syntax above. You may call the `imgproc` shortcode with or without **inner content**.
 +{{% /note %}}
 +
 +## Imaging Configuration
 +
 +### Processing Options
 +
 +Define an `imaging` section in your site configuration to set the default [image processing options](#image-processing-options).
 +
 +{{< code-toggle file="config" copy=true >}}
 +[imaging]
 +resampleFilter = "Box"
 +quality = 75
 +hint = "photo"
 +anchor = "Smart"
 +bgColor = "#ffffff"
 +{{< /code-toggle >}}
 +
 +anchor
 +: See image processing options: [anchor](#anchor).
 +
 +bgColor
 +: See image processing options: [background color](#background-color).
 +
 +hint
 +: See image processing options: [hint](#hint).
 +
 +quality
 +: See image processing options: [quality](#quality).
 +
 +resampleFilter
 +: See image processing options: [resampling filter](#resampling-filter).
 +
 +### Exif Data
 +
 +Define an `imaging.exif` section in your site configuration to control the availability of Exif data.
 +
 +{{< code-toggle file="config" copy=true >}}
 +[imaging.exif]
 +includeFields = ""
 +excludeFields = ""
 +disableDate = false
 +disableLatLong = false
 +{{< /code-toggle >}}
 +
 +disableDate
 +: Hugo extracts the image creation date/time into `.Date`. Set this to `true` to disable. Default is `false`.
 +
 +disableLatLong
 +: Hugo extracts the GPS latitude and longitude into `.Lat` and `.Long`. Set this to `true` to disable. Default is `false`.
 +
 +excludeFields
 +: Regular expression matching the Exif tags to exclude from the `.Tags` collection. Default is&nbsp;`""`.
 +
 +includeFields
 +: Regular expression matching the Exif tags to include in the `.Tags` collection. Default is&nbsp;`""`. To include all available tags, set this value to&nbsp;`".*"`.
 +
 +{{% note %}}
 +To improve performance and decrease cache size, if you set neither `excludeFields` nor `includeFields`, Hugo excludes the following tags: `ColorSpace`, `Contrast`, `Exif`, `Exposure[M|P|B]`, `Flash`, `GPS`, `JPEG`, `Metering`, `Resolution`, `Saturation`, `Sensing`, `Sharp`, and `WhiteBalance`.
 +{{% /note %}}
 +
 +## Smart Cropping of Images
 +
 +By default, Hugo uses the [Smartcrop] library when cropping images with the `Crop` or`Fill` methods. You can set the anchor point manually, but in most cases the `Smart` option will make a good choice.
 +
 +Examples using the sunset image from above:
 +
 +{{< imgproc sunset Fill "200x200 smart" />}}
 +
 +{{< imgproc sunset Crop "200x200 smart" />}}
 +
 +## Image Processing Performance Consideration
 +
 +Hugo caches processed images in the `resources` directory. If you include this directory in source control, Hugo will not have to regenerate the images in a CI/CD workflow (e.g., GitHub Pages, GitLab Pages, Netlify, etc.). This results in faster builds.
 +
 +If you change image processing methods or options, or if you rename or remove images, the `resources` directory will contain unused images. To remove the unused images, perform garbage collection with:
 +
 +```bash
 +hugo --gc
 +```
 +
 +[`anchor`]: {{< relref "content-management/image-processing#anchor" >}}
 +[`lang.FormatNumber`]: {{< relref "functions/lang#langformatnumber" >}}
 +[Exif]: <https://en.wikipedia.org/wiki/Exif>
 +[filters]: {{< relref "functions/images" >}}
 +[github.com/disintegration/imaging]: <https://github.com/disintegration/imaging#image-resizing>
 +[mounted]: {{< relref "hugo-modules/configuration#module-config-mounts">}}
 +[page bundle]: {{< relref "content-management/page-bundles" >}}
 +[Smartcrop]: <https://github.com/muesli/smartcrop#smartcrop>
 +[time.Format]: {{< relref "functions/dateformat" >}}
++[`Colors`]: #colors
++[`Crop`]: #crop
++[`Exif`]: #exif
++[`Fill`]: #fill
++[`Filter`]: #filter
++[`Fit`]: #fit
++[`Resize`]: #resize
++[site configuration]: #processing-options
++[`with`]: /functions/with/
index aefc99e00b7417aa323d97c7ccc7f55a4be75f76,0000000000000000000000000000000000000000..b9fab2ca4737ef2400241e7b4eed679339782c78
mode 100644,000000..100644
--- /dev/null
@@@ -1,133 -1,0 +1,129 @@@
- linktitle: Menus
 +---
 +title: Menus
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-03-31
++linkTitle: Menus
 +description: Hugo has a simple yet powerful menu system.
- draft: false
 +categories: [content management]
 +keywords: [menus]
-     parent: "content-management"
-     weight: 120
- weight: 120
- aliases: [/extras/menus/]
 +menu:
 +  docs:
- You can also add entries to menus that aren’t attached to a piece of content. This takes place in your Hugo project's [`config` file][config].
++    parent: content-management
++    weight: 190
 +toc: true
++weight: 190
++aliases: [/extras/menus/]
 +---
 +
 +{{% note "Lazy Blogger"%}}
 +If all you want is a simple menu for your sections, see the ["Section Menu for Lazy Bloggers" in Menu Templates](/templates/menu-templates/#section-menu-for-lazy-bloggers).
 +{{% /note %}}
 +
 +You can do this:
 +
 +* Place content in one or many menus
 +* Handle nested menus with unlimited depth
 +* Create menu entries without being attached to any content
 +* Distinguish active element (and active branch)
 +
 +## What is a Menu in Hugo?
 +
 +A **menu** is a named array of menu entries accessible by name via the [`.Site.Menus` site variable][sitevars]. For example, you can access your site's `main` menu via `.Site.Menus.main`.
 +
 +{{% note "Menus on Multilingual Sites" %}}
 +If you make use of the [multilingual feature](/content-management/multilingual/), you can define language-independent menus.
 +{{% /note %}}
 +
 +See the [Menu Entry Properties][me-props] for all the variables and functions related to a menu entry.
 +
 +## Add content to menus
 +
 +Hugo allows you to add content to a menu via the content's [front matter](/content-management/front-matter/).
 +
 +### Simple
 +
 +If all you need to do is add an entry to a menu, the simple form works well.
 +
 +#### A Single Menu
 +
 +{{< code-toggle >}}
 +menu: "main"
 +{{< /code-toggle >}}
 +
 +#### Multiple Menus
 +
 +{{< code-toggle >}}
 +menu: ["main", "footer"]
 +{{< /code-toggle >}}
 +
 +#### Advanced
 +
 +{{< code-toggle >}}
 +menu:
 +  docs:
 +    parent: 'extras'
 +    weight: 20
 +{{< /code-toggle >}}
 +
 +## Add Non-content Entries to a Menu
 +
++You can also add entries to menus that aren’t attached to a piece of content. This takes place in your Hugo project's [`config` file][config] (see [Menu Entry Properties][me-props] for full details of available variables).
 +
 +Here’s an example snippet pulled from a configuration file:
 +
 +{{< code-toggle file="config" >}}
 +[[menu.main]]
 +    name = "about hugo"
 +    pre = "<i class='fa fa-heart'></i>"
 +    weight = -110
 +    identifier = "about"
 +    url = "/about/"
 +[[menu.main]]
 +    name = "getting started"
 +    pre = "<i class='fa fa-road'></i>"
 +    post = "<span class='alert'>New!</span>"
 +    weight = -100
 +    url = "/getting-started/"
 +{{< /code-toggle >}}
 +
 +{{% note %}}
 +The URLs must be relative to the context root. If the `baseURL` is `https://example.com/mysite/`, then the URLs in the menu must not include the context root `mysite`. Using an absolute URL will override the baseURL. If the value used for `URL` in the above example is `https://subdomain.example.com/`, the output will be `https://subdomain.example.com`.
 +{{% /note %}}
 +
 +## Nesting
 +
 +All nesting of content is done via the `parent` field.
 +
 +The parent of an entry should be the identifier of another entry. The identifier should be unique (within a menu).
 +
 +The following order is used to determine an Identifier:
 +
 +`.Name > .LinkTitle > .Title`
 +
 +This means that `.Title` will be used unless `.LinkTitle` is present, etc. In practice, `.Name` and `.Identifier` are only used to structure relationships and therefore never displayed.
 +
 +In this example, the top level of the menu is defined in your [site `config` file][config]. All content entries are attached to one of these entries via the `.Parent` field.
 +
 +## Params
 +
 +You can also add user-defined content to menu items via the `params` field.
 +
 +A common use case is to define a custom param to add a css class to a specific menu item.
 +
 +{{< code-toggle file="config" >}}
 +[[menu.main]]
 +    name = "about hugo"
 +    pre = "<i class='fa fa-heart'></i>"
 +    weight = -110
 +    identifier = "about"
 +    url = "/about/"
 +    [menu.main.params]
 +      class = "highlight-menu-item"
 +{{</ code-toggle >}}
 +
 +## Render Menus
 +
 +See [Menu Templates](/templates/menu-templates/) for information on how to render your site menus within your templates.
 +
 +[config]: /getting-started/configuration/
 +[multilingual]: /content-management/multilingual/
 +[sitevars]: /variables/
 +[me-props]: /variables/menus/
index e2450bb295679d702129c34b96153d7870bada15,0000000000000000000000000000000000000000..e1343144ea5e0786ad18436a8a9b8d779ca3750b
mode 100644,000000..100644
--- /dev/null
@@@ -1,596 -1,0 +1,592 @@@
- linktitle: Multilingual
 +---
 +title: Multilingual Mode
- date: 2017-01-10
- publishdate: 2017-01-10
++linkTitle: Multilingual
 +description: Hugo supports the creation of websites with multiple languages side by side.
-     parent: "content-management"
-     weight: 150
- weight: 150   #rem
- draft: false
- aliases: [/content/multilingual/,/tutorials/create-a-multilingual-site/]
 +categories: [content management]
 +keywords: [multilingual,i18n, internationalization]
 +menu:
 +  docs:
- With the configuration above, all content, sitemap, RSS feeds, paginations,
++    parent: content-management
++    weight: 230
 +toc: true
++weight: 230
++aliases: [/content/multilingual/,/tutorials/create-a-multilingual-site/]
 +---
 +
 +You should define the available languages in a `languages` section in your site configuration.
 +
 +> Also See [Hugo Multilingual Part 1: Content translation]
 +
 +## Configure Languages
 +
 +The following is an example of a site configuration for a multilingual Hugo project:
 +
 +{{< code-toggle file="config" >}}
 +defaultContentLanguage = "en"
 +copyright = "Everything is mine"
 +
 +[params]
 +[params.navigation]
 +help  = "Help"
 +
 +[languages]
 +[languages.en]
 +title = "My blog"
 +weight = 1
 +[languages.en.params]
 +linkedin = "https://linkedin.com/whoever"
 +
 +[languages.fr]
 +title = "Mon blogue"
 +weight = 2
 +[languages.fr.params]
 +linkedin = "https://linkedin.com/fr/whoever"
 +[languages.fr.params.navigation]
 +help  = "Aide"
 +
 +[languages.ar]
 +title = "مدونتي"
 +weight = 2
 +languagedirection = "rtl"
 +
 +[languages.pt-pt]
 +title = "O meu blog"
 +weight = 3
 +{{< /code-toggle >}}
 +
 +Anything not defined in a `languages` block will fall back to the global value for that key (e.g., `copyright` for the English `en` language). This also works for `params`, as demonstrated with `help` above: You will get the value `Aide` in French and `Help` in all the languages without this parameter set.
 +
- To avoid the burden of having to duplicate files, each Page Bundle inherits the resources of its linked translated pages' bundles except for the content files (markdown files, html files etc...).
++With the configuration above, all content, sitemap, RSS feeds, pagination,
 +and taxonomy pages will be rendered below `/` in English (your default content language) and then below `/fr` in French.
 +
 +When working with front matter `Params` in [single page templates], omit the `params` in the key for the translation.
 +
 +`defaultContentLanguage` sets the project's default language. If not set, the default language will be `en`.
 +
 +If the default language needs to be rendered below its own language code (`/en`) like the others, set `defaultContentLanguageInSubdir: true`.
 +
 +Only the obvious non-global options can be overridden per language. Examples of global options are `baseURL`, `buildDrafts`, etc.
 +
 +**Please note:** use lowercase language codes, even when using regional languages (ie. use pt-pt instead of pt-PT). Currently Hugo language internals lowercase language codes, which can cause conflicts with settings like `defaultContentLanguage` which are not lowercased. Please track the evolution of this issue in [Hugo repository issue tracker](https://github.com/gohugoio/hugo/issues/7344)
 +
 +### Disable a Language
 +
 +You can disable one or more languages. This can be useful when working on a new translation.
 +
 +{{< code-toggle file="config" >}}
 +disableLanguages = ["fr", "ja"]
 +{{< /code-toggle >}}
 +
 +Note that you cannot disable the default content language.
 +
 +We kept this as a standalone setting to make it easier to set via [OS environment]:
 +
 +```bash
 +HUGO_DISABLELANGUAGES="fr ja" hugo
 +```
 +
 +If you have already a list of disabled languages in `config.toml`, you can enable them in development like this:
 +
 +```bash
 +HUGO_DISABLELANGUAGES=" " hugo server
 +```
 +
 +### Configure Multilingual Multihost
 +
 +From **Hugo 0.31** we support multiple languages in a multihost configuration. See [this issue](https://github.com/gohugoio/hugo/issues/4027) for details.
 +
 +This means that you can now configure a `baseURL` per `language`:
 +
 +> If a `baseURL` is set on the `language` level, then all languages must have one and they must all be different.
 +
 +Example:
 +
 +{{< code-toggle file="config" >}}
 +[languages]
 +[languages.fr]
 +baseURL = "https://example.fr"
 +languageName = "Français"
 +weight = 1
 +title = "En Français"
 +
 +[languages.en]
 +baseURL = "https://example.com"
 +languageName = "English"
 +weight = 2
 +title = "In English"
 +{{</ code-toggle >}}
 +
 +With the above, the two sites will be generated into `public` with their own root:
 +
 +```text
 +public
 +├── en
 +└── fr
 +```
 +
 +**All URLs (i.e `.Permalink` etc.) will be generated from that root. So the English home page above will have its `.Permalink` set to `https://example.com/`.**
 +
 +When you run `hugo server` we will start multiple HTTP servers. You will typically see something like this in the console:
 +
 +```text
 +Web Server is available at 127.0.0.1:1313 (bind address 127.0.0.1)
 +Web Server is available at 127.0.0.1:1314 (bind address 127.0.0.1)
 +Press Ctrl+C to stop
 +```
 +
 +Live reload and `--navigateToChanged` between the servers work as expected.
 +
 +
 +## Translate Your Content
 +
 +There are two ways to manage your content translations. Both ensure each page is assigned a language and is linked to its counterpart translations.
 +
 +### Translation by filename
 +
 +Considering the following example:
 +
 +1. `/content/about.en.md`
 +2. `/content/about.fr.md`
 +
 +The first file is assigned the English language and is linked to the second.
 +The second file is assigned the French language and is linked to the first.
 +
 +Their language is __assigned__ according to the language code added as a __suffix to the filename__.
 +
 +By having the same **path and base filename**, the content pieces are __linked__ together as translated pages.
 +
 +{{< note >}}
 +If a file has no language code, it will be assigned the default language.
 +{{</ note >}}
 +
 +### Translation by content directory
 +
 +This system uses different content directories for each of the languages. Each language's content directory is set using the `contentDir` param.
 +
 +{{< code-toggle file="config" >}}
 +languages:
 +  en:
 +    weight: 10
 +    languageName: "English"
 +    contentDir: "content/english"
 +  fr:
 +    weight: 20
 +    languageName: "Français"
 +    contentDir: "content/french"
 +{{< /code-toggle >}}
 +
 +The value of `contentDir` can be any valid path -- even absolute path references. The only restriction is that the content directories cannot overlap.
 +
 +Considering the following example in conjunction with the configuration above:
 +
 +1. `/content/english/about.md`
 +2. `/content/french/about.md`
 +
 +The first file is assigned the English language and is linked to the second.
 +The second file is assigned the French language and is linked to the first.
 +
 +Their language is __assigned__ according to the content directory they are __placed__ in.
 +
 +By having the same **path and basename** (relative to their language content directory), the content pieces are __linked__ together as translated pages.
 +
 +### Bypassing default linking
 +
 +Any pages sharing the same `translationKey` set in front matter will be linked as translated pages regardless of basename or location.
 +
 +Considering the following example:
 +
 +1. `/content/about-us.en.md`
 +2. `/content/om.nn.md`
 +3. `/content/presentation/a-propos.fr.md`
 +
 +{{< code-toggle >}}
 +translationKey: "about"
 +{{< /code-toggle >}}
 +
 +By setting the `translationKey` front matter param to `about` in all three pages, they will be __linked__ as translated pages.
 +
 +### Localizing permalinks
 +
 +Because paths and filenames are used to handle linking, all translated pages will share the same URL (apart from the language subdirectory).
 +
 +To localize the URLs, the [`slug`]({{< ref "/content-management/organization/index.md#slug" >}}) or [`url`]({{< ref "/content-management/organization/index.md#url" >}}) front matter param can be set in any of the non-default language file.
 +
 +For example, a French translation (`content/about.fr.md`) can have its own localized slug.
 +
 +{{< code-toggle >}}
 +Title: A Propos
 +slug: "a-propos"
 +{{< /code-toggle >}}
 +
 +At render, Hugo will build both `/about/` and `/fr/a-propos/` while maintaining their translation linking.
 +
 +{{% note %}}
 +If using `url`, remember to include the language part as well: `/fr/compagnie/a-propos/`.
 +{{%/ note %}}
 +
 +### Page Bundles
 +
-                 
++To avoid the burden of having to duplicate files, each Page Bundle inherits the resources of its linked translated pages' bundles except for the content files (Markdown files, HTML files etc...).
 +
 +Therefore, from within a template, the page will have access to the files from all linked pages' bundles.
 +
 +If, across the linked bundles, two or more files share the same basename, only one will be included and chosen as follows:
 +
 +* File from current language bundle, if present.
 +* First file found across bundles by order of language `Weight`.
 +
 +{{% note %}}
 +Page Bundle resources follow the same language assignment logic as content files, both by filename (`image.jpg`, `image.fr.jpg`) and by directory (`english/about/header.jpg`, `french/about/header.jpg`).
 +{{%/ note %}}
 +
 +## Reference the Translated Content
 +
 +To create a list of links to translated content, use a template similar to the following:
 +
 +{{< code file="layouts/partials/i18nlist.html" >}}
 +{{ if .IsTranslated }}
 +<h4>{{ i18n "translations" }}</h4>
 +<ul>
 +  {{ range .Translations }}
 +  <li>
 +    <a href="{{ .Permalink }}">{{ .Lang }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a>
 +  </li>
 +  {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +The above can be put in a `partial` (i.e., inside `layouts/partials/`) and included in any template, whether a [single content page][contenttemplate] or the [homepage]. It will not print anything if there are no translations for a given page.
 +
 +The above also uses the [`i18n` function][i18func] described in the next section.
 +
 +### List All Available Languages
 +
 +`.AllTranslations` on a `Page` can be used to list all translations, including the page itself. On the home page it can be used to build a language navigator:
 +
 +{{< code file="layouts/partials/allLanguages.html" >}}
 +<ul>
 +{{ range $.Site.Home.AllTranslations }}
 +<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
 +{{ end }}
 +</ul>
 +{{< /code >}}
 +
 +## Translation of Strings
 +
 +Hugo uses [go-i18n] to support string translations. [See the project's source repository][go-i18n-source] to find tools that will help you manage your translation workflows.
 +
 +Translations are collected from the `themes/<THEME>/i18n/` folder (built into the theme), as well as translations present in `i18n/` at the root of your project. In the `i18n`, the translations will be merged and take precedence over what is in the theme folder. Language files should be named according to [RFC 5646] with names such as `en-US.toml`, `fr.toml`, etc.
 +
 +Artificial languages with private use subtags as defined in [RFC 5646 &#167; 2.2.7](https://datatracker.ietf.org/doc/html/rfc5646#section-2.2.7) are also supported. You may omit the `art-x-` prefix for brevity. For example:
 +
 +```text
 +art-x-hugolang
 +hugolang
 +```
 +
 +Private use subtags must not exceed 8 alphanumeric characters.
 +
 +### Query basic translation
 +
 +From within your templates, use the `i18n` function like this:
 +
 +```go-html-template
 +{{ i18n "home" }}
 +```
 +
 +The function will search for the `"home"` id:
 +
 +{{< code-toggle file="i18n/en-US" >}}
 +[home]
 +other = "Home"
 +{{< /code-toggle >}}
 +
 +The result will be
 +
 +```text
 +Home
 +```
 +
 +### Query a flexible translation with variables
 +
 +Often you will want to use the page variables in the translation strings. To do so, pass the `.` context when calling `i18n`:
 +
 +```go-html-template
 +{{ i18n "wordCount" . }}
 +```
 +
 +The function will pass the `.` context to the `"wordCount"` id:
 +
 +{{< code-toggle file="i18n/en-US" >}}
 +[wordCount]
 +other = "This article has {{ .WordCount }} words."
 +{{< /code-toggle >}}
 +
 +Assume `.WordCount` in the context has value is 101. The result will be:
 +
 +```text
 +This article has 101 words.
 +```
 +
 +### Query a singular/plural translation
 +
 +In other to meet singular/plural requirement, you must pass a dictionary (map) with a numeric `.Count` property to the `i18n` function. The below example uses `.ReadingTime` variable which has a built-in `.Count` property.
 +
 +```go-html-template
 +{{ i18n "readingTime" .ReadingTime }}
 +```
 +
 +The function will read `.Count` from `.ReadingTime` and evaluate whether the number is singular (`one`) or plural (`other`). After that, it will pass to `readingTime` id in `i18n/en-US.toml` file:
 +
 +{{< code-toggle file="i18n/en-US" >}}
 +[readingTime]
 +one = "One minute to read"
 +other = "{{.Count}} minutes to read"
 +{{< /code-toggle >}}
 +
 +Assuming `.ReadingTime.Count` in the context has value is 525600. The result will be:
 +
 +```text
 +525600 minutes to read
 +```
 +
 +If `.ReadingTime.Count` in the context has value is 1. The result is:
 +
 +```text
 +One minute to read
 +```
 +
 +In case you need to pass a custom data: (`(dict "Count" numeric_value_only)` is minimum requirement)
 +
 +```go-html-template
 +{{ i18n "readingTime" (dict "Count" 25 "FirstArgument" true "SecondArgument" false "Etc" "so on, so far") }}
 +```
 +
 +## Localization
 +
 +The following localization examples assume your site's primary language is English, with translations to French and German.
 +
 +{{< code-toggle file="config" >}}
 +defaultContentLang = 'en'
 +
 +[languages]
 +[languages.en]
 +contentDir = 'content/en'
 +languageName = 'English'
 +weight = 1
 +[languages.fr]
 +contentDir = 'content/fr'
 +languageName = 'Français'
 +weight = 2
 +[languages.de]
 +contentDir = 'content/de'
 +languageName = 'Deutsch'
 +weight = 3
 +
 +{{< /code-toggle >}}
 +
 +### Dates
 +
 +With this front matter:
 +
 +{{< code-toggle >}}
 +date = 2021-11-03T12:34:56+01:00
 +{{< /code-toggle >}}
 +
 +And this template code:
 +
 +```go-html-template
 +{{ .Date | time.Format ":date_full" }}
 +```
 +
 +The rendered page displays:
 +
 +Language|Value
 +:--|:--
 +English|Wednesday, November 3, 2021
 +Français|mercredi 3 novembre 2021
 +Deutsch|Mittwoch, 3. November 2021
 +
 +See [time.Format] for details.
 +
 +### Currency
 +
 +With this template code:
 +
 +```go-html-template
 +{{ 512.5032 | lang.FormatCurrency 2 "USD" }}
 +```
 +
 +The rendered page displays:
 +
 +Language|Value
 +:--|:--
 +English|$512.50
 +Français|512,50 $US
 +Deutsch|512,50 $
 +
 +See [lang.FormatCurrency] and [lang.FormatAccounting] for details.
 +
 +### Numbers
 +
 +With this template code:
 +
 +```go-html-template
 +{{ 512.5032 | lang.FormatNumber 2 }}
 +```
 +
 +The rendered page displays:
 +
 +Language|Value
 +:--|:--
 +English|512.50
 +Français|512,50
 +Deutsch|512,50
 +
 +See [lang.FormatNumber] and [lang.FormatNumberCustom] for details.
 +
 +### Percentages
 +
 +With this template code:
 +
 +```go-html-template
 +{{ 512.5032 | lang.FormatPercent 2 }} ---> 512.50%
 +```
 +
 +The rendered page displays:
 +
 +Language|Value
 +:--|:--
 +English|512.50%
 +Français|512,50 %
 +Deutsch|512,50 %
 +
 +See [lang.FormatPercent] for details.
 +
 +## Menus
 +
 +You can define your menus for each language independently. Creating multilingual menus works just like [creating regular menus][menus], except they're defined in language-specific blocks in the configuration file:
 +
 +{{< code-toggle file="config" >}}
 +defaultContentLanguage = "en"
 +
 +[languages.en]
 +weight = 0
 +languageName = "English"
 +
 +[[languages.en.menu.main]]
 +url    = "/"
 +name   = "Home"
 +weight = 0
 +
 +[languages.de]
 +weight = 10
 +languageName = "Deutsch"
 +
 +[[languages.de.menu.main]]
 +url    = "/"
 +name   = "Startseite"
 +weight = 0
 +{{< /code-toggle >}}
 +
 +The rendering of the main navigation works as usual. `.Site.Menus` will just contain the menu in the current language. Note that `absLangURL` below will link to the correct locale of your website. Without it, menu entries in all languages would link to the English version, since it's the default content language that resides in the root directory.
 +
 +```go-html-template
 +<ul>
 +    {{- $currentPage := . -}}
 +    {{ range .Site.Menus.main -}}
 +    <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
 +        <a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
 +    </li>
 +    {{- end }}
 +</ul>
 +```
 +
 +### Dynamically localizing menus with i18n
++
 +While customizing menus per language is useful, your config file can become hard to maintain if you have a lot of languages
 +
 +If your menus are the same in all languages (ie. if the only thing that changes is the translated name) you can use the `.Identifier` as a translation key for the menu name:
 +
 +{{< code-toggle file="config" >}}
 +[[menu.main]]
 +name = "About me"
 +url = "about"
 +weight = 1
 +identifier = "about"
 +{{< /code-toggle >}}
 +
 +You now need to specify the translations for the menu keys in the i18n files:
 +
 +{{< code file="i18n/pt.toml" >}}
 +[about]
 +other="Sobre mim"
 +{{< /code >}}
 +
 +And do the appropriate changes in the menu code to use the `i18n` tag with the `.Identifier` as a key. You will also note that here we are using a `default` to fall back to `.Name`, in case the `.Identifier` key is also not present in the language specified in the `defaultContentLanguage` configuration.
 +
 +{{< code file="layouts/partials/menu.html" >}}
 +<ul>
 +    {{- $currentPage := . -}}
 +    {{ range .Site.Menus.main -}}
 +    <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
 +        <a href="{{ .URL | absLangURL }}">{{ i18n .Identifier | default .Name}}</a>
 +    </li>
 +    {{- end }}
 +</ul>
 +{{< /code >}}
- Currently, `hugo new` is not ready to support generating multilingual content. But there is a [proposal topic](https://github.com/gohugoio/hugo/issues/7732) about this in Github issue to discuss how it should work.
 +
 +## Missing Translations
 +
 +If a string does not have a translation for the current language, Hugo will use the value from the default language. If no default value is set, an empty string will be shown.
 +
 +While translating a Hugo website, it can be handy to have a visual indicator of missing translations. The [`enableMissingTranslationPlaceholders` configuration option][config] will flag all untranslated strings with the placeholder `[i18n] identifier`, where `identifier` is the id of the missing translation.
 +
 +{{% note %}}
 +Hugo will generate your website with these missing translation placeholders. It might not be suitable for production environments.
 +{{% /note %}}
 +
 +For merging of content from other languages (i.e. missing content translations), see [lang.Merge].
 +
 +To track down missing translation strings, run Hugo with the `--printI18nWarnings` flag:
 +
 +```bash
 +hugo --printI18nWarnings | grep i18n
 +i18n|MISSING_TRANSLATION|en|wordCount
 +```
 +
 +## Multilingual Themes support
 +
 +To support Multilingual mode in your themes, some considerations must be taken for the URLs in the templates. If there is more than one language, URLs must meet the following criteria:
 +
 +* Come from the built-in `.Permalink` or `.RelPermalink`
 +* Be constructed with the [`relLangURL` template function][rellangurl] or the [`absLangURL` template function][abslangurl] **OR** be prefixed with `{{ .LanguagePrefix }}`
 +
 +If there is more than one language defined, the `LanguagePrefix` variable will equal `/en` (or whatever your `CurrentLanguage` is). If not enabled, it will be an empty string (and is therefore harmless for single-language Hugo websites).
 +
 +
 +## Generate multilingual content with `hugo new`
 +
++Currently, `hugo new` is not ready to support generating multilingual content. But there is a [proposal topic](https://github.com/gohugoio/hugo/issues/7732) about this in GitHub issue to discuss how it should work.
 +
 +[abslangurl]: /functions/abslangurl
 +[config]: /getting-started/configuration/
 +[contenttemplate]: /templates/single-page-templates/
 +[go-i18n-source]: https://github.com/nicksnyder/go-i18n
 +[go-i18n]: https://github.com/nicksnyder/go-i18n
 +[homepage]: /templates/homepage/
 +[Hugo Multilingual Part 1: Content translation]: https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/
 +[i18func]: /functions/i18n/
 +[lang.FormatAccounting]: /functions/lang/#langformataccounting
 +[lang.FormatCurrency]: /functions/lang/#langformatcurrency
 +[lang.FormatNumber]: /functions/lang/#langformatnumber
 +[lang.FormatNumberCustom]: /functions/lang/#langformatnumbercustom
 +[lang.FormatPercent]: /functions/lang/#langformatpercent
 +[lang.Merge]: /functions/lang.merge/
 +[menus]: /content-management/menus/
 +[OS environment]: /getting-started/configuration/#configure-with-environment-variables
 +[rellangurl]: /functions/rellangurl
 +[RFC 5646]: https://tools.ietf.org/html/rfc5646
 +[single page templates]: /templates/single-page-templates/
 +[time.Format]: /functions/dateformat
index 10e22c2d359da14cdc5ad1f1987a42711a4c6f57,0000000000000000000000000000000000000000..b677d8c188fa11eb4fc2b9f96f598a67efb93f05
mode 100644,000000..100644
--- /dev/null
@@@ -1,240 -1,0 +1,235 @@@
- linktitle: Organization
 +---
 +title: Content Organization
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
++linkTitle: Organization
 +description: Hugo assumes that the same structure that works to organize your source content is used to organize the rendered site.
-     parent: "content-management"
-     weight: 10
- weight: 10    #rem
- draft: false
- aliases: [/content/sections/]
 +categories: [content management,fundamentals]
 +keywords: [sections,content,organization,bundle,resources]
 +menu:
 +  docs:
++    parent: content-management
++    weight: 20
 +toc: true
++weight: 20
++aliases: [/content/sections/]
 +---
 +
 +## Page Bundles
 +
 +Hugo `0.32` announced page-relative images and other resources packaged into `Page Bundles`.
 +
 +These terms are connected, and you also need to read about [Page Resources]({{< relref "/content-management/page-resources" >}}) and [Image Processing]({{< relref "/content-management/image-processing" >}}) to get the full picture.
 +
 +{{< imgproc 1-featured Resize "300x" >}}
 +The illustration shows three bundles. Note that the home page bundle cannot contain other content pages, although other files (images etc.) are allowed.
 +{{< /imgproc >}}
 +
 +
 +{{% note %}}
 +The bundle documentation is a **work in progress**. We will publish more comprehensive docs about this soon.
 +{{% /note %}}
 +
 +
 +## Organization of Content Source
 +
- ```
 +In Hugo, your content should be organized in a manner that reflects the rendered website.
 +
 +While Hugo supports content nested at any level, the top levels (i.e. `content/<DIRECTORIES>`) are special in Hugo and are considered the content type used to determine layouts etc. To read more about sections, including how to nest them, see [sections][].
 +
 +Without any additional configuration, the following will automatically work:
 +
- ```
++```txt
 +.
 +└── content
 +    └── about
 +    |   └── index.md  // <- https://example.com/about/
 +    ├── posts
 +    |   ├── firstpost.md   // <- https://example.com/posts/firstpost/
 +    |   ├── happy
 +    |   |   └── ness.md  // <- https://example.com/posts/happy/ness/
 +    |   └── secondpost.md  // <- https://example.com/posts/secondpost/
 +    └── quote
 +        ├── first.md       // <- https://example.com/quote/first/
 +        └── second.md      // <- https://example.com/quote/second/
 +```
 +
 +## Path Breakdown in Hugo
 +
 +
 +The following demonstrates the relationships between your content organization and the output URL structure for your Hugo website when it renders. These examples assume you are [using pretty URLs][pretty], which is the default behavior for Hugo. The examples also assume a key-value of `baseURL = "https://example.com"` in your [site's configuration file][config].
 +
 +### Index Pages: `_index.md`
 +
 +`_index.md` has a special role in Hugo. It allows you to add front matter and content to your [list templates][lists]. These templates include those for [section templates][], [taxonomy templates][], [taxonomy terms templates][], and your [homepage template][].
 +
 +{{% note %}}
 +**Tip:** You can get a reference to the content and metadata in `_index.md` using the [`.Site.GetPage` function](/functions/getpage/).
 +{{% /note %}}
 +
 +You can create one `_index.md` for your homepage and one in each of your content sections, taxonomies, and taxonomy terms. The following shows typical placement of an `_index.md` that would contain content and front matter for a `posts` section list page on a Hugo website:
 +
 +
- ```
++```txt
 +.         url
 +.       ⊢--^-⊣
 +.        path    slug
 +.       ⊢--^-⊣⊢---^---⊣
 +.           filepath
 +.       ⊢------^------⊣
 +content/posts/_index.md
 +```
 +
 +At build, this will output to the following destination with the associated values:
 +
- ```
++```txt
 +
 +                     url ("/posts/")
 +                    ⊢-^-⊣
 +       baseurl      section ("posts")
 +⊢--------^---------⊣⊢-^-⊣
 +        permalink
 +⊢----------^-------------⊣
 +https://example.com/posts/index.html
 +```
 +
 +The [sections] can be nested as deeply as you want. The important thing to understand is that to make the section tree fully navigational, at least the lower-most section must include a content file. (i.e. `_index.md`).
 +
 +
 +### Single Pages in Sections
 +
 +Single content files in each of your sections will be rendered as [single page templates][singles]. Here is an example of a single `post` within `posts`:
 +
 +
- ```
++```txt
 +                   path ("posts/my-first-hugo-post.md")
 +.       ⊢-----------^------------⊣
 +.      section        slug
 +.       ⊢-^-⊣⊢--------^----------⊣
 +content/posts/my-first-hugo-post.md
 +```
 +
 +When Hugo builds your site, the content will be output to the following destination:
 +
- ```
++```txt
 +
 +                               url ("/posts/my-first-hugo-post/")
 +                   ⊢------------^----------⊣
 +       baseurl     section     slug
 +⊢--------^--------⊣⊢-^--⊣⊢-------^---------⊣
 +                 permalink
 +⊢--------------------^---------------------⊣
 +https://example.com/posts/my-first-hugo-post/index.html
 +```
 +
 +
 +## Paths Explained
 +
 +The following concepts provide more insight into the relationship between your project's organization and the default Hugo behavior when building output for the website.
 +
 +### `section`
 +
 +A default content type is determined by the section in which a content item is stored. `section` is determined by the location within the project's `content` directory. `section` *cannot* be specified or overridden in front matter.
 +
 +### `slug`
 +
 +A content's `slug` is either `name.extension` or `name/`. The value for `slug` is determined by
 +
 +* the name of the content file (e.g., `lollapalooza.md`) OR
 +* front matter overrides
 +
 +### `path`
 +
 +A content's `path` is determined by the section's path to the file. The file `path`
 +
 +* is based on the path to the content's location AND
 +* does not include the slug
 +
 +### `url`
 +
 +The `url` is the relative URL for the piece of content. The `url`
 +
 +* is based on the content item's location within the directory structure OR
 +* is defined in front matter, in which case it *overrides all the above*
 +
 +## Override Destination Paths via Front Matter
 +
 +Hugo assumes that your content is organized with a purpose. The same structure that you use to organize your source content is used to organize the rendered site. As displayed above, the organization of the source content will be mirrored at the destination.
 +
 +There are times when you may need more fine-grained control over the content organization. In such cases, the front matter field can be used to determine the destination of a specific piece of content.
 +
 +The following items are defined in a specific order for a reason: items explained lower down in the list override higher items. Note that not all items can be defined in front matter.
 +
 +### `filename`
 +
 +`filename` is not a front matter field. It is the actual file name, minus the extension. This will be the name of the file in the destination (e.g., `content/posts/my-post.md` becomes `example.com/posts/my-post/`).
 +
 +### `slug`
 +
 +When defined in the front matter, the `slug` can take the place of the filename in the destination.
 +
 +{{< code file="content/posts/old-post.md" >}}
 +---
 +title: A new post with the filename old-post.md
 +slug: "new-post"
 +---
 +{{< /code >}}
 +
 +This will render to the following destination according to Hugo's default behavior:
 +
- ```
++```txt
 +example.com/posts/new-post/
 +```
 +
 +### `section`
 +
 +`section` is determined by a content item's location on disk and *cannot* be specified in the front matter. See [sections] for more information.
 +
 +### `type`
 +
 +A content item's `type` is also determined by its location on disk but, unlike `section`, it *can* be specified in the front matter. See [types]. This can come in especially handy when you want a piece of content to render using a different layout. In the following example, you can create a layout at `layouts/new/mylayout.html` that Hugo will use to render this piece of content, even in the midst of many other posts.
 +
 +{{< code file="content/posts/my-post.md" >}}
 +---
 +title: My Post
 +type: new
 +layout: mylayout
 +---
 +{{< /code >}}
 +<!-- See https://discourse.gohugo.io/t/path-not-works/6387 -->
 +<!-- ### `path`-->
 +
 +<!--`path` can be provided in the front matter. This will replace the actual path to the file on disk. Destination will create the destination with the same path, including the section. -->
 +
 +### `url`
 +
 +A complete URL can be provided. This will override all the above as it pertains to the end destination. This must be the path from the baseURL (starting with a `/`). `url` will be used exactly as it is defined in the front matter, and will ignore the `--uglyURLs` setting in your site configuration:
 +
 +{{< code file="content/posts/old-url.md" >}}
 +---
 +title: Old URL
 +url: /blog/new-url/
 +---
 +{{< /code >}}
 +
 +Assuming your `baseURL` is [configured][config] to `https://example.com`, the addition of `url` to the front matter will make `old-url.md` render to the following destination:
 +
++```txt
 +https://example.com/blog/new-url/
 +```
 +
 +You can see more information on how to control output paths in [URL Management][urls].
 +
 +[config]: /getting-started/configuration/
 +[formats]: /content-management/formats/
 +[front matter]: /content-management/front-matter/
 +[getpage]: /functions/getpage/
 +[homepage template]: /templates/homepage/
 +[homepage]: /templates/homepage/
 +[lists]: /templates/lists/
 +[pretty]: /content-management/urls/#pretty-urls
 +[section templates]: /templates/section-templates/
 +[sections]: /content-management/sections/
 +[singles]: /templates/single-page-templates/
 +[taxonomy templates]: /templates/taxonomy-templates/
 +[taxonomy terms templates]: /templates/taxonomy-templates/
 +[types]: /content-management/types/
 +[urls]: /content-management/urls/
index 924efccd2c730cf411e072c2e9354455f4150050,0000000000000000000000000000000000000000..28ab004c58945733b7675001671b1fe59e0a674a
mode 100644,000000..100644
--- /dev/null
@@@ -1,189 -1,0 +1,189 @@@
- title : "Page Bundles"
- description : "Content organization using Page Bundles"
- date : 2018-01-24T13:09:00-05:00
- linktitle : "Page Bundles"
- keywords : ["page", "bundle", "leaf", "branch"]
- categories : ["content management"]
- toc : true
 +---
-     identifier : "page-bundles"
-     parent : "content-management"
-     weight : 11
++title: Page Bundles
++linkTitle: Page Bundles
++description: Content organization using Page Bundles
++linkTitle: Page Bundles
++keywords: [page, bundle, leaf, branch]
++categories: [content management]
 +menu :
 +  docs:
- | Index file name                     | `index.md` [^fn:1]                                       | `_index.md` [^fn:1]                                                                                                                                                                                                |
- | Allowed Resources                   | Page and non-page (like images, pdf, etc.) types         | Only non-page (like images, pdf, etc.) types                                                                                                                                                                       |
++    identifier: "page-bundles"
++    parent: "content-management"
++    weight: 30
++toc: true
++weight: 30
 +---
 +
 +Page Bundles are a way to group [Page Resources](/content-management/page-resources/).
 +
 +A Page Bundle can be one of:
 +
 +- Leaf Bundle (leaf means it has no children)
 +- Branch Bundle (home page, section, taxonomy terms, taxonomy list)
 +
 +|                                     | Leaf Bundle                                              | Branch Bundle                                                                                                                                                                                                      |
 +|-------------------------------------|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------  |
 +| Usage                               | Collection of content and attachments for single pages   | Collection of attachments for section pages (home page, section, taxonomy terms, taxonomy list)                                                                                                                    |
- - image1, image2: 
++| Index filename                     | `index.md` [^fn:1]                                       | `_index.md` [^fn:1]                                                                                                                                                                                                |
++| Allowed Resources                   | Page and non-page (like images, PDF, etc.) types         | Only non-page (like images, PDF, etc.) types                                                                                                                                                                       |
 +| Where can the Resources live?       | At any directory level within the leaf bundle directory. | Only in the directory level **of** the branch bundle directory i.e. the directory containing the `_index.md` ([ref](https://discourse.gohugo.io/t/question-about-content-folder-structure/11822/4?u=kaushalmodi)). |
 +| Layout type                         | `single`                                                 | `list`                                                                                                                                                                                                             |
 +| Nesting                             | Does not allow nesting of more bundles under it          | Allows nesting of leaf or branch bundles under it                                                                                                                                                                  |
 +| Example                             | `content/posts/my-post/index.md`                         | `content/posts/_index.md`                                                                                                                                                                                          |
 +| Content from non-index page files... | Accessed only as page resources                          | Accessed only as regular pages                                                                                                                                                                                     |
 +
 +
 +## Leaf Bundles {#leaf-bundles}
 +
 +A _Leaf Bundle_ is a directory at any hierarchy within the `content/`
 +directory, that contains an **`index.md`** file.
 +
 +### Examples of Leaf Bundle organization {#examples-of-leaf-bundle-organization}
 +
 +```text
 +content/
 +├── about
 +│   ├── index.md
 +├── posts
 +│   ├── my-post
 +│   │   ├── content1.md
 +│   │   ├── content2.md
 +│   │   ├── image1.jpg
 +│   │   ├── image2.png
 +│   │   └── index.md
 +│   └── my-other-post
 +│       └── index.md
 +│
 +└── another-section
 +    ├── ..
 +    └── not-a-leaf-bundle
 +        ├── ..
 +        └── another-leaf-bundle
 +            └── index.md
 +```
 +
 +In the above example `content/` directory, there are four leaf
 +bundles:
 +
 +`about`
 +: This leaf bundle is at the root level (directly under
 +    `content` directory) and has only the `index.md`.
 +
 +`my-post`
 +: This leaf bundle has the `index.md`, two other content
 +    Markdown files and two image files.
 +
- - content1, content2: 
++- image1, image2:
 +These images are page resources of `my-post`
 +    and only available in `my-post/index.md` resources.
 +
-     and only available in `my-post/index.md` resources. 
++- content1, content2:
 +These content files are page resources of `my-post`
- -   It will have no `Permalink` and no rendered HTML in `public/`.
- -   It will not be part of `.Site.RegularPages`, etc.
++    and only available in `my-post/index.md` resources.
 +    They will **not** be rendered as individual pages.
 +
 +`my-other-post`
 +: This leaf bundle has only the `index.md`.
 +
 +`another-leaf-bundle`
 +: This leaf bundle is nested under couple of
 +    directories. This bundle also has only the `index.md`.
 +
 +{{% note %}}
 +The hierarchy depth at which a leaf bundle is created does not matter,
 +as long as it is not inside another **leaf** bundle.
 +{{% /note %}}
 +
 +
 +### Headless Bundle {#headless-bundle}
 +
 +A headless bundle is a bundle that is configured to not get published
 +anywhere:
 +
- 2. Collect a *slice* of resources in this *Page Bundle* that matches
++- It will have no `Permalink` and no rendered HTML in `public/`.
++- It will not be part of `.Site.RegularPages`, etc.
 +
 +But you can get it by `.Site.GetPage`. Here is an example:
 +
 +```go-html-template
 +{{ $headless := .Site.GetPage "/some-headless-bundle" }}
 +{{ $reusablePages := $headless.Resources.Match "author*" }}
 +<h2>Authors</h2>
 +{{ range $reusablePages }}
 +    <h3>{{ .Title }}</h3>
 +    {{ .Content }}
 +{{ end }}
 +```
 +
 +_In this example, we are assuming the `some-headless-bundle` to be a headless
 +   bundle containing one or more **page** resources whose `.Name` matches
 +   `"author*"`._
 +
 +Explanation of the above example:
 +
 +1. Get the `some-headless-bundle` Page "object".
- 3. Loop through that *slice* of nested pages, and output their `.Title` and
++2. Collect a _slice_ of resources in this _Page Bundle_ that matches
 +   `"author*"` using `.Resources.Match`.
- -   Shared media galleries
- -   Reusable page content "snippets"
++3. Loop through that _slice_ of nested pages, and output their `.Title` and
 +   `.Content`.
 +
 +---
 +
 +A leaf bundle can be made headless by adding below in the Front Matter
 +(in the `index.md`):
 +
 +```toml
 +headless = true
 +```
 +
 +There are many use cases of such headless page bundles:
 +
++- Shared media galleries
++- Reusable page content "snippets"
 +
 +## Branch Bundles {#branch-bundles}
 +
 +A _Branch Bundle_ is any directory at any hierarchy within the
 +`content/` directory, that contains at least an **`_index.md`** file.
 +
 +This `_index.md` can also be directly under the `content/` directory.
 +
 +{{% note %}}
 +Here `md` (markdown) is used just as an example. You can use any file
 +type as a content resource as long as it is a content type recognized by Hugo.
 +{{% /note %}}
 +
 +
 +### Examples of Branch Bundle organization {#examples-of-branch-bundle-organization}
 +
 +```text
 +content/
 +├── branch-bundle-1
 +│   ├── branch-content1.md
 +│   ├── branch-content2.md
 +│   ├── image1.jpg
 +│   ├── image2.png
 +│   └── _index.md
 +└── branch-bundle-2
 +    ├── _index.md
 +    └── a-leaf-bundle
 +        └── index.md
 +```
 +
 +In the above example `content/` directory, there are two branch
 +bundles (and a leaf bundle):
 +
 +`branch-bundle-1`
 +: This branch bundle has the `_index.md`, two
 +    other content Markdown files and two image files.
 +
 +`branch-bundle-2`
 +: This branch bundle has the `_index.md` and a
 +    nested leaf bundle.
 +
 +{{% note %}}
 +The hierarchy depth at which a branch bundle is created does not
 +matter.
 +{{% /note %}}
 +
 +[^fn:1]: The `.md` extension is just an example. The extension can be `.html`, `.json` or any valid MIME type.
index 24b1d03ed333756ee848b570ca631a75d2f60195,0000000000000000000000000000000000000000..16c9fc0abb009e797265f8b12a6a67ac805a5e1e
mode 100644,000000..100644
--- /dev/null
@@@ -1,208 -1,0 +1,205 @@@
- title : "Page Resources"
- description : "Page resources -- images, other pages, documents, etc. -- have page-relative URLs and their own metadata."
- date: 2018-01-24
- categories: ["content management"]
 +---
- weight: 4003
- draft: false
- toc: true
- linktitle: "Page Resources"
++title: Page Resources
++linkTitle: Page Resources
++description: Page resources -- images, other pages, documents, etc. -- have page-relative URLs and their own metadata.
++categories: [content management]
 +keywords: [bundle,content,resources]
-     parent: "content-management"
-     weight: 31
 +menu:
 +  docs:
- {{< new-in "0.80.0" >}} Note that we in Hugo `v0.80.0` fixed a bug where non-image resources (e.g. video) would return the MIME sub type, e.g. `json`.
++    parent: content-management
++    weight: 80
++toc: true
++weight: 80
 +---
 +Page resources are only accessible from [page bundles]({{< relref
 +"/content-management/page-bundles" >}}), those directories with `index.md` or
 +`_index.md` files at their root. Page resources are only available to the
 +page with which they are bundled.
 +
 +In this example, `first-post` is a page bundle with access to 10 page resources including audio, data, documents, images, and video. Although `second-post` is also a page bundle, it has no page resources and is unable to directly access the page resources associated with `first-post`.
 +
 +```text
 +content
 +└── post
 +    ├── first-post
 +    │   ├── images
 +    │   │   ├── a.jpg
 +    │   │   ├── b.jpg
 +    │   │   └── c.jpg
 +    │   ├── index.md (root of page bundle)
 +    │   ├── latest.html
 +    │   ├── manual.json
 +    │   ├── notice.md
 +    │   ├── office.mp3
 +    │   ├── pocket.mp4
 +    │   ├── rating.pdf
 +    │   └── safety.txt
 +    └── second-post
 +        └── index.md (root of page bundle)
 +```
 +
 +## Properties
 +
 +ResourceType
 +: The main type of the resource's [Media Type](/templates/output-formats/#media-types). For example, a file of MIME type `image/jpeg` has the ResourceType `image`. A `Page` will have `ResourceType` with value `page`.
 +
- ```go
 +Name
 +: Default value is the filename (relative to the owning page). Can be set in front matter.
 +
 +Title
 +: Default value is the same as `.Name`. Can be set in front matter.
 +
 +Permalink
 +: The absolute URL to the resource. Resources of type `page` will have no value.
 +
 +RelPermalink
 +: The relative URL to the resource. Resources of type `page` will have no value.
 +
 +Content
 +: The content of the resource itself. For most resources, this returns a string
 +with the contents of the file. Use this to create inline resources.
 +
 +```go-html-template
 +{{ with .Resources.GetMatch "script.js" }}
 +  <script>{{ .Content | safeJS }}</script>
 +{{ end }}
 +
 +{{ with .Resources.GetMatch "style.css" }}
 +  <style>{{ .Content | safeCSS }}</style>
 +{{ end }}
 +
 +{{ with .Resources.GetMatch "img.png" }}
 +  <img src="data:{{ .MediaType }};base64,{{ .Content | base64Encode }}">
 +{{ end }}
 +```
 +
 +MediaType
 +: The MIME type of the resource, such as `image/jpeg`.
 +
 +MediaType.MainType
 +: The main type of the resource's MIME type. For example, a file of MIME type `application/pdf` has for MainType `application`.
 +
 +MediaType.SubType
 +: The subtype of the resource's MIME type. For example, a file of MIME type `application/pdf` has for SubType `pdf`. Note that this is not the same as the file extension - PowerPoint files have a subtype of `vnd.mspowerpoint`.
 +
 +MediaType.Suffixes
 +: A slice of possible suffixes for the resource's MIME type.
 +
 +## Methods
++
 +ByType
 +: Returns the page resources of the given type.
 +
- ```go
++```go-html-template
 +{{ .Resources.ByType "image" }}
 +```
 +Match
 +: Returns all the page resources (as a slice) whose `Name` matches the given Glob pattern ([examples](https://github.com/gobwas/glob/blob/master/readme.md)). The matching is case-insensitive.
 +
- ###  Resources metadata example
++```go-html-template
 +{{ .Resources.Match "images/*" }}
 +```
 +
 +GetMatch
 +: Same as `Match` but will return the first match.
 +
 +### Pattern Matching
++
 +```go
 +// Using Match/GetMatch to find this images/sunset.jpg ?
 +.Resources.Match "images/sun*" ✅
 +.Resources.Match "**/sunset.jpg" ✅
 +.Resources.Match "images/*.jpg" ✅
 +.Resources.Match "**.jpg" ✅
 +.Resources.Match "*" 🚫
 +.Resources.Match "sunset.jpg" 🚫
 +.Resources.Match "*sunset.jpg" 🚫
 +
 +```
 +
 +## Page Resources Metadata
 +
 +The page resources' metadata is managed from the corresponding page's front matter with an array/table parameter named `resources`. You can batch assign values using [wildcards](https://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm).
 +
 +{{% note %}}
 +Resources of type `page` get `Title` etc. from their own front matter.
 +{{% /note %}}
 +
 +name
 +: Sets the value returned in `Name`.
 +
 +{{% warning %}}
 +The methods `Match`, `Get` and `GetMatch` use `Name` to match the resources.
 +{{%/ warning %}}
 +
 +title
 +: Sets the value returned in `Title`
 +
 +params
 +: A map of custom key/values.
 +
++### Resources metadata example
 +
 +{{< code-toggle copy="false">}}
 +title: Application
 +date : 2018-01-25
 +resources :
 +- src : "images/sunset.jpg"
 +  name : "header"
 +- src : "documents/photo_specs.pdf"
 +  title : "Photo Specifications"
 +  params:
 +    icon : "photo"
 +- src : "documents/guide.pdf"
 +  title : "Instruction Guide"
 +- src : "documents/checklist.pdf"
 +  title : "Document Checklist"
 +- src : "documents/payment.docx"
 +  title : "Proof of Payment"
 +- src : "**.pdf"
 +  name : "pdf-file-:counter"
 +  params :
 +    icon : "pdf"
 +- src : "**.docx"
 +  params :
 +    icon : "word"
 +{{</ code-toggle >}}
 +
 +From the example above:
 +
 +- `sunset.jpg` will receive a new `Name` and can now be found with `.GetMatch "header"`.
 +- `documents/photo_specs.pdf` will get the `photo` icon.
 +- `documents/checklist.pdf`, `documents/guide.pdf` and `documents/payment.docx` will get `Title` as set by `title`.
 +- Every `PDF` in the bundle except `documents/photo_specs.pdf` will get the `pdf` icon.
 +- All `PDF` files will get a new `Name`. The `name` parameter contains a special placeholder [`:counter`](#the-counter-placeholder-in-name-and-title), so the `Name` will be `pdf-file-1`, `pdf-file-2`, `pdf-file-3`.
 +- Every docx in the bundle will receive the `word` icon.
 +
 +{{% warning %}}
 +The __order matters__ --- Only the **first set** values of the `title`, `name` and `params`-**keys** will be used. Consecutive parameters will be set only for the ones not already set. In the above example, `.Params.icon` is first set to `"photo"` in `src = "documents/photo_specs.pdf"`. So that would not get overridden to `"pdf"` by the later set `src = "**.pdf"` rule.
 +{{%/ warning %}}
 +
 +### The `:counter` placeholder in `name` and `title`
 +
 +The `:counter` is a special placeholder recognized in `name` and `title` parameters `resources`.
 +
 +The counter starts at 1 the first time they are used in either `name` or `title`.
 +
 +For example, if a bundle has the resources `photo_specs.pdf`, `other_specs.pdf`, `guide.pdf` and `checklist.pdf`, and the front matter has specified the `resources` as:
 +
 +{{< code-toggle copy="false">}}
 +[[resources]]
 +  src = "*specs.pdf"
 +  title = "Specification #:counter"
 +[[resources]]
 +  src = "**.pdf"
 +  name = "pdf-file-:counter"
 +{{</ code-toggle >}}
 +
 +the `Name` and `Title` will be assigned to the resource files as follows:
 +
 +| Resource file     | `Name`            | `Title`               |
 +|-------------------|-------------------|-----------------------|
 +| checklist.pdf     | `"pdf-file-1.pdf` | `"checklist.pdf"`     |
 +| guide.pdf         | `"pdf-file-2.pdf` | `"guide.pdf"`         |
 +| other\_specs.pdf  | `"pdf-file-3.pdf` | `"Specification #1"` |
 +| photo\_specs.pdf  | `"pdf-file-4.pdf` | `"Specification #2"` |
index 9ede15252810bb0ab707f54366a9cb334149aa91,0000000000000000000000000000000000000000..2d2077c81c627ca7f7798efdb3543a01ca1d5072
mode 100644,000000..100644
--- /dev/null
@@@ -1,137 -1,0 +1,138 @@@
- date: 2017-09-05
 +---
 +title: Related Content
++linkTitle: Related Content
 +description: List related content in "See Also" sections.
-     parent: "content-management"
-     weight: 40
- weight: 30
- draft: false
- aliases: [/content/related/,/related/]
 +categories: [content management]
 +keywords: [content]
 +menu:
 +  docs:
++    parent: content-management
++    weight: 110
 +toc: true
++weight: 110
++aliases: [/content/related/,/related/]
 +---
 +
 +Hugo uses a set of factors to identify a page's related content based on Front Matter parameters. This can be tuned to the desired set of indices and parameters or left to Hugo's default [Related Content configuration](#configure-related-content).
 +
 +## List Related Content
 +
-       {{ range . }}
-       <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
-       {{ end }}
 +To list up to 5 related pages (which share the same _date_ or _keyword_ parameters) is as simple as including something similar to this partial in your single page template:
 +
 +{{< code file="layouts/partials/related.html" >}}
 +{{ $related := .Site.RegularPages.Related . | first 5 }}
 +{{ with $related }}
 +<h3>See Also</h3>
 +<ul>
- ```
++ {{ range . }}
++ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
++ {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +### Methods
 +
 +Here is the list of "Related" methods available on a page collection such `.RegularPages`.
 +
 +#### .Related PAGE
++
 +Returns a collection of pages related the given one.
 +
- ```
++```go-html-template
 +{{ $related := site.RegularPages.Related . }}
 +```
 +
 +#### .RelatedIndices PAGE INDICE1 [INDICE2 ...]
++
 +Returns a collection of pages related to a given one restricted to a list of indices.
 +
- ```
++```go-html-template
 +{{ $related := site.RegularPages.RelatedIndices . "tags" "date" }}
 +```
 +
 +#### .RelatedTo KEYVALS [KEYVALS2 ...]
++
 +Returns a collection of pages related together by a set of indices and their match.
 +
 +In order to build those set and pass them as argument, one must use the `keyVals` function where the first argument would be the `indice` and the consecutive ones its potential `matches`.
 +
++```go-html-template
 +{{ $related := site.RegularPages.RelatedTo ( keyVals "tags" "hugo" "rocks")  ( keyVals "date" .Date ) }}
 +```
 +
 +{{% note %}}
 +Read [this blog article](https://regisphilibert.com/blog/2018/04/hugo-optmized-relashionships-with-related-content/) for a great explanation of more advanced usage of this feature.
 +{{% /note %}}
 +
 +## Configure Related Content
++
 +Hugo provides a sensible default configuration of Related Content, but you can fine-tune this in your configuration, on the global or language level if needed.
 +
 +### Default configuration
 +
 +Without any `related` configuration set on the project, Hugo's Related Content methods will use the following.
 +
 +{{< code-toggle file="config" >}}
 +related:
 +  threshold: 80
 +  includeNewer: false
 +  toLower: false
 +  indices:
 +  - name: keywords
 +    weight: 100
 +  - name: date
 +    weight: 10
 +{{< /code-toggle >}}
 +
 +Note that if you have configured `tags` as a taxonomy, `tags` will also be added to the default configuration above with the weight of `80`.
 +
 +Custom configuration should be set using the same syntax.
 +
 +{{% note %}}
 +If you add a `related` config section, you need to add a complete configuration. It is not possible to just set, say, `includeNewer` and use the rest  from the Hugo defaults.
 +{{% /note %}}
 +
 +### Top Level Config Options
 +
 +threshold
 +:  A value between 0-100. Lower value will give more, but maybe not so relevant, matches.
 +
 +includeNewer
 +:  Set to true to include **pages newer than the current page** in the related content listing. This will mean that the output for older posts may change as new related content gets added.
 +
 +toLower
 +: Set to true to lower case keywords in both the indexes and the queries. This may give more accurate results at a slight performance penalty. Note that this can also be set per index.
 +
 +### Config Options per Index
 +
 +name
 +:  The index name. This value maps directly to a page param. Hugo supports string values (`author` in the example) and lists (`tags`, `keywords` etc.) and time and date objects.
 +
 +weight
 +: An integer weight that indicates _how important_ this parameter is relative to the other parameters.  It can be 0, which has the effect of turning this index off, or even negative. Test with different values to see what fits your content best.
 +
 +pattern
 +: This is currently only relevant for dates. When listing related content, we may want to list content that is also close in time. Setting "2006" (default value for date indexes) as the pattern for a date index will add weight to pages published in the same year. For busier blogs, "200601" (year and month) may be a better default.
 +
 +toLower
 +: See above.
 +
 +## Performance Considerations
 +
 +**Fast is Hugo's middle name** and we would not have released this feature had it not been blistering fast.
 +
 +This feature has been in the back log and requested by many for a long time. The development got this recent kick start from this Twitter thread:
 +
 +{{< tweet user="scott_lowe" id="898398437527363585" >}}
 +
 +Scott S. Lowe removed the "Related Content" section built using the `intersect` template function on tags, and the build time dropped from 30 seconds to less than 2 seconds on his 1700 content page sized blog.
 +
 +He should now be able to add an improved version of that "Related Content" section without giving up the fast live-reloads. But it's worth noting that:
 +
 +* If you don't use any of the `Related` methods, you will not use the Relate Content feature, and performance will be the same as before.
 +* Calling `.RegularPages.Related` etc. will create one inverted index, also sometimes named posting list, that will be reused for any lookups in that same page collection. Doing that in addition to, as an example, calling `.Pages.Related` will work as expected, but will create one additional inverted index. This should still be very fast, but worth having in mind, especially for bigger sites.
 +
 +{{% note %}}
 +We currently do not index **Page content**. We thought we would release something that will make most people happy before we start solving [Sherlock's last case](https://github.com/joearms/sherlock).
 +{{% /note %}}
index 6806e342c10222fae801183e5d91d3636e2f232a,0000000000000000000000000000000000000000..4335f137d669a123148f12db09d4e37214445e60
mode 100644,000000..100644
--- /dev/null
@@@ -1,101 -1,0 +1,100 @@@
- linktitle: Sections
- description: "Hugo generates a **section tree** that matches your content."
 +---
 +title: Content Sections
-     parent: "content-management"
-     weight: 50
- weight: 50    #rem
- draft: false
- aliases: [/content/sections/]
++linkTitle: Sections
++description: Hugo generates a **section tree** that matches your content.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [content management]
 +keywords: [lists,sections,content types,organization]
 +menu:
 +  docs:
- <li{{ if eq .p1 .p2 }} class="active"{{ end }}>
++    parent: content-management
++    weight: 120
 +toc: true
++weight: 120
++aliases: [/content/sections/]
 +---
 +
 +A **Section** is a collection of pages that gets defined based on the
 +organization structure under the `content/` directory.
 +
 +By default, all the **first-level** directories under `content/` form their own
 +sections (**root sections**) provided they constitute [Branch Bundles][branch bundles].
 +Directories which are just [Leaf Bundles][leaf bundles] do *not* form
 +their own sections, despite being first-level directories.
 +
 +If a user needs to define a section `foo` at a deeper level, they need to create
 +a directory named `foo` with an `_index.md` file (see [Branch Bundles][branch bundles]
 +for more information).
 +
 +
 +{{% note %}}
 +A **section** cannot be defined or overridden by a front matter parameter -- it
 +is strictly derived from the content organization structure.
 +{{% /note %}}
 +
 +## Nested Sections
 +
 +The sections can be nested as deeply as you need.
 +
 +```bash
 +content
 +└── blog        <-- Section, because first-level dir under content/
 +    ├── funny-cats
 +    │   ├── mypost.md
 +    │   └── kittens         <-- Section, because contains _index.md
 +    │       └── _index.md
 +    └── tech                <-- Section, because contains _index.md
 +        └── _index.md
 +```
 +
 +**The important part to understand is, that to make the section tree fully navigational, at least the lower-most section needs a content file. (e.g. `_index.md`).**
 +
 +{{% note %}}
 +When we talk about a **section** in correlation with template selection, it is
 +currently always the *root section* only (`/blog/funny-cats/mypost/ => blog`).
 +
 +If you need a specific template for a sub-section, you need to adjust either the `type` or `layout` in front matter.
 +{{% /note %}}
 +
 +## Example: Breadcrumb Navigation
 +
 +With the available [section variables and methods](#section-page-variables-and-methods) you can build powerful navigation. One common example would be a partial to show Breadcrumb navigation:
 +
 +{{< code file="layouts/partials/breadcrumb.html" download="breadcrumb.html" >}}
 +<ol  class="nav navbar-nav">
 +  {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
 +</ol>
 +{{ define "breadcrumbnav" }}
 +{{ if .p1.Parent }}
 +{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 )  }}
 +{{ else if not .p1.IsHome }}
 +{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 )  }}
 +{{ end }}
- Hugo will automatically create pages for each *root section* that list all of the content in that section. See the documentation on [section templates][] for details on customizing the way these pages are rendered.
++<li{{ if eq .p1 .p2 }} class="active" aria-current="page" {{ end }}>
 +  <a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a>
 +</li>
 +{{ end }}
 +{{< /code >}}
 +
 +## Section Page Variables and Methods
 +
 +Also see [Page Variables](/variables/page/).
 +
 +{{< readfile file="/content/en/readfiles/sectionvars.md" markdown="true" >}}
 +
 +## Content Section Lists
 +
++Hugo will automatically create a page for each *root section* that lists all the content in that section. See the documentation on [section templates][] for details on customizing the way these pages are rendered.
 +
 +## Content *Section* vs Content *Type*
 +
 +By default, everything created within a section will use the [content `type`][content type] that matches the *root section* name. For example, Hugo will assume that `posts/post-1.md` has a `posts` content `type`. If you are using an [archetype][] for your `posts` section, Hugo will generate front matter according to what it finds in `archetypes/posts.md`.
 +
 +[archetype]: /content-management/archetypes/
 +[content type]: /content-management/types/
 +[directory structure]: /getting-started/directory-structure/
 +[section templates]: /templates/section-templates/
 +[leaf bundles]: /content-management/page-bundles/#leaf-bundles
 +[branch bundles]: /content-management/page-bundles/#branch-bundles
index 017267ec787114ef65cae315d1e9b5daff75a133,0000000000000000000000000000000000000000..4bc425ff338c50aea5101809f4925d12c60a8c45
mode 100644,000000..100644
--- /dev/null
@@@ -1,444 -1,0 +1,434 @@@
- linktitle:
 +---
 +title: Shortcodes
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2019-11-07
- menu:
-   docs:
-     parent: "content-management"
-     weight: 35
- weight: 35    #rem
++linkTitle: Shortcodes
 +description: Shortcodes are simple snippets inside your content files calling built-in or custom templates.
- draft: false
 +categories: [content management]
 +keywords: [markdown,content,shortcodes]
- toc: true
++menu:
++  docs:
++    parent: content-management
++    weight: 100
++toc: true
++weight: 100
 +aliases: [/extras/shortcodes/]
 +testparam: "Hugo Rocks!"
- ```
 +---
 +
 +## What a Shortcode is
 +
 +Hugo loves Markdown because of its simple content format, but there are times when Markdown falls short. Often, content authors are forced to add raw HTML (e.g., video `<iframe>`'s) to Markdown content. We think this contradicts the beautiful simplicity of Markdown's syntax.
 +
 +Hugo created **shortcodes** to circumvent these limitations.
 +
 +A shortcode is a simple snippet inside a content file that Hugo will render using a predefined template. Note that shortcodes will not work in template files. If you need the type of drop-in functionality that shortcodes provide but in a template, you most likely want a [partial template][partials] instead.
 +
 +In addition to cleaner Markdown, shortcodes can be updated any time to reflect new classes, techniques, or standards. At the point of site generation, Hugo shortcodes will easily merge in your changes. You avoid a possibly complicated search and replace operation.
 +
 +## Use Shortcodes
 +
 +{{< youtube 2xkNJL4gJ9E >}}
 +
 +In your content files, a shortcode can be called by calling `{{%/* shortcodename parameters */%}}`. Shortcode parameters are space delimited, and parameters with internal spaces can be quoted.
 +
 +The first word in the shortcode declaration is always the name of the shortcode. Parameters follow the name. Depending upon how the shortcode is defined, the parameters may be named, positional, or both, although you can't mix parameter types in a single call. The format for named parameters models that of HTML with the format `name="value"`.
 +
 +Some shortcodes use or require closing shortcodes. Again like HTML, the opening and closing shortcodes match (name only) with the closing declaration, which is prepended with a slash.
 +
 +Here are two examples of paired shortcodes:
 +
- ```
++```go-html-template
 +{{%/* mdshortcode */%}}Stuff to `process` in the *center*.{{%/* /mdshortcode */%}}
 +```
 +
- {{< new-in "0.64.1" >}}
++```go-html-template
 +{{</* highlight go */>}} A bunch of code here {{</* /highlight */>}}
 +```
 +
 +The examples above use two different delimiters, the difference being the `%` character in the first and the `<>` characters in the second.
 +
 +### Shortcodes with raw string parameters
 +
- ```
 +You can pass multiple lines as parameters to a shortcode by using raw string literals:
 +
- ```
++```go-html-template
 +{{</*  myshortcode `This is some <b>HTML</b>,
 +and a new line with a "quoted string".` */>}}
 +```
 +
 +### Shortcodes with Markdown
 +
 +In Hugo `0.55` we changed how the `%` delimiter works. Shortcodes using the `%` as the outer-most delimiter will now be fully rendered when sent to the content renderer. They can be part of the generated table of contents, footnotes, etc.
 +
 +If you want the old behavior, you can put the following line in the start of your shortcode template:
 +
++```go-html-template
 +{{ $_hugo_config := `{ "version": 1 }` }}
 +```
 +
- The `<` character indicates that the shortcode's inner content does *not* need further rendering. Often shortcodes without markdown include internal HTML:
 +### Shortcodes Without Markdown
 +
- ```
++The `<` character indicates that the shortcode's inner content does *not* need further rendering. Often shortcodes without Markdown include internal HTML:
 +
- Hugo ships with a set of predefined shortcodes that represent very common usage. These shortcodes are provided for author convenience and to keep your markdown content clean.
++```go-html-template
 +{{</* myshortcode */>}}<p>Hello <strong>World!</strong></p>{{</* /myshortcode */>}}
 +```
 +
 +### Nested Shortcodes
 +
 +You can call shortcodes within other shortcodes by creating your own templates that leverage the `.Parent` variable. `.Parent` allows you to check the context in which the shortcode is being called. See [Shortcode templates][sctemps].
 +
 +## Use Hugo's Built-in Shortcodes
 +
- `figure` is an extension of the image syntax in markdown, which does not provide a shorthand for the more semantic [HTML5 `<figure>` element][figureelement].
++Hugo ships with a set of predefined shortcodes that represent very common usage. These shortcodes are provided for author convenience and to keep your Markdown content clean.
 +
 +### `figure`
 +
- ```
++`figure` is an extension of the image syntax in Markdown, which does not provide a shorthand for the more semantic [HTML5 `<figure>` element][figureelement].
 +
 +The `figure` shortcode can use the following named parameters:
 +
 +src
 +: URL of the image to be displayed.
 +
 +link
 +: If the image needs to be hyperlinked, URL of the destination.
 +
 +target
 +: Optional `target` attribute for the URL if `link` parameter is set.
 +
 +rel
 +: Optional `rel` attribute for the URL if `link` parameter is set.
 +
 +alt
 +: Alternate text for the image if the image cannot be displayed.
 +
 +title
 +: Image title.
 +
 +caption
 +: Image caption.  Markdown within the value of `caption` will be rendered.
 +
 +class
 +: `class` attribute of the HTML `figure` tag.
 +
 +height
 +: `height` attribute of the image.
 +
 +width
 +: `width` attribute of the image.
 +
 +attr
 +: Image attribution text. Markdown within the value of `attr` will be rendered.
 +
 +attrlink
 +: If the attribution text needs to be hyperlinked, URL of the destination.
 +
 +#### Example `figure` Input
 +
 +{{< code file="figure-input-example.md" >}}
 +{{</* figure src="/media/spf13.jpg" title="Steve Francia" */>}}
 +{{< /code >}}
 +
 +#### Example `figure` Output
 +
 +{{< output file="figure-output-example.html" >}}
 +<figure>
 +  <img src="/media/spf13.jpg"  />
 +  <figcaption>
 +      <h4>Steve Francia</h4>
 +  </figcaption>
 +</figure>
 +{{< /output >}}
 +
 +### `gist`
 +
 +Bloggers often want to include GitHub gists when writing posts. Let's suppose we want to use the [gist at the following url][examplegist]:
 +
- ```
++```txt
 +https://gist.github.com/spf13/7896402
 +```
 +
 +We can embed the gist in our content via username and gist ID pulled from the URL:
 +
- To demonstrate the remarkably efficiency of Hugo's shortcode feature, we have embedded the `spf13` `gist` example in this page. The following simulates the experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
++```go-html-template
 +{{</* gist spf13 7896402 */>}}
 +```
 +
 +#### Example `gist` Input
 +
 +If the gist contains several files and you want to quote just one of them, you can pass the filename (quoted) as an optional third argument:
 +
 +{{< code file="gist-input.md" >}}
 +{{</* gist spf13 7896402 "img.html" */>}}
 +{{< /code >}}
 +
 +#### Example `gist` Output
 +
 +{{< output file="gist-output.html" >}}
 +{{< gist spf13 7896402 >}}
 +{{< /output >}}
 +
 +#### Example `gist` Display
 +
- ```
++To demonstrate the remarkable efficiency of Hugo's shortcode feature, we have embedded the `spf13` `gist` example in this page. The following simulates the experience for visitors to your website. Naturally, the final display will depend on your stylesheets and surrounding markup.
 +
 +{{< gist spf13 7896402 >}}
 +
 +### `highlight`
 +
 +This shortcode will convert the source code provided into syntax-highlighted HTML. Read more on [highlighting](/content-management/syntax-highlighting/). `highlight` takes exactly one required `language` parameter and requires a closing shortcode.
 +
 +#### Example `highlight` Input
 +
 +{{< code file="content/tutorials/learn-html.md" >}}
 +{{</* highlight html */>}}
 +<section id="main">
 +  <div>
 +   <h1 id="title">{{ .Title }}</h1>
 +    {{ range .Pages }}
 +        {{ .Render "summary"}}
 +    {{ end }}
 +  </div>
 +</section>
 +{{</* /highlight */>}}
 +{{< /code >}}
 +
 +#### Example `highlight` Output
 +
 +The `highlight` shortcode example above would produce the following HTML when the site is rendered:
 +
 +{{< output file="tutorials/learn-html/index.html" >}}
 +<span style="color: #f92672">&lt;section</span> <span style="color: #a6e22e">id=</span><span style="color: #e6db74">&quot;main&quot;</span><span style="color: #f92672">&gt;</span>
 +  <span style="color: #f92672">&lt;div&gt;</span>
 +   <span style="color: #f92672">&lt;h1</span> <span style="color: #a6e22e">id=</span><span style="color: #e6db74">&quot;title&quot;</span><span style="color: #f92672">&gt;</span>{{ .Title }}<span style="color: #f92672">&lt;/h1&gt;</span>
 +    {{ range .Pages }}
 +        {{ .Render &quot;summary&quot;}}
 +    {{ end }}
 +  <span style="color: #f92672">&lt;/div&gt;</span>
 +<span style="color: #f92672">&lt;/section&gt;</span>
 +{{< /output >}}
 +
 +{{% note "More on Syntax Highlighting" %}}
 +To see even more options for adding syntax-highlighted code blocks to your website, see [Syntax Highlighting in Developer Tools](/tools/syntax-highlighting/).
 +{{% /note %}}
 +
 +### `instagram`
 +
 +If you'd like to embed a photo from [Instagram][], you only need the photo's ID. You can discern an Instagram photo ID from the URL:
 +
- Using the preceding `instagram` with `hidecaption` example above, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
++```txt
 +https://www.instagram.com/p/BWNjjyYFxVx/
 +```
 +
 +#### Example `instagram` Input
 +
 +{{< code file="instagram-input.md" >}}
 +{{</* instagram BWNjjyYFxVx */>}}
 +{{< /code >}}
 +
 +You also have the option to hide the caption:
 +
 +{{< code file="instagram-input-hide-caption.md" >}}
 +{{</* instagram BWNjjyYFxVx hidecaption */>}}
 +{{< /code >}}
 +
 +#### Example `instagram` Output
 +
 +By adding the preceding `hidecaption` example, the following HTML will be added to your rendered website's markup:
 +
 +{{< output file="instagram-hide-caption-output.html" >}}
 +{{< instagram BWNjjyYFxVx hidecaption >}}
 +{{< /output >}}
 +
 +#### Example `instagram` Display
 +
++Using the preceding `instagram` with `hidecaption` example above, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your style sheets and surrounding markup.
 +
 +{{< instagram BWNjjyYFxVx hidecaption >}}
 +
 +
- Gets a value from the current `Page's` params set in front matter, with a fall back to the site param value. It will log an `ERROR` if the param with the given key could not be found in either.
 +{{% note %}}
 +The `instagram`-shortcode refers an endpoint of Instagram's API, that's deprecated since October 24th, 2020. Thus, no images can be fetched from this API endpoint, resulting in an error when the `instagram`-shortcode is used. For more information please have a look at GitHub issue [#7879](https://github.com/gohugoio/hugo/issues/7879).
 +{{% /note %}}
 +
 +### `param`
 +
- ```
++Gets a value from the current `Page's` params set in front matter, with a fallback to the site param value. It will log an `ERROR` if the param with the given key could not be found in either.
 +
 +```bash
 +{{</* param testparam */>}}
 +```
 +
 +Since `testparam` is a param defined in front matter of this page with the value `Hugo Rocks!`, the above will print:
 +
 +{{< param testparam >}}
 +
 +To access deeply nested params, use "dot syntax", e.g:
 +
 +```bash
 +{{</* param "my.nested.param" */>}}
 +```
 +
 +### `ref` and `relref`
 +
 +These shortcodes will look up the pages by their relative path (e.g., `blog/post.md`) or their logical name (`post.md`) and return the permalink (`ref`) or relative permalink (`relref`) for the found page.
 +
 +`ref` and `relref` also make it possible to make fragmentary links that work for the header links generated by Hugo.
 +
 +{{% note "More on Cross References" %}}
 +Read a more extensive description of `ref` and `relref` in the [cross references](/content-management/cross-references/) documentation.
 +{{% /note %}}
 +
 +`ref` and `relref` take exactly one required parameter of _reference_, quoted and in position `0`.
 +
 +#### Example `ref` and `relref` Input
 +
- ```
++```go-html-template
 +[Neat]({{</* ref "blog/neat.md" */>}})
 +[Who]({{</* relref "about.md#who" */>}})
 +```
 +
 +#### Example `ref` and `relref` Output
 +
 +Assuming that standard Hugo pretty URLs are turned on.
 +
- ```
++```html
 +<a href="https://example.com/blog/neat">Neat</a>
 +<a href="/about/#who">Who</a>
 +```
 +
 +### `tweet`
 +
 +You want to include a single tweet into your blog post? Everything you need is the URL of the tweet:
 +
- Pass the tweet's user (case-insensitive) and id from the URL as parameters to the `tweet` shortcode.
++```txt
 +https://twitter.com/SanDiegoZoo/status/1453110110599868418
 +```
 +
 +#### Example `tweet` Input
 +
- ```
++Pass the tweet's user (case-insensitive) and ID from the URL as parameters to the `tweet` shortcode.
 +
 +{{< code file="example-tweet-input.md" >}}
 +{{</* tweet user="SanDiegoZoo" id="1453110110599868418" */>}}
 +{{< /code >}}
 +
 +#### Example `tweet` Output
 +
 +Using the preceding `tweet` example, the following HTML will be added to your rendered website's markup:
 +
 +{{< output file="example-tweet-output.html" >}}
 +{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}
 +{{< /output >}}
 +
 +#### Example `tweet` Display
 +
 +Using the preceding `tweet` example, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
 +
 +{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}
 +
 +### `vimeo`
 +
 +Adding a video from [Vimeo][] is equivalent to the [YouTube Input shortcode][].
 +
- If you want to further customize the visual styling of the YouTube or Vimeo output, add a `class` named parameter when calling the shortcode. The new `class` will be added to the `<div>` that wraps the `<iframe>` *and* will remove the inline styles. Note that you will need to call the `id` as a named parameter as well. You can also give the vimeo video a descriptive title with `title`. 
++```txt
 +https://vimeo.com/channels/staffpicks/146022717
 +```
 +
 +#### Example `vimeo` Input
 +
 +Extract the ID from the video's URL and pass it to the `vimeo` shortcode:
 +
 +{{< code file="example-vimeo-input.md" >}}
 +{{</* vimeo 146022717 */>}}
 +{{< /code >}}
 +
 +#### Example `vimeo` Output
 +
 +Using the preceding `vimeo` example, the following HTML will be added to your rendered website's markup:
 +
 +{{< output file="example-vimeo-output.html" >}}
 +{{< vimeo 146022717 >}}
 +{{< /output >}}
 +
 +{{% tip %}}
- ```
++If you want to further customize the visual styling of the YouTube or Vimeo output, add a `class` named parameter when calling the shortcode. The new `class` will be added to the `<div>` that wraps the `<iframe>` *and* will remove the inline styles. Note that you will need to call the `id` as a named parameter as well. You can also give the vimeo video a descriptive title with `title`.
 +
- ```
++```go
 +{{</* vimeo id="146022717" class="my-vimeo-wrapper-class" title="My vimeo video" */>}}
 +```
 +{{% /tip %}}
 +
 +#### Example `vimeo` Display
 +
 +Using the preceding `vimeo` example, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
 +
 +{{< vimeo 146022717 >}}
 +
 +### `youtube`
 +
 +The `youtube` shortcode embeds a responsive video player for [YouTube videos][]. Only the ID of the video is required, e.g.:
 +
++```txt
 +https://www.youtube.com/watch?v=w7Ft2ymGmfc
 +```
 +
- Furthermore, you can automatically start playback of the embedded video by setting the `autoplay` parameter to `true`. Remember that you can't mix named and unnamed parameters, so you'll need to assign the yet unnamed video id to the parameter `id`:
 +#### Example `youtube` Input
 +
 +Copy the YouTube video ID that follows `v=` in the video's URL and pass it to the `youtube` shortcode:
 +
 +{{< code file="example-youtube-input.md" >}}
 +{{</* youtube w7Ft2ymGmfc */>}}
 +{{< /code >}}
 +
++Furthermore, you can automatically start playback of the embedded video by setting the `autoplay` parameter to `true`. Remember that you can't mix named and unnamed parameters, so you'll need to assign the yet unnamed video ID to the parameter `id`:
 +
 +
 +{{< code file="example-youtube-input-with-autoplay.md" >}}
 +{{</* youtube id="w7Ft2ymGmfc" autoplay="true" */>}}
 +{{< /code >}}
 +
 +For [accessibility reasons](https://dequeuniversity.com/tips/provide-iframe-titles), it's best to provide a title for your YouTube video.  You  can do this using the shortcode by providing a `title` parameter. If no title is provided, a default of "YouTube Video" will be used.
 +
 +{{< code file="example-youtube-input-with-title.md" >}}
 +{{</* youtube id="w7Ft2ymGmfc" title="A New Hugo Site in Under Two Minutes" */>}}
 +{{< /code >}}
 +
- Using the preceding `youtube` example (without `autoplay="true"`), the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup. The video is also include in the [Quick Start of the Hugo documentation][quickstart].
 +#### Example `youtube` Output
 +
 +Using the preceding `youtube` example, the following HTML will be added to your rendered website's markup:
 +
 +{{< code file="example-youtube-output.html" >}}
 +{{< youtube id="w7Ft2ymGmfc" autoplay="true" >}}
 +{{< /code >}}
 +
 +#### Example `youtube` Display
 +
++Using the preceding `youtube` example (without `autoplay="true"`), the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your style sheets and surrounding markup. The video is also include in the [Quick Start of the Hugo documentation][quickstart].
 +
 +{{< youtube w7Ft2ymGmfc >}}
 +
 +## Privacy Config
 +
 +To learn how to configure your Hugo site to meet the new EU privacy regulation, see [Hugo and the GDPR][].
 +
 +## Create Custom Shortcodes
 +
 +To learn more about creating custom shortcodes, see the [shortcode template documentation][].
 +
 +[`figure` shortcode]: #figure
 +[contentmanagementsection]: /content-management/formats/
 +[examplegist]: https://gist.github.com/spf13/7896402
 +[figureelement]: https://html5doctor.com/the-figure-figcaption-elements/ "An article from HTML5 doctor discussing the fig and figcaption elements."
 +[Hugo and the GDPR]: /about/hugo-and-gdpr/
 +[Instagram]: https://www.instagram.com/
 +[pagevariables]: /variables/page/
 +[partials]: /templates/partials/
 +[quickstart]: /getting-started/quick-start/
 +[sctemps]: /templates/shortcode-templates/
 +[scvars]: /variables/shortcodes/
 +[shortcode template documentation]: /templates/shortcode-templates/
 +[templatessection]: /templates/
 +[Vimeo]: https://vimeo.com/
 +[YouTube Videos]: https://www.youtube.com/
 +[YouTube Input shortcode]: #youtube
index e42ee90883726305679eb9c85f1779a1a25400ca,0000000000000000000000000000000000000000..946919f0a4c4412d1807902d6f9969834df97af5
mode 100644,000000..100644
--- /dev/null
@@@ -1,70 -1,0 +1,69 @@@
- description: "Files that get served **statically** (as-is, no modification) on the site root."
- date: 2017-11-18
 +---
 +title: Static Files
-     parent: "content-management"
-     weight: 130
- weight: 130   #rem
- aliases: [/static-files]
++linkTitle: Static Files
++description: Files that get served **statically** (as-is, no modification) on the site root.
 +categories: [content management]
 +keywords: [source, directories]
 +menu:
 +  docs:
++    parent: content-management
++    weight: 200
 +toc: true
++weight: 200
++aliases: [/static-files]
 +---
 +
 +By default, the `static/` directory in the site project is used for
 +all **static files** (e.g. stylesheets, JavaScript, images). The static files are served on the site root path (eg. if you have the file `static/image.png` you can access it using `http://{server-url}/image.png`, to include it in a document you can use `![Example image](/image.png) )`.
 +
 +Hugo can be configured to look into a different directory, or even
 +**multiple directories** for such static files by configuring the
 +`staticDir` parameter in the [site config][]. All the files in all the
 +static directories will form a union filesystem.
 +
 +This union filesystem will be served from your site root. So a file
 +`<SITE PROJECT>/static/me.png` will be accessible as
 +`<MY_BASEURL>/me.png`.
 +
 +Here's an example of setting `staticDir` and `staticDir2` for a
 +multi-language site:
 +
 +{{< code-toggle copy="false" file="config" >}}
 +staticDir = ["static1", "static2"]
 +
 +[languages]
 +[languages.en]
 +staticDir2 = "static_en"
 +baseURL = "https://example.com"
 +languageName = "English"
 +weight = 2
 +title = "In English"
 +[languages.no]
 +staticDir = ["staticDir_override", "static_no"]
 +baseURL = "https://example.no"
 +languageName = "Norsk"
 +weight = 1
 +title = "På norsk"
 +{{</ code-toggle >}}
 +
 +In the above, with no theme used:
 +
 +- The English site will get its static files as a union of "static1",
 +  "static2" and "static_en". On file duplicates, the right-most
 +  version will win.
 +- The Norwegian site will get its static files as a union of
 +  "staticDir_override" and "static_no".
 +
 +Note 1
 +: The **2** (can be a number between 0 and 10) in `staticDir2` is
 +  added to tell Hugo that you want to **add** this directory to the
 +  global set of static directories defined using `staticDir`. Using
 +  `staticDir` on the language level would replace the global value (as
 +  can be seen in the Norwegian site case).
 +
 +Note 2
 +: The example above is a [multihost setup][]. In a regular setup, all
 +  the static directories will be available to all sites.
 +
 +[site config]: /getting-started/configuration/#all-configuration-settings
 +[multihost setup]: /content-management/multilingual/#configure-multilingual-multihost
index 3c67a67dc005e01c506cb079c521da6eb6ef5a99,0000000000000000000000000000000000000000..010e55dcd304054707fa64aa11b9b7cb2b869c51
mode 100644,000000..100644
--- /dev/null
@@@ -1,112 -1,0 +1,108 @@@
- linktitle: Summaries
 +---
 +title: Content Summaries
- date: 2017-01-10
- publishdate: 2017-01-10
- lastmod: 2017-01-10
++linkTitle: Summaries
 +description: Hugo generates summaries of your content.
-     parent: "content-management"
-     weight: 90
- weight: 90    #rem
- draft: false
- aliases: [/content/summaries/,/content-management/content-summaries/]
 +categories: [content management]
 +keywords: [summaries,abstracts,read more]
 +menu:
 +  docs:
- Alternatively, you may add the <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> summary divider where you want to split the article. 
++    parent: content-management
++    weight: 160
 +toc: true
++weight: 160
++aliases: [/content/summaries/,/content-management/content-summaries/]
 +---
 +
 +With the use of the `.Summary` [page variable][pagevariables], Hugo generates summaries of content to use as a short version in summary views.
 +
 +## Summary Splitting Options
 +
 +* Automatic Summary Split
 +* Manual Summary Split
 +* Front Matter Summary
 +
 +It is natural to accompany the summary with links to the original content, and a common design pattern is to see this link in the form of a "Read More ..." button. See the `.RelPermalink`, `.Permalink`, and `.Truncated` [page variables][pagevariables].
 +
 +### Automatic Summary Splitting
 +
 +By default, Hugo automatically takes the first 70 words of your content as its summary and stores it into the `.Summary` page variable for use in your templates. You may customize the summary length by setting `summaryLength` in your [site configuration](/getting-started/configuration/).
 +
 +{{% note %}}
 +You can customize how HTML tags in the summary are loaded using functions such as `plainify` and `safeHTML`.
 +{{% /note %}}
 +
 +{{% note %}}
 +The Hugo-defined summaries are set to use word count calculated by splitting the text by one or more consecutive whitespace characters. If you are creating content in a `CJK` language and want to use Hugo's automatic summary splitting, set `hasCJKLanguage` to `true` in your [site configuration](/getting-started/configuration/).
 +{{% /note %}}
 +
 +### Manual Summary Splitting
 +
- For [Org mode content][org], use `# more` where you want to split the article. 
++Alternatively, you may add the <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> summary divider where you want to split the article.
 +
++For [Org mode content][org], use `# more` where you want to split the article.
 +
 +Content that comes before the summary divider will be used as that content's summary and stored in the `.Summary` page variable with all HTML formatting intact.
 +
 +{{% note "Summary Divider"%}}
 +The concept of a *summary divider* is not unique to Hugo. It is also called the "more tag" or "excerpt separator" in other literature.
 +{{% /note %}}
 +
 +Pros
 +: Freedom, precision, and improved rendering.  All HTML tags and formatting are preserved.
 +
 +Cons
 +: Extra work for content authors, since they need to remember to type <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> (or `# more` for [org content][org]) in each content file. This can be automated by adding the summary divider below the front matter of an [archetype](/content-management/archetypes/).
 +
 +{{% warning "Be Precise with the Summary Divider" %}}
 +Be careful to enter <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> exactly; i.e., all lowercase and with no whitespace.
 +{{% /warning %}}
 +
 +### Front Matter Summary
 +
 +You might want your summary to be something other than the text that starts the article.  In this case you can provide a separate summary in the `summary` variable of the article front matter.
 +
 +Pros
 +: Complete freedom of text independent of the content of the article.  Markup can be used within the summary.
 +
 +Cons
 +: Extra work for content authors as they need to write an entirely separate piece of text as the summary of the article.
 +
 +## Summary Selection Order
 +
 +Because there are multiple ways in which a summary can be specified it is useful to understand the order of selection Hugo follows when deciding on the text to be returned by `.Summary`.  It is as follows:
 +
 +1. If there is a <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> summary divider present in the article the text up to the divider will be provided as per the manual summary split method
 +2. If there is a `summary` variable in the article front matter the value of the variable will be provided as per the front matter summary method
 +3. The text at the start of the article will be provided as per the automatic summary split method
 +
 +{{% warning "Competing selections" %}}
 +Hugo uses the _first_ of the above steps that returns text.  So if, for example, your article has both `summary` variable in its front matter and a <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> summary divider Hugo will use the manual summary split method.
 +{{% /warning %}}
 +
 +## Example: First 10 Articles with Summaries
 +
 +You can show content summaries with the following code. You could use the following snippet, for example, in a [section template][].
 +
 +{{< code file="page-list-with-summaries.html" >}}
 +{{ range first 10 .Pages }}
 +    <article>
 +      <!-- this <div> includes the title summary -->
 +      <div>
 +        <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
 +        {{ .Summary }}
 +      </div>
 +      {{ if .Truncated }}
 +      <!-- This <div> includes a read more link, but only if the summary is truncated... -->
 +      <div>
 +        <a href="{{ .RelPermalink }}">Read More…</a>
 +      </div>
 +      {{ end }}
 +    </article>
 +{{ end }}
 +{{< /code >}}
 +
 +Note how the `.Truncated` boolean variable value may be used to hide the "Read More..." link when the content is not truncated; i.e., when the summary contains the entire article.
 +
 +[org]: /content-management/formats/
 +[pagevariables]: /variables/page/
 +[section template]: /templates/section-templates/
index 5195b8211fe57d750d4d6b64b10068cf18928b61,0000000000000000000000000000000000000000..5f8a44ee26ca7bbd6e8be2760e674f4d08c3985f
mode 100644,000000..100644
--- /dev/null
@@@ -1,153 -1,0 +1,140 @@@
- date: 2017-02-01
- publishdate: 2017-02-01
 +---
 +title: Syntax Highlighting
++linkTitle: Syntax Highlighting
 +description: Hugo comes with really fast syntax highlighting from Chroma.
-     parent: "content-management"
-     weight: 300
- weight: 20
- sections_weight: 20
- draft: false
- aliases: [/extras/highlighting/,/extras/highlight/,/tools/syntax-highlighting/]
 +keywords: [highlighting,chroma,code blocks,syntax]
 +categories: [content management]
 +menu:
 +  docs:
- Hugo uses [Chroma](https://github.com/alecthomas/chroma) as its code highlighter; it is built in Go and is really, really fast -- and for the most important parts compatible with Pygments we used before.
++    parent: content-management
++    weight: 240
 +toc: true
++weight: 240
++aliases: [/extras/highlighting/,/extras/highlight/,/tools/syntax-highlighting/]
 +---
 +
- Highlighting is carried out via the built-in [`highlight` shortcode](https://gohugo.io/content-management/shortcodes/#highlight). It takes exactly one required parameter for the programming language to be highlighted and requires a closing shortcode. Note that `highlight` is *not* used for client-side javascript highlighting.
++Hugo uses [Chroma](https://github.com/alecthomas/chroma) as its code highlighter; it is built in Go and is really, really fast.
 +
 +## Configure Syntax Highlighter
 +
 +See [Configure Highlight](/getting-started/configuration-markup#highlight).
 +
 +## Generate Syntax Highlighter CSS
 +
 +If you run with `markup.highlight.noClasses=false` in your site config, you need a style sheet.
 +
 +You can generate one with Hugo:
 +
 +```bash
 +hugo gen chromastyles --style=monokai > syntax.css
 +```
 +
 +Run `hugo gen chromastyles -h` for more options. See https://xyproto.github.io/splash/docs/ for a gallery of available styles.
 +
 +## Highlight Shortcode
 +
- * `linenos`: configure line numbers. Valid values are `true`, `false`, `table`, or `inline`. `false` will turn off line numbers if it's configured to be on in site config. {{< new-in "0.60.0" >}} `table` will give copy-and-paste friendly code blocks.
++Highlighting is carried out via the built-in [`highlight` shortcode](https://gohugo.io/content-management/shortcodes/#highlight). It takes exactly one required parameter for the programming language to be highlighted and requires a closing shortcode.
 +
 +Options:
 +
- ```
++* `linenos`: configure line numbers. Valid values are `true`, `false`, `table`, or `inline`. `false` will turn off line numbers if it's configured to be on in site config. `table` will give copy-and-paste friendly code blocks.
 +* `hl_lines`: lists a set of line numbers or line number ranges to be highlighted.
 +* `linenostart=199`: starts the line number count from 199.
 +* `anchorlinenos`: Configure anchors on line numbers. Valid values are `true` or `false`;
 +* `lineanchors`: Configure a prefix for the anchors on line numbers. Will be suffixed with `-`, so linking to the line number 1 with the option `lineanchors=prefix` adds the anchor `prefix-1` to the page.  
 +* `hl_inline`  Highlight inside a `<code>` (inline HTML element) tag. Valid values are `true` or `false`. The `code` tag will get a class with name `code-inline`. {{< new-in "0.101.0" >}}
 +
 +### Example: Highlight Shortcode
 +
- Highlighting in code fences is enabled by default.{{< new-in "0.60.0" >}}
++```go-html-template
 +{{</* highlight go "linenos=table,hl_lines=8 15-17,linenostart=199" */>}}
 +// ... code
 +{{</* / highlight */>}}
 +```
 +
 +Gives this:
 +
 +{{< highlight go "linenos=table,hl_lines=8 15-17,linenostart=199" >}}
 +// GetTitleFunc returns a func that can be used to transform a string to
 +// title case.
 +//
 +// The supported styles are
 +//
 +// - "Go" (strings.Title)
 +// - "AP" (see https://www.apstylebook.com/)
 +// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
 +//
 +// If an unknown or empty style is provided, AP style is what you get.
 +func GetTitleFunc(style string) func(s string) string {
 +  switch strings.ToLower(style) {
 +  case "go":
 +    return strings.Title
 +  case "chicago":
 +    return transform.NewTitleConverter(transform.ChicagoStyle)
 +  default:
 +    return transform.NewTitleConverter(transform.APStyle)
 +  }
 +}
 +{{< / highlight >}}
 +
 +## Highlight Hugo/GO Template Code
 +
 +For highlighting Hugo/GO template code on your page, add `/*` after the opening double curly braces and `*/` before closing curly braces.
 +
 +``` go
 +{{</*/* myshortcode */*/>}}
 +```
 +
 +Gives this:
 +
 +``` go
 +{{</* myshortcode */>}}
 +```
 +
 +## Highlight Template Func
 +
 +See [Highlight](/functions/highlight/).
 +
 +## Highlighting in Code Fences
 +
- ````
++Highlighting in code fences is enabled by default.
 +
- {{< new-in "0.60.0" >}}Note that only Goldmark supports passing attributes such as `hl_lines`, and it's important that it does not contain any spaces. See [goldmark-highlighting](https://github.com/yuin/goldmark-highlighting) for more information.
++````txt
 +```go {linenos=table,hl_lines=[8,"15-17"],linenostart=199}
 +// ... code
 +```
 +````
 +
 +
 +Gives this:
 +
 +```go {linenos=table,hl_lines=[8,"15-17"],linenostart=199}
 +// GetTitleFunc returns a func that can be used to transform a string to
 +// title case.
 +//
 +// The supported styles are
 +//
 +// - "Go" (strings.Title)
 +// - "AP" (see https://www.apstylebook.com/)
 +// - "Chicago" (see https://www.chicagomanualofstyle.org/home.html)
 +//
 +// If an unknown or empty style is provided, AP style is what you get.
 +func GetTitleFunc(style string) func(s string) string {
 +  switch strings.ToLower(style) {
 +  case "go":
 +    return strings.Title
 +  case "chicago":
 +    return transform.NewTitleConverter(transform.ChicagoStyle)
 +  default:
 +    return transform.NewTitleConverter(transform.APStyle)
 +  }
 +}
 +```
 +
- [Prism]: https://prismjs.com
- [prismdownload]: https://prismjs.com/download.html
- [Highlight.js]: https://highlightjs.org/
- [Rainbow]: https://craig.is/making/rainbows
- [Syntax Highlighter]: https://alexgorbatchev.com/SyntaxHighlighter/
- [Google Prettify]: https://github.com/google/code-prettify
- [Yandex]: https://yandex.ru/
 +The options are the same as in the [highlighting shortcode](/content-management/syntax-highlighting/#highlight-shortcode),including `linenos=false`, but note the slightly different Markdown attribute syntax.
 +
 +## List of Chroma Highlighting Languages
 +
 +The full list of Chroma lexers and their aliases (which is the identifier used in the `highlight` template func or when doing highlighting in code fences):
 +
 +{{< chroma-lexers >}}
index 32227d52c86518dfd408da03ef6db07dc032435d,0000000000000000000000000000000000000000..6253472032c4b468a5d550a1ae7ef5557ab6b622
mode 100644,000000..100644
--- /dev/null
@@@ -1,215 -1,0 +1,210 @@@
- linktitle:
 +---
 +title: Taxonomies
- date: 2017-02-01
- publishdate: 2017-02-01
++linkTitle: Taxonomies
 +description: Hugo includes support for user-defined taxonomies.
-     parent: "content-management"
-     weight: 80
- weight: 80    #rem
- draft: false
- aliases: [/taxonomies/overview/,/taxonomies/usage/,/indexes/overview/,/doc/indexes/,/extras/indexes]
 +keywords: [taxonomies,metadata,front matter,terms]
 +categories: [content management]
 +menu:
 +  docs:
- ```
++    parent: content-management
++    weight: 150
 +toc: true
++weight: 150
++aliases: [/taxonomies/overview/,/taxonomies/usage/,/indexes/overview/,/doc/indexes/,/extras/indexes]
 +---
 +
 +## What is a Taxonomy?
 +
 +Hugo includes support for user-defined groupings of content called **taxonomies**. Taxonomies are classifications of logical relationships between content.
 +
 +### Definitions
 +
 +Taxonomy
 +: a categorization that can be used to classify content
 +
 +Term
 +: a key within the taxonomy
 +
 +Value
 +: a piece of content assigned to a term
 +
 +
 +## Example Taxonomy: Movie Website
 +
 +Let's assume you are making a website about movies. You may want to include the following taxonomies:
 +
 +* Actors
 +* Directors
 +* Studios
 +* Genre
 +* Year
 +* Awards
 +
 +Then, in each of the movies, you would specify terms for each of these taxonomies (i.e., in the [front matter][] of each of your movie content files). From these terms, Hugo would automatically create pages for each Actor, Director, Studio, Genre, Year, and Award, with each listing all of the Movies that matched that specific Actor, Director, Studio, Genre, Year, and Award.
 +
 +### Movie Taxonomy Organization
 +
 +To continue with the example of a movie site, the following demonstrates content relationships from the perspective of the taxonomy:
 +
- ```
++```txt
 +Actor                    <- Taxonomy
 +    Bruce Willis         <- Term
 +        The Sixth Sense  <- Value
 +        Unbreakable      <- Value
 +        Moonrise Kingdom <- Value
 +    Samuel L. Jackson    <- Term
 +        Unbreakable      <- Value
 +        The Avengers     <- Value
 +        xXx              <- Value
 +```
 +
 +From the perspective of the content, the relationships would appear differently, although the data and labels used are the same:
 +
- {{< new-in "0.73.0" >}} We have fixed the before confusing page kinds used for taxonomies (see the listing below) to be in line with the terms used when we talk about taxonomies. We have been careful to avoid site breakage, and you should get an ERROR in the console if you need to adjust your `disableKinds` section.
++```txt
 +Unbreakable                 <- Value
 +    Actors                  <- Taxonomy
 +        Bruce Willis        <- Term
 +        Samuel L. Jackson   <- Term
 +    Director                <- Taxonomy
 +        M. Night Shyamalan  <- Term
 +    ...
 +Moonrise Kingdom            <- Value
 +    Actors                  <- Taxonomy
 +        Bruce Willis        <- Term
 +        Bill Murray         <- Term
 +    Director                <- Taxonomy
 +        Wes Anderson        <- Term
 +    ...
 +```
 +
 +## Hugo Taxonomy Defaults {#default-taxonomies}
 +
 +Hugo natively supports taxonomies.
 +
 +Without adding a single line to your [site config][config] file, Hugo will automatically create taxonomies for `tags` and `categories`. That would be the same as manually [configuring your taxonomies](#configure-taxonomies) as below:
 +
 +{{< code-toggle copy="false" >}}
 +[taxonomies]
 +  tag = "tags"
 +  category = "categories"
 +{{</ code-toggle >}}
 +
 +If you do not want Hugo to create any taxonomies, set `disableKinds` in your [site config][config] to the following:
 +
 +{{< code-toggle copy="false" >}}
 +disableKinds = ["taxonomy","term"]
 +{{</ code-toggle >}}
 +
- Custom taxonomies other than the [defaults](#default-taxonomies) must be defined in your [site config][config] before they can be used throughout the site. You need to provide both the plural and singular labels for each taxonomy. For example, `singular key = "plural value"` for TOML and `singular key: "plural value"` for YAML.
 +{{% page-kinds %}}
 +
 +### Default Destinations
 +
 +When taxonomies are used---and [taxonomy templates][] are provided---Hugo will automatically create both a page listing all the taxonomy's terms and individual pages with lists of content associated with each term. For example, a `categories` taxonomy declared in your configuration and used in your content front matter will create the following pages:
 +
 +* A single page at `example.com/categories/` that lists all the [terms within the taxonomy][]
 +* [Individual taxonomy list pages][taxonomy templates] (e.g., `/categories/development/`) for each of the terms that shows a listing of all pages marked as part of that taxonomy within any content file's [front matter][]
 +
 +## Configure Taxonomies
 +
- If you want to disable all taxonomies altogether, see the use of `disableKinds` in [Hugo Taxonomy Defaults](#default-taxonomies).
++Custom taxonomies other than the [defaults]({{< relref "taxonomies.md#default-taxonomies" >}}) must be defined in your [site config][config] before they can be used throughout the site. You need to provide both the plural and singular labels for each taxonomy. For example, `singular key = "plural value"` for TOML and `singular key: "plural value"` for YAML.
 +
 +### Example: Adding a custom taxonomy named "series"
 +
 +{{% note %}}
 +While adding custom taxonomies, you need to put in the default taxonomies too, _if you want to keep them_.
 +{{% /note %}}
 +
 +{{< code-toggle copy="false" >}}
 +[taxonomies]
 +  tag = "tags"
 +  category = "categories"
 +  series = "series"
 +{{</ code-toggle >}}
 +
 +### Example: Removing default taxonomies
 +
 +If you want to have just the default `tags` taxonomy, and remove the `categories` taxonomy for your site, you can do so by modifying the `taxonomies` value in your [site config][config].
 +
 +{{< code-toggle copy="false" >}}
 +[taxonomies]
 +  tag = "tags"
 +{{</ code-toggle >}}
 +
- The following TOML and YAML examples show a piece of content that has a weight of 22, which can be used for ordering purposes when rendering the pages assigned to the "a", "b" and "c" values of the `tags` taxonomy. It has also been assigned the weight of 44 when rendering the "d" category page.
++If you want to disable all taxonomies altogether, see the use of `disableKinds` in [Hugo Taxonomy Defaults]({{< relref "taxonomies.md#default-taxonomies" >}}).
 +
 +{{% note %}}
 +You can add content and front matter to your taxonomy list and taxonomy terms pages. See [Content Organization](/content-management/organization/) for more information on how to add an `_index.md` for this purpose.
 +
 +Much like regular pages, taxonomy list [permalinks](/content-management/urls/) are configurable, but taxonomy term page permalinks are not.
 +{{% /note %}}
 +
 +{{% warning %}}
 +The configuration option `preserveTaxonomyNames` was removed in Hugo 0.55.
 +
 +You can now use `.Page.Title` on the relevant taxonomy node to get the original value.
 +{{% /warning %}}
 +
 +## Add Taxonomies to Content
 +
 +Once a taxonomy is defined at the site level, any piece of content can be assigned to it, regardless of [content type][] or [content section][].
 +
 +Assigning content to a taxonomy is done in the [front matter][]. Simply create a variable with the *plural* name of the taxonomy and assign all terms you want to apply to the instance of the content type.
 +
 +{{% note %}}
 +If you would like the ability to quickly generate content files with preconfigured taxonomies or terms, read the docs on [Hugo archetypes](/content-management/archetypes/).
 +{{% /note %}}
 +
 +### Example: Front Matter with Taxonomies
 +
 +{{< code-toggle copy="false">}}
 +title = "Hugo: A fast and flexible static site generator"
 +tags = [ "Development", "Go", "fast", "Blogging" ]
 +categories = [ "Development" ]
 +series = [ "Go Web Dev" ]
 +slug = "hugo"
 +project_url = "https://github.com/gohugoio/hugo"
 +{{</ code-toggle >}}
 +
 +## Order Taxonomies
 +
 +A content file can assign weight for each of its associate taxonomies. Taxonomic weight can be used for sorting or ordering content in [taxonomy list templates][] and is declared in a content file's [front matter][]. The convention for declaring taxonomic weight is `taxonomyname_weight`.
 +
- If you need to add custom metadata to your taxonomy terms, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in it's front matter. Continuing with our 'Actors' example, let's say you want to add a Wikipedia page link to each actor. Your terms pages would be something like this:
++The following show a piece of content that has a weight of 22, which can be used for ordering purposes when rendering the pages assigned to the "a", "b" and "c" values of the `tags` taxonomy. It has also been assigned the weight of 44 when rendering the "d" category page.
 +
 +### Example: Taxonomic `weight`
 +
 +{{< code-toggle copy="false" >}}
 +title = "foo"
 +tags = [ "a", "b", "c" ]
 +tags_weight = 22
 +categories = ["d"]
 +categories_weight = 44
 +{{</ code-toggle >}}
 +
 +By using taxonomic weight, the same piece of content can appear in different positions in different taxonomies.
 +
 +{{% note "Limits to Ordering Taxonomies" %}}
 +Currently taxonomies only support the [default `weight => date` ordering of list content](/templates/lists/#default-weight--date--linktitle--filepath). For more information, see the documentation on [taxonomy templates](/templates/taxonomy-templates/).
 +{{% /note %}}
 +
 +## Add custom metadata to a Taxonomy or Term
 +
++If you need to add custom metadata to your taxonomy terms, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in its front matter. Continuing with our 'Actors' example, let's say you want to add a Wikipedia page link to each actor. Your terms pages would be something like this:
 +
 +{{< code file="/content/actors/bruce-willis/_index.md" >}}
 +---
 +title: "Bruce Willis"
 +wikipedia: "https://en.wikipedia.org/wiki/Bruce_Willis"
 +---
 +{{< /code >}}
 +
 +
 +[`urlize` template function]: /functions/urlize/
 +[content section]: /content-management/sections/
 +[content type]: /content-management/types/
 +[documentation on archetypes]: /content-management/archetypes/
 +[front matter]: /content-management/front-matter/
 +[taxonomy list templates]: /templates/taxonomy-templates/#taxonomy-list-templates
 +[taxonomy templates]: /templates/taxonomy-templates/
 +[terms within the taxonomy]: /templates/taxonomy-templates/#taxonomy-terms-templates "See how to order terms associated with a taxonomy"
 +[config]: /getting-started/configuration/
index 57228ba50f182068091063aeb3656b32ebbc5afd,0000000000000000000000000000000000000000..6cb8e55bffbc6495682959c144c636806dedb9cd
mode 100644,000000..100644
--- /dev/null
@@@ -1,121 -1,0 +1,117 @@@
- linktitle:
 +---
 +title: Table of Contents
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
++linkTitle: Table of Contents
 +description: Hugo can automatically parse Markdown content and create a Table of Contents you can use in your templates.
-     parent: "content-management"
-     weight: 130
- weight: 130   #rem
- draft: false
- aliases: [/extras/toc/]
 +categories: [content management]
 +keywords: [table of contents, toc]
 +menu:
 +  docs:
- Create your markdown the way you normally would with the appropriate headings. Here is some example content:
++    parent: content-management
++    weight: 210
 +toc: true
++weight: 210
++aliases: [/extras/toc/]
 +---
 +
 +{{% note "TOC Heading Levels are Fixed" %}}
 +
 +Previously, there was no out-of-the-box way to specify which heading levels you want the TOC to render. [See the related GitHub discussion (#1778)](https://github.com/gohugoio/hugo/issues/1778). As such, the resulting `<nav id="TableOfContents"><ul></ul></nav>` was going to start at `<h1>` when pulling from `{{.Content}}`.
 +
 +Hugo [v0.60.0](https://github.com/gohugoio/hugo/releases/tag/v0.60.0) made a switch to [Goldmark](https://github.com/yuin/goldmark/) as the default library for Markdown which has improved and configurable implementation of TOC. Take a look at [how to configure TOC](/getting-started/configuration-markup/#table-of-contents) for Goldmark renderer.
 +
 +{{% /note %}}
 +
 +## Usage
 +
- ```
++Create your Markdown the way you normally would with the appropriate headings. Here is some example content:
 +
++```md
 +<!-- Your front matter up here -->
 +
 +## Introduction
 +
 +One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin.
 +
 +## My Heading
 +
 +He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment.
 +
 +### My Subheading
 +
 +A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. Drops
 +```
 +
 +Hugo will take this Markdown and create a table of contents from `## Introduction`, `## My Heading`, and `### My Subheading` and then store it in the [page variable][pagevars]`.TableOfContents`.
 +
 +The built-in `.TableOfContents` variables outputs a `<nav id="TableOfContents">` element with a child `<ul>`, whose child `<li>` elements begin with appropriate HTML headings. See [the available settings](/getting-started/configuration-markup/#table-of-contents) to configure what heading levels you want to include in TOC.
 +
 +## Template Example: Basic TOC
 +
 +The following is an example of a very basic [single page template][]:
 +
 +{{< code file="layout/_default/single.html" download="single.html" >}}
 +{{ define "main" }}
 +<main>
 +    <article>
 +    <header>
 +        <h1>{{ .Title }}</h1>
 +    </header>
 +        {{ .Content }}
 +    </article>
 +    <aside>
 +        {{ .TableOfContents }}
 +    </aside>
 +</main>
 +{{ end }}
 +{{< /code >}}
 +
 +## Template Example: TOC Partial
 +
 +The following is a [partial template][partials] that adds slightly more logic for page-level control over your table of contents. It assumes you are using a `toc` field in your content's [front matter][] that, unless specifically set to `false`, will add a TOC to any page with a `.WordCount` (see [Page Variables][pagevars]) greater than 400. This example also demonstrates how to use [conditionals][] in your templating:
 +
 +{{< code file="layouts/partials/toc.html" download="toc.html" >}}
 +{{ if and (gt .WordCount 400 ) (.Params.toc) }}
 +<aside>
 +    <header>
 +    <h2>{{.Title}}</h2>
 +    </header>
 +    {{.TableOfContents}}
 +</aside>
 +{{ end }}
 +{{< /code >}}
 +
 +{{% note %}}
 +With the preceding example, even pages with > 400 words *and* `toc` not set to `false` will not render a table of contents if there are no headings in the page for the `{{.TableOfContents}}` variable to pull from.
 +{{% /note %}}
 +
 +## Usage with AsciiDoc
 +
 +Hugo supports table of contents with AsciiDoc content format.
 +
 +In the header of your content file, specify the AsciiDoc TOC directives necessary to ensure that the table of contents is generated. Hugo will use the generated TOC to populate the page variable `.TableOfContents` in the same way as described for Markdown. See example below:
 +
 +```asciidoc
 +// <!-- Your front matter up here -->
 +:toc:
 +// Set toclevels to be at least your hugo [markup.tableOfContents.endLevel] config key
 +:toclevels: 4
 +
 +== Introduction
 +
 +One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin.
 +
 +== My Heading
 +
 +He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment.
 +
 +=== My Subheading
 +
 +A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. Drops
 +```
 +Hugo will take this AsciiDoc and create a table of contents store it in the page variable `.TableOfContents`, in the same as described for Markdown.
 +
 +[conditionals]: /templates/introduction/#conditionals
 +[front matter]: /content-management/front-matter/
 +[pagevars]: /variables/page/
 +[partials]: /templates/partials/
 +[single page template]: /templates/single-page-templates/
index da45302a7051d65d6086bb5b06a7349e37ef2f60,0000000000000000000000000000000000000000..8ad0d7f6c142007bd35c255c349526c21c0cba58
mode 100644,000000..100644
--- /dev/null
@@@ -1,24 -1,0 +1,21 @@@
- date: 2017-02-01
 +---
 +title: Content Types
++linkTitle: Content Types
 +description: Hugo is built around content organized in sections.
- keywords: [lists,sections,content types,types,organization]
 +categories: [content management]
-     parent: "content-management"
-     weight: 60
- weight: 60    #rem
- draft: false
- aliases: [/content/types]
++keywords: [lists, sections, content types, types, organization]
 +menu:
 +  docs:
- * Determine how the content is rendered. See [Template Lookup Order](/templates/lookup-order/) and [Content Views](https://gohugo.io/templates/views) for more.
- * Determine which [archetype](/content-management/archetypes/) template to use for new content.
++    parent: content-management
++    weight: 130
 +toc: true
++weight: 130
++aliases: [/content/types]
 +---
 +
 +A **content type** is a way to organize your content. Hugo resolves the content type from either the `type` in front matter or, if not set, the first directory in the file path. E.g. `content/blog/my-first-event.md` will be of type `blog` if no `type` is set.
 +
 +A content type is used to
 +
++- Determine how the content is rendered. See [Template Lookup Order](/templates/lookup-order/) and [Content Views](https://gohugo.io/templates/views) for more.
++- Determine which [archetype](/content-management/archetypes/) template to use for new content.
index 774bd9a58522c5e3d288175d34f9e93d3e37b0e4,0000000000000000000000000000000000000000..70ec34ab2a3bfc239ee3a21c1e9d90034f7cdfdc
mode 100644,000000..100644
--- /dev/null
@@@ -1,317 -1,0 +1,311 @@@
- linktitle: URL Management
 +---
 +title: URL Management
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-03-09
- keywords: [aliases,redirects,permalinks,urls]
++linkTitle: URL Management
 +description: Hugo supports permalinks, aliases, link canonicalization, and multiple options for handling relative vs absolute URLs.
-     parent: "content-management"
-     weight: 110
- weight: 110   #rem
- draft: false
- aliases: [/extras/permalinks/,/extras/aliases/,/extras/urls/,/doc/redirects/,/doc/alias/,/doc/aliases/]
 +categories: [content management]
++keywords: [aliases,redirects,permalinks,urls]
 +menu:
 +  docs:
- If the standard date-based permalink configuration does not meet your needs, you can also format URL segments using [Go time formatting directives](https://golang.org/pkg/time/#Time.Format). For example, a URL structure with two digit years and month and day digits without zero padding can be accomplished with:
++    parent: content-management
++    weight: 180
 +toc: true
++weight: 180
++aliases: [/extras/permalinks/,/extras/aliases/,/extras/urls/,/doc/redirects/,/doc/alias/,/doc/aliases/]
 +---
 +
 +## Permalinks
 +
 +The default Hugo target directory for your built website is `public/`. However, you can change this value by specifying a different `publishDir` in your [site configuration][config]. The directories created at build time for a section reflect the position of the content's directory within the `content` folder and namespace matching its layout within the `contentdir` hierarchy.
 +
 +The `permalinks` option in your [site configuration][config] allows you to adjust the directory paths (i.e., the URLs) on a per-section basis. This will change where the files are written to and will change the page's internal "canonical" location, such that template references to `.RelPermalink` will honor the adjustments made as a result of the mappings in this option.
 +
 +{{% note "Default Publish and Content Folders" %}}
 +These examples use the default values for `publishDir` and `contentDir`; i.e., `public` and `content`, respectively. You can override the default values in your [site's `config` file](/getting-started/configuration/).
 +{{% /note %}}
 +
 +For example, if one of your [sections][] is called `posts` and you want to adjust the canonical path to be hierarchical based on the year, month, and post title, you could set up the following configurations in YAML and TOML, respectively.
 +
 +### Permalinks Configuration Example
 +
 +{{< code-toggle file="config" copy="false" >}}
 +permalinks:
 +  posts: /:year/:month/:title/
 +{{< /code-toggle >}}
 +
 +Only the content under `posts/` will have the new URL structure. For example, the file `content/posts/sample-entry.md` with `date: 2017-02-27T19:20:00-05:00` in its front matter will render to `public/2017/02/sample-entry/index.html` at build time and therefore be reachable at `https://example.com/2017/02/sample-entry/`.
 +
 +To configure the `permalinks` option for pages in the "root" section, use **/** as the key:
 +
 +{{< code-toggle file="config" copy="false" >}}
 +permalinks:
 +  /: /:year/:month/:filename/
 +{{< /code-toggle >}}
 +
- : the content's sections hierarchy. {{< new-in "0.83.0" >}} Since Hugo 0.83 you can use a selection of the sections using _slice syntax_: `:sections[1:]` includes all but the first, `:sections[:last]` includes all but the last, `:sections[last]` includes only the last, `:sections[1:2]` includes section 2 and 3. Note that this slice access will not throw any out-of-bounds errors, so you don't have to be exact.
++If the standard date-based permalink configuration does not meet your needs, you can also format URL segments using [Go time formatting directives](https://pkg.go.dev/time#Time.Format). For example, a URL structure with two digit years and month and day digits without zero padding can be accomplished with:
 +
 +{{< code-toggle file="config" copy="false" >}}
 +permalinks:
 +  posts: /:06/:1/:2/:title/
 +{{< /code-toggle >}}
 +
 +You can also configure permalinks of taxonomies with the same syntax, by using the plural form of the taxonomy instead of the section. You will probably only want to use the configuration values `:slug` or `:title`.
 +
 +### Permalink Configuration Values
 +
 +The following is a list of values that can be used in a `permalink` definition in your site `config` file. All references to time are dependent on the content's date.
 +
 +`:year`
 +: the 4-digit year
 +
 +`:month`
 +: the 2-digit month
 +
 +`:monthname`
 +: the name of the month
 +
 +`:day`
 +: the 2-digit day
 +
 +`:weekday`
 +: the 1-digit day of the week (Sunday = 0)
 +
 +`:weekdayname`
 +: the name of the day of the week
 +
 +`:yearday`
 +: the 1- to 3-digit day of the year
 +
 +`:section`
 +: the content's section
 +
 +`:sections`
- Now when you visit any of the locations specified in aliases---i.e., *assuming the same site domain*---you'll be redirected to the page they are specified on. For example, a visitor to `example.com/posts/my-original-url/` will be immediately redirected to `example.com/posts/my-awesome-post/`.
++: the content's sections hierarchy. Uou can use a selection of the sections using _slice syntax_: `:sections[1:]` includes all but the first, `:sections[:last]` includes all but the last, `:sections[last]` includes only the last, `:sections[1:2]` includes section 2 and 3. Note that this slice access will not throw any out-of-bounds errors, so you don't have to be exact.
 +
 +`:title`
 +: the content's title
 +
 +`:slug`
 +: the content's slug (or title if no slug is provided in the front matter)
 +
 +`:slugorfilename`
 +: the content's slug (or filename if no slug is provided in the front matter)
 +
 +`:filename`
 +: the content's filename (without extension)
 +
 +Additionally, a Go time format string prefixed with `:` may be used.
 +
 +## Aliases
 +
 +Aliases can be used to create redirects to your page from other URLs.
 +
 +Aliases comes in two forms:
 +
 +1. Starting with a `/` meaning they are relative to the `BaseURL`, e.g. `/posts/my-blogpost/`
 +2. They are relative to the `Page` they're defined in, e.g. `my-blogpost` or even something like `../blog/my-blogpost` (new in Hugo 0.55).
 +
 +### Example: Aliases
 +
 +Let's assume you create a new piece of content at `content/posts/my-awesome-blog-post.md`. The content is a revision of your previous post at `content/posts/my-original-url.md`. You can create an `aliases` field in the front matter of your new `my-awesome-blog-post.md` where you can add previous paths. The following examples show how to create this field in TOML and YAML front matter, respectively.
 +
 +#### TOML Front Matter
 +
 +{{< code file="content/posts/my-awesome-post.md" copy="false" >}}
 ++++
 +aliases = [
 +    "/posts/my-original-url/",
 +    "/2010/01/01/even-earlier-url.html"
 +]
 ++++
 +{{< /code >}}
 +
 +#### YAML Front Matter
 +
 +{{< code file="content/posts/my-awesome-post.md" copy="false" >}}
 +---
 +aliases:
 +    - /posts/my-original-url/
 +    - /2010/01/01/even-earlier-url.html
 +---
 +{{< /code >}}
 +
- ```
++Now when you visit any of the locations specified in aliases---i.e., _assuming the same site domain_---you'll be redirected to the page they are specified on. For example, a visitor to `example.com/posts/my-original-url/` will be immediately redirected to `example.com/posts/my-awesome-post/`.
 +
 +### Example: Aliases in Multilingual
 +
 +On [multilingual sites][multilingual], each translation of a post can have unique aliases. To use the same alias across multiple languages, prefix it with the language code.
 +
 +In `/posts/my-new-post.es.md`:
 +
- From Hugo 0.55 you can also have page-relative aliases, so ` /es/posts/my-original-post/` can be simplified to the more portable `my-original-post/`
++```md
 +---
 +aliases:
 +    - /es/posts/my-original-post/
 +---
 +```
 +
- ```
++From Hugo 0.55 you can also have page-relative aliases, so `/es/posts/my-original-post/` can be simplified to the more portable `my-original-post/`
 +
 +### How Hugo Aliases Work
 +
 +When aliases are specified, Hugo creates a directory to match the alias entry. Inside the directory, Hugo creates an `.html` file specifying the canonical URL for the page and the new redirect target.
 +
 +For example, a content file at `posts/my-intended-url.md` with the following in the front matter:
 +
- ```
++```yml
 +---
 +title: My New post
 +aliases: [/posts/my-old-url/]
 +---
 +```
 +
 +Assuming a `baseURL` of `example.com`, the contents of the auto-generated alias `.html` found at `https://example.com/posts/my-old-url/` will contain the following:
 +
- ```
++```html
 +<!DOCTYPE html>
 +<html>
 +  <head>
 +    <title>https://example.com/posts/my-intended-url</title>
 +    <link rel="canonical" href="https://example.com/posts/my-intended-url"/>
 +    <meta name="robots" content="noindex">
 +    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
 +    <meta http-equiv="refresh" content="0; url=https://example.com/posts/my-intended-url"/>
 +  </head>
 +</html>
 +```
 +
 +The `http-equiv="refresh"` line is what performs the redirect, in 0 seconds in this case. If an end user of your website goes to `https://example.com/posts/my-old-url`, they will now be automatically redirected to the newer, correct URL. The addition of `<meta name="robots" content="noindex">` lets search engine bots know that they should not index your alias page (`https://example.com/posts/my-old-url/`).
 +
 +### Customize
 +
 +You may customize this alias page by creating an `alias.html` template in the
 +layouts folder of your site (i.e., `layouts/alias.html`). In this case, the data passed to the template is
 +
 +`Permalink`
 +: the link to the page being aliased
 +
 +`Page`
 +: the Page data for the page being aliased
 +
 +### Important Behaviors of Aliases
 +
 +1. Hugo makes no assumptions about aliases. They also do not change based
 +on your UglyURLs setting. You need to provide absolute paths to your web root
 +and the complete filename or directory.
 +2. Aliases are rendered *before* any content are rendered and therefore will be overwritten by any content with the same location.
 +
 +## Pretty URLs
 +
 +Hugo's default behavior is to render your content with "pretty" URLs. No non-standard server-side configuration is required for these pretty URLs to work.
 +
 +The following demonstrates the concept:
 +
- ```
++```txt
 +content/posts/_index.md
 +=> example.com/posts/
 +content/posts/post-1.md
 +=> example.com/posts/post-1/
 +```
 +
 +## Ugly URLs
 +
 +If you would like to have what are often referred to as "ugly URLs" (e.g., example.com/urls.html), set `uglyurls = true` or `uglyurls: true` in your site's `config.toml` or `config.yaml`, respectively. You can also set the `HUGO_UGLYURLS` environment variable to `true` when running `hugo` or `hugo server`.
 +
 +If you want a specific piece of content to have an exact URL, you can specify this in the [front matter][] under the `url` key. The following are examples of the same content directory and what the eventual URL structure will be when Hugo runs with its default behavior.
 +
 +See [Content Organization][contentorg] for more details on paths.
 +
- ```
++```txt
 +.
 +└── content
 +    └── about
 +    |   └── _index.md  // <- https://example.com/about/
 +    ├── posts
 +    |   ├── firstpost.md   // <- https://example.com/posts/firstpost/
 +    |   ├── happy
 +    |   |   └── ness.md  // <- https://example.com/posts/happy/ness/
 +    |   └── secondpost.md  // <- https://example.com/posts/secondpost/
 +    └── quote
 +        ├── first.md       // <- https://example.com/quote/first/
 +        └── second.md      // <- https://example.com/quote/second/
 +```
 +
 +Here's the same organization run with `hugo --uglyURLs`:
 +
++```txt
 +.
 +└── content
 +    └── about
 +    |   └── _index.md  // <- https://example.com/about.html
 +    ├── posts
 +    |   ├── firstpost.md   // <- https://example.com/posts/firstpost.html
 +    |   ├── happy
 +    |   |   └── ness.md    // <- https://example.com/posts/happy/ness.html
 +    |   └── secondpost.md  // <- https://example.com/posts/secondpost.html
 +    └── quote
 +        ├── first.md       // <- https://example.com/quote/first.html
 +        └── second.md      // <- https://example.com/quote/second.html
 +```
 +
- ```
 +## Canonicalization
 +
 +By default, all relative URLs encountered in the input are left unmodified, e.g. `/css/foo.css` would stay as `/css/foo.css`. The `canonifyURLs` field in your site `config` has a default value of `false`.
 +
 +By setting `canonifyURLs` to `true`, all relative URLs would instead be *canonicalized* using `baseURL`.  For example, assuming you have `baseURL = https://example.com/`, the relative URL `/css/foo.css` would be turned into the absolute URL `https://example.com/css/foo.css`.
 +
 +Benefits of canonicalization include fixing all URLs to be absolute, which may aid with some parsing tasks. Note, however, that all modern browsers handle this on the client without issue.
 +
 +Benefits of non-canonicalization include being able to have scheme-relative resource inclusion; e.g., so that `http` vs `https` can be decided according to how the page was retrieved.
 +
 +{{% note "`canonifyURLs` default change" %}}
 +In the May 2014 release of Hugo v0.11, the default value of `canonifyURLs` was switched from `true` to `false`, which we think is the better default and should continue to be the case going forward. Please verify and adjust your website accordingly if you are upgrading from v0.10 or older versions.
 +{{% /note %}}
 +
 +To find out the current value of `canonifyURLs` for your website, you may use the handy `hugo config` command added in v0.13.
 +
- ```
++```txt
 +hugo config | grep -i canon
 +```
 +
 +Or, if you are on Windows and do not have `grep` installed:
 +
++```txt
 +hugo config | FINDSTR /I canon
 +```
 +
 +## Set URL in Front Matter
 +
 +In addition to specifying permalink values in your site configuration for different content sections, Hugo provides even more granular control for individual pieces of content.
 +
 +Both `slug` and `url` can be defined in individual front matter. For more information on content destinations at build time, see [Content Organization][contentorg].
 +
 +From Hugo 0.55, you can use URLs relative to the current site context (the language), which makes it simpler to maintain. For a Japanese translation, both of the following examples would get the same URL:
 +
 +```markdown
 +---
 +title: "Custom URL!"
 +url: "/jp/custom/foo"
 +---
 +```
 +
 +```markdown
 +---
 +title: "Custom URL!"
 +url: "custom/foo"
 +---
 +```
 +
 +## Relative URLs
 +
 +By default, all relative URLs are left unchanged by Hugo, which can be problematic when you want to make your site browsable from a local file system.
 +
 +Setting `relativeURLs` to `true` in your [site configuration][config] will cause Hugo to rewrite all relative URLs to be relative to the current content.
 +
 +For example, if your `/posts/first/` page contains a link to `/about/`, Hugo will rewrite the URL to `../../about/`.
 +
 +[config]: /getting-started/configuration/
 +[contentorg]: /content-management/organization/
 +[front matter]: /content-management/front-matter/
 +[multilingual]: /content-management/multilingual/
 +[sections]: /content-management/sections/
 +[usage]: /getting-started/usage/
index 16489772e598af249a7e255be3afcce9ceee5c24,0000000000000000000000000000000000000000..dfdf60ddb82c4f9f37416531a37ae3d68d227ef6
mode 100644,000000..100644
--- /dev/null
@@@ -1,434 -1,0 +1,432 @@@
- lastmod: 2017-02-01
 +---
 +title: Contribute to Hugo Development
 +linktitle: Development
 +description: Hugo relies heavily on contributions from the open source community.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [contribute]
 +keywords: [dev,open source]
 +authors: [digitalcraftsman]
 +menu:
 +  docs:
 +    parent: "contribute"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
- ```
 +toc: true
 +---
 +
 +## Introduction
 +
 +Hugo is an open-source project and lives by the work of its [contributors][]. There are plenty of [open issues][issues], and we need your help to make Hugo even more awesome. You don't need to be a Go guru to contribute to the project's development.
 +
 +## Assumptions
 +
 +This contribution guide takes a step-by-step approach in hopes of helping newcomers. Therefore, we only assume the following:
 +
 +* You are new to Git or open-source projects in general
 +* You are a fan of Hugo and enthusiastic about contributing to the project
 +
 +{{% note "Additional Questions?" %}}
 +If you're struggling at any point in this contribution guide, reach out to the Hugo community in [Hugo's Discussion forum](https://discourse.gohugo.io).
 +{{% /note %}}
 +
 +## Install Go
 +
 +The installation of Go should take only a few minutes. You have more than one option to get Go up and running on your machine.
 +
 +If you are having trouble following the installation guides for Go, check out [Go Bootcamp, which contains setups for every platform][gobootcamp] or reach out to the Hugo community in the [Hugo Discussion Forums][forums].
 +
 +### Install Go From Source
 +
 +[Download the latest stable version of Go][godl] and follow the official [Go installation guide][goinstall].
 +
 +Once you're finished installing Go, let's confirm everything is working correctly. Open a terminal---or command line under Windows--and type the following:
 +
- ```
++```txt
 +go version
 +```
 +
 +You should see something similar to the following written to the console. Note that the version here reflects the most recent version of Go as of the last update for this page:
 +
- ```
++```txt
 +go version go1.12 darwin/amd64
 +```
 +
 +Next, make sure that you set up your `GOPATH` [as described in the installation guide][setupgopath].
 +
 +You can print the `GOPATH` with `echo $GOPATH`. You should see a non-empty string containing a valid path to your Go workspace; for example:
 +
- If you are a MacOS user and have [Homebrew](https://brew.sh/) installed on your machine, installing Go is as simple as the following command:
++```txt
 +/Users/<yourusername>/Code/go
 +```
 +
 +### Install Go with Homebrew
 +
- Go ships with a sub-command called `get` that will download these packages for us when we setup our working environment. The source code of the packages is tracked with Git. `get` will interact with the Git servers of the package hosters in order to fetch all dependencies.
++If you are a macOS user and have [Homebrew](https://brew.sh/) installed on your machine, installing Go is as simple as the following command:
 +
 +{{< code file="install-go.sh" >}}
 +brew install go
 +{{< /code >}}
 +
 +### Install Go via GVM
 +
 +More experienced users can use the [Go Version Manager][gvm] (GVM). GVM allows you to switch between different Go versions *on the same machine*. If you're a beginner, you probably don't need this feature. However, GVM makes it easy to upgrade to a new released Go version with just a few commands.
 +
 +GVM comes in especially handy if you follow the development of Hugo over a longer period of time. Future versions of Hugo will usually be compiled with the latest version of Go. Sooner or later, you will have to upgrade if you want to keep up.
 +
 +## Create a GitHub Account
 +
 +If you're going to contribute code, you'll need to have an account on GitHub. Go to [www.github.com/join](https://github.com/join) and set up a personal account.
 +
 +## Install Git on Your System
 +
 +You will need to have Git installed on your computer to contribute to Hugo development. Teaching Git is outside the scope of the Hugo docs, but if you're looking for an excellent reference to learn the basics of Git, we recommend the [Git book][gitbook] if you are not sure where to begin. We will include short explanations of the Git commands in this document.
 +
 +Git is a [version control system](https://en.wikipedia.org/wiki/Version_control) to track the changes of source code. Hugo depends on smaller third-party packages that are used to extend the functionality. We use them because we don't want to reinvent the wheel.
 +
- There are several [GUI clients](https://git-scm.com/downloads/guis) that help you to operate Git. Not all are available for all operating systems and maybe differ in their usage. Because of this we will document how to use the command line, since the commands are the same everywhere.
++Go ships with a sub-command called `get` that will download these packages for us when we set up our working environment. The source code of the packages is tracked with Git. `get` will interact with the Git servers of the package hosters in order to fetch all dependencies.
 +
 +Move back to the terminal and check if Git is already installed. Type in `git version` and press enter. You can skip the rest of this section if the command returned a version number. Otherwise [download](https://git-scm.com/downloads) the latest version of Git and follow this [installation guide](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
 +
 +Finally, check again with `git version` if Git was installed successfully.
 +
 +### Git Graphical Front Ends
 +
- ```
++There are several [GUI clients](https://git-scm.com/downloads/guis) that help you to operate Git. Not all are available for all operating systems and maybe differ in their usage. Because of this we will document how to use the command-line, since the commands are the same everywhere.
 +
 +### Install Hub on Your System (Optional)
 +
 +Hub is a great tool for working with GitHub. The main site for it is [hub.github.com](https://hub.github.com/). Feel free to install this little Git wrapper.
 +
 +On a Mac, you can install [Hub](https://github.com/github/hub) using [Homebrew](https://brew.sh):
 +
- ```
++```txt
 +brew install hub
 +```
 +
 +Now we'll create an [alias in Bash](https://tldp.org/LDP/abs/html/aliases.html) so that typing `git` actually runs `Hub`:
 +
- ```
++```txt
 +echo "alias git='hub'" >> ~/.bash_profile
 +```
 +
 +Confirm the installation:
 +
- ```
++```txt
 +git version 2.21.0
 +hub version 2.10.0
 +```
 +
 +## Set up your working copy
 +
 +You set up the working copy of the repository locally on your computer. Your local copy of the files is what you'll edit, compile, and end up pushing back to GitHub. The main steps are cloning the repository and creating your fork as a remote.
 +
 +### Clone the repository
 +
 +We assume that you've set up your `GOPATH` (see the section above if you're unsure about this). You should now copy the Hugo repository down to your computer. You'll hear this called "clone the repo". GitHub's [help pages](https://help.github.com/articles/cloning-a-repository/) give us a short explanation:
 +
 +> When you create a repository on GitHub, it exists as a remote repository. You can create a local clone of your repository on your computer and sync between the two locations.
 +
 +We're going to clone the [master Hugo repository](https://github.com/gohugoio/hugo). That seems counter-intuitive, since you won't have commit rights on it. But it's required for the Go workflow. You'll work on a copy of the master and push your changes to your own repository on GitHub.
 +
 +So, let's make a new directory and clone that master repository:
 +
- > Since Hugo 0.48, Hugo uses the Go Modules support built into Go 1.11 to build. 
++```txt
 +mkdir $HOME/src
 +cd $HOME/src
 +git clone https://github.com/gohugoio/hugo.git
 +```
 +
- ```
++> Since Hugo 0.48, Hugo uses the Go Modules support built into Go 1.11 to build.
 +> The easiest is to clone Hugo in a directory outside of GOPATH
 +
 +And then, install dependencies of Hugo by running the following in the cloned directory:
 +
++```txt
 +cd $HOME/src/hugo
 +go install
 +```
 +
- ```
 +Hugo relies on [mage](https://github.com/magefile/mage) for some convenient build and test targets. If you don't already have it, get it:
 +
- Now open your fork repository on GitHub and copy the remote url of your fork. You can choose between HTTPS and SSH as protocol that Git should use for the following operations. HTTPS works always [if you're not sure](https://help.github.com/articles/which-remote-url-should-i-use/).
++```txt
 +go install github.com/magefile/mage@latest
 +```
 +
 +### Fork the repository
 +
 +If you're not familiar with this term, GitHub's [help pages](https://help.github.com/articles/fork-a-repo/) provide again a simple explanation:
 +
 +> A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
 +
 +#### Fork by hand
 +
 +Open the [Hugo repository](https://github.com/gohugoio/hugo) on GitHub and click on the "Fork" button in the top right.
 +
 +![Fork button](/images/contribute/development/forking-a-repository.png)
 +
- ```
++Now open your fork repository on GitHub and copy the remote URL of your fork. You can choose between HTTPS and SSH as protocol that Git should use for the following operations. HTTPS works always [if you're not sure](https://help.github.com/articles/which-remote-url-should-i-use/).
 +
 +![Copy remote url](/images/contribute/development/copy-remote-url.png)
 +
 +Switch back to the terminal and move into the directory of the cloned master repository from the last step.
 +
- ```
++```txt
 +cd $HOME/src/hugo
 +```
 +
 +Now Git needs to know that our fork exists by adding the copied remote url:
 +
- ```
++```txt
 +git remote add <YOUR-GITHUB-USERNAME> <COPIED REMOTE-URL>
 +```
 +
 +#### Fork with Hub
 +
 +Alternatively, you can use the Git wrapper Hub. Hub makes forking a repository easy:
 +
- ```
++```txt
 +git fork
 +```
 +
 +That command will log in to GitHub using your account, create a fork of the repository that you're currently working in, and add it as a remote to your working copy.
 +
 +#### Trust, but verify
 +
 +Let's check if everything went right by listing all known remotes:
 +
- ```
++```txt
 +git remote -v
 +```
 +
 +The output should look similar:
 +
- ```
++```txt
 +digitalcraftsman    git@github.com:digitalcraftsman/hugo.git (fetch)
 +digitalcraftsman    git@github.com:digitalcraftsman/hugo.git (push)
 +origin  https://github.com/gohugoio/hugo (fetch)
 +origin  https://github.com/gohugoio/hugo (push)
 +```
 +
 +## The Hugo Git Contribution Workflow
 +
 +### Create a new branch
 +
 +You should never develop against the "master" branch. The development team will not accept a pull request against that branch. Instead, create a descriptive named branch and work on it.
 +
 +First, you should always pull the latest changes from the master repository:
 +
- ```
++```txt
 +git checkout master
 +git pull
 +```
 +
 +Now we can create a new branch for your additions:
 +
- ```
++```txt
 +git checkout -b <BRANCH-NAME>
 +```
 +
 +You can check on which branch you are with `git branch`. You should see a list of all local branches. The current branch is indicated with a little asterisk.
 +
 +### Contribute to Documentation
 +
 +Perhaps you want to start contributing to the Hugo docs. If so, you can ignore most of the following steps and focus on the `/docs` directory within your newly cloned repository. You can change directories into the Hugo docs using `cd docs`.
 +
 +You can start Hugo's built-in server via `hugo server`. Browse the documentation by entering [http://localhost:1313](http://localhost:1313) in the address bar of your browser. The server automatically updates the page whenever you change content.
 +
 +We have developed a [separate Hugo documentation contribution guide][docscontrib] for more information on how the Hugo docs are built, organized, and improved by the generosity of people like you.
 +
 +### Build Hugo
 +
 +While making changes in the codebase it's a good idea to build the binary to test them:
 +
- ```
++```txt
 +mage hugo
 +```
 +
 +This command generates the binary file at the root of the repository.
 +
 +If you want to install the binary in `$GOPATH/bin`, run
 +
- ### Test 
++```txt
 +mage install
 +```
 +
- Make sure the commands 
++### Test
++
 +Sometimes changes on the codebase can cause unintended side effects. Or they don't work as expected. Most functions have their own test cases. You can find them in files ending with `_test.go`.
 +
- ```
++Make sure the commands
 +
- ### Formatting 
- The Go code styleguide maybe is opinionated but it ensures that the codebase looks the same, regardless who wrote the code. Go comes with its own formatting tool. Let's apply the styleguide to our additions:
++```txt
 +mage -v check
 +```
 +
 +passes.
 +
- ```
++### Formatting
 +
- ```
++The Go code style guide maybe is opinionated but it ensures that the codebase looks the same, regardless who wrote the code. Go comes with its own formatting tool. Let's apply the style guide to our additions:
++
++```txt
 +mage fmt
 +```
 +
 +Once you made your additions commit your changes. Make sure that you follow our [code contribution guidelines](https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md):
 +
- ```
++```txt
 +# Add all changed files
 +git add --all
 +git commit --message "YOUR COMMIT MESSAGE"
 +```
 +
 +The commit message should describe what the commit does (e.g. add feature XYZ), not how it is done.
 +
 +### Modify commits
 +
 +You noticed some commit messages don't fulfill the code contribution guidelines or you just forget something to add some files? No problem. Git provides the necessary tools to fix such problems. The next two methods cover all common cases.
 +
 +If you are unsure what a command does leave the commit as it is. We can fix your commits later in the pull request.
 +
 +#### Modify the last commit
 +
 +Let's say you want to modify the last commit message. Run the following command and replace the current message:
 +
- ```
++```txt
 +git commit --amend -m"YOUR NEW COMMIT MESSAGE"
 +```
 +
 +Take a look at the commit log to see the change:
 +
- After making the last commit you may have forgot something. There is no need to create a new commit. Just add the latest changes and merge them into the intended commit:
++```txt
 +git log
 +# Exit with q
 +```
 +
- ```
++After making the last commit you may have forgotten something. There is no need to create a new commit. Just add the latest changes and merge them into the intended commit:
 +
- ```
++```txt
 +git add --all
 +git commit --amend
 +```
 +
 +#### Modify multiple commits
 +
 +{{% warning "Be Careful Modifying Multiple Commits"%}}
 +Modifications such as those described in this section can have serious unintended consequences. Skip this section if you're not sure!
 +{{% /warning %}}
 +
 +This is a bit more advanced. Git allows you to [rebase](https://git-scm.com/docs/git-rebase) commits interactively. In other words: it allows you to rewrite the commit history.
 +
- ```
++```txt
 +git rebase --interactive @~6
 +```
 +
 +The `6` at the end of the command represents the number of commits that should be modified. An editor should open and present a list of last six commit messages:
 +
- ```
++```txt
 +pick 80d02a1 tpl: Add hasPrefix to the template funcs' "smoke test"
 +pick aaee038 tpl: Sort the smoke tests
 +pick f0dbf2c tpl: Add the other test case for hasPrefix
 +pick 911c35b Add "How to contribute to Hugo" tutorial
 +pick 33c8973 Begin workflow
 +pick 3502f2e Refactoring and typo fixes
 +```
 +
 +In the case above we should merge the last two commits in the commit of this tutorial (`Add "How to contribute to Hugo" tutorial`). You can "squash" commits, i.e. merge two or more commits into a single one.
 +
 +All operations are written before the commit message. Replace "pick" with an operation. In this case `squash` or `s` for short:
 +
- ```
++```txt
 +pick 80d02a1 tpl: Add hasPrefix to the template funcs' "smoke test"
 +pick aaee038 tpl: Sort the smoke tests
 +pick f0dbf2c tpl: Add the other test case for hasPrefix
 +pick 911c35b Add "How to contribute to Hugo" tutorial
 +squash 33c8973 Begin workflow
 +squash 3502f2e Refactoring and typo fixes
 +```
 +
 +We also want to rewrite the commits message of the third last commit. We forgot "docs:" as prefix according to the code contribution guidelines. The operation to rewrite a commit is called `reword` (or `r` as shortcut).
 +
 +You should end up with a similar setup:
 +
- ```
++```txt
 +pick 80d02a1 tpl: Add hasPrefix to the template funcs' "smoke test"
 +pick aaee038 tpl: Sort the smoke tests
 +pick f0dbf2c tpl: Add the other test case for hasPrefix
 +reword 911c35b Add "How to contribute to Hugo" tutorial
 +squash 33c8973 Begin workflow
 +squash 3502f2e Refactoring and typo fixes
 +```
 +
 +Close the editor. It should open again with a new tab. A text is instructing you to define a new commit message for the last two commits that should be merged (aka "squashed"). Save the file with <kbd>CTRL</kbd>+<kbd>S</kbd> and close the editor again.
 +
 +A last time a new tab opens. Enter a new commit message and save again. Your terminal should contain a status message. Hopefully this one:
 +
- To push our commits to the fork on GitHub we need to specify a destination. A destination is defined by the remote and a branch name. Earlier, the defined that the remote url of our fork is the same as our GitHub handle, in my case `digitalcraftsman`. The branch should have the same as our local one. This makes it easy to identify corresponding branches.
++```txt
 +Successfully rebased and updated refs/heads/<BRANCHNAME>.
 +```
 +
 +Check the commit log if everything looks as expected. Should an error occur you can abort this rebase with `git rebase --abort`.
 +
 +### Push commits
 +
- ```
++To push our commits to the fork on GitHub we need to specify a destination. A destination is defined by the remote and a branch name. Earlier, the defined that the remote URL of our fork is the same as our GitHub handle, in my case `digitalcraftsman`. The branch should have the same as our local one. This makes it easy to identify corresponding branches.
 +
- We use a GitHub Actions workflow to build and test. This is a matrix build across combinations of operating system (masOS, Windows, and Ubuntu) and Go versions. The workflow is triggered by the submission of a pull request. If you are a first-time contributor, the workflow requires approval from a project maintainer.
++```txt
 +git push --set-upstream <YOUR-GITHUB-USERNAME> <BRANCHNAME>
 +```
 +
 +Now Git knows the destination. Next time when you to push commits you just need to enter `git push`.
 +
 +If you modified your commit history in the last step GitHub will reject your try to push. This is a safety-feature because the commit history isn't the same and new commits can't be appended as usual. You can enforce this push explicitly with `git push --force`.
 +
 +## Open a pull request
 +
 +We made a lot of progress. Good work. In this step we finally open a pull request to submit our additions. Open the [Hugo master repository](https://github.com/gohugoio/hugo/) on GitHub in your browser.
 +
 +You should find a green button labeled with "New pull request". But GitHub is clever and probably suggests you a pull request like in the beige box below:
 +
 +![Open a pull request](/images/contribute/development/open-pull-request.png)
 +
 +The new page summaries the most important information of your pull request. Scroll down and you find the additions of all your commits. Make sure everything looks as expected and click on "Create pull request".
 +
 +### Accept the contributor license agreement
 +
 +Last but not least you should accept the contributor license agreement (CLA). A new comment should be added automatically to your pull request. Click on the yellow badge, accept the agreement and authenticate yourself with your GitHub account. It just takes a few clicks and only needs to be done once.
 +
 +![Accept the CLA](/images/contribute/development/accept-cla.png)
 +
 +### Automatic builds
 +
++We use a GitHub Actions workflow to build and test. This is a matrix build across combinations of operating system (macOS, Windows, and Ubuntu) and Go versions. The workflow is triggered by the submission of a pull request. If you are a first-time contributor, the workflow requires approval from a project maintainer.
 +
 +## Where to start?
 +
 +Thank you for reading through this contribution guide. Hopefully, we will see you again soon on GitHub. There are plenty of [open issues][issues] for you to help with.
 +
 +Feel free to [open an issue][newissue] if you think you found a bug or you have a new idea to improve Hugo. We are happy to hear from you.
 +
 +## Additional References for Learning Git and Go
 +
 +* [Codecademy's Free "Learn Git" Course][codecademy] (Free)
 +* [Code School and GitHub's "Try Git" Tutorial][trygit] (Free)
 +* [The Git Book][gitbook] (Free)
 +* [Go Bootcamp][gobootcamp]
 +
- [godl]: https://golang.org/dl/
- [goinstall]: https://golang.org/doc/install
 +[codecademy]: https://www.codecademy.com/learn/learn-git
 +[contributors]: https://github.com/gohugoio/hugo/graphs/contributors
 +[docscontrib]: /contribute/documentation/
 +[forums]: https://discourse.gohugo.io
 +[gitbook]: https://git-scm.com/
 +[gobootcamp]: https://www.golangbootcamp.com/book/get_setup
- [setupgopath]: https://golang.org/doc/code.html#Workspaces
++[godl]: https://go.dev/dl/
++[goinstall]: https://go.dev/doc/install
 +[gvm]: https://github.com/moovweb/gvm
 +[issues]: https://github.com/gohugoio/hugo/issues
 +[newissue]: https://github.com/gohugoio/hugo/issues/new
 +[releases]: /getting-started/
++[setupgopath]: https://go.dev/doc/code#Workspaces
 +[trygit]: https://try.github.io/levels/1/challenges/1
index df937f1e1c03a7da0cfdd467e8826e97b70c7042,0000000000000000000000000000000000000000..93938738453312e9c8c35f617c36218dc7c6174c
mode 100644,000000..100644
--- /dev/null
@@@ -1,334 -1,0 +1,331 @@@
- lastmod: 2017-02-01
 +---
 +title: Contribute to the Hugo Docs
 +linktitle: Documentation
 +description: Documentation is an integral part of any open source project. The Hugo docs are as much a work in progress as the source it attempts to cover.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [contribute]
 +keywords: [docs,documentation,community, contribute]
 +menu:
 +  docs:
 +    parent: "contribute"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
- ```
 +aliases: [/contribute/docs/]
 +toc: true
 +---
 +
 +## Create Your Fork
 +
 +It's best to make changes to the Hugo docs on your local machine to check for consistent visual styling. Make sure you've created a fork of [hugoDocs](https://github.com/gohugoio/hugoDocs) on GitHub and cloned the repository locally on your machine. For more information, you can see [GitHub's documentation on "forking"][ghforking] or follow along with [Hugo's development contribution guide][hugodev].
 +
 +You can then create a separate branch for your additions. Be sure to choose a descriptive branch name that best fits the type of content. The following is an example of a branch name you might use for adding a new website to the showcase:
 +
- ```
++```txt
 +git checkout -b jon-doe-showcase-addition
 +```
 +
 +## Add New Content
 +
 +The Hugo docs make heavy use of Hugo's [archetypes][] feature. All content sections in Hugo documentation have an assigned archetype.
 +
 +Adding new content to the Hugo docs follows the same pattern, regardless of the content section:
 +
- Once you have cloned the Hugo repository, you can create a new function via the following command. Keep the file name lowercase.
++```txt
 +hugo new <DOCS-SECTION>/<new-content-lowercase>.md
 +```
 +
 +### Add a New Function
 +
- ```
++Once you have cloned the Hugo repository, you can create a new function via the following command. Keep the filename lowercase.
 +
- Across many pages on the Hugo docs, the typical triple-back-tick markdown syntax (```` ``` ````) is used. If you do not want to take the extra time to implement the following code block shortcodes, please use standard GitHub-flavored markdown. The Hugo docs use a version of [highlight.js](https://highlightjs.org/) with a specific set of languages.
++```txt
 +hugo new functions/newfunction.md
 +```
 +
 +The archetype for `functions` according to the Hugo docs is as follows:
 +
 +{{< code file="archetypes/functions.md" >}}
 +{{< readfile file="/archetypes/functions.md">}}
 +{{< /code >}}
 +
 +#### New Function Required Fields
 +
 +Here is a review of the front matter fields automatically generated for you using `hugo new functions/*`:
 +
 +***`title`***
 +: this will be auto-populated in all lowercase when you use `hugo new` generator.
 +
 +***`linktitle`***
 +: the function's actual casing (e.g., `replaceRE` rather than `replacere`).
 +
 +***`description`***
 +: a brief description used to populate the [Functions Quick Reference](/functions/).
 +
 +`categories`
 +: currently auto-populated with 'functions` for future-proofing and portability reasons only; ignore this field.
 +
 +`tags`
 +: only if you think it will help end users find other related functions
 +
 +`signature`
 +: this is a signature/syntax definition for calling the function (e.g., `apply SEQUENCE FUNCTION [PARAM...]`).
 +
 +`workson`
 +: acceptable values include `lists`,`taxonomies`, `terms`, `groups`, and `files`.
 +
 +`hugoversion`
 +: the version of Hugo that will ship with this new function.
 +
 +`relatedfuncs`
 +: other [templating functions][] you feel are related to your new function to help fellow Hugo users.
 +
 +`{{.Content}}`
 +: an extended description of the new function; examples are not only welcomed but encouraged.
 +
 +In the body of your function, expand the short description used in the front matter. Include as many examples as possible, and leverage the Hugo docs [`code` shortcode](#add-code-blocks). If you are unable to add examples but would like to solicit help from the Hugo community, add `needsexample: true` to your front matter.
 +
 +## Add Code Blocks
 +
 +Code blocks are crucial for providing examples of Hugo's new features to end users of the Hugo docs. Whenever possible, create examples that you think Hugo users will be able to implement in their own projects.
 +
 +### Standard Syntax
 +
- Your options for languages are `xml`/`html`, `go`/`golang`, `md`/`markdown`/`mkd`, `handlebars`, `apache`, `toml`, `yaml`, `json`, `css`, `asciidoc`, `ruby`, `powershell`/`ps`, `scss`, `sh`/`zsh`/`bash`/`git`, `http`/`https`, and `javascript`/`js`.
- ````
- ```
- <h1>Hello world!</h1>
++Across many pages on the Hugo docs, the typical triple-back-tick Markdown syntax (```` ``` ````) is used. If you do not want to take the extra time to implement the following code block shortcodes, please use standard GitHub-flavored Markdown. 
 +
- ```
++````txt
++```go-html-template
++{{ range site.RegularPages }}
++  <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
++{{ end }}
 +```
 +````
 +
 +
 +### Code Block Shortcode
 +
 +The Hugo documentation comes with a very robust shortcode for adding interactive code blocks.
 +
 +{{% note %}}
 +With the `code` shortcodes, *you must include triple back ticks and a language declaration*. This was done by design so that the shortcode wrappers were easily added to legacy documentation and will be that much easier to remove if needed in future versions of the Hugo docs.
 +{{% /note %}}
 +
 +### `code`
 +
 +`code` is the Hugo docs shortcode you'll use most often. `code` requires has only one named parameter: `file`. Here is the pattern:
 +
++```go-html-template
 +{{%/* code file="smart/file/name/with/path.html" download="download.html" copy="true" */%}}
 +A whole bunch of coding going on up in here!
 +{{%/* /code */%}}
 +```
 +
 +The following are the arguments passed into `code`:
 +
- ```
 +***`file`***
 +: the only *required* argument. `file` is needed for styling but also plays an important role in helping users create a mental model around Hugo's directory structure. Visually, this will be displayed as text in the top left of the code block.
 +
 +`download`
 +: if omitted, this will have no effect on the rendered shortcode. When a value is added to `download`, it's used as the filename for a downloadable version of the code block.
 +
 +`copy`
 +: a copy button is added automatically to all `code` shortcodes. If you want to keep the filename and styling of `code` but don't want to encourage readers to copy the code (e.g., a "Do not do" snippet in a tutorial), use `copy="false"`.
 +
 +#### Example `code` Input
 +
 +This example HTML code block tells Hugo users the following:
 +
 +1. This file *could* live in `layouts/_default`, as demonstrated by `layouts/_default/single.html` as the value for `file`.
 +2. This snippet is complete enough to be downloaded and implemented in a Hugo project, as demonstrated by `download="single.html"`.
 +
- ```
++```go-html-template
 +{{</* code file="layouts/_default/single.html" download="single.html" */>}}
 +{{ define "main" }}
 +<main>
 +    <article>
 +        <header>
 +            <h1>{{.Title}}</h1>
 +            {{with .Params.subtitle}}
 +            <span>{{.}}</span>
 +        </header>
 +        <div>
 +            {{.Content}}
 +        </div>
 +        <aside>
 +            {{.TableOfContents}}
 +        </aside>
 +    </article>
 +</main>
 +{{ end }}
 +{{</* /code */>}}
 +```
 +
 +##### Example 'code' Display
 +
 +The output of this example will render to the Hugo docs as follows:
 +
 +{{< code file="layouts/_default/single.html" download="single.html" >}}
 +{{ define "main" }}
 +<main>
 +    <article>
 +        <header>
 +            <h1>{{.Title}}</h1>
 +            {{with .Params.subtitle}}
 +            <span>{{.}}</span>
 +        </header>
 +        <div>
 +            {{.Content}}
 +        </div>
 +        <aside>
 +            {{.TableOfContents}}
 +        </aside>
 +    </article>
 +</main>
 +{{ end }}
 +{{< /code >}}
 +
 +<!-- #### Output Code Block
 +
 +The `output` shortcode is almost identical to the `code` shortcode but only takes and requires `file`. The purpose of `output` is to show *rendered* HTML and therefore almost always follows another basic code block *or* and instance of the `code` shortcode:
 +
 +```
 +{{%/* output file="posts/my-first-post/index.html" */%}}
 +<h1>This is my First Hugo Blog Post</h1>
 +<p>I am excited to be using Hugo.</p>
 +{{%/* /output */%}}
 +```
 +
 +The preceding `output` example will render as follows to the Hugo docs:
 +
 +{{< output file="posts/my-first-post/index.html" >}}
 +<h1>This is my First Hugo Blog Post</h1>
 +<p>I am excited to be using Hugo.</p>
 +{{< /output >}} -->
 +
 +## Blockquotes
 +
 +Blockquotes can be added to the Hugo documentation using [typical Markdown blockquote syntax][bqsyntax]:
 +
- ```
++```md
 +> Without the threat of punishment, there is no joy in flight.
 +```
 +
 +The preceding blockquote will render as follows in the Hugo docs:
 +
 +> Without the threat of punishment, there is no joy in flight.
 +
 +However, you can add a quick and easy `<cite>` element (added on the client via JavaScript) by separating your main blockquote and the citation with a hyphen with a single space on each side:
 +
++```md
 +> Without the threat of punishment, there is no joy in flight. - [Kobo Abe](https://en.wikipedia.org/wiki/Kobo_Abe)
 +```
 +
 +Which will render as follows in the Hugo docs:
 +
 +> Without the threat of punishment, there is no joy in flight. - [Kobo Abe][abe]
 +
 +{{% note "Blockquotes `!=` Admonitions" %}}
 +Previous versions of Hugo documentation used blockquotes to draw attention to text. This is *not* the [intended semantic use of `<blockquote>`](https://html5doctor.com/cite-and-blockquote-reloaded/). Use blockquotes when quoting. To note or warn your user of specific information, use the admonition shortcodes that follow.
 +{{% /note %}}
 +
 +## Admonitions
 +
 +**Admonitions** are common in technical documentation. The most popular is that seen in [reStructuredText Directives][sourceforge]. From the SourceForge documentation:
 +
 +> Admonitions are specially marked "topics" that can appear anywhere an ordinary body element can. They contain arbitrary body elements. Typically, an admonition is rendered as an offset block in a document, sometimes outlined or shaded, with a title matching the admonition type. - [SourceForge][sourceforge]
 +
 +The Hugo docs contain three admonitions: `note`, `tip`, and `warning`.
 +
 +### `note` Admonition
 +
 +Use the `note` shortcode when you want to draw attention to information subtly. `note` is intended to be less of an interruption in content than is `warning`.
 +
 +#### Example `note` Input
 +
 +{{< code file="note-with-heading.md" >}}
 +{{%/* note */%}}
 +Here is a piece of information I would like to draw your **attention** to.
 +{{%/* /note */%}}
 +{{< /code >}}
 +
 +#### Example `note` Output
 +
 +{{< output file="note-with-heading.html" >}}
 +{{% note %}}
 +Here is a piece of information I would like to draw your **attention** to.
 +{{% /note %}}
 +{{< /output >}}
 +
 +#### Example `note` Display
 +
 +{{% note %}}
 +Here is a piece of information I would like to draw your **attention** to.
 +{{% /note %}}
 +
 +### `tip` Admonition
 +
 +Use the `tip` shortcode when you want to give the reader advice. `tip`, like `note`, is intended to be less of an interruption in content than is `warning`.
 +
 +#### Example `tip` Input
 +
 +{{< code file="using-tip.md" >}}
 +{{%/* tip */%}}
 +Here's a bit of advice to improve your productivity with Hugo.
 +{{%/* /tip */%}}
 +{{< /code >}}
 +
 +#### Example `tip` Output
 +
 +{{< output file="tip-output.html" >}}
 +{{% tip %}}
 +Here's a bit of advice to improve your productivity with Hugo.
 +{{% /tip %}}
 +{{< /output >}}
 +
 +#### Example `tip` Display
 +
 +{{% tip %}}
 +Here's a bit of advice to improve your productivity with Hugo.
 +{{% /tip %}}
 +
 +### `warning` Admonition
 +
 +Use the `warning` shortcode when you want to draw the user's attention to something important. A good usage example is for articulating breaking changes in Hugo versions, known bugs, or templating "gotchas."
 +
 +#### Example `warning` Input
 +
 +{{< code file="warning-admonition-input.md" >}}
 +{{%/* warning */%}}
 +This is a warning, which should be reserved for *important* information like breaking changes.
 +{{%/* /warning */%}}
 +{{< /code >}}
 +
 +#### Example `warning` Output
 +
 +{{< output file="warning-admonition-output.html" >}}
 +{{% warning %}}
 +This is a warning, which should be reserved for *important* information like breaking changes.
 +{{% /warning %}}
 +{{< /output >}}
 +
 +#### Example `warning` Display
 +
 +{{% warning %}}
 +This is a warning, which should be reserved for *important* information like breaking changes.
 +{{% /warning %}}
 +
 +{{% note "Pull Requests and Branches" %}}
 +Similar to [contributing to Hugo development](/contribute/development/), the Hugo team expects you to create a separate branch/fork when you make your contributions to the Hugo docs.
 +{{% /note %}}
 +
 +[abe]: https://en.wikipedia.org/wiki/Kobo_Abe
 +[archetypes]: /content-management/archetypes/
 +[bqsyntax]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#blockquotes
 +[charcount]: https://www.lettercount.com/
 +[`docs/static/images/showcase/`]: https://github.com/gohugoio/hugo/tree/master/docs/static/images/showcase/
 +[ghforking]: https://help.github.com/articles/fork-a-repo/
 +[hugodev]: /contribute/development/
 +[shortcodeparams]: content-management/shortcodes/#shortcodes-without-markdown
 +[sourceforge]: https://docutils.sourceforge.io/docs/ref/rst/directives.html#admonitions
 +[templating function]: /functions/
index 403bac8256ab8ffd7c4b157ea0c8231733eb8ddd,0000000000000000000000000000000000000000..c515d1fcf7408df44f2f09c7e42416ce7191d0d6
mode 100644,000000..100644
--- /dev/null
@@@ -1,31 -1,0 +1,29 @@@
- lastmod: 2017-02-27
 +---
 +title: Add Your Hugo Theme to the Showcase
 +linktitle: Themes
 +description: If you've built a Hugo theme and want to contribute back to the Hugo Community, share it with us.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [contribute]
 +keywords: [contribute,themes,design]
 +authors: [digitalcraftsman]
 +menu:
 +  docs:
 +    parent: "contribute"
 +    weight: 30
 +weight: 30
 +sections_weight: 30
 +aliases: [/contribute/theme/]
 +wip: true
 +toc: true
 +---
 +
 +A collection of all themes created by the Hugo community, including screenshots and demos, can be found at [themes.gohugo.io]. Every theme in this list will automatically be added to the theme site.
 +
 +Another great site for Hugo themes is [jamstackthemes.dev/](https://jamstackthemes.dev/ssg/hugo/).
 +
 +### Add Your Theme to the Repo
 +
 +In order to add your Hugo theme to [themes.gohugo.io] please [open a pull request in the theme repository](https://github.com/gohugoio/hugoThemesSiteBuilder). **Please make sure that you've read the theme submission guidelines in the [README](https://github.com/gohugoio/hugoThemesSiteBuilder/blob/main/README.md#hugo-themes) of the hugoThemesSiteBuilder repository.**
 +
 +[themes.gohugo.io]: https://themes.gohugo.io/
index aa5e9323f75e92d7e8d6e3c70b5002b937dfb267,0000000000000000000000000000000000000000..0c74e628b9dfc09f242ff20c674969ab4f50397d
mode 100644,000000..100644
--- /dev/null
@@@ -1,88 -1,0 +1,88 @@@
- The previous examples have used the full content filename to lookup the post. Depending on how you have organized your content (whether you have the language code in the file name or not, e.g. `my-post.en.md`), you may want to do the lookup without extension. This will get you the current language's version of the page:
 +---
 +title: .GetPage
 +description: "Gets a `Page` of a given `path`."
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [sections,lists,indexes]
 +signature: [".GetPage PATH"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
 +`.GetPage` returns a page of a given `path`. Both `Site` and `Page` implements this method. The `Page` variant will, if given a relative path -- i.e. a path without a leading `/` -- try look for the page relative to the current page.
 +
 +{{% note %}}
 +**Note:** We overhauled and simplified the `.GetPage` API in Hugo 0.45. Before that you needed to provide a `Kind` attribute in addition to the path, e.g. `{{ .Site.GetPage "section" "blog" }}`. This will still work, but is now superfluous.
 +{{% /note %}}
 +
 +
 +```go-html-template
 +{{ with .Site.GetPage "/blog" }}{{ .Title }}{{ end }}
 +```
 +
 +This method will return `nil` when no page could be found, so the above will not print anything if the blog section is not found.
 +
 +To find a regular page in the blog section::
 +
 +```go-html-template
 +{{ with .Site.GetPage "/blog/my-post.md" }}{{ .Title }}{{ end }}
 +```
 +
 +And since `Page` also provides a `.GetPage` method, the above is the same as:
 +
 +```go-html-template
 +{{ with .Site.GetPage "/blog" }}
 +{{ with .GetPage "my-post.md" }}{{ .Title }}{{ end }}
 +{{ end }}
 +```
 +
 +## .GetPage and Multilingual Sites
 +
++The previous examples have used the full content filename to look up the post. Depending on how you have organized your content (whether you have the language code in the file name or not, e.g. `my-post.en.md`), you may want to do the lookup without extension. This will get you the current language's version of the page:
 +
 +```go-html-template
 +{{ with .Site.GetPage "/blog/my-post" }}{{ .Title }}{{ end }}
 +```
 +
 +## .GetPage Example
 +
 +This code snippet---in the form of a [partial template][partials]---allows you to do the following:
 +
 +1. Grab the index object of your `tags` [taxonomy][].
 +2. Assign this object to a variable, `$t`
 +3. Sort the terms associated with the taxonomy by popularity.
 +4. Grab the top two most popular terms in the taxonomy (i.e., the two most popular tags assigned to content.
 +
 +{{< code file="grab-top-two-tags.html" >}}
 +<ul class="most-popular-tags">
 +{{ $t := .Site.GetPage "/tags" }}
 +{{ range first 2 $t.Data.Terms.ByCount }}
 +    <li>{{ . }}</li>
 +{{ end }}
 +</ul>
 +{{< /code >}}
 +
 +## `.GetPage` on Page Bundles
 +
 +If the page retrieved by `.GetPage` is a [Leaf Bundle][leaf_bundle], and you
 +need to get the nested _**page** resources_ in that, you will need to use the
 +methods in `.Resources` as explained in the [Page Resources][page_resources]
 +section.
 +
 +See the [Headless Bundle][headless_bundle] documentation for an example.
 +
 +
 +[partials]: /templates/partials/
 +[taxonomy]: /content-management/taxonomies/
 +[page_kinds]: /templates/section-templates/#page-kinds
 +[leaf_bundle]: /content-management/page-bundles/#leaf-bundles
 +[headless_bundle]: /content-management/page-bundles/#headless-bundle
 +[page_resources]: /content-management/page-resources/
index e414b11ca9e6ce8fd226ca5fb14e62c2b6c80ed5,0000000000000000000000000000000000000000..e4440971fab6863fbd62681585682f950fe4341c
mode 100644,000000..100644
--- /dev/null
@@@ -1,36 -1,0 +1,33 @@@
- {{< new-in "0.62.0" >}} 
 +---
 +title: .RenderString
 +description: "Renders markup to HTML."
 +date: 2019-12-18
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [markdown,goldmark,render]
 +signature: [".RenderString MARKUP"]
 +---
 +
- **Note** that this method is more powerful than the similar [markdownify](/functions/markdownify/) function as it also supports [Render Hooks](/getting-started/configuration-markup/#markdown-render-hooks) and it has options to render other markup formats.
 +`.RenderString` is a method on `Page` that renders some markup to HTML using the content renderer defined for that page (if not set in the options).
 +
 +The method takes an optional map argument with these options:
 +
 +display ("inline")
 +: `inline` or `block`. If `inline` (default), surrounding `<p></p>` on short snippets will be trimmed.
 +
 +markup (defaults to the Page's markup)
 +: See identifiers in [List of content formats](/content-management/formats/#list-of-content-formats).
 +
 +Some examples:
 +
 +```go-html-template
 +{{ $optBlock := dict "display" "block" }}
 +{{ $optOrg := dict "markup" "org" }}
 +{{ "**Bold Markdown**" | $p.RenderString }}
 +{{  "**Bold Block Markdown**" | $p.RenderString  $optBlock }}
 +{{  "/italic org mode/" | $p.RenderString  $optOrg }}
 +```
 +
++{{< new-in "0.93.0" >}} **Note**: [markdownify](/functions/markdownify/) uses this function in order to support [Render Hooks](/getting-started/configuration-markup/#markdown-render-hooks).
index d9818fcaf61911a3b09ab1ef6bb475d5f1380ef7,0000000000000000000000000000000000000000..11d540bde5b3b855b82cdc4c10e06dd3fcfdf2ad
mode 100644,000000..100644
--- /dev/null
@@@ -1,27 -1,0 +1,61 @@@
- description: Adds the absolute URL with correct language prefix according to site configuration for multilingual.
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
 +---
 +title: absLangURL
-     parent: "functions"
- keywords: [multilingual,i18n,urls]
++description: Returns an absolute URL with a language prefix, if any.
 +categories: [functions]
 +menu:
 +  docs:
- workson: []
- hugoversion:
- relatedfuncs: [relLangURL]
- deprecated: false
- aliases: []
++    parent: functions
++keywords: [urls, multilingual,i18n]
 +signature: ["absLangURL INPUT"]
- Both `absLangURL` and [`relLangURL`](/functions/rellangurl/) are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl) relatives but will add the correct language prefix when the site is configured with more than one language.
 +---
 +
- So for a site  `baseURL` set to `https://example.com/hugo/` and the current language is `en`:
++Use this function with both monolingual and multilingual configurations. The URL returned by this function depends on:
 +
- {{ "blog/" | absLangURL }} → "https://example.com/hugo/en/blog/"
- {{ "blog/" | relLangURL }} → "/hugo/en/blog/"
++- Whether the input begins with a slash
++- The `baseURL` in site configuration
++- The language prefix, if any
 +
++In examples that follow, the project is multilingual with content in both Español (`es`) and English (`en`). The default language is Español. The returned values are from the English site.
++
++### Input does not begin with a slash
++
++If the input does not begin with a slash, the resulting URL will be correct regardless of the `baseURL`.
++
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ absLangURL "" }}           →   https://example.org/en/
++{{ absLangURL "articles" }}   →   https://example.org/en/articles
++{{ absLangURL "style.css" }}  →   https://example.org/en/style.css
++```
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ absLangURL "" }}           →   https://example.org/docs/en/
++{{ absLangURL "articles" }}   →   https://example.org/docs/en/articles
++{{ absLangURL "style.css" }}  →   https://example.org/docs/en/style.css
 +```
++
++### Input begins with a slash
++
++If the input begins with a slash, the resulting URL will be incorrect when the `baseURL` includes a subdirectory. With a leading slash, the function returns a URL relative to the protocol+host section of the `baseURL`.
++
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ absLangURL "/" }}          →   https://example.org/en/
++{{ absLangURL "/articles" }}  →   https://example.org/en/articles
++{{ absLangURL "/style.css" }} →   https://example.org/en/style.css
 +```
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ absLangURL "/" }}          →   https://example.org/en/
++{{ absLangURL "/articles" }}  →   https://example.org/en/articles
++{{ absLangURL "/style.css" }} →   https://example.org/en/style.css
++
++{{% note %}}
++The last three examples are not desirable in most situations. As a best practice, never include a leading slash when using this function.
++{{% /note %}}
index 13524d2d6a61e622178e2b1dca3324f3a742c367,0000000000000000000000000000000000000000..efea2df75b20bdc7ed5e334582903f0eae7de783
mode 100644,000000..100644
--- /dev/null
@@@ -1,50 -1,0 +1,61 @@@
- description: Creates an absolute URL based on the configured baseURL.
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
 +---
 +title: absURL
-     parent: "functions"
++description: Returns an absolute URL.
 +categories: [functions]
 +menu:
 +  docs:
- workson: []
- hugoversion:
- relatedfuncs: [relURL]
- deprecated: false
- aliases: []
++    parent: functions
 +keywords: [urls]
 +signature: ["absURL INPUT"]
- Both `absURL` and `relURL` consider the configured value of `baseURL` in your site's [`config` file][configuration]. Given a `baseURL` set to `https://example.com/hugo/`:
 +---
 +
- {{ "mystyle.css" | absURL }} → "https://example.com/hugo/mystyle.css"
- {{ "mystyle.css" | relURL }} → "/hugo/mystyle.css"
- {{ "http://gohugo.io/" | relURL }} →  "http://gohugo.io/"
- {{ "http://gohugo.io/" | absURL }} →  "http://gohugo.io/"
++With multilingual configurations, use the [`absLangURL`] function instead.  The URL returned by this function depends on:
 +
++- Whether the input begins with a slash
++- The `baseURL` in site configuration
++
++### Input does not begin with a slash
++
++If the input does not begin with a slash, the resulting URL will be correct regardless of the `baseURL`.
++
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ absURL "" }}           →   https://example.org/
++{{ absURL "articles" }}   →   https://example.org/articles
++{{ absURL "style.css" }}  →   https://example.org/style.css
 +```
- The last two examples may look strange but can be very useful. For example, the following shows how to use `absURL` in [JSON-LD structured data (SEO)][jsonld], where some of your images for a piece of content may or may not be hosted locally:
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ absURL "" }}           →   https://example.org/docs/
++{{ absURL "articles" }}   →   https://example.org/docs/articles
++{{ absURL "style.css" }}  →   https://example.org/docs/style.css
 +```
 +
- {{< code file="layouts/partials/schemaorg-metadata.html" download="schemaorg-metadata.html" >}}
- <script type="application/ld+json">
- {
-     "@context" : "http://schema.org",
-     "@type" : "BlogPosting",
-     "image" : {{ apply .Params.images "absURL" "." }}
- }
- </script>
- {{< /code >}}
++### Input begins with a slash
 +
- The above uses the [apply function][] and also exposes how the Go template parser JSON-encodes objects inside `<script>` tags. See [the safeJS template function][safejs] for examples of how to tell Hugo not to escape strings inside of such tags.
++If the input begins with a slash, the resulting URL will be incorrect when the `baseURL` includes a subdirectory. With a leading slash, the function returns a URL relative to the protocol+host section of the `baseURL`.
 +
- {{% note "Ending Slash" %}}
- `absURL` and `relURL` are smart about missing slashes, but they will *not* add a closing slash to a URL if it is not present.
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ absURL "/" }}          →   https://example.org/
++{{ absURL "/articles" }}  →   https://example.org/articles
++{{ absURL "/style.css" }} →   https://example.org/style.css
++```
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ absURL "/" }}          →   https://example.org/
++{{ absURL "/articles" }}  →   https://example.org/articles
++{{ absURL "/style.css" }} →   https://example.org/style.css
++```
 +
- [apply function]: /functions/apply/
- [configuration]: /getting-started/configuration/
- [jsonld]: https://developers.google.com/search/docs/guides/intro-structured-data
- [safejs]: /functions/safejs
++{{% note %}}
++The last three examples are not desirable in most situations. As a best practice, never include a leading slash when using this function.
 +{{% /note %}}
 +
++[`absLangURL`]: /functions/abslangurl/
index a41faf5245f8747e821f8d27a2ac08099251acc4,0000000000000000000000000000000000000000..91640d8034aff44f729dbcaff41aec3c900d0d36
mode 100644,000000..100644
--- /dev/null
@@@ -1,29 -1,0 +1,80 @@@
- title: "complement"
- description: "`collections.Complement` (alias `complement`) gives the elements of a collection that are not in any of the others."
- date: 2018-11-07
 +---
-     parent: "functions"
- keywords: [collections,intersect,union]
- signature: ["COLLECTION | complement COLLECTION [COLLECTION]..." ]
- hugoversion: "0.51"
++title: complement
++description: Returns the elements of the last collection that are not in any of the others.
 +categories: [functions]
 +menu:
 +  docs:
- Example:
++    parent: functions
++keywords: [collections]
++signature:
++- "complement COLLECTION [COLLECTION]..."
++- "collections.Complement COLLECTION [COLLECTION]..."
++relatedfuncs: [intersect,symdiff,union]
 +aliases: []
 +---
 +
- {{ $pages := site.RegularPages | first 50 }}
- {{ $news := where $pages "Type" "news" | first 5 }}
- {{ $blog := where $pages "Type" "blog" | first 5 }}
- {{ $other := $pages | complement $news $blog | first 10 }}
++To find the elements within `$c3` that do not exist in `$c1` or `$c2`:
 +
 +```go-html-template
- The above is an imaginary use case for the home page where you want to display different page listings in sections/boxes on different places on the page: 5 from `news`, 5 from the `blog` and then 10 of the pages not shown in the other listings, to _complement_ them.
++{{ $c1 := slice 3 }}
++{{ $c2 := slice 4 5  }}
++{{ $c3 := slice 1 2 3 4 5 }}
++
++{{ complement $c1 $c2 $c3 }} → [1 2]
++```
++
++{{% note %}}
++Make your code simpler to understand by using a [chained pipeline]:
++
++[chained pipeline]: https://pkg.go.dev/text/template#hdr-Pipelines
++{{% /note %}}
++
++
++```go-html-template
++{{ $c3 | complement $c1 $c2 }} → [1 2]
 +```
 +
++You can also use the `complement` function with page collections. Let's say your site has five content types:
 +
++```text
++content/
++├── blog/
++├── books/
++├── faqs/
++├── films/
++└── songs/
++```
 +
++To list everything except blog articles (`blog`) and frequently asked questions (`faqs`):
 +
++```go-html-template
++{{ $blog := where site.RegularPages "Type" "blog" }}
++{{ $faqs := where site.RegularPages "Type" "faqs" }}
++{{ range site.RegularPages | complement $blog $faqs }}
++  <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
++{{ end }}
++```
 +
++{{% note %}}
++Although the example above demonstrates the `complement` function, you could use the [`where`] function as well:
++
++[`where`]: /functions/where/
++{{% /note %}} 
++
++```go-html-template
++{{ range where site.RegularPages "Type" "not in" (slice "blog" "faqs") }}
++  <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
++{{ end }}
++```
++
++In this example we use the `complement` function to remove [stop words] from a sentence:
++
++```go-html-template
++{{ $text := "The quick brown fox jumps over the lazy dog" }}
++{{ $stopWords := slice "a" "an" "in" "over" "the" "under" }}
++{{ $filtered := split $text " " | complement $stopWords }}
++
++{{ delimit $filtered " " }} → The quick brown fox jumps lazy dog
++```
 +
++[stop words]: https://en.wikipedia.org/wiki/Stop_word
index 362efabd3e727a28b972985b0527ce5a99658c44,0000000000000000000000000000000000000000..7a16e80b2b5f9c8e9f3962208dcedbac77df9c5f
mode 100644,000000..100644
--- /dev/null
@@@ -1,55 -1,0 +1,53 @@@
- Note that since Hugo 0.87.0, `time.Format` will return a localized string for the current language. {{< new-in "0.87.0" >}}
 +---
 +title: time.Format
 +description: Converts a date/time to a localized string.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [dates,time,strings]
 +signature: ["time.Format LAYOUT INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [Format,now,Unix,time]
 +deprecated: false
 +---
 +
 +`time.Format` (alias `dateFormat`) converts either a `time.Time` object (e.g. `.Date`) or a timestamp string `INPUT` into the format specified by the `LAYOUT` string.
 +
 +```go-html-template
 +{{ time.Format "Monday, Jan 2, 2006" "2015-01-21" }} → "Wednesday, Jan 21, 2015"
 +```
 +
- {{< new-in "0.87.0" >}}
- Go's date layout strings can be hard to reason about, especially with multiple languages. Since Hugo 0.87.0 you can alternatively use some predefined layout identifiers that will output localized dates or times:
++`time.Format` returns a localized string for the current language.
 +
 +The `LAYOUT` string can be either:
 +
 +* [Go’s Layout String](/functions/format/#gos-layout-string) to learn about how the `LAYOUT` string has to be formatted. There are also some useful examples.
 +* A custom Hugo layout identifier (see full list below)
 +
 +See the [`time` function](/functions/time/) to convert a timestamp string to a Go `time.Time` type value.
 +
 +
 +## Date/time formatting layouts
 +
++Go's date layout strings can be hard to reason about, especially with multiple languages. You can alternatively use some predefined layout identifiers that will output localized dates or times:
 +
 +```go-html-template
 +{{ .Date | time.Format ":date_long" }}
 +```
 +
 +The full list of custom layouts with examples for English:
 +
 +* `:date_full` => `Wednesday, June 6, 2018`
 +* `:date_long` => `June 6, 2018`
 +* `:date_medium` => `Jun 6, 2018`
 +* `:date_short` => `6/6/18`
 +
 +* `:time_full` => `2:09:37 am UTC`
 +* `:time_long` => `2:09:37 am UTC`
 +* `:time_medium` => `2:09:37 am`
 +* `:time_short` => `2:09 am`
index 966b6af3eee258e090afe396f4d30fcfe2122b33,0000000000000000000000000000000000000000..5c8ad9d8ab134740ce4f1de0bdfbafdec1cc849c
mode 100644,000000..100644
--- /dev/null
@@@ -1,52 -1,0 +1,48 @@@
- lastmod: 2017-02-26
 +---
 +title: dict
 +description: Creates a dictionary from a list of key and value pairs.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [dictionary]
 +signature: ["dict KEY VALUE [KEY VALUE]..."]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
 +`dict` is especially useful for passing more than one value to a partial template.
 +
 +Note that the `key` can be either a `string` or a `string slice`. The latter is useful to create a deeply nested structure, e.g.:
 +
 +```go-text-template
 +{{ $m := dict (slice "a" "b" "c") "value" }}
 +```
 +
- The partial below creates a SVG and expects `fill`, `height` and `width` from the caller:
 +## Example: Using `dict` to pass multiple values to a `partial`
 +
- **Partial definition**
++The partial below creates an SVG and expects `fill`, `height` and `width` from the caller:
 +
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 
++### Partial definition
 +
 +{{< code file="layouts/partials/svgs/external-links.svg" download="external-links.svg" >}}
- **Partial call**
++<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
 +fill="{{ .fill }}" width="{{ .width }}" height="{{ .height }}" viewBox="0 0 32 32" aria-label="External Link">
 +<path d="M25.152 16.576v5.696q0 2.144-1.504 3.648t-3.648 1.504h-14.848q-2.144 0-3.648-1.504t-1.504-3.648v-14.848q0-2.112 1.504-3.616t3.648-1.536h12.576q0.224 0 0.384 0.16t0.16 0.416v1.152q0 0.256-0.16 0.416t-0.384 0.16h-12.576q-1.184 0-2.016 0.832t-0.864 2.016v14.848q0 1.184 0.864 2.016t2.016 0.864h14.848q1.184 0 2.016-0.864t0.832-2.016v-5.696q0-0.256 0.16-0.416t0.416-0.16h1.152q0.256 0 0.416 0.16t0.16 0.416zM32 1.152v9.12q0 0.48-0.352 0.8t-0.8 0.352-0.8-0.352l-3.136-3.136-11.648 11.648q-0.16 0.192-0.416 0.192t-0.384-0.192l-2.048-2.048q-0.192-0.16-0.192-0.384t0.192-0.416l11.648-11.648-3.136-3.136q-0.352-0.352-0.352-0.8t0.352-0.8 0.8-0.352h9.12q0.48 0 0.8 0.352t0.352 0.8z"></path>
 +</svg>
 +{{< /code >}}
 +
++### Partial call
 +
 +The `fill`, `height` and `width` values can be stored in one object with `dict` and passed to the partial:
 +
 +{{< code file="layouts/_default/list.html" >}}
 +{{ partial "svgs/external-links.svg" (dict "fill" "#01589B" "width" 10 "height" 20 ) }}
 +{{< /code >}}
 +
 +[partials]: /templates/partials/
index 41ea2f1924eb58e60989a64461898b975f419fad,0000000000000000000000000000000000000000..04fd0edb0e1013ff1358a660bfa79a6b00e56e69
mode 100644,000000..100644
--- /dev/null
@@@ -1,51 -1,0 +1,51 @@@
- Note that `errorf`, `erroridf`, and `warnf` support all the formatting verbs of the [fmt](https://golang.org/pkg/fmt/) package.
 +---
 +title: errorf and warnf
 +description: Log ERROR or WARNING from the templates.
 +date: 2017-09-30
 +publishdate: 2017-09-30
 +lastmod: 2017-09-30
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [strings, log, error]
 +signature: ["errorf FORMAT INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [printf]
 +deprecated: false
 +---
 +
 +`errorf` or `warnf` will evaluate a format string, then output the result to the ERROR or WARNING log (and only once per error message to avoid flooding the log).
 +
 +Any ERROR will also cause the build to fail (the `hugo` command will `exit -1`).
 +
 +Both functions return an empty string, so the messages are only printed to the console.
 +
 +```
 +{{ errorf "Failed to handle page %q" .Path }}
 +```
 +
 +```
 +{{ warnf "You should update the shortcodes in %q" .Path }}
 +```
 +
++Note that `errorf`, `erroridf`, and `warnf` support all the formatting verbs of the [fmt](https://pkg.go.dev/fmt) package.
 +
 +## Suppress errors
 +
 +Sometimes it may make sense to let the user suppress an ERROR and make the build succeed.
 +
 +You can do this by using the `erroridf` function. This functions takes an error ID as the first argument.
 +
 +```
 +{{ erroridf "my-custom-error" "You should consider fixing this." }}
 +```  
 +
 +This will produce:
 +
 +```
 +ERROR 2021/06/07 17:47:38 You should consider fixing this.
 +If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
 +ignoreErrors = ["my-custom-error"]
 +```
index b6375be9cdb2989104ddeead4bfe1250425d68aa,0000000000000000000000000000000000000000..2896e3cd1e515ccc74cb78ae775f5c0596d7a8ee
mode 100644,000000..100644
--- /dev/null
@@@ -1,44 -1,0 +1,40 @@@
- description: Returns a list of strings that match the regular expression.
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
 +---
 +title: findRE
-     parent: "functions"
++description: Returns a slice of strings that match the regular expression.
 +categories: [functions]
 +menu:
 +  docs:
- signature: ["findRE PATTERN INPUT [LIMIT]"]
- workson: []
- hugoversion:
- relatedfuncs: []
- deprecated: false
++    parent: functions
 +keywords: [regex]
- By default all matches will be included. The number of matches can be limited with an optional third parameter.
++signature:
++  - "findRE PATTERN INPUT [LIMIT]"
++  - "strings.FindRE PATTERN INPUT [LIMIT]"
++relatedfuncs: [replaceRE]
 +aliases: []
 +---
++By default, the `findRE` function finds all matches. You can limit the number of matches with an optional LIMIT paramater.
 +
- The example below returns a list of all second level headers (`<h2>`) in the content:
++When specifying the regular expression, use a raw [string literal] (backticks) instead of an interpreted string literal (double quotes) to simplify the syntax. With an interpreted string literal you must escape backslashes.
 +
- ```
- {{ findRE "<h2.*?>(.|\n)*?</h2>" .Content }}
++The syntax of the regular expression is the same general syntax used by Perl, Python, and other languages. More precisely, it is the syntax accepted by [RE2] except for `\C`.
 +
- You can limit the number of matches in the list with a third parameter. The following example shows how to limit the returned value to just one match (or none, if there are no matched substrings):
++This example returns a slice of all second level headings (`h2` elements) within the rendered `.Content`:
++
++```go-html-template
++{{ findRE `(?s)<h2.*?>.*?</h2>` .Content }}
 +```
 +
- ```
- {{ findRE "<h2.*?>(.|\n)*?</h2>" .Content 1 }}
-     <!-- returns ["<h2 id="#foo">Foo</h2>"] -->
++The `s` flag causes `.` to match `\n` as well, allowing us to find an `h2` element that contains newlines.
 +
- Hugo uses Go's [Regular Expression package](https://golang.org/pkg/regexp/), which is the same general syntax used by Perl, Python, and other languages but with a few minor differences for those coming from a background in PCRE. For a full syntax listing, see the [GitHub wiki for re2](https://github.com/google/re2/wiki/Syntax).
- If you are just learning RegEx, or at least Go's flavor, you can practice pattern matching in the browser at <https://regex101.com/>.
++To limit the number of matches to one:
++
++```go-html-template
++{{ findRE `(?s)<h2.*?>.*?</h2>` .Content 1 }}
 +```
 +
 +{{% note %}}
- [partials]: /templates/partials/
- [`plainify`]: /functions/plainify/
- [toc]: /content-management/toc/
- [`urlize`]: /functions/urlize
++You can write and test your regular expression using [regex101.com](https://regex101.com/). Be sure to select the Go flavor before you begin.
 +{{% /note %}}
 +
++[RE2]: https://github.com/google/re2/wiki/Syntax
++[string literal]: https://go.dev/ref/spec#String_literals
index 199030782e68dfe13ee8ed5d4d79fbdf5011a965,0000000000000000000000000000000000000000..4ef806f450ed2a8edfbe4f48f1d4cac4a2de0c53
mode 100644,000000..100644
--- /dev/null
@@@ -1,126 -1,0 +1,126 @@@
- Spelled-out cardinal numbers (e.g. "one", "two", and "three") are not currently supported. 
 +---
 +title: .Format
 +description: Formats built-in Hugo dates---`.Date`, `.PublishDate`, and `.Lastmod`---according to Go's layout string.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [dates,time]
 +signature: [".Format FORMAT"]
 +workson: [times]
 +hugoversion:
 +relatedfuncs: [dateFormat,now,Unix,time]
 +deprecated: false
 +aliases: []
 +toc: true
 +---
 +
 +`.Format` will format date values defined in your front matter and can be used as a property on the following [page variables][pagevars]:
 +
 +* `.PublishDate`
 +* `.Date`
 +* `.Lastmod`
 +
 +Assuming a key-value of `date: 2017-03-03` in a content file's front matter, your can run the date through `.Format` followed by a layout string for your desired output at build time:
 +
 +```
 +{{ .PublishDate.Format "January 2, 2006" }} => March 3, 2017
 +```
 +
 +For formatting *any* string representations of dates defined in your front matter, see the [`dateFormat` function][dateFormat], which will still leverage the Go layout string explained below but uses a slightly different syntax.
 +
 +## Go's Layout String
 +
 +Hugo templates [format your dates][time] via layout strings that point to a specific reference time:
 +
 +```
 +Mon Jan 2 15:04:05 MST 2006
 +```
 +
 +While this may seem arbitrary, the numerical value of `MST` is `07`, thus making the layout string a sequence of numbers.
 +
 +Here is a visual explanation [taken directly from the Go docs][gdex]:
 +
 +```
 + Jan 2 15:04:05 2006 MST
 +=> 1 2  3  4  5    6  -7
 +```
 +
 +### Hugo Date and Time Templating Reference
 +
 +The following examples show the layout string followed by the rendered output.
 +
 +The examples were rendered and tested in [CST][] and all point to the same field in a content file's front matter:
 +
 +```
 +date: 2017-03-03T14:15:59-06:00
 +```
 +
 +`.Date` (i.e. called via [page variable][pagevars])
 +: **Returns**: `2017-03-03 14:15:59 -0600 CST`
 +
 +`"Monday, January 2, 2006"`
 +: **Returns**: `Friday, March 3, 2017`
 +
 +`"Mon Jan 2 2006"`
 +: **Returns**: `Fri Mar 3 2017`
 +
 +`"January 2006"`
 +: **Returns**: `March 2017`
 +
 +`"2006-01-02"`
 +: **Returns**: `2017-03-03`
 +
 +`"Monday"`
 +: **Returns**: `Friday`
 +
 +`"02 Jan 06 15:04 MST"` (RFC822)
 +: **Returns**: `03 Mar 17 14:15 CST`
 +
 +`"02 Jan 06 15:04 -0700"` (RFC822Z)
 +: **Returns**: `03 Mar 17 14:15 -0600`
 +
 +`"Mon, 02 Jan 2006 15:04:05 MST"` (RFC1123)
 +: **Returns**: `Fri, 03 Mar 2017 14:15:59 CST`
 +
 +`"Mon, 02 Jan 2006 15:04:05 -0700"` (RFC1123Z)
 +: **Returns**: `Fri, 03 Mar 2017 14:15:59 -0600`
 +
 +More examples can be found in Go's [documentation for the time package][timeconst].
 +
 +### Cardinal Numbers and Ordinal Abbreviations
 +
++Spelled-out cardinal numbers (e.g. "one", "two", and "three") are not currently supported.
 +
 +Ordinal abbreviations (i.e., with shorted suffixes like "1st", "2nd", and "3rd") are not currently directly supported. By using `{{.Date.Format "Jan 2nd 2006"}}`, Hugo assumes you want to append `nd` as a string to the day of the month. However, you can chain functions together to create something like this:
 +
 +```
 +{{ .Date.Format "2" }}{{ if in (slice 1 21 31) .Date.Day}}st{{ else if in (slice 2 22) .Date.Day}}nd{{ else if in (slice 3 23) .Date.Day}}rd{{ else }}th{{ end }} of {{ .Date.Format "January 2006" }}
 +```
 +
 +This will output:
 +
 +```
 +5th of March 2017
 +```
 +
 +
 +### Use `.Local` and `.UTC`
 +
 +In conjunction with the [`dateFormat` function][dateFormat], you can also convert your dates to `UTC` or to local timezones:
 +
 +`{{ dateFormat "02 Jan 06 15:04 MST" .Date.UTC }}`
 +: **Returns**: `03 Mar 17 20:15 UTC`
 +
 +`{{ dateFormat "02 Jan 06 15:04 MST" .Date.Local }}`
 +: **Returns**: `03 Mar 17 14:15 CST`
 +
 +[CST]: https://en.wikipedia.org/wiki/Central_Time_Zone
 +[dateFormat]: /functions/dateformat/
 +[gdex]: https://golang.org/pkg/time/#example_Time_Format
 +[pagevars]: /variables/page/
 +[time]: https://golang.org/pkg/time/
 +[timeconst]: https://golang.org/pkg/time/#ANSIC
index c5b75c7fd5ebcdefdae1c55c707279b6327eb545,0000000000000000000000000000000000000000..27f3488076378667f1bd0faabad614f5211ff2fc
mode 100644,000000..100644
--- /dev/null
@@@ -1,30 -1,0 +1,29 @@@
 +---
 +title: .Get
 +description: Accesses positional and ordered parameters in shortcode declaration.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [shortcodes]
 +signature: [".Get INDEX", ".Get KEY"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +needsexample: true
 +---
 +
- When accessing a named parameter that does not exist, `.Get` returns an empty string instead of interrupting the build. The same goes with positional parameters in hugo version 0.40 and after. This allows you to chain `.Get` with `if`, `with`, `default` or `cond` to check for parameter existence. For example, you may now use:
 +`.Get` is specifically used when creating your own [shortcode template][sc], to access the [positional and named](/templates/shortcode-templates/#positional-vs-named-parameters) parameters passed to it. When used with a numeric INDEX, it queries positional parameters (starting with 0). With a string KEY, it queries named parameters.
 +
- ```
++When accessing named or positional parameters that do not exist, `.Get` returns an empty string instead of interrupting the build. This allows you to chain `.Get` with `if`, `with`, `default` or `cond` to check for parameter existence. For example:
 +
++```go-html-template
 +{{ $quality := default "100" (.Get 1) }}
 +```
 +
 +[sc]: /templates/shortcode-templates/
index f7f71d35cf67604d359f655dd6fe9eb863fb850c,0000000000000000000000000000000000000000..93e93a38258bed7b2d85f4aa7e2edb4723984fcc
mode 100644,000000..100644
--- /dev/null
@@@ -1,43 -1,0 +1,46 @@@
 +---
 +title: getenv
 +description: Returns the value of an environment variable, or an empty string if the environment variable is not set.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2021-11-26
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: []
 +signature: ["os.Getenv VARIABLE", "getenv VARIABLE"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +Examples:
 +
 +```go-html-template
 +{{ os.Getenv "HOME" }} --> /home/victor
 +{{ os.Getenv "USER" }} --> victor
 +```
 +
 +You can pass values when building your site:
 +
 +```bash
 +MY_VAR1=foo MY_VAR2=bar hugo
 +
 +OR
 +
 +export MY_VAR1=foo
 +export MY_VAR2=bar
 +hugo
 +```
 +
 +And then retrieve the values within a template:
 +
 +```go-html-template
 +{{ os.Getenv "MY_VAR1" }} --> foo
 +{{ os.Getenv "MY_VAR2" }} --> bar
 +```
++
++With Hugo v0.91.0 and later, you must explicitly allow access to environment variables. For details, review [Hugo's Security Policy](/about/security-model/#security-policy). By default, environment variables beginning with `HUGO_` are allowed when using the `os.Getenv` function.
++
index dbd4aa4183a880ada8262c0db862e87135e7f933,0000000000000000000000000000000000000000..fea980120def7f05cdcffd88168c5d38fcb1f4d8
mode 100644,000000..100644
--- /dev/null
@@@ -1,28 -1,0 +1,28 @@@
- {{< new-in "0.86.0" >}} If MENUENTRY's `.Page` is a [section](/content-management/sections/) then, from Hugo `0.86.0`, this method also returns true for any descendant of that section..
 +---
 +title: .HasMenuCurrent
 +description:
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [menus]
 +signature: ["PAGE.HasMenuCurrent MENU MENUENTRY"]
 +workson: [menus]
 +hugoversion:
 +relatedfuncs: ["IsMenuCurrent"]
 +deprecated: false
 +toc: false
 +draft: false
 +aliases: []
 +---
 +
 +`.HasMenuCurrent` is a method in `Page` object returning a _boolean_ value. It
 +returns `true` if the PAGE is the same object as the `.Page` in one of the
 +**children menu entries** under MENUENTRY in a given MENU.
 +
++If MENUENTRY's `.Page` is a [section](/content-management/sections/) then, from Hugo `0.86.0`, this method also returns true for any descendant of that section..
 +
 +You can find its example use in [menu templates](/templates/menu-templates/).
index 40f3a78de175b0a266b818e18f93cd869e3c6edc,0000000000000000000000000000000000000000..8324edb810f532d61e8bb0c0cf53e08f4aac7ed3
mode 100644,000000..100644
--- /dev/null
@@@ -1,108 -1,0 +1,108 @@@
- `lineNos=inline` 
 +---
 +title: highlight
 +linktitle: highlight
 +description: Renders code with a syntax highlighter.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2021-12-06
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [highlighting,code blocks,syntax]
 +signature: ["transform.Highlight INPUT LANG [OPTIONS]","highlight INPUT LANG [OPTIONS]"]
 +relatedfuncs: []
 +deprecated: false
 +toc: true
 +---
 +The `highlight` function uses the [Chroma] syntax highlighter, supporting over 200 languages with more than 40 available styles.
 +
 +## Parameters
 +
 +INPUT
 +: The code to highlight.
 +
 +LANG
 +: The language of the code to highlight. Choose from one of the [supported languages]. Case-insensitive.
 +
 +OPTIONS
 +: An optional, comma-separated list of zero or more [options]. Set default values in [site configuration].
 +
 +## Options
 +
 +lineNos
 +: Boolean. Default is `false`.\
 +Display a number at the beginning of each line.
 +
 +lineNumbersInTable
 +: Boolean. Default is `true`.\
 +Render the highlighted code in an HTML table with two cells. The left table cell contains the line numbers. The right table cell contains the code, allowing a user to select and copy the code without line numbers. Irrelevant if `lineNos` is false.
 +
 +anchorLineNos
 +: Boolean. Default is `false`.\
 +Render each line number as an HTML anchor element, and set the `id` attribute of the surrounding `<span>` to the line number. Irrelevant if `lineNos` is false.
 +
 +lineAnchors
 +: String. Default is `""`.\
 +When rendering a line number as an HTML anchor element, prepend this value to the `id` attribute of the surrounding `<span>`. This provides unique `id` attributes when a page contains two or more code blocks. Irrelevant if `lineNos` or `anchorLineNos` is false.
 +
 +lineNoStart
 +: Integer. Default is `1`.\
 +The number to display at the beginning of the first line. Irrelevant if `lineNos` is false.
 +
 +hl_Lines
 +: String. Default is `""`.\
 +A space-separated list of lines to emphasize within the highlighted code. To emphasize lines 2, 3, 4, and 7, set this value to `2-4 7`. This option is independent of the `lineNoStart` option.
 +
 +hl_inline
 +: Boolean. Default is `false`.\
 +Render the highlighted code without a wrapping container.
 +
 +style
 +: String. Default is `monokai`.\
 +The CSS styles to apply to the highlighted code. See the [style gallery] for examples. Case-sensitive.
 +
 +noClasses
 +: Boolean. Default is `true`.\
 +Use inline CSS styles instead of an external CSS file. To use an external CSS file, set this value to `false` and [generate the file with the hugo client][hugo client].
 +
 +tabWidth
 +: Integer. Default is `4`.\
 +Substitute this number of spaces for each tab character in your highlighted code.
 +
 +guessSyntax
 +: Boolean. Default is `false`.\
 +If the `LANG` parameter is blank or an unrecognized language, auto-detect the language if possible, otherwise use a fallback language.
 +
 +{{% note %}}
 +Instead of specifying both `lineNos` and `lineNumbersInTable`, you can use the following shorthand notation:
 +
- `lineNos=table` 
++`lineNos=inline`
 +: equivalent to `lineNos=true` and `lineNumbersInTable=false`
 +
++`lineNos=table`
 +: equivalent to `lineNos=true` and `lineNumbersInTable=true`
 +{{% /note %}}
 +
 +## Examples
 +
 +```go-html-template
 +{{ $input := `fmt.Println("Hello World!")` }}
 +{{ transform.Highlight $input "go" }}
 +
 +{{ $input := `console.log('Hello World!');` }}
 +{{ $lang := "js" }}
 +{{ transform.Highlight $input $lang "lineNos=table, style=api" }}
 +
 +{{ $input := `echo "Hello World!"` }}
 +{{ $lang := "bash" }}
 +{{ $options := slice "lineNos=table" "style=dracula" }}
 +{{ transform.Highlight $input $lang (delimit $options ",") }}
 +```
 +
 +[Chroma]: https://github.com/alecthomas/chroma
 +[hugo client]: {{< relref "commands/hugo_gen_chromastyles" >}}
 +[options]: {{< relref "#options" >}}
 +[site configuration]: {{< relref "getting-started/configuration-markup#highlight">}}
 +[style gallery]: https://xyproto.github.io/splash/docs/
 +[supported languages]: {{< relref "content-management/syntax-highlighting#list-of-chroma-highlighting-languages" >}}
index 40a0036296853b05932fd3a5a294312ed4541df3,0000000000000000000000000000000000000000..41c7a0322b555ede75b9941b6d66b5f37f191ebc
mode 100644,000000..100644
--- /dev/null
@@@ -1,114 -1,0 +1,114 @@@
- : the current version of the Hugo binary you are using e.g. `0.63.2`
 +---
 +title: hugo
 +linktitle: hugo
 +description: The `hugo` function provides easy access to Hugo-related data.
 +date: 2019-01-31
 +publishdate: 2019-01-31
 +keywords: []
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +toc:
 +signature: ["hugo"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +draft: false
 +aliases: []
 +---
 +
 +`hugo` returns an instance that contains the following functions:
 +
 +hugo.Generator
 +: `<meta>` tag for the version of Hugo that generated the site. `hugo.Generator` outputs a *complete* HTML tag; e.g. `<meta name="generator" content="Hugo 0.63.2">`
 +
 +hugo.Version
- hugo.IsExtended {{< new-in "0.83.0" >}}
++: the current version of the Hugo binary you are using e.g. `0.99.1`
 +
 +hugo.GoVersion
 +: returns the version of Go that the Hugo binary was built with. {{< new-in "0.101.0" >}}
 +
 +hugo.Environment
 +: the current running environment as defined through the `--environment` cli tag
 +
 +hugo.CommitHash
 +: the git commit hash of the current Hugo binary e.g. `0e8bed9ccffba0df554728b46c5bbf6d78ae5247`
 +
 +hugo.BuildDate
 +: the compile date of the current Hugo binary formatted with RFC 3339 e.g. `2002-10-02T10:00:00-05:00`
 +
++hugo.IsExtended
 +: whether this is the extended Hugo binary.
 +
 +hugo.IsProduction
 +: returns true if `hugo.Environment` is set to the production environment
 +
 +{{% note "Use the Hugo Generator Tag" %}}
 +We highly recommend using `hugo.Generator` in your website's `<head>`. `hugo.Generator` is included by default in all themes hosted on [themes.gohugo.io](https://themes.gohugo.io). The generator tag allows the Hugo team to track the usage and popularity of Hugo.
 +{{% /note %}}
 +
 +hugo.Deps
 +: See [hugo.Deps](#hugodeps)
 +
 +## hugo.Deps
 +
 +{{< new-in "0.92.0" >}}
 +
 +`hugo.Deps` returns a list of dependencies for a project (either Hugo Modules or local theme components).
 +
 +Each dependency contains:
 +
 +Path (string)
 +: Returns the path to this module. This will either be the module path, e.g. "github.com/gohugoio/myshortcodes", or the path below your /theme folder, e.g. "mytheme".
 +
 +Version (string)
 +:  The module version.
 +
 +Vendor (bool)
 +: Whether this dependency is vendored.
 +
 +Time (time.Time)
 +: Time version was created.
 +
 +Owner
 +: In the dependency tree, this is the first module that defines this module as a dependency.
 +
 +Replace (*Dependency)
 +: Replaced by this dependency.
 +
 +An example table listing the dependencies:
 +
 +```html
 + <h2>Dependencies</h2>
 +<table class="table table-dark">
 +  <thead>
 +    <tr>
 +      <th scope="col">#</th>
 +      <th scope="col">Owner</th>
 +      <th scope="col">Path</th>
 +      <th scope="col">Version</th>
 +      <th scope="col">Time</th>
 +      <th scope="col">Vendor</th>
 +    </tr>
 +  </thead>
 +  <tbody>
 +    {{ range $index, $element := hugo.Deps }}
 +    <tr>
 +      <th scope="row">{{ add $index 1 }}</th>
 +      <td>{{ with $element.Owner }}{{.Path }}{{ end }}</td>
 +      <td>
 +        {{ $element.Path }}
 +        {{ with $element.Replace}}
 +        => {{ .Path }}
 +        {{ end }}
 +      </td>
 +      <td>{{ $element.Version }}</td>
 +      <td>{{ with $element.Time }}{{ . }}{{ end }}</td>
 +      <td>{{ $element.Vendor }}</td>
 +    </tr>
 +    {{ end }}
 +  </tbody>
 +</table>
 +```
index 7dd5843ee22ead1023a5feebcc438b30b10f3c26,0000000000000000000000000000000000000000..0cf45b6ee8bb4259a2aa189070c33b473fd05c7f
mode 100644,000000..100644
--- /dev/null
@@@ -1,231 -1,0 +1,227 @@@
- {{< new-in "0.80.0" >}}
 +---
 +title: Image Filters
 +description: The images namespace provides a list of filters and other image related functions.
 +date: 2017-02-01
 +categories: [functions]
 +aliases: [/functions/imageconfig/]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [images]
 +toc: true
 +---
 +
 +See [images.Filter](#filter) for how to apply these filters to an image.
 +
 +## Overlay
 +
- {{< new-in "0.90.0" >}}
 +{{% funcsig %}}
 +images.Overlay SRC X Y
 +{{% /funcsig %}}
 +
 +Overlay creates a filter that overlays the source image at position x y, e.g:
 +
 +
 +```go-html-template
 +{{ $logoFilter := (images.Overlay $logo 50 50 ) }}
 +{{ $img := $img | images.Filter $logoFilter }}
 +```
 +
 +A shorter version of the above, if you only need to apply the filter once:
 +
 +```go-html-template
 +{{ $img := $img.Filter (images.Overlay $logo 50 50 )}}
 +```
 +
 +The above will overlay `$logo` in the upper left corner of `$img` (at position `x=50, y=50`).
 +
 +## Text
 +
 +Using the `Text` filter, you can add text to an image.
 +
 +{{% funcsig %}}
 +images.Text TEXT DICT)
 +{{% /funcsig %}}
 +
 +The following example will add the text `Hugo rocks!` to the image with the specified color, size and position.
 +
 +```go-html-template
 +{{ $img := resources.Get "/images/background.png"}}
 +{{ $img = $img.Filter (images.Text "Hugo rocks!" (dict
 +    "color" "#ffffff"
 +    "size" 60
 +    "linespacing" 2
 +    "x" 10
 +    "y" 20
 +))}}
 +```
 +
 +You can load a custom font if needed. Load the font as a Hugo `Resource` and set it as an option:
 +
 +```go-html-template
 +
 +{{ $font := resources.Get "https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Black.ttf" }}
 +{{ $img := resources.Get "/images/background.png"}}
 +{{ $img = $img.Filter (images.Text "Hugo rocks!" (dict
 +    "font" $font
 +))}}
 +```
 +
 +
 +## Brightness
 +
 +{{% funcsig %}}
 +images.Brightness PERCENTAGE
 +{{% /funcsig %}}
 +
 +Brightness creates a filter that changes the brightness of an image.
 +The percentage parameter must be in range (-100, 100).
 +
 +### ColorBalance
 +
 +{{% funcsig %}}
 +images.ColorBalance PERCENTAGERED PERCENTAGEGREEN PERCENTAGEBLUE
 +{{% /funcsig %}}
 +
 +ColorBalance creates a filter that changes the color balance of an image.
 +The percentage parameters for each color channel (red, green, blue) must be in range (-100, 500).
 +
 +## Colorize
 +
 +{{% funcsig %}}
 +images.Colorize HUE SATURATION PERCENTAGE
 +{{% /funcsig %}}
 +
 +Colorize creates a filter that produces a colorized version of an image.
 +The hue parameter is the angle on the color wheel, typically in range (0, 360).
 +The saturation parameter must be in range (0, 100).
 +The percentage parameter specifies the strength of the effect, it must be in range (0, 100).
 +
 +## Contrast
 +
 +{{% funcsig %}}
 +images.Contrast PERCENTAGE
 +{{% /funcsig %}}
 +
 +Contrast creates a filter that changes the contrast of an image.
 +The percentage parameter must be in range (-100, 100).
 +
 +## Gamma
 +
 +{{% funcsig %}}
 +images.Gamma GAMMA
 +{{% /funcsig %}}
 +
 +Gamma creates a filter that performs a gamma correction on an image.
 +The gamma parameter must be positive. Gamma = 1 gives the original image.
 +Gamma less than 1 darkens the image and gamma greater than 1 lightens it.
 +
 +## GaussianBlur
 +
 +{{% funcsig %}}
 +images.GaussianBlur SIGMA
 +{{% /funcsig %}}
 +
 +GaussianBlur creates a filter that applies a gaussian blur to an image.
 +
 +## Grayscale
 +
 +{{% funcsig %}}
 +images.Grayscale
 +{{% /funcsig %}}
 +
 +Grayscale creates a filter that produces a grayscale version of an image.
 +
 +## Hue
 +
 +{{% funcsig %}}
 +images.Hue SHIFT
 +{{% /funcsig %}}
 +
 +Hue creates a filter that rotates the hue of an image.
 +The hue angle shift is typically in range -180 to 180.
 +
 +## Invert
 +
 +{{% funcsig %}}
 +images.Invert
 +{{% /funcsig %}}
 +
 +Invert creates a filter that negates the colors of an image.
 +
 +## Pixelate
 +
 +{{% funcsig %}}
 +images.Pixelate SIZE
 +{{% /funcsig %}}
 +
 +Pixelate creates a filter that applies a pixelation effect to an image.
 +
 +## Saturation
 +
 +{{% funcsig %}}
 +images.Saturation PERCENTAGE
 +{{% /funcsig %}}
 +
 +Saturation creates a filter that changes the saturation of an image.
 +
 +## Sepia
 +
 +{{% funcsig %}}
 +images.Sepia PERCENTAGE
 +{{% /funcsig %}}
 +
 +Sepia creates a filter that produces a sepia-toned version of an image.
 +
 +## Sigmoid
 +
 +{{% funcsig %}}
 +images.Sigmoid MIDPOINT FACTOR
 +{{% /funcsig %}}
 +
 +Sigmoid creates a filter that changes the contrast of an image using a sigmoidal function and returns the adjusted image.
 +It's a non-linear contrast change useful for photo adjustments as it preserves highlight and shadow detail.
 +
 +## UnsharpMask
 +
 +{{% funcsig %}}
 +images.UnsharpMask SIGMA AMOUNT THRESHOLD
 +{{% /funcsig %}}
 +
 +UnsharpMask creates a filter that sharpens an image.
 +The sigma parameter is used in a gaussian function and affects the radius of effect.
 +Sigma must be positive. Sharpen radius roughly equals 3 * sigma.
 +The amount parameter controls how much darker and how much lighter the edge borders become. Typically between 0.5 and 1.5.
 +The threshold parameter controls the minimum brightness change that will be sharpened. Typically between 0 and 0.05.
 +
 +## Other Functions
 +
 +### Filter
 +
 +{{% funcsig %}}
 +IMAGE | images.Filter FILTERS...
 +{{% /funcsig %}}
 +
 +Can be used to apply a set of filters to an image:
 +
 +```go-html-template
 +{{ $img := $img | images.Filter (images.GaussianBlur 6) (images.Pixelate 8) }}
 +```
 +
 +Also see the [Filter Method](/content-management/image-processing/#filter).
 +
 +### ImageConfig
 +
 +Parses the image and returns the height, width, and color model.
 +
 +The `imageConfig` function takes a single parameter, a file path (_string_) relative to the _project's root directory_, with or without a leading slash.
 +
 +{{% funcsig %}}
 +images.ImageConfig PATH
 +{{% /funcsig %}}
 +
 +```go-html-template
 +{{ with (imageConfig "favicon.ico") }}
 +favicon.ico: {{.Width}} x {{.Height}}
 +{{ end }}
 +```
index 24818cef676fc444191d0ff59136dc2bdb7b6580,0000000000000000000000000000000000000000..33888e11701e3916438edaf94919774ec791a729
mode 100644,000000..100644
--- /dev/null
@@@ -1,50 -1,0 +1,50 @@@
- **Explanation**
 +---
 +title: int
 +linktitle: int
 +description: Creates an `int` from the argument passed into the function.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [strings,integers]
 +signature: ["int INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
 +Useful for turning strings into numbers.
 +
 +```
 +{{ int "123" }} → 123
 +```
 +
 +{{% note "Usage Note" %}}
 +If the input string is supposed to represent a decimal number, and if it has
 +leading 0's, then those 0's will have to be removed before passing the string
 +to the `int` function, else that string will be tried to be parsed as an octal
 +number representation.
 +
 +The [`strings.TrimLeft` function](/functions/strings.trimleft/) can be used for
 +this purpose.
 +
 +```
 +{{ int ("0987" | strings.TrimLeft "0") }}
 +{{ int ("00987" | strings.TrimLeft "0") }}
 +```
 +
++### Explanation
 +
 +The `int` function eventually calls the `ParseInt` function from the Go library
 +`strconv`.
 +
 +From its [documentation](https://golang.org/pkg/strconv/#ParseInt):
 +
 +> the base is implied by the string's prefix: base 16 for "0x", base 8 for "0",
 +> and base 10 otherwise.
 +{{% /note %}}
index 2fe73ded80d5bfa0b0674cdef9daa9dfee1c9ae9,0000000000000000000000000000000000000000..8d4c50fe2ec5248d3fde59700abf7b1cd7e74901
mode 100644,000000..100644
--- /dev/null
@@@ -1,36 -1,0 +1,36 @@@
- An useful example is to use it as `AND` filters when combined with where:
 +---
 +title: intersect
 +linktitle: intersect
 +description: Returns the common elements of two arrays or slices, in the same order as the first array.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [collections,intersect,union,complement,symdiff]
 +signature: ["intersect SET1 SET2"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
++A useful example is to use it as `AND` filters when combined with where:
 +
 +## AND filter in where query
 +
 +```
 +{{ $pages := where .Site.RegularPages "Type" "not in" (slice "page" "about") }}
 +{{ $pages := $pages | union (where .Site.RegularPages "Params.pinned" true) }}
 +{{ $pages := $pages | intersect (where .Site.RegularPages "Params.images" "!=" nil) }}
 +```
 +
 +The above fetches regular pages not of `page` or `about` type unless they are pinned. And finally, we exclude all pages with no `images` set in Page params.
 +
 +See [union](/functions/union) for `OR`.
 +
 +
 +[partials]: /templates/partials/
 +[single]: /templates/single-page-templates/
index 3aa38c8c4e2ea1a9ad981697284a61981bc48f60,0000000000000000000000000000000000000000..72ec4634bd60e87dc412ae9bdbd46899467d15cd
mode 100644,000000..100644
--- /dev/null
@@@ -1,48 -1,0 +1,48 @@@
- : Indendation to use.
 +---
 +title: jsonify
 +linktitle: jsonify
 +description: Encodes a given object to JSON.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2020-04-13
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [strings,json]
 +signature: ["jsonify INPUT", "jsonify OPTIONS INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [plainify]
 +deprecated: false
 +aliases: []
 +---
 +
 +Jsonify encodes a given object to JSON.
 +
 +To customize the printing of the JSON, pass a dictionary of options as the first
 +argument.  Supported options are "prefix" and "indent".  Each JSON element in
 +the output will begin on a new line beginning with *prefix* followed by one or
 +more copies of *indent* according to the indentation nesting.
 +
 +
 +```
 +{{ dict "title" .Title "content" .Plain | jsonify }}
 +{{ dict "title" .Title "content" .Plain | jsonify (dict "indent" "  ") }}
 +{{ dict "title" .Title "content" .Plain | jsonify (dict "prefix" " " "indent" "  ") }}
 +```
 +
 +## Jsonify options
 +
 +indent ("")
++: Indentation to use.
 +
 +prefix ("")
 +: Indentation prefix.
 +
 +noHTMLEscape (false)
 +: Disable escaping of problematic HTML characters inside JSON quoted strings. The default behavior is to escape &, <, and > to \u0026, \u003c, and \u003e to avoid certain safety problems that can arise when embedding JSON in HTML.
 +
 +See also the `.PlainWords`, `.Plain`, and `.RawContent` [page variables][pagevars].
 +
 +[pagevars]: /variables/page/
index 171c3bf107278ede5fd53a6ff9060ca50f3fd190,0000000000000000000000000000000000000000..b108ccb948964f0c1845db549f66b8d95803ed02
mode 100644,000000..100644
--- /dev/null
@@@ -1,29 -1,0 +1,28 @@@
- *Note*: if you need [Render Hooks][], which `markdownify` doesn't currently
- support, use [.RenderString](/functions/renderstring/) instead.
 +---
 +title: markdownify
 +linktitle: markdownify
 +description: Runs the provided string through the Markdown processor.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +keywords: [markdown,content]
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +signature: ["markdownify INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
 +
 +```
 +{{ .Title | markdownify }}
 +```
 +
- [Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks
++{{< new-in "0.93.0" >}} **Note**: `markdownify` now supports [Render Hooks][] just like [.RenderString](/functions/renderstring/).
 +
++[Render Hooks]: /templates/render-hooks/
index 7db856a75b3747778135de40177d3325f90d2aaa,0000000000000000000000000000000000000000..2168034c46d285e2a0b7118f7ebf63f63ea1544c
mode 100644,000000..100644
--- /dev/null
@@@ -1,30 -1,0 +1,30 @@@
- ```
 +---
 +title: md5
 +linktitle: md5
 +description: hashes the given input and returns its MD5 checksum.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: []
 +signature: ["md5 INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [sha]
 +deprecated: false
 +aliases: []
 +---
 +
 +```
 +{{ md5 "Hello world, gophers!" }}
 +<!-- returns the string "b3029f756f98f79e7f1b7f1d1f0dd53b" -->
 +```
 +
 +This can be useful if you want to use [Gravatar](https://en.gravatar.com/) for generating a unique avatar:
 +
++```html
 +<img src="https://www.gravatar.com/avatar/{{ md5 "your@email.com" }}?s=100&d=identicon">
 +```
index d7a70ac640e06de5eb09e31f0466ecf89b26a683,0000000000000000000000000000000000000000..a0c31737794284e78b163113e5abe9954aba0ff9
mode 100644,000000..100644
--- /dev/null
@@@ -1,46 -1,0 +1,46 @@@
- > See also the [The Full Partial Series Part 1: Caching!](https://regisphilibert.com/blog/2019/12/hugo-partial-series-part-1-caching-with-partialcached/)
 +---
 +title: partialCached
 +linktitle: partialCached
 +description: Allows for caching of partials that do not need to be re-rendered on every invocation.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [performance]
 +signature: ["partialCached LAYOUT INPUT [VARIANT...]"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
 +The `partialCached` template function can offer significant performance gains for complex templates that don't need to be re-rendered on every invocation.
 +
 +**Note:** Each Site (or language) has its own `partialCached` cache, so each site will execute a partial once.
 +
 +Here is the simplest usage:
 +
 +```
 +{{ partialCached "footer.html" . }}
 +```
 +
 +You can also pass additional parameters to `partialCached` to create *variants* of the cached partial. For example, if you have a complex partial that should be identical when rendered for pages within the same section, you could use a variant based upon section so that the partial is only rendered once per section:
 +
 +{{< code file="partial-cached-example.html" >}}
 +{{ partialCached "footer.html" . .Section }}
 +{{< /code >}}
 +
 +If you need to pass additional parameters to create unique variants, you can pass as many variant parameters as you need:
 +
 +```
 +{{ partialCached "footer.html" . .Params.country .Params.province }}
 +```
 +
 +Note that the variant parameters are not made available to the underlying partial template. They are only use to create a unique cache key. Since Hugo `0.61.0` you can use any object as cache key(s), not just strings.
 +
 +
++> See also [The Full Partial Series Part 1: Caching!](https://regisphilibert.com/blog/2019/12/hugo-partial-series-part-1-caching-with-partialcached/)
index ade38042008c731dd2212d00bc50bec84bdc29f2,0000000000000000000000000000000000000000..3387ce6d0276d3c1f054d85d5a602d64484d781d
mode 100644,000000..100644
--- /dev/null
@@@ -1,50 -1,0 +1,50 @@@
- Hugo emits an error or warning if the page cannot be uniquely resolved. The error behavior is configurable; see [Ref and RelRef Configuration](/content-management/cross-references/#ref-and-relref-configuration). 
 +---
 +title: ref
 +linktitle: ref
 +description: Returns the absolute permalink to a page.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2020-09-05
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [cross references, anchors]
 +signature: ["ref . PAGE"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [relref]
 +deprecated: false
 +aliases: []
 +---
 +
 +This function takes two parameters:
 +
 +- The context of the page from which to resolve relative paths, typically the current page (`.`)
 +- The path to a page, with or without a file extension, with or without an anchor. A path without a leading `/` is first resolved relative to the given context, then to the remainder of the site.
 +
 +```go-html-template
 +{{ ref . "about" }}
 +{{ ref . "about#anchor" }}
 +{{ ref . "about.md" }}
 +{{ ref . "about.md#anchor" }}
 +{{ ref . "#anchor" }}
 +{{ ref . "/blog/my-post" }}
 +{{ ref . "/blog/my-post.md" }}
 +```
 +
 +To return the absolute permalink to another language version of a page:
 +
 +```go-html-template
 +{{ ref . (dict "path" "about.md" "lang" "fr") }}
 +```
 +
 +To return the absolute permalink to another Output Format of a page:
 +
 +```go-html-template
 +{{ ref . (dict "path" "about.md" "outputFormat" "rss") }}
 +```
 +
++Hugo emits an error or warning if the page cannot be uniquely resolved. The error behavior is configurable; see [Ref and RelRef Configuration](/content-management/cross-references/#ref-and-relref-configuration).
 +
 +This function is used by Hugo's built-in [`ref`](/content-management/shortcodes/#ref-and-relref) shortcode. For a detailed explanation of how to leverage this shortcode for content management, see [Links and Cross References](/content-management/cross-references/).
index 5cca28c69557e6fc29d01449d694eb4937d81a13,0000000000000000000000000000000000000000..78b823c239cf1d2a0f0468fa5c07562274ddd620
mode 100644,000000..100644
--- /dev/null
@@@ -1,29 -1,0 +1,62 @@@
- description: Adds the relative URL with correct language prefix according to site configuration for multilingual.
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
- keywords: [multilingual,i18n,urls]
 +---
 +title: relLangURL
-     parent: "functions"
++description: Returns a relative URL with a language prefix, if any.
 +categories: [functions]
 +menu:
 +  docs:
- workson: []
- hugoversion:
- relatedfuncs: []
- deprecated: false
- aliases: []
++    parent: functions
++keywords: [urls, multilingual,i18n]
 +signature: ["relLangURL INPUT"]
- `absLangURL` and `relLangURL` functions are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl/) relatives but will add the correct language prefix when the site is configured with more than one language. (See [Configure Languages][multiliconfig].)
 +---
 +
- So for a site  `baseURL` set to `https://example.com/hugo/` and the current language is `en`:
++Use this function with both monolingual and multilingual configurations. The URL returned by this function depends on:
 +
- {{ "blog/" | absLangURL }} → "https://example.com/hugo/en/blog/"
- {{ "blog/" | relLangURL }} → "/hugo/en/blog/"
++- Whether the input begins with a slash
++- The `baseURL` in site configuration
++- The language prefix, if any
 +
++In examples that follow, the project is multilingual with content in both Español (`es`) and English (`en`). The default language is Español. The returned values are from the English site.
++
++### Input does not begin with a slash
++
++If the input does not begin with a slash, the resulting URL will be correct regardless of the `baseURL`.
++
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ relLangURL "" }}           →   /en/
++{{ relLangURL "articles" }}   →   /en/articles
++{{ relLangURL "style.css" }}  →   /en/style.css
++``` 
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ relLangURL "" }}           →   /docs/en/
++{{ relLangURL "articles" }}   →   /docs/en/articles
++{{ relLangURL "style.css" }}  →   /docs/en/style.css
 +```
- [multiliconfig]: /content-management/multilingual/#configure-languages
++
++### Input begins with a slash
++
++If the input begins with a slash, the resulting URL will be incorrect when the `baseURL` includes a subdirectory. With a leading slash, the function returns a URL relative to the protocol+host section of the `baseURL`.
++
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ relLangURL "/" }}          →   /en/
++{{ relLangURL "/articles" }}  →   /en/articles
++{{ relLangURL "/style.css" }} →   /en/style.css
++``` 
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ relLangURL "/" }}          →   /en/
++{{ relLangURL "/articles" }}  →   /en/articles
++{{ relLangURL "/style.css" }} →   /en/style.css
 +```
 +
++{{% note %}}
++The last three examples are not desirable in most situations. As a best practice, never include a leading slash when using this function.
++{{% /note %}}
index dbac2f3dba0c600784e509049c8071c2795971a9,0000000000000000000000000000000000000000..1f32f60a24fdfa14de64a306339ef6c04f611187
mode 100644,000000..100644
--- /dev/null
@@@ -1,57 -1,0 +1,57 @@@
- Hugo emits an error or warning if the page cannot be uniquely resolved. The error behavior is configurable; see [Ref and RelRef Configuration](/content-management/cross-references/#ref-and-relref-configuration). 
 +---
 +title: relref
 +linktitle: relref
 +description: Returns the relative permalink to a page.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2020-09-05
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [cross references, anchors]
 +signature: ["relref . PAGE"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [ref]
 +deprecated: false
 +aliases: []
 +---
 +
 +This function takes two parameters:
 +
 +- The context of the page from which to resolve relative paths, typically the current page (`.`)
 +- The path to a page, with or without a file extension, with or without an anchor. A path without a leading `/` is first resolved relative to the given context, then to the remainder of the site.
 +
 +```go-html-template
 +{{ relref . "about" }}
 +{{ relref . "about#anchor" }}
 +{{ relref . "about.md" }}
 +{{ relref . "about.md#anchor" }}
 +{{ relref . "#anchor" }}
 +{{ relref . "/blog/my-post" }}
 +{{ relref . "/blog/my-post.md" }}
 +```
 +
 +The permalink returned is relative to the protocol+host portion of the baseURL specified in the site configuration. For example:
 +
 +Code|baseURL|Permalink
 +:--|:--|:--
 +`{{ relref . "/about" }}`|`http://example.org/`|`/about/`
 +`{{ relref . "/about" }}`|`http://example.org/x/`|`/x/about/`
 +
 +To return the relative permalink to another language version of a page:
 +
 +```go-html-template
 +{{ relref . (dict "path" "about.md" "lang" "fr") }}
 +```
 +
 +To return the relative permalink to another Output Format of a page:
 +
 +```go-html-template
 +{{ relref . (dict "path" "about.md" "outputFormat" "rss") }}
 +```
 +
++Hugo emits an error or warning if the page cannot be uniquely resolved. The error behavior is configurable; see [Ref and RelRef Configuration](/content-management/cross-references/#ref-and-relref-configuration).
 +
 +This function is used by Hugo's built-in [`relref`](/content-management/shortcodes/#ref-and-relref) shortcode. For a detailed explanation of how to leverage this shortcode for content management, see [Links and Cross References](/content-management/cross-references/).
index af98c44f4f3e9ae2beb2bcb4afb9b3bd8f7f959a,0000000000000000000000000000000000000000..c8278c9df35c4ff3398b3c0794344ece770b36b6
mode 100644,000000..100644
--- /dev/null
@@@ -1,49 -1,0 +1,61 @@@
- description: Creates a baseURL-relative URL.
- date: 2017-02-01
- publishdate: 2017-02-01
 +---
 +title: relURL
-     parent: "functions"
++description: Returns a relative URL.
 +categories: [functions]
 +menu:
 +  docs:
- workson: []
- hugoversion:
- relatedfuncs: [absURL]
- deprecated: false
- aliases: []
++    parent: functions
 +keywords: [urls]
 +signature: ["relURL INPUT"]
- Both `absURL` and `relURL` consider the configured value of `baseURL` in your site's [`config` file][configuration]. Given a `baseURL` set to `https://example.com/hugo/`:
 +---
 +
- {{ "mystyle.css" | absURL }} → "https://example.com/hugo/mystyle.css"
- {{ "mystyle.css" | relURL }} → "/hugo/mystyle.css"
- {{ "http://gohugo.io/" | relURL }} →  "http://gohugo.io/"
- {{ "http://gohugo.io/" | absURL }} →  "http://gohugo.io/"
++With multilingual configurations, use the [`relLangURL`] function instead. The URL returned by this function depends on:
 +
++- Whether the input begins with a slash
++- The `baseURL` in site configuration
++
++### Input does not begin with a slash
++
++If the input does not begin with a slash, the resulting URL will be correct regardless of the `baseURL`.
++
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ relURL "" }}           →   /
++{{ relURL "articles" }}   →   /articles
++{{ relURL "style.css" }}  →   /style.css
 +```
- The last two examples may look strange but can be very useful. For example, the following shows how to use `absURL` in [JSON-LD structured data for SEO][jsonld] where some of your images for a piece of content may or may not be hosted locally:
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ relURL "" }}           →   /docs/
++{{ relURL "articles" }}   →   /docs/articles
++{{ relURL "style.css" }}  →   /docs/style.css
 +```
 +
- {{< code file="layouts/partials/schemaorg-metadata.html" download="schemaorg-metadata.html" >}}
- <script type="application/ld+json">
- {
-     "@context" : "https://schema.org",
-     "@type" : "BlogPosting",
-     "image" : {{ apply .Params.images "absURL" "." }}
- }
- </script>
- {{< /code >}}
++### Input begins with a slash
 +
- The above uses the [apply function][] and also exposes how the Go template parser JSON-encodes objects inside `<script>` tags. See [the safeJS template function][safejs] for examples of how to tell Hugo not to escape strings inside of such tags.
++If the input begins with a slash, the resulting URL will be incorrect when the `baseURL` includes a subdirectory. With a leading slash, the function returns a URL relative to the protocol+host section of the `baseURL`.
 +
- {{% note "Ending Slash" %}}
- `absURL` and `relURL` are smart about missing slashes, but they will *not* add a closing slash to a URL if it is not present.
++With `baseURL = https://example.org/`
++
++```go-html-template
++{{ relURL "/" }}          →   /
++{{ relURL "/articles" }}  →   /articles
++{{ relURL "style.css" }}  →   /style.css
++```
++
++With `baseURL = https://example.org/docs/`
++
++```go-html-template
++{{ relURL "/" }}          →   /
++{{ relURL "/articles" }}  →   /articles
++{{ relURL "/style.css" }} →   /style.css
++```
 +
- [apply function]: /functions/apply/
- [configuration]: /getting-started/configuration/
- [jsonld]: https://developers.google.com/search/docs/advanced/structured-data/intro-structured-data
- [safejs]: /functions/safejs
++{{% note %}}
++The last three examples are not desirable in most situations. As a best practice, never include a leading slash when using this function.
 +{{% /note %}}
 +
++[`relLangURL`]: /functions/rellangurl/
index a2149b6d3a5f3dca37ee14ac6ab258221ddd4b67,0000000000000000000000000000000000000000..f1e34ba654c73a42ab032476ff69b3ce16bb56f1
mode 100644,000000..100644
--- /dev/null
@@@ -1,34 -1,0 +1,47 @@@
- description: Replaces all occurrences of a regular expression with the replacement pattern.
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2020-09-07
 +---
 +title: replaceRE
-     parent: "functions"
++description: Returns a string, replacing all occurrences of a regular expression with a replacement pattern.
 +categories: [functions]
 +menu:
 +  docs:
- signature: ["strings.ReplaceRE PATTERN REPLACEMENT INPUT [LIMIT]", "replaceRE PATTERN REPLACEMENT INPUT [LIMIT]"]
- workson: []
- hugoversion:
- relatedfuncs: []
- deprecated: false
++    parent: functions
 +keywords: [regex]
- `strings.ReplaceRE` returns a copy of `INPUT`, replacing all matches of the regular
- expression `PATTERN` with the replacement text `REPLACEMENT`.
- The number of replacements can be limited with an optional `LIMIT` parameter.
++signature:
++  - "replaceRE PATTERN REPLACEMENT INPUT [LIMIT]"
++  - "strings.ReplaceRE PATTERN REPLACEMENT INPUT [LIMIT]"
++relatedfuncs: [findRE]
 +aliases: []
 +---
++By default, the `replaceRE` function replaces all matches. You can limit the number of matches with an optional LIMIT paramater.
 +
- {{ replaceRE "^https?://([^/]+).*" "$1" "http://gohugo.io/docs" }}` → "gohugo.io"
- {{ "http://gohugo.io/docs" | replaceRE "^https?://([^/]+).*" "$1" }}` → "gohugo.io"
- {{ replaceRE "a+b" "X" "aabbaabbab" 1 }} → "Xbaabbab"
++When specifying the regular expression, use a raw [string literal] (backticks) instead of an interpreted string literal (double quotes) to simplify the syntax. With an interpreted string literal you must escape backslashes.
 +
++The syntax of the regular expression is the same general syntax used by Perl, Python, and other languages. More precisely, it is the syntax accepted by [RE2] except for `\C`.
++
++This example replaces two or more consecutive hyphens with a single hyphen:
++
++```go-html-template
++{{ $s := "a-b--c---d" }}
++{{ replaceRE `(-{2,})` "-" $s }} → a-b-c-d
 +```
- {{% note %}}
- Hugo uses Go's [Regular Expression package](https://golang.org/pkg/regexp/), which is the same general syntax used by Perl, Python, and other languages but with a few minor differences for those coming from a background in PCRE. For a full syntax listing, see the [GitHub wiki for re2](https://github.com/google/re2/wiki/Syntax).
++
++To limit the number of replacements to one:
++
++```go-html-template
++{{ $s := "a-b--c---d" }}
++{{ replaceRE `(-{2,})` "-" $s 1 }} → a-b-c---d
 +```
 +
- If you are just learning RegEx, or at least Go's flavor, you can practice pattern matching in the browser at <https://regex101.com/>.
++You can use `$1`, `$2`, etc. within the replacement string to insert the groups captured within the regular expression:
 +
++```go-html-template
++{{ $s := "http://gohugo.io/docs" }}
++{{ replaceRE "^https?://([^/]+).*" "$1" $s }} → gohugo.io
++```
++
++{{% note %}}
++You can write and test your regular expression using [regex101.com](https://regex101.com/). Be sure to select the Go flavor before you begin.
 +{{% /note %}}
++
++[RE2]: https://github.com/google/re2/wiki/Syntax
++[string literal]: https://go.dev/ref/spec#String_literals
index 3d5197a4fd933ca93af61c020c5e4226c5a627a2,0000000000000000000000000000000000000000..5a0aa1e053c052ac4fd472931354c66018ff4c32
mode 100644,000000..100644
--- /dev/null
@@@ -1,40 -1,0 +1,40 @@@
- ```
 +---
 +title: safeHTML
 +# linktitle:
 +description: Declares a provided string as a "safe" HTML document to avoid escaping by Go templates.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [strings]
 +signature: ["safeHTML INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +---
 +
 +It should not be used for HTML from a third-party, or HTML with unclosed tags or comments.
 +
 +Given a site-wide [`config.toml`][config] with the following `copyright` value:
 +
 +{{< code-toggle file="config" >}}
 +copyright = "© 2015 Jane Doe.  <a href=\"https://creativecommons.org/licenses/by/4.0/\">Some rights reserved</a>."
 +{{< /code-toggle >}}
 +
 +`{{ .Site.Copyright | safeHTML }}` in a template would then output:
 +
++```html
 +© 2015 Jane Doe.  <a href="https://creativecommons.org/licenses/by/4.0/">Some rights reserved</a>.
 +```
 +
 +However, without the `safeHTML` function, html/template assumes `.Site.Copyright` to be unsafe and therefore escapes all HTML tags and renders the whole string as plain text:
 +
 +```
 +<p>© 2015 Jane Doe.  &lt;a href=&#34;https://creativecommons.org/licenses by/4.0/&#34;&gt;Some rights reserved&lt;/a&gt;.</p>
 +```
 +
 +[config]: /getting-started/configuration/
index 19de2e98561f3f8c9582cc758601f1719e2e323b,0000000000000000000000000000000000000000..7e730412aac2f23079df3e62d64553a395a6f489
mode 100644,000000..100644
--- /dev/null
@@@ -1,30 -1,0 +1,46 @@@
- # linktitle: safeHTMLAttr
 +---
 +title: safeHTMLAttr
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
 +description: Declares the provided string as a safe HTML attribute.
-     parent: "functions"
 +categories: [functions]
 +menu:
 +  docs:
- workson: []
- hugoversion:
++    parent: functions
 +keywords: [strings]
 +signature: ["safeHTMLAttr INPUT"]
- deprecated: false
 +relatedfuncs: []
- Example: Given a site-wide `config.toml` that contains this menu entry:
 +aliases: []
 +---
 +
-     name = "IRC: #golang at freenode"
-     url = "irc://irc.freenode.net/#golang"
++Given a site configuration that contains this menu entry:
 +
 +{{< code-toggle file="config" >}}
 +[[menu.main]]
- * <span class="bad">`<a href="{{ .URL }}">` &rarr; `<a href="#ZgotmplZ">`</span>
- * <span class="good">`<a {{ printf "href=%q" .URL | safeHTMLAttr }}>` &rarr; `<a href="irc://irc.freenode.net/#golang">`</span>
++  name = "IRC"
++  url = "irc://irc.freenode.net/#golang"
 +{{< /code-toggle >}}
 +
++Attempting to use the `url` value directly in an attribute:
++
++```go-html-template
++{{ range site.Menus.main }}
++  <a href="{{ .URL }}">{{ .Name }}</a>
++{{ end }}
++``` 
++
++Will produce:
++
++```html
++<a href="#ZgotmplZ">IRC</a>
++```
++
++`ZgotmplZ` is a special value, inserted by Go's [template/html] package, that indicates that unsafe content reached a CSS or URL context.
++
++To override the safety check, use the `safeHTMLAttr` function:
++
++```go-html-template
++{{ range site.Menus.main }}
++  <a {{ printf "href=%q" .URL | safeHTMLAttr }}>{{ .Name }}</a>
++{{ end }}
++``` 
++
++[template/html]: https://pkg.go.dev/html/template
index c64aa1119e973fd7d6803a183a5bde96be0e47e5,0000000000000000000000000000000000000000..20f1ba14a7b27bfee5793aafef87e2b251194fce
mode 100644,000000..100644
--- /dev/null
@@@ -1,154 -1,0 +1,154 @@@
- {{< new-in "0.43" >}} A Scratch instance can also be assigned to any variable using the `newScratch` function. In this case, no Page or Shortcode context is required and the scope of the scratch is only local. The methods detailed below are available from the variable the Scratch instance was assigned to.
 +---
 +title: .Scratch
 +description: Acts as a "scratchpad" to store and manipulate data.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +keywords: [iteration]
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +toc:
 +signature: []
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +draft: false
 +aliases: [/extras/scratch/,/doc/scratch/]
 +---
 +
 +Scratch is a Hugo feature designed to conveniently manipulate data in a Go Template world. It is either a Page or Shortcode method for which the resulting data will be attached to the given context, or it can live as a unique instance stored in a variable.
 +
 +{{% note %}}
 +Note that Scratch was initially created as a workaround for a [Go template scoping limitation](https://github.com/golang/go/issues/10608) that affected Hugo versions prior to 0.48. For a detailed analysis of `.Scratch` and contextual use cases, see [this blog post](https://regisphilibert.com/blog/2017/04/hugo-scratch-explained-variable/).
 +{{% /note %}}
 +
 +### Contexted `.Scratch` vs. local `newScratch`
 +
 +Since Hugo 0.43, there are two different ways of using Scratch:
 +
 +#### The Page's `.Scratch`
 +
 +`.Scratch` is available as a Page method or a Shortcode method and attaches the "scratched" data to the given page. Either a Page or a Shortcode context is required to use `.Scratch`.
 +
 +```go-html-template
 +{{ .Scratch.Set "greeting" "bonjour" }}
 +{{ range .Pages }}
 +  {{ .Scratch.Set "greeting" (print "bonjour" .Title) }}
 +{{ end }}
 +```
 +
 +#### The local `newScratch`
 +
- Add a given value to existing value(s) of the given key. 
++A Scratch instance can also be assigned to any variable using the `newScratch` function. In this case, no Page or Shortcode context is required and the scope of the scratch is only local. The methods detailed below are available from the variable the Scratch instance was assigned to.
 +
 +```go-html-template
 +{{ $data := newScratch }}
 +{{ $data.Set "greeting" "hola" }}
 +```
 +
 +### Methods
 +
 +A Scratch has the following methods:
 +
 +{{% note %}}
 +Note that the following examples assume a [local Scratch instance](#the-local-newscratch) has been stored in `$scratch`.
 +{{% /note %}}
 +
 +#### .Set
 +
 +Set the value of a given key.
 +
 +```go-html-template
 +{{ $scratch.Set "greeting" "Hello" }}
 +```
 +
 +#### .Get
 +
 +Get the value of a given key.
 +
 +```go-html-template
 +{{ $scratch.Set "greeting" "Hello" }}
 +----
 +{{ $scratch.Get "greeting" }} > Hello
 +```
 +
 +#### .Add
 +
- {{< new-in "0.38" >}} Remove the given key.
++Add a given value to existing value(s) of the given key.
 +
 +For single values, `Add` accepts values that support Go's `+` operator. If the first `Add` for a key is an array or slice, the following adds will be appended to that list.
 +
 +```go-html-template
 +{{ $scratch.Add "greetings" "Hello" }}
 +{{ $scratch.Add "greetings" "Welcome" }}
 +----
 +{{ $scratch.Get "greetings" }} > HelloWelcome
 +```
 +
 +```go-html-template
 +{{ $scratch.Add "total" 3 }}
 +{{ $scratch.Add "total" 7 }}
 +----
 +{{ $scratch.Get "total" }} > 10
 +```
 +
 +```go-html-template
 +{{ $scratch.Add "greetings" (slice "Hello") }}
 +{{ $scratch.Add "greetings" (slice "Welcome" "Cheers") }}
 +----
 +{{ $scratch.Get "greetings" }} > []interface {}{"Hello", "Welcome", "Cheers"}
 +```
 +
 +#### .SetInMap
 +
 +Takes a `key`, `mapKey` and `value` and adds a map of `mapKey` and `value` to the given `key`.
 +
 +```go-html-template
 +{{ $scratch.SetInMap "greetings" "english" "Hello" }}
 +{{ $scratch.SetInMap "greetings" "french" "Bonjour" }}
 +----
 +{{ $scratch.Get "greetings" }} > map[french:Bonjour english:Hello]
 +```
 +
 +#### .DeleteInMap
 +Takes a `key` and `mapKey` and removes the map of `mapKey` from the given `key`.
 +
 +```go-html-template
 +{{ .Scratch.SetInMap "greetings" "english" "Hello" }}
 +{{ .Scratch.SetInMap "greetings" "french" "Bonjour" }}
 +----
 +{{ .Scratch.DeleteInMap "greetings" "english" }}
 +----
 +{{ .Scratch.Get "greetings" }} > map[french:Bonjour]
 +```
 +
 +#### .GetSortedMapValues
 +
 +Return an array of values from `key` sorted by `mapKey`.
 +
 +```go-html-template
 +{{ $scratch.SetInMap "greetings" "english" "Hello" }}
 +{{ $scratch.SetInMap "greetings" "french" "Bonjour" }}
 +----
 +{{ $scratch.GetSortedMapValues "greetings" }} > [Hello Bonjour]
 +```
 +
 +#### .Delete
 +
++Remove the given key.
 +
 +```go-html-template
 +{{ $scratch.Set "greeting" "Hello" }}
 +----
 +{{ $scratch.Delete "greeting" }}
 +```
 +
 +#### .Values
 +
 +Return the raw backing map. Note that you should only use this method on the locally scoped Scratch instances you obtain via [`newScratch`](#the-local-newscratch), not `.Page.Scratch` etc., as that will lead to concurrency issues.
 +
 +
 +[pagevars]: /variables/page/
index a66a7cf0c5bfff59478cc18b65b620a810682e95,0000000000000000000000000000000000000000..51d1a64f77187a10425f62ba5f3b5f5ae7b2eae9
mode 100644,000000..100644
--- /dev/null
@@@ -1,21 -1,0 +1,30 @@@
- # linktitle: split
- description: splits a string into substrings separated by a delimiter
 +---
 +title: split
- lastmod: 2017-02-01
++description: Returns a slice of strings by splitting STRING by DELIM.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- * `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"]
++lastmod: 2022-11-06
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [strings]
 +signature: ["split STRING DELIM"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
++Examples:
++
++```go-html-template
++{{ split "tag1,tag2,tag3" "," }} → ["tag1", "tag2", "tag3"]
++{{ split "abc" "" }} → ["a", "b", "c"]
++```
++
++
++{{% note %}}
++`split` essentially does the opposite of [delimit]({{< ref "functions/delimit" >}}). While `split` creates a slice from a string, `delimit` creates a string from a slice.
++{{% /note %}}
index f666a784325461606f38e30665cce4d9ef5b4a55,0000000000000000000000000000000000000000..c0b11233c26ba3ee4ceb725dd90eb3f7732114ef
mode 100644,000000..100644
--- /dev/null
@@@ -1,29 -1,0 +1,27 @@@
- {{< new-in "0.74.0" >}}
 +---
 +title: strings.Count
 +description: Returns the number of non-overlapping instances of a substring within a string.
 +date: 2020-09-07
 +publishdate: 2020-09-07
 +lastmod: 2020-09-07
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [count, counting, character count]
 +signature: ["strings.Count SUBSTR STRING"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +aliases: []
 +---
 +
 +If `SUBSTR` is an empty string, this function returns 1 plus the number of Unicode code points in `STRING`.
 +
 +Example|Result
 +:--|:--
 +`{{ "aaabaab" \| strings.Count "a" }}`|5
 +`{{ "aaabaab" \| strings.Count "aa" }}`|2
 +`{{ "aaabaab" \| strings.Count "aaa" }}`|1
 +`{{ "aaabaab" \| strings.Count "" }}`|8
index 3b82ea055ed4b9ee1ad9563897923258f6a2f7f8,0000000000000000000000000000000000000000..78688a5cbe28839b1efbb257073e885d5f95cdb1
mode 100644,000000..100644
--- /dev/null
@@@ -1,22 -1,0 +1,22 @@@
- description: Determine whether or not a given string ends with the provided trailing suffix string.
 +---
 +title: strings.HasSuffix
++description: Determine whether a given string ends with the provided trailing suffix string.
 +date: 2019-08-13
 +publishdate: 2019-08-13
 +lastmod: 2019-08-13
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [strings]
 +signature: ["strings.HasSuffix STRING SUFFIX"]
 +workson: []
 +hugoversion:
 +relatedfuncs: [hasPrefix]
 +deprecated: false
 +aliases: []
 +---
 +
 +    {{ $pdfPath := "/path/to/some.pdf" }}
 +    {{ strings.HasSuffix $pdfPath "pdf" }} → true
 +    {{ strings.HasSuffix $pdfPath "txt" }} → false
index da269a422e91ec741daa9b53e9163d8a0dbcf8b8,0000000000000000000000000000000000000000..bac1f1ffe283d15e7a41651aee00d202d48ee7e3
mode 100644,000000..100644
--- /dev/null
@@@ -1,28 -1,0 +1,23 @@@
 +---
 +title: "symdiff"
 +description: "`collections.SymDiff` (alias `symdiff`) returns the symmetric difference of two collections."
 +date: 2018-11-07
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [collections,intersect,union,complement]
 +signature: ["COLLECTION | symdiff COLLECTION" ]
 +hugoversion: "0.51"
 +aliases: []
 +---
 +
 +Example:
 +
 +```go-html-template
 +{{ slice 1 2 3 | symdiff (slice 3 4) }}
 +```
 +
 +The above will print `[1 2 4]`.
 +
 +Also see https://en.wikipedia.org/wiki/Symmetric_difference
index 0762541dddabe22cfcef39a48eebcc7b796235f4,0000000000000000000000000000000000000000..c7d52321781f55909ec63ca645ed23b5ba79a65f
mode 100644,000000..100644
--- /dev/null
@@@ -1,28 -1,0 +1,28 @@@
- ```
 +---
 +title: upper
 +# linktitle: upper
 +description: Converts all characters in a string to uppercase
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +keywords: []
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +toc:
 +signature: ["upper INPUT"]
 +workson: []
 +hugoversion:
 +relatedfuncs: []
 +deprecated: false
 +draft: false
 +aliases: []
 +---
 +
 +Note that `upper` can be applied in your templates in more than one way:
 +
++```go-html-template
 +{{ upper "BatMan" }} → "BATMAN"
 +{{ "BatMan" | upper }} → "BATMAN"
 +```
index 82a88b9d7dedeab34604933e49b80af1c01a1f6a,0000000000000000000000000000000000000000..048946cd377c1091f8aa15ad6278493b97c6dfb8
mode 100644,000000..100644
--- /dev/null
@@@ -1,73 -1,0 +1,71 @@@
 +---
 +title: urlize
 +# linktitle: urlize
 +description: Takes a string, sanitizes it for usage in URLs, and converts spaces to hyphens.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [urls,strings]
 +signature: ["urlize INPUT"]
 +hugoversion:
 +deprecated: false
 +workson: []
 +relatedfuncs: []
 +---
 +
 +The following examples pull from a content file with the following front matter:
 +
 +{{< code file="content/blog/greatest-city.md" copy="false">}}
 ++++
 +title = "The World's Greatest City"
 +location = "Chicago IL"
 +tags = ["pizza","beer","hot dogs"]
 ++++
 +{{< /code >}}
 +
 +The following might be used as a partial within a [single page template][singletemplate]:
 +
 +{{< code file="layouts/partials/content-header.html" download="content-header.html" >}}
 +<header>
 +    <h1>{{.Title}}</h1>
 +    {{ with .Params.location }}
 +        <div><a href="/locations/{{ . | urlize}}">{{.}}</a></div>
 +    {{ end }}
 +    <!-- Creates a list of tags for the content and links to each of their pages -->
 +    {{ with .Params.tags }}
 +    <ul>
 +        {{range .}}
 +            <li>
 +                <a href="/tags/{{ . | urlize }}">{{ . }}</a>
 +            </li>
 +        {{end}}
 +    </ul>
 +    {{ end }}
 +</header>
 +{{< /code >}}
 +
 +The preceding partial would then output to the rendered page as follows, assuming the page is being built with Hugo's default pretty URLs.
 +
 +{{< output file="/blog/greatest-city/index.html" >}}
 +<header>
 +    <h1>The World&#39;s Greatest City</h1>
 +    <div><a href="/locations/chicago-il">Chicago IL</a></div>
 +    <ul>
 +        <li>
 +            <a href="/tags/pizza">pizza</a>
 +        </li>
 +        <li>
 +            <a href="/tags/beer">beer</a>
 +        </li>
 +        <li>
 +            <a href="/tags/hot-dogs">hot dogs</a>
 +        </li>
 +    </ul>
 +</header>
 +{{< /output >}}
 +
 +[singletemplate]: /templates/single-page-templates/
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ca00e6e6d2f027778c9b5ef050490d37ffbb1e5e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,33 @@@
++---
++title: urlquery
++linktitle: urlquery
++description: Returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.
++date: 2022-01-18
++publishdate: 2022-01-18
++lastmod: 2022-01-18
++categories: [functions]
++menu:
++  docs:
++    parent: "functions"
++keywords: [urls]
++signature: ["urlquery INPUT [INPUT]..."]
++hugoversion:
++deprecated: false
++workson: []
++relatedfuncs: []
++aliases: []
++---
++
++
++This template code:
++
++```go-html-template
++{{ $u := urlquery "https://" "example.com" | safeURL }}
++<a href="https://example.org?url={{ $u }}">Link</a>
++```
++
++Is rendered to:
++
++```html
++<a href="https://example.org?url=https%3A%2F%2Fexample.com">Link</a>
++```
index 7709ad8c2bf767e3c83c6e5b990f634396b4ecf6,0000000000000000000000000000000000000000..67673421095d45bdc71a45fabd5c90f53740de61
mode 100644,000000..100644
--- /dev/null
@@@ -1,31 -1,0 +1,31 @@@
- ```
 +---
 +title: urls.Parse
 +description: Parse parses a given url, which may be relative or absolute, into a URL structure.
 +date: 2017-09-25
 +publishdate: 2017-09-25
 +lastmod: 2017-09-25
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [urls]
 +signature: ["urls.Parse URL"]
 +workson: []
 +hugoversion:
 +deprecated: false
 +aliases: []
 +---
 +
 +`urls.Parse` takes a url as input
 +
 +
- ```
++```go-html-template
 +{{ $url := urls.Parse "http://www.gohugo.io" }}
 +```
 +
 +and returns a [URL](https://godoc.org/net/url#URL) structure. The struct fields are accessed via the `.` notation:
 +
++```go-html-template
 +{{ $url.Scheme }} → "http"
 +{{ $url.Host }} → "www.gohugo.io"
 +```
index f712cd984540e428c1b90c4f7d6ebd167b3a4c5c,0000000000000000000000000000000000000000..b7d31f645e6cca6284783cc1b01da7fbd096dc5a
mode 100644,000000..100644
--- /dev/null
@@@ -1,176 -1,0 +1,176 @@@
- sections**](#mainsections), sorts it using the [default
 +---
 +title: where
 +# linktitle: where
 +description: Filters an array to only the elements containing a matching value for a given field.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [functions]
 +menu:
 +  docs:
 +    parent: "functions"
 +keywords: [filtering]
 +signature: ["where COLLECTION KEY [OPERATOR] MATCH"]
 +workson: [lists,taxonomies,terms,groups]
 +hugoversion:
 +relatedfuncs: [intersect,first,after,last]
 +deprecated: false
 +toc: true
 +needsexample: true
 +---
 +
 +`where` filters an array to only the elements containing a matching
 +value for a given field.
 +
 +It works in a similar manner to the [`where` keyword in
 +SQL][wherekeyword].
 +
 +```go-html-template
 +{{ range where .Pages "Section" "foo" }}
 +  {{ .Content }}
 +{{ end }}
 +```
 +
 +It can be used by dot-chaining the second argument to refer to a nested element of a value.
 +
 +```
 ++++
 +series: golang
 ++++
 +```
 +
 +```go-html-template
 +{{ range where .Site.Pages "Params.series" "golang" }}
 +   {{ .Content }}
 +{{ end }}
 +```
 +
 +It can also be used with the logical operators `!=`, `>=`, `in`, etc. Without an operator, `where` compares a given field with a matching value equivalent to `=`.
 +
 +```go-html-template
 +{{ range where .Pages "Section" "!=" "foo" }}
 +   {{ .Content }}
 +{{ end }}
 +```
 +
 +The following logical operators are available with `where`:
 +
 +`=`, `==`, `eq`
 +: `true` if a given field value equals a matching value
 +
 +`!=`, `<>`, `ne`
 +: `true` if a given field value doesn't equal a matching value
 +
 +`>=`, `ge`
 +: `true` if a given field value is greater than or equal to a matching value
 +
 +`>`, `gt`
 +: `true` if a given field value is greater than a matching value
 +
 +`<=`, `le`
 +: `true` if a given field value is lesser than or equal to a matching value
 +
 +`<`, `lt`
 +: `true` if a given field value is lesser than a matching value
 +
 +`in`
 +: `true` if a given field value is included in a matching value; a matching value must be an array or a slice
 +
 +`not in`
 +: `true` if a given field value isn't included in a matching value; a matching value must be an array or a slice
 +
 +`intersect`
 +: `true` if a given field value that is a slice/array of strings or integers contains elements in common with the matching value; it follows the same rules as the [`intersect` function][intersect].
 +
 +## Use `where` with `Booleans`
 +When using booleans you should not put quotation marks.
 +```go-html-template
 +{{range where .Pages "Draft" true}}
 +        <p>{{.Title}}</p>
 +{{end}}
 +```
 +  
 +
 +## Use `where` with `intersect`
 +
 +```go-html-template
 +{{ range where .Site.Pages "Params.tags" "intersect" .Params.tags }}
 +  {{ if ne .Permalink $.Permalink }}
 +    {{ .Render "summary" }}
 +  {{ end }}
 +{{ end }}
 +```
 +
 +You can also put the returned value of the `where` clauses into a variable:
 +
 +{{< code file="where-intersect-variables.html" >}}
 +{{ $v1 := where .Site.Pages "Params.a" "v1" }}
 +{{ $v2 := where .Site.Pages "Params.b" "v2" }}
 +{{ $filtered := $v1 | intersect $v2 }}
 +{{ range $filtered }}
 +{{ end }}
 +{{< /code >}}
 +
 +## Use `where` with `first`
 +
 +Using `first` and `where` together can be very
 +powerful. Below snippet gets a list of posts only from [**main
- will default to the _section with the most pages_.
++sections**]({{< relref "where.md#mainsections" >}}), sorts it using the [default
 +ordering](/templates/lists/) for lists (i.e., `weight => date`), and
 +then ranges through only the first 5 posts in that list:
 +
 +{{< code file="first-and-where-together.html" >}}
 +{{ range first 5 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
 +   {{ .Content }}
 +{{ end }}
 +{{< /code >}}
 +
 +## Nest `where` Clauses
 +
 +You can also nest `where` clauses to drill down on lists of content by more than one parameter. The following first grabs all pages in the "blog" section and then ranges through the result of the first `where` clause and finds all pages that are *not* featured:
 +
 +```go-html-template
 +{{ range where (where .Pages "Section" "blog" ) "Params.featured" "!=" true }}
 +```
 +
 +## Unset Fields
 +
 +Filtering only works for set fields. To check whether a field is set or exists, you can use the operand `nil`.
 +
 +This can be useful to filter a small amount of pages from a large pool. Instead of setting a field on all pages, you can set that field on required pages only.
 +
 +Only the following operators are available for `nil`
 +
 +* `=`, `==`, `eq`: True if the given field is not set.
 +* `!=`, `<>`, `ne`: True if the given field is set.
 +
 +```go-html-template
 +{{ range where .Pages "Params.specialpost" "!=" nil }}
 +   {{ .Content }}
 +{{ end }}
 +```
 +
 +## Portable `where` filters -- `site.Params.mainSections` {#mainsections}
 +
 +**This is especially important for themes.**
 +
 +To list the most relevant pages on the front page or similar, you
 +should use the `site.Params.mainSections` list instead of comparing
 +section names to hard-coded values like `"posts"` or `"post"`.
 +
 +```go-html-template
 +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
 +```
 +
 +If the user has not set this config parameter in their site config, it
++will default to the *section with the most pages*.
 +
 +The user can override the default:
 +
 +{{< code-toggle file="config" >}}
 +[params]
 +  mainSections = ["blog", "docs"]
 +{{< /code-toggle >}}
 +
 +[intersect]: /functions/intersect/
 +[wherekeyword]: https://www.techonthenet.com/sql/where.php
index 1615bdd9156887e3dc06859aeb0d400726e3c460,0000000000000000000000000000000000000000..bffc2e1b7fe84477d677d057e91838a6676eab92
mode 100644,000000..100644
--- /dev/null
@@@ -1,24 -1,0 +1,22 @@@
- lastmod: 2017-02-01
 +---
 +title: Get Started
 +linktitle: Get Started Overview
 +description: Quick start and guides for installing Hugo on your preferred operating system.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [getting started]
 +keywords: [usage,docs]
 +menu:
 +  docs:
 +    parent: "getting-started"
 +    weight: 1
 +weight: 0001  #rem
- [installed]: /getting-started/installing/
 +aliases: [/overview/introduction/]
 +toc: false
 +---
 +
 +If this is your first time using Hugo and you've [already installed Hugo on your machine][installed], we recommend the [quick start][]. You can also use [external learning resources][] to learn Hugo.
 +
++[installed]: /installation/
 +[quick start]: /getting-started/quick-start/
 +[external learning resources]: /getting-started/external-learning-resources/
index 2a38c0ce436197412e6da283935a5509ad8d320e,0000000000000000000000000000000000000000..4694bd4392949bd5e02c0002a31cc1ea4b17441b
mode 100644,000000..100644
--- /dev/null
@@@ -1,115 -1,0 +1,110 @@@
- {{< new-in "0.60.0" >}}
 +---
 +title: Configure Markup
 +description: How to handle Markdown and other markup related configuration.
 +date: 2019-11-15
 +categories: [getting started,fundamentals]
 +keywords: [configuration,highlighting]
 +weight: 65
 +sections_weight: 65
 +slug: configuration-markup
 +toc: true
 +---
 +
 +## Configure Markup
 +
- {{< new-in "0.81.0" >}} In Hugo 0.81.0 we added support for adding attributes (e.g. CSS classes) to Markdown blocks, e.g. tables, lists, paragraphs etc.
 +See [Goldmark](#goldmark) for settings related to the default Markdown handler in Hugo.
 +
 +Below are all markup related configuration in Hugo with their default settings:
 +
 +{{< code-toggle config="markup" />}}
 +
 +**See each section below for details.**
 +
 +### Goldmark
 +
 +[Goldmark](https://github.com/yuin/goldmark/) is from Hugo 0.60 the default library used for Markdown. It's fast, it's [CommonMark](https://spec.commonmark.org/0.29/) compliant and it's very flexible.
 +
 +This is the default configuration:
 +
 +{{< code-toggle config="markup.goldmark" />}}
 +
 +For details on the extensions, refer to [this section](https://github.com/yuin/goldmark/#built-in-extensions) of the Goldmark documentation
 +
 +Some settings explained:
 +
 +unsafe
 +: By default, Goldmark does not render raw HTMLs and potentially dangerous links. If you have lots of inline HTML and/or JavaScript, you may need to turn this on.
 +
 +typographer
 +: This extension substitutes punctuations with typographic entities like [smartypants](https://daringfireball.net/projects/smartypants/).
 +
 +attribute
 +: Enable custom attribute support for titles and blocks by adding attribute lists inside single curly brackets (`{.myclass class="class1 class2" }`) and placing it _after the Markdown element it decorates_, on the same line for titles and on a new line directly below for blocks.
 +
- ````
++Hugo supports adding attributes (e.g. CSS classes) to Markdown blocks, e.g. tables, lists, paragraphs etc.
 +
 +A blockquote with a CSS class:
 +
 +```md
 +> foo
 +> bar
 +{.myclass}
 +```
 +
 +There are some current limitations: For tables you can currently only apply it to the full table, and for lists the `ul`/`ol`-nodes only, e.g.:
 +
 +```md
 +* Fruit
 +  * Apple
 +  * Orange
 +  * Banana
 +  {.fruits}
 +* Dairy
 +  * Milk
 +  * Cheese
 +  {.dairies}
 +{.list}
 +```
 +
 +Note that attributes in [code fences](/content-management/syntax-highlighting/#highlighting-in-code-fences) must come after the opening tag, with any other highlighting processing instruction, e.g.:
 +
- autoHeadingIDType ("github") {{< new-in "0.62.2" >}}
- : The strategy used for creating auto IDs (anchor names). Available types are `github`, `github-ascii` and `blackfriday`. `github` produces GitHub-compatible IDs, `github-ascii` will drop any non-Ascii characters after accent normalization, and `blackfriday` will make the IDs compatible with [Blackfriday](#blackfriday), the default Markdown engine before Hugo 0.60. Note that if Goldmark is your default Markdown engine, this is also the strategy used in the [anchorize](/functions/anchorize/) template func.
++````txt
 +```go {.myclass linenos=table,hl_lines=[8,"15-17"],linenostart=199}
 +// ... code
 +```
 +````
 +
++autoHeadingIDType ("github")
++: The strategy used for creating auto IDs (anchor names). Available types are `github`, `github-ascii` and `blackfriday`. `github` produces GitHub-compatible IDs, `github-ascii` will drop any non-Ascii characters after accent normalization, and `blackfriday` will make the IDs compatible with Blackfriday, the default Markdown engine before Hugo 0.60. Note that if Goldmark is your default Markdown engine, this is also the strategy used in the [anchorize](/functions/anchorize/) template func.
 +
 +### Highlight
 +
 +This is the default `highlight` configuration. Note that some of these settings can be set per code block, see [Syntax Highlighting](/content-management/syntax-highlighting/).
 +
 +{{< code-toggle config="markup.highlight" />}}
 +
 +For `style`, see these galleries:
 +
 +* [Short snippets](https://xyproto.github.io/splash/docs/all.html)
 +* [Long snippets](https://xyproto.github.io/splash/docs/longer/all.html)
 +
 +For CSS, see [Generate Syntax Highlighter CSS](/content-management/syntax-highlighting/#generate-syntax-highlighter-css).
 +
 +### Table Of Contents
 +
 +{{< code-toggle config="markup.tableOfContents" />}}
 +
 +These settings only works for the Goldmark renderer:
 +
 +startLevel
 +: The heading level, values starting at 1 (`h1`), to start render the table of contents.
 +
 +endLevel
 +: The heading level, inclusive, to stop render the table of contents.
 +
 +ordered
 +: Whether or not to generate an ordered list instead of an unordered list.
 +
 +## Markdown Render Hooks
 +
 +See [Markdown Render Hooks](/templates/render-hooks/).
index 4f1efefb3d39ce9928651a2cf99f9ed15861f7d2,0000000000000000000000000000000000000000..5a65dcdfcae22fa9f894827e710f573c033f42f1
mode 100644,000000..100644
--- /dev/null
@@@ -1,777 -1,0 +1,791 @@@
- draft: false
 +---
 +title: Configure Hugo
 +linktitle: Configuration
 +description: How to configure your Hugo site.
 +date: 2013-07-01
 +publishdate: 2017-01-02
 +categories: [getting started,fundamentals]
 +keywords: [configuration,toml,yaml,json]
 +menu:
 +  docs:
 +    parent: "getting-started"
 +    weight: 60
 +weight: 60
 +sections_weight: 60
- using the command line `--config` switch.
 +aliases: [/overview/source-directory/,/overview/configuration/]
 +toc: true
 +---
 +
 +## Configuration File
 +
 +Hugo uses the `config.toml`, `config.yaml`, or `config.json` (if found in the
 +site root) as the default site config file.
 +
 +The user can choose to override that default with one or more site config files
- ```
++using the command-line `--config` switch.
 +
 +Examples:
 +
- ```
++```txt
 +hugo --config debugconfig.toml
 +hugo --config a.toml,b.toml,c.toml
 +```
 +
 +{{% note %}}
 +Multiple site config files can be specified as a comma-separated string to the `--config` switch.
 +{{% /note %}}
 +
 +{{< todo >}}TODO: distinct config.toml and others (the root object files){{< /todo >}}
 +
 +## Configuration Directory
 +
 +In addition to using a single site config file, one can use the `configDir` directory (default to `config/`) to maintain easier organization and environment specific settings.
 +
 +- Each file represents a configuration root object, such as `params.toml` for `[Params]`, `menu(s).toml` for `[Menu]`, `languages.toml` for `[Languages]` etc...
 +- Each file's content must be top-level, for example:
 +
 +{{< code-toggle file="config" >}}
 +[Params]
 +  foo = "bar"
 +{{< /code-toggle >}}
 +
 +{{< code-toggle file="params" >}}
 +foo = "bar"
 +{{< /code-toggle >}}
 +
 +- Each directory holds a group of files containing settings unique to an environment.
 +- Files can be localized to become language specific.
 +
 +
- Considering the structure above, when running `hugo --environment staging`, Hugo will use every settings from `config/_default` and merge `staging`'s on top of those.
++```txt
 +├── config
 +│   ├── _default
 +│   │   ├── config.toml
 +│   │   ├── languages.toml
 +│   │   ├── menus.en.toml
 +│   │   ├── menus.zh.toml
 +│   │   └── params.toml
 +│   ├── production
 +│   │   ├── config.toml
 +│   │   └── params.toml
 +│   └── staging
 +│       ├── config.toml
 +│       └── params.toml
 +```
 +
-     
-     Now you need to tell Hugo that you are using the staging environment. So your build command should be `hugo --environment staging` which will load the `G-SSSSSSSS` analytics code in your staging website
++Considering the structure above, when running `hugo --environment staging`, Hugo will use every setting from `config/_default` and merge `staging`'s on top of those.
 +
 +Let's take an example to understand this better. Let's say you are using Google Analytics for your website. This requires you to specify `googleAnalytics = "G-XXXXXXXX"` in `config.toml`. Now consider the following scenario:
 +- You don't want the Analytics code to be loaded in development i.e. in your `localhost`
 +- You want to use separate googleAnalytics IDs for your production & staging environments (say):
 +  - `G-PPPPPPPP` for production
 +  - `G-SSSSSSSS` for staging
 +
 +This is how you need to configure your `config.toml` files considering the above scenario:
 +1. In `_default/config.toml` you don't need to mention `googleAnalytics` parameter at all. This ensures that no Google Analytics code is loaded in your development server i.e. when you run `hugo serve`. This works since, by default Hugo sets `Environment=development` when you run `hugo serve` which uses the config files from `_default` folder
 +2. In `production/config.toml` you just need to have one line:
 +
 +    ```googleAnalytics = "G-PPPPPPPP"```
 +
 +    You don't need to mention all other parameters like `title`, `baseURL`, `theme` etc. again in this config file. You need to mention only those parameters which are different or new for the production environment. This is due to the fact that Hugo is going to __merge__ this on top of `_default/config.toml`. Now when you run `hugo` (build command), by default hugo sets `Environment=production`, so the `G-PPPPPPPP` analytics code will be there in your production website
 +3. Similarly in `staging/config.toml` you just need to have one line:
 +
 +    ```googleAnalytics = "G-SSSSSSSS"```
- {{< new-in "0.84.0" >}} The configuration merge described below was improved in Hugo 0.84.0 and made fully configurable. The big change/improvement was that we now, by default, do deep merging of `params` maps from themes.
 +
++    Now you need to tell Hugo that you are using the staging environment. So your build command should be `hugo --environment staging` which will load the `G-SSSSSSSS` analytics code in your staging website
 +
 +{{% note %}}
 +Default environments are __development__ with `hugo server` and __production__ with `hugo`.
 +{{%/ note %}}
 +
 +## Merge Configuration from Themes
 +
- ### archetypeDir 
 +The configuration value for `_merge` can be one of:
 +
 +none
 +: No merge.
 +
 +shallow
 +: Only add values for new keys.
 +
 +deep
 +: Add values for new keys, merge existing.
 +
 +Note that you don't need to be so verbose as in the default setup below; a `_merge` value higher up will be inherited if not set.
 +
 +{{< code-toggle config="mergeStrategy" skipHeader=true />}}
 +
 +## All Configuration Settings
 +
 +The following is the full list of Hugo-defined variables with their default
 +value in parentheses. Users may choose to override those values in their site
 +config file(s).
 +
- {{< new-in "0.86.0" >}}
++### archetypeDir
 +
 +**Default value:** "archetypes"
 +
 +The directory where Hugo finds archetype files (content templates). {{% module-mounts-note %}}
 +
 +### assetDir
 +
 +**Default value:** "assets"
 +
 +The directory where Hugo finds asset files used in [Hugo Pipes](/hugo-pipes/). {{% module-mounts-note %}}
 +
 +### baseURL
++
 +Hostname (and path) to the root, e.g. https://bep.is/
 +
 +### build
++
 +See [Configure Build](#configure-build)
 +
 +### buildDrafts (false)
 +
 +**Default value:** false
 +
 +Include drafts when building.
 +
 +### buildExpired
 +
 +**Default value:** false
 +
 +Include content already expired.
 +
 +### buildFuture
 +
 +**Default value:** false
 +
 +Include content with publishdate in the future.
 +
 +### caches
++
 +See [Configure File Caches](#configure-file-caches)
 +
 +### cascade
 +
- See [Configure Markup](/getting-started/configuration-markup).{{< new-in "0.60.0" >}}
 +Pass down default configuration values (front matter) to pages in the content tree. The options in site config is the same as in page front matter, see [Front Matter Cascade](/content-management/front-matter#front-matter-cascade).
 +
 +### canonifyURLs
 +
 +**Default value:** false
 +
 +Enable to turn relative URLs into absolute.
 +
 +### contentDir
 +
 +**Default value:** "content"
 +
 +The directory from where Hugo reads content files. {{% module-mounts-note %}}
 +
 +### copyright
 +
 +**Default value:** ""
 +
 +Copyright notice for your site, typically displayed in the footer.
 +
 +### dataDir
 +
 +**Default value:** "data"
 +
 +The directory from where Hugo reads data files. {{% module-mounts-note %}}
 +
 +### defaultContentLanguage
 +
 +**Default value:** "en"
 +
 +Content without language indicator will default to this language.
 +
 +### defaultContentLanguageInSubdir
 +
 +**Default value:**  false
 +
 +Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`.
 +
 +### disableAliases
 +
 +**Default value:**  false
 +
 +Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htaccess`, a Netlify `_redirects` file or similar using a custom output format.
 +
 +### disableHugoGeneratorInject
 +
 +**Default value:**  false
 +
 +Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise.
 +
 +### disableKinds
 +
 +**Default value:**  []
 +
 +Enable disabling of all pages of the specified *Kinds*. Allowed values in this list: `"page"`, `"home"`, `"section"`, `"taxonomy"`, `"term"`, `"RSS"`, `"sitemap"`, `"robotsTXT"`, `"404"`.
 +
 +### disableLiveReload
 +
 +**Default value:**  false
 +
 +Disable automatic live reloading of browser window.
 +
 +### disablePathToLower
 +
 +**Default value:**  false
 +
 +: Do not convert the url/path to lowercase.
 +
 +### enableEmoji
 +
 +**Default value:**  false
 +
 +Enable Emoji emoticons support for page content; see the [Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet/).
 +
 +### enableGitInfo
 +
 +**Default value:**  false
 +
 +Enable `.GitInfo` object for each page (if the Hugo site is versioned by Git). This will then update the `Lastmod` parameter for each page using the last git commit date for that content file.
 +
 +### enableInlineShortcodes
 +
 +**Default value:**  false
 +
 +Enable inline shortcode support. See [Inline Shortcodes](/templates/shortcode-templates/#inline-shortcodes).
 +
 +### enableMissingTranslationPlaceholders
 +
 +**Default value:**  false
 +
 +Show a placeholder instead of the default value or an empty string if a translation is missing.
 +
 +### enableRobotsTXT
 +
 +**Default value:**  false
 +
 +Enable generation of `robots.txt` file.
 +
 +### frontmatter
 +
 +See [Front matter Configuration](#configure-front-matter).
 +
 +### googleAnalytics
 +
 +**Default value:**  ""
 +
 +Google Analytics tracking ID.
 +
 +### hasCJKLanguage
 +
 +**Default value:** false
 +
 +If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will make `.Summary` and `.WordCount` behave correctly for CJK languages.
 +
 +### imaging
 +
 +See [Image Processing Config](/content-management/image-processing/#imaging-configuration).
 +
 +### languageCode
 +
 +**Default value:**  ""
 +
 +A language tag as defined by [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646). This value is used to populate:
 +
 +- The `<language>` element in the internal [RSS template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml)
 +- The `lang` attribute of the `<html>` element in the internal [alias template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/alias.html)
 +
 +### languages
 +
 +See [Configure Languages](/content-management/multilingual/#configure-languages).
 +
 +### disableLanguages
 +
 +See [Disable a Language](/content-management/multilingual/#disable-a-language)
 +
 +### markup
- Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}}
++
++See [Configure Markup](/getting-started/configuration-markup).
 +
 +### mediaTypes
++
 +See [Configure Media Types](/templates/output-formats/#media-types).
 +
 +### menus
++
 +See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu).
 +
 +### minify
++
 +See [Configure Minify](#configure-minify)
 +
 +### module
- : See [Related Content](/content-management/related/#configure-related-content).{{< new-in "0.27" >}}
++
++Module config see [Module Config](/hugo-modules/configuration/).
 +
 +### newContentEditor
 +
 +**Default value:** ""
 +
 +The editor to use when creating new content.
 +
 +### noChmod
 +
 +**Default value:** false
 +
 +Don't sync permission mode of files.
 +
 +### noTimes
 +
 +**Default value:** false
 +
 +Don't sync modification time of files.
 +
 +### outputFormats
++
 +See [Configure Output Formats](#configure-additional-output-formats).
 +
 +### paginate
 +
 +**Default value:** 10
 +
 +Default number of elements per page in [pagination](/templates/pagination/).
 +
 +### paginatePath
 +
 +**Default value:** "page"
 +
 +The path element used during pagination (`https://example.com/page/2`).
 +
 +### permalinks
++
 +See [Content Management](/content-management/urls/#permalinks).
 +
 +### pluralizeListTitles
 +
 +**Default value:** true
 +
 +Pluralize titles in lists.
 +
 +### publishDir
 +
 +**Default value:** "public"
 +
 +The directory to where Hugo will write the final static site (the HTML files etc.).
 +
 +### related
- ### relativeURLs 
 +
- When using `ref` or `relref` to resolve page links and a link cannot resolved, it will be logged with this log level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`).
++: See [Related Content](/content-management/related/#configure-related-content).
++
++### relativeURLs
 +
 +**Default value:** false
 +
 +Enable this to make all relative URLs relative to content root. Note that this does not affect absolute URLs.
 +
 +### refLinksErrorLevel
 +
 +**Default value:** "ERROR"
 +
++When using `ref` or `relref` to resolve page links and a link cannot be resolved, it will be logged with this log level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`).
 +
 +### refLinksNotFoundURL
++
 +URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is.
 +
 +### removePathAccents
 +
 +**Default value:** false
 +
 +Removes [non-spacing marks](https://www.compart.com/en/unicode/category/Mn) from [composite characters](https://en.wikipedia.org/wiki/Precomposed_character) in content paths.
 +
 +```text
 +content/post/hügó.md --> https://example.org/post/hugo/
 +```
 +
- ### timeout 
 +### rssLimit
 +
 +**Default value:** -1 (unlimited)
 +
 +Maximum number of items in the RSS feed.
 +
 +### sectionPagesMenu
++
 +See ["Section Menu for Lazy Bloggers"](/templates/menu-templates/#section-menu-for-lazy-bloggers).
 +
 +### security
 +
 +See [Security Policy](/about/security-model/#security-policy)
 +
 +### sitemap
++
 +Default [sitemap configuration](/templates/sitemap-template/#configuration).
 +
 +### summaryLength
 +
 +**Default value:** 70
 +
 +The length of text in words to show in a [`.Summary`](/content-management/summaries/#automatic-summary-splitting).
 +
 +### taxonomies
++
 +See [Configure Taxonomies](/content-management/taxonomies#configure-taxonomies).
 +
 +### theme
++
 +: See [Module Config](/hugo-modules/configuration/#module-config-imports) for how to import a theme.
 +
 +### themesDir
 +
 +**Default value:**  "themes"
 +
 +The directory where Hugo reads the themes from.
 +
- ### timeZone 
- {{< new-in "0.87.0" >}}
++### timeout
 +
 +**Default value:** "30s"
 +
 +Timeout for generating page contents, specified as a [duration](https://pkg.go.dev/time#Duration) or in milliseconds. *Note:*&nbsp;this is used to bail out of recursive content generation. You might need to raise this limit if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents).
 +
- ```
++### timeZone
 +
 +The time zone (or location), e.g. `Europe/Oslo`,  used to parse front matter dates without such information and in the [`time` function](/functions/time/). The list of valid values may be system dependent, but should include `UTC`, `Local`, and any location in the [IANA Time Zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
 +
 +### title
++
 +Site title.
 +
 +### titleCaseStyle
 +
 +**Default value:**  "AP"
 +
 +See [Configure Title Case](#configure-title-case)
 +
 +### uglyURLs
++
++**Default value:** false
++
 +When enabled, creates URL of the form `/filename.html` instead of `/filename/`.
 +
 +### watch
 +
 +**Default value:** false
 +
 +Watch filesystem for changes and recreate as needed.
 +
 +{{% note %}}
 +If you are developing your site on a \*nix machine, here is a handy shortcut for finding a configuration option from the command line:
- ```
++```txt
 +cd ~/sites/yourhugosite
 +hugo config | grep emoji
 +```
 +
 +which shows output like
 +
- {{< new-in "0.66.0" >}}
++```txt
 +enableemoji: true
 +```
 +{{% /note %}}
 +
 +## Configure Build
 +
- writeStats {{< new-in "0.69.0" >}}
 +The `build` configuration section contains global build-related configuration options.
 +
 +{{< code-toggle file="config">}}
 +[build]
 +useResourceCacheWhen="fallback"
 +writeStats = false
 +noJSConfigInAssets = false
 +{{< /code-toggle >}}
 +
 +
 +useResourceCacheWhen
 +: When to use the cached resources in `/resources/_gen` for PostCSS and ToCSS. Valid values are `never`, `always` and `fallback`. The last value means that the cache will be tried if PostCSS/extended version is not available.
 +
- **Note** that the prime use case for this is purging of unused CSS; it is build for speed and there may be false positives (e.g. elements that isn't really a HTML element).
++writeStats
 +: When enabled, a file named `hugo_stats.json` will be written to your project root with some aggregated data about the build, e.g. list of HTML entities published to be used to do [CSS pruning](/hugo-pipes/postprocess/#css-purging-with-postcss). If you're only using this for the production build, you should consider placing it below [config/production](/getting-started/configuration/#configuration-directory). It's also worth mentioning that, due to the nature of the partial server builds, new HTML entities will be added when you add or change them while the server is running, but the old values will not be removed until you restart the server or run a regular `hugo` build.
 +
- noJSConfigInAssets {{< new-in "0.78.0" >}}
++**Note** that the prime use case for this is purging of unused CSS; it is built for speed and there may be false positives (e.g., detection of HTML elements that are not HTML elements).
 +
- {{< new-in "0.67.0" >}}
++noJSConfigInAssets
 +: Turn off writing a `jsconfig.json` into your `/assets` folder with mapping of imports from running [js.Build](https://gohugo.io/hugo-pipes/js). This file is intended to help with intellisense/navigation inside code editors such as [VS Code](https://code.visualstudio.com/). Note that if you do not use `js.Build`, no file will be written.
 +
 +## Configure Server
 +
- Since this is is "development only", it may make sense to put it below the `development` environment:
 +This is only relevant when running `hugo server`, and it allows to set HTTP headers during development, which allows you to test out your Content Security Policy and similar. The configuration format matches [Netlify's](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) with slightly more powerful [Glob matching](https://github.com/gobwas/glob):
 +
 +
 +{{< code-toggle file="config">}}
 +[server]
 +[[server.headers]]
 +for = "/**"
 +
 +[server.headers.values]
 +X-Frame-Options = "DENY"
 +X-XSS-Protection = "1; mode=block"
 +X-Content-Type-Options = "nosniff"
 +Referrer-Policy = "strict-origin-when-cross-origin"
 +Content-Security-Policy = "script-src localhost:1313"
 +{{< /code-toggle >}}
 +
- {{< new-in "0.72.0" >}}
- You can also specify simple redirects rules for the server. The syntax is again similar to Netlify's. 
++Since this is "development only", it may make sense to put it below the `development` environment:
 +
 +
 +{{< code-toggle file="config/development/server">}}
 +[[headers]]
 +for = "/**"
 +
 +[headers.values]
 +X-Frame-Options = "DENY"
 +X-XSS-Protection = "1; mode=block"
 +X-Content-Type-Options = "nosniff"
 +Referrer-Policy = "strict-origin-when-cross-origin"
 +Content-Security-Policy = "script-src localhost:1313"
 +{{< /code-toggle >}}
 +
- {{< new-in "0.76.0" >}} Setting `force=true` will make a redirect even if there is existing content in the path. Note that before Hugo 0.76  `force` was the default behaviour, but this is inline with how Netlify does it.
++You can also specify simple redirects rules for the server. The syntax is again similar to Netlify's.
 +
 +Note that a `status` code of 200 will trigger a [URL rewrite](https://docs.netlify.com/routing/redirects/rewrites-proxies/), which is what you want in SPA situations, e.g:
 +
 +{{< code-toggle file="config/development/server">}}
 +[[redirects]]
 +from = "/myspa/**"
 +to = "/myspa/"
 +status = 200
 +force = false
 +{{< /code-toggle >}}
 +
- ```
++Setting `force=true` will make a redirect even if there is existing content in the path. Note that before Hugo 0.76  `force` was the default behavior, but this is inline with how Netlify does it.
++
++## 404 Server Error Page
++
++{{< new-in "0.103.0" >}}
++
++Hugo will, by default, render all 404 errors when running `hugo server` with the `404.html` template. Note that if you have already added one or more redirects to your [Server Config](#configure-server), you need to add the 404 redirect explicitly, e.g:
++
++```toml
++[[redirects]]
++    from   = "/**"
++    to     = "/404.html"
++    status = 404
++```
 +
 +## 404 Server Error Page
 +
 +{{< new-in "0.103.0" >}}
 +
 +Hugo will, by default, render all 404 errors when running `hugo server` with the `404.html` template. Note that if you have already added one or more redirects to your [Server Config](#server-config), you need to add the 404 redirect explicitly, e.g:
 +
 +```toml
 +[[redirects]]
 +    from   = "/**"
 +    to     = "/404.html"
 +    status = 404
 +```
 +
 +## Configure Title Case
 +
 +Set `titleCaseStyle` to specify the title style used by the [title](/functions/title/) template function and the automatic section titles in Hugo. It defaults to [AP Stylebook](https://www.apstylebook.com/) for title casing, but you can also set it to `Chicago` or `Go` (every word starts with a capital letter).
 +
 +## Configuration Environment Variables
 +
 +HUGO_NUMWORKERMULTIPLIER
 +: Can be set to increase or reduce the number of workers used in parallel processing in Hugo. If not set, the number of logical CPUs will be used.
 +
 +## Configuration Lookup Order
 +
 +Similar to the template [lookup order][], Hugo has a default set of rules for searching for a configuration file in the root of your website's source directory as a default behavior:
 +
 +1. `./config.toml`
 +2. `./config.yaml`
 +3. `./config.json`
 +
 +In your `config` file, you can direct Hugo as to how you want your website rendered, control your website's menus, and arbitrarily define site-wide parameters specific to your project.
 +
 +
 +## Example Configuration
 +
 +The following is a typical example of a configuration file. The values nested under `params:` will populate the [`.Site.Params`][] variable for use in [templates][]:
 +
 +{{< code-toggle file="config">}}
 +baseURL: "https://yoursite.example.com/"
 +title: "My Hugo Site"
 +permalinks:
 +  posts: /:year/:month/:title/
 +params:
 +  Subtitle: "Hugo is Absurdly Fast!"
 +  AuthorName: "Jon Doe"
 +  GitHubUser: "spf13"
 +  ListOfFoo:
 +    - "foo1"
 +    - "foo2"
 +  SidebarRecentLimit: 5
 +{{< /code-toggle >}}
 +
 +## Configure with Environment Variables
 +
 +In addition to the 3 config options already mentioned, configuration key-values can be defined through operating system environment variables.
 +
 +For example, the following command will effectively set a website's title on Unix-like systems:
 +
- {{< new-in "0.79.0" >}} If you are using snake_cased variable names, the above will not work, so since Hugo 0.79.0 Hugo determines the delimiter to use by the first character after `HUGO`. This allows you to define environment variables on the form `HUGOxPARAMSxAPI_KEY=abcdefgh`, using any [allowed](https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names#:~:text=So%20names%20may%20contain%20any,not%20begin%20with%20a%20digit.) delimiter.
++```txt
 +$ env HUGO_TITLE="Some Title" hugo
 +```
 +
 +This is really useful if you use a service such as Netlify to deploy your site. Look at the Hugo docs [Netlify configuration file](https://github.com/gohugoio/hugoDocs/blob/master/netlify.toml) for an example.
 +
 +{{% note "Setting Environment Variables" %}}
 +Names must be prefixed with `HUGO_` and the configuration key must be set in uppercase when setting operating system environment variables.
 +
 +To set config params, prefix the name with `HUGO_PARAMS_`
 +{{% /note %}}
 +
++If you are using snake_cased variable names, the above will not work. Hugo determines the delimiter to use by the first character after `HUGO`. This allows you to define environment variables on the form `HUGOxPARAMSxAPI_KEY=abcdefgh`, using any [allowed](https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names#:~:text=So%20names%20may%20contain%20any,not%20begin%20with%20a%20digit.) delimiter.
 +
 +{{< todo >}}
 +Test and document setting params via JSON env var.
 +{{< /todo >}}
 +
 +## Ignore Content and Data Files when Rendering
 +
 +To exclude specific files from the `content` and `data` directories when rendering your site, set `ignoreFiles` to one or more regular expressions to match against the absolute file path.
 +
 +To ignore files ending with `.foo` or `.boo`:
 +
 +{{< code-toggle copy="false" >}}
 +ignoreFiles = ['\.foo$', '\.boo$']
 +{{< /code-toggle >}}
 +
 +To ignore a file using the absolute file path:
 +
 +{{< code-toggle copy="false" >}}
 +ignoreFiles = ['^/home/user/project/content/test\.md$']
 +{{< /code-toggle >}}
 +
 +## Configure Front Matter
 +
 +### Configure Dates
 +
 +Dates are important in Hugo, and you can configure how Hugo assigns dates to your content pages. You do this by adding a `frontmatter` section to your `config.toml`.
 +
- {{< new-in "0.68.0" >}}
 +The default configuration is:
 +
 +{{< code-toggle file="config" >}}
 +[frontmatter]
 +date = ["date", "publishDate", "lastmod"]
 +lastmod = [":git", "lastmod", "date", "publishDate"]
 +publishDate = ["publishDate", "date"]
 +expiryDate = ["expiryDate"]
 +{{< /code-toggle >}}
 +
 +If you, as an example, have a non-standard date parameter in some of your content, you can override the setting for `date`:
 +
 +{{< code-toggle file="config" >}}
 +[frontmatter]
 +date = ["myDate", ":default"]
 +{{< /code-toggle >}}
 +
 +The `:default` is a shortcut to the default settings. The above will set `.Date` to the date value in `myDate` if present, if not we will look in `date`,`publishDate`, `lastmod` and pick the first valid date.
 +
 +In the list to the right, values starting with ":" are date handlers with a special meaning (see below). The others are just names of date parameters (case insensitive) in your front matter configuration.  Also note that Hugo have some built-in aliases to the above: `lastmod` => `modified`, `publishDate` => `pubdate`, `published` and `expiryDate` => `unpublishdate`. With that, as an example, using `pubDate` as a date in front matter, will, by default, be assigned to `.PublishDate`.
 +
 +The special date handlers are:
 +
 +
 +`:fileModTime`
 +: Fetches the date from the content file's last modification timestamp.
 +
 +An example:
 +
 +{{< code-toggle file="config" >}}
 +[frontmatter]
 +lastmod = ["lastmod", ":fileModTime", ":default"]
 +{{< /code-toggle >}}
 +
 +
 +The above will try first to extract the value for `.Lastmod` starting with the `lastmod` front matter parameter, then the content file's modification timestamp. The last, `:default` should not be needed here, but Hugo will finally look for a valid date in `:git`, `date` and then `publishDate`.
 +
 +
 +`:filename`
 +: Fetches the date from the content file's filename. For example, `2018-02-22-mypage.md` will extract the date `2018-02-22`. Also, if `slug` is not set, `mypage` will be used as the value for `.Slug`.
 +
 +An example:
 +
 +{{< code-toggle file="config" >}}
 +[frontmatter]
 +date  = [":filename", ":default"]
 +{{< /code-toggle >}}
 +
 +The above will try first to extract the value for `.Date` from the filename, then it will look in front matter parameters `date`, `publishDate` and lastly `lastmod`.
 +
 +
 +`:git`
 +: This is the Git author date for the last revision of this content file. This will only be set if `--enableGitInfo` is set or `enableGitInfo = true` is set in site config.
 +
 +## Configure Additional Output Formats
 +
 +Hugo v0.20 introduced the ability to render your content to multiple output formats (e.g., to JSON, AMP html, or CSV). See [Output Formats][] for information on how to add these values to your Hugo project's configuration file.
 +
 +## Configure Minify
 +
- * [TOML Spec][toml]
- * [YAML Spec][yaml]
- * [JSON Spec][json]
 +Default configuration:
 +
 +{{< code-toggle config="minify" />}}
 +
 +## Configure File Caches
 +
 +Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration:
 +
 +{{< code-toggle >}}
 +[caches]
 +[caches.getjson]
 +dir = ":cacheDir/:project"
 +maxAge = -1
 +[caches.getcsv]
 +dir = ":cacheDir/:project"
 +maxAge = -1
 +[caches.getresource]
 +dir = ":cacheDir/:project"
 +maxAge = -1
 +[caches.images]
 +dir = ":resourceDir/_gen"
 +maxAge = -1
 +[caches.assets]
 +dir = ":resourceDir/_gen"
 +maxAge = -1
 +[caches.modules]
 +dir = ":cacheDir/modules"
 +maxAge = -1
 +{{< /code-toggle >}}
 +
 +You can override any of these cache settings in your own `config.toml`.
 +
 +### The keywords explained
 +
 +`:cacheDir`
 +: This is the value of the `cacheDir` config option if set (can also be set via OS env variable `HUGO_CACHEDIR`). It will fall back to `/opt/build/cache/hugo_cache/` on Netlify, or a `hugo_cache` directory below the OS temp dir for the others. This means that if you run your builds on Netlify, all caches configured with `:cacheDir` will be saved and restored on the next build. For other CI vendors, please read their documentation. For an CircleCI example, see [this configuration](https://github.com/bep/hugo-sass-test/blob/6c3960a8f4b90e8938228688bc49bdcdd6b2d99e/.circleci/config.yml).
 +
 +`:project`
 +: The base directory name of the current Hugo project. This means that, in its default setting, every project will have separated file caches, which means that when you do `hugo --gc` you will not touch files related to other Hugo projects running on the same PC.
 +
 +`:resourceDir`
 +: This is the value of the `resourceDir` config option.
 +
 +maxAge
 +: This is the duration before a cache entry will be evicted, -1 means forever and 0 effectively turns that particular cache off. Uses Go's `time.Duration`, so valid values are `"10s"` (10 seconds), `"10m"` (10 minutes) and `"10h"` (10 hours).
 +
 +dir
 +: The absolute path to where the files for this cache will be stored. Allowed starting placeholders are `:cacheDir` and `:resourceDir` (see above).
 +
 +## Configuration Format Specs
 +
++- [TOML Spec][toml]
++- [YAML Spec][yaml]
++- [JSON Spec][json]
 +
 +[`.Site.Params`]: /variables/site/
 +[directory structure]: /getting-started/directory-structure
 +[json]: https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf "Specification for JSON, JavaScript Object Notation"
 +[lookup order]: /templates/lookup-order/
 +[Output Formats]: /templates/output-formats/
 +[templates]: /templates/
 +[toml]: https://github.com/toml-lang/toml
 +[yaml]: https://yaml.org/spec/
 +[static-files]: /content-management/static-files/
index c523219c279921297846669fb12b2fde9c38a4c1,0000000000000000000000000000000000000000..05c1f55f3c5c2fc5a4165b7e2bad7d31e99bca65
mode 100644,000000..100644
--- /dev/null
@@@ -1,97 -1,0 +1,94 @@@
- lastmod: 2017-03-09
 +---
 +title: Directory Structure
 +linktitle: Directory Structure
 +description: Hugo's CLI scaffolds a project directory structure and then takes that single directory and uses it as the input to create a complete website.
 +date: 2017-01-02
 +publishdate: 2017-02-01
- draft: false
 +categories: [getting started,fundamentals]
 +keywords: [source, organization, directories]
 +menu:
 +  docs:
 +    parent: "getting-started"
 +    weight: 50
 +weight: 50
 +sections_weight: 50
- Running the `hugo new site` generator from the command line will create a directory structure with the following elements:
 +aliases: [/overview/source-directory/]
 +toc: true
 +---
 +
 +## New Site Scaffolding
 +
 +{{< youtube sB0HLHjgQ7E >}}
 +
- ```
++Running the `hugo new site` generator from the command-line will create a directory structure with the following elements:
 +
++```txt
 +.
 +├── archetypes
 +├── config.toml
 +├── content
 +├── data
 +├── layouts
 +├── public
 +├── static
 +└── themes
 +```
 +
- By default, Hugo will create new content files with at least `date`, `title` (inferred from the file name), and `draft = true`. This saves time and promotes consistency for sites using multiple content types. You can create your own [archetypes][] with custom preconfigured front matter fields as well.
 +## Directory Structure Explained
 +
 +The following is a high-level overview of each of the directories with links to each of their respective sections within the Hugo docs.
 +
 +[`archetypes`](/content-management/archetypes/)
 +: You can create new content files in Hugo using the `hugo new` command.
- : Caches some files to speed up generation. Can be also used by template authors to distribute built SASS files, so you don't have to have the preprocessor installed. Note: resources directory is not created by default.
++By default, Hugo will create new content files with at least `date`, `title` (inferred from the filename), and `draft = true`. This saves time and promotes consistency for sites using multiple content types. You can create your own [archetypes][] with custom preconfigured front matter fields as well.
 +
 +[`assets`][]
 +: Stores all the files which need be processed by [Hugo Pipes](/hugo-pipes/). Only the files whose `.Permalink` or `.RelPermalink` are used will be published to the `public` directory. Note: assets directory is not created by default.
 +
 +[`config`](/getting-started/configuration/)
 +: Hugo ships with a large number of [configuration directives][].
 +The [config directory](/getting-started/configuration/#configuration-directory) is where those directives are stored as JSON, YAML, or TOML files. Every root setting object can stand as its own file and structured by environments.
 +Projects with minimal settings and no need for environment awareness can use a single `config.toml` file at its root.
 +
 +Many sites may need little to no configuration, but Hugo ships with a large number of [configuration directives][] for more granular directions on how you want Hugo to build your website. Note: config directory is not created by default.
 +
 +[`content`][]
 +: All content for your website will live inside this directory. Each top-level folder in Hugo is considered a [content section][]. For example, if your site has three main sections---`blog`, `articles`, and `tutorials`---you will have three directories at `content/blog`, `content/articles`, and `content/tutorials`. Hugo uses sections to assign default [content types][].
 +
 +[`data`](/templates/data-templates/)
 +: This directory is used to store configuration files that can be
 +used by Hugo when generating your website. You can write these files in YAML, JSON, or TOML format. In addition to the files you add to this folder, you can also create [data templates][] that pull from dynamic content.
 +
 +[`layouts`][]
 +: Stores templates in the form of `.html` files that specify how views of your content will be rendered into a static website. Templates include [list pages][lists], your [homepage][], [taxonomy templates][], [partials][], [single page templates][singles], and more.
 +
 +[`static`][]
 +: Stores all the static content: images, CSS, JavaScript, etc. When Hugo builds your site, all assets inside your static directory are copied over as-is. A good example of using the `static` folder is for [verifying site ownership on Google Search Console][searchconsole], where you want Hugo to copy over a complete HTML file without modifying its content.
 +
 +{{% note %}}
 +From **Hugo 0.31** you can have multiple static directories.
 +{{% /note %}}
 +
 +[`resources`][]
- [searchconsole]: https://support.google.com/analytics/answer/1142414?hl=en
++: Caches some files to speed up generation. Can be also used by template authors to distribute built Sass files, so you don't have to have the preprocessor installed. Note: resources directory is not created by default.
 +
 +[archetypes]: /content-management/archetypes/
 +[`assets`]: /hugo-pipes/introduction#asset-directory/
 +[configuration directives]: /getting-started/configuration/#all-configuration-settings
 +[`content`]: /content-management/organization/
 +[content section]: /content-management/sections/
 +[content types]: /content-management/types/
 +[data templates]: /templates/data-templates/
 +[homepage]: /templates/homepage/
 +[`layouts`]: /templates/
 +[`static`]: /content-management/static-files/
 +[`resources`]: /getting-started/configuration/#configure-file-caches
 +[lists]: /templates/list/
 +[pagevars]: /variables/page/
 +[partials]: /templates/partials/
++[searchconsole]: https://support.google.com/webmasters/answer/9008080#zippy=%2Chtml-file-upload
 +[singles]: /templates/single-page-templates/
 +[starters]: /tools/starter-kits/
 +[taxonomies]: /content-management/taxonomies/
 +[taxonomy templates]: /templates/taxonomy-templates/
 +[types]: /content-management/types/
index feb7cbb504306c8f1892759d2450602dfd6020dc,0000000000000000000000000000000000000000..7102e08317dd73cfaef10f306e28dc186d5f0e92
mode 100644,000000..100644
--- /dev/null
@@@ -1,43 -1,0 +1,43 @@@
- [Step-by-step written tutorial](https://cloudcannon.com/community/learn/hugo-101/) to teach you the basics of creating a Hugo site. 
 +---
 +title: External Learning Resources
 +linktitle: External Learning Resources
 +description: A list of tutorials and books on Hugo.
 +date: 2019-10-20
 +publishdate: 2019-10-20
 +lastmod: 2019-10-20
 +keywords: [books, tutorials, learning, usage]
 +menu:
 +  docs:
 +    parent: "getting-started"
 +    weight: 70
 +weight: 70
 +sections_weight: 70
 +draft: false
 +toc: false
 +---
 +
 +## Books
 +
 +### Hugo In Action
 +
 +[![Hugo In Action](hia.jpg)](https://www.manning.com/books/hugo-in-action)
 +
 +Hugo in Action is a step-by-step guide to using Hugo to create static websites. Working with a complete example website and source code samples, you’ll learn how to build and host a low-maintenance, high-performance site that will wow your users and stay stable without relying on a third-party server.
 +
 +[Hugo In Action Home Page](https://www.manning.com/books/hugo-in-action)
 +
 +### Build Websites with Hugo
 +
 +[Build Websites with Hugo - Fast Web Development with Markdown (2020)](https://pragprog.com/titles/bhhugo/) by Brian P. Hogan.
 +
 +## Beginner tutorials
 +
 +### Hugo tutorial by CloudCannon
 +
- ### Video Playlist by Mike Dane
++[Step-by-step written tutorial](https://cloudcannon.com/community/learn/hugo-101/) to teach you the basics of creating a Hugo site.
 +
 +## Video tutorials
 +
- Mike Dane explains the various features of Hugo via dedicated tutorials on [YouTube](https://www.youtube.com/watch?list=PLLAZ4kZ9dFpOnyRlyS-liKL5ReHDcj4G3&v=qtIqKaDlqXo).
++* Mike Dane explains the various features of Hugo via dedicated tutorials on [YouTube](https://www.youtube.com/watch?list=PLLAZ4kZ9dFpOnyRlyS-liKL5ReHDcj4G3&v=qtIqKaDlqXo).
 +
++* [Introduction to building your first Hugo site](https://cloudcannon.com/community/learn/hugo-beginner-tutorial/) by Mike Neumegen.
index d30ba3cfe4d009e3d3647a1b2fba72a3aae7abf6,0000000000000000000000000000000000000000..4fbdb1c8fa5edc0955ce6d58d1bc8e60585cb7d8
mode 100644,000000..100644
--- /dev/null
@@@ -1,172 -1,0 +1,176 @@@
- This quick start uses `macOS` in the examples. For instructions about how to install Hugo on other operating systems, see [install](/getting-started/installing).
 +---
 +title: Quick Start
 +linktitle: Quick Start
 +description: Create a Hugo site using the beautiful Ananke theme.
 +date: 2013-07-01
 +publishdate: 2013-07-01
 +categories: [getting started]
 +keywords: [quick start,usage]
 +authors: [Shekhar Gulati, Ryan Watters]
 +menu:
 +  docs:
 +    parent: "getting-started"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +draft: false
 +aliases: [/quickstart/,/overview/quickstart/]
 +toc: true
 +---
 +
 +{{% note %}}
- `Homebrew` and `MacPorts`, package managers for `macOS`,  can be installed from [brew.sh](https://brew.sh/) or [macports.org](https://www.macports.org/) respectively. See [install](/getting-started/installing) if you are running Windows etc.
++This quick start uses `macOS` in the examples. For instructions about how to install Hugo on other operating systems, see [install](/installation/).
 +
 +It is required to have [Git installed](https://git-scm.com/downloads) to run this tutorial.
 +
 +For other approaches to learning Hugo (like books or video tutorials), refer to the [external learning resources](/getting-started/external-learning-resources/) page.
 +{{% /note %}}
 +
 +## Step 1: Install Hugo
 +
++Install the **extended version of Hugo** (this is required for the current theme used).
++
 +{{% note %}}
- ```
++`Homebrew` and `MacPorts`, package managers for `macOS`,  can be installed from [brew.sh](https://brew.sh/) or [macports.org](https://www.macports.org/) respectively. See [install](/installation/) if you are running Windows etc.
 +{{% /note %}}
 +
 +```bash
 +brew install hugo
 +# or
 +port install hugo
 +```
 +
 +To verify your new install:
 +
 +```bash
 +hugo version
++# Example output: hugo v0.104.2+extended darwin/amd64 BuildDate=unknown
 +```
 +
++It should state that it is `extended`. If it does not, uninstall it and try another installation method.
++
 +{{< asciicast ItACREbFgvJ0HjnSNeTknxWy9 >}}
 +
 +## Step 2: Create a New Site
 +
 +```bash
 +hugo new site quickstart
 +```
 +
 +The above will create a new Hugo site in a folder named `quickstart`.
 +
 +{{< asciicast 3mf1JGaN0AX0Z7j5kLGl3hSh8 >}}
 +
 +## Step 3: Add a Theme
 +
 +See [themes.gohugo.io](https://themes.gohugo.io/) for a list of themes to consider. This quickstart uses the beautiful [Ananke theme](https://themes.gohugo.io/gohugo-theme-ananke/).
 +
 +First, download the theme from GitHub and add it to your site's `themes` directory:
 +
 +```bash
 +cd quickstart
 +git init
 +git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
 +```
 +
 +Then, add the theme to the site configuration:
 +
 +```bash
 +echo theme = \"ananke\" >> config.toml
 +```
 +
 +{{< asciicast 7naKerRYUGVPj8kiDmdh5k5h9 >}}
 +
 +## Step 4: Add Some Content
 +
 +You can manually create content files (for example as `content/<CATEGORY>/<FILE>.<FORMAT>`) and provide metadata in them, however you can use the `new` command to do a few things for you (like add title and date):
 +
- ```markdown
++```txt
 +hugo new posts/my-first-post.md
 +```
 +
 +{{< asciicast eUojYCfRTZvkEiqc52fUsJRBR >}}
 +
 +Edit the newly created content file if you want, it will start with something like this:
 +
- ```
++```md
 +---
 +title: "My First Post"
 +date: 2019-03-26T08:47:11+01:00
 +draft: true
 +---
 +
 +```
 +
 +{{% note %}}
 +Drafts do not get deployed; once you finish a post, update the header of the post to say `draft: false`. More info [here](/getting-started/usage/#draft-future-and-expired-content).
 +{{% /note %}}
 +
 +## Step 5: Start the Hugo server
 +
 +Now, start the Hugo server with [drafts](/getting-started/usage/#draft-future-and-expired-content) enabled:
 +
 +{{< asciicast BvJBsF6egk9c163bMsObhuNXj >}}
 +
- Feel free to edit or add new content and simply refresh in browser to see changes quickly. (You might need to force refresh your web browser, something like Ctrl-R usually works.)
++```txt
 +▶ hugo server -D
 +
 +                   | EN
 ++------------------+----+
 +  Pages            | 10
 +  Paginator pages  |  0
 +  Non-page files   |  0
 +  Static files     |  3
 +  Processed images |  0
 +  Aliases          |  1
 +  Sitemaps         |  1
 +  Cleaned          |  0
 +
 +Total in 11 ms
 +Watching for changes in /Users/bep/quickstart/{content,data,layouts,static,themes}
 +Watching for config changes in /Users/bep/quickstart/config.toml
 +Environment: "development"
 +Serving pages from memory
 +Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
 +Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
 +Press Ctrl+C to stop
 +```
 +
 +**Navigate to your new site at [http://localhost:1313/](http://localhost:1313/).**
 +
- ```
++Feel free to edit or add new content and you will see the changes in the browser right away while the Hugo server is running. (You might need to force refresh your web browser, something like Ctrl-R usually works.)
 +
 +## Step 6: Customize the Theme
 +
 +Your new site already looks great, but you will want to tweak it a little before you release it to the public.
 +
 +### Site Configuration
 +
 +Open up `config.toml` in a text editor:
 +
- ```
++```toml
 +baseURL = "https://example.org/"
 +languageCode = "en-us"
 +title = "My New Hugo Site"
 +theme = "ananke"
 +```
 +
 +Replace the `title` above with something more personal. Also, if you already have a domain ready, set the `baseURL`. Note that this value is not needed when running the local development server.
 +
 +{{% note %}}
 +**Tip:** Make the changes to the site configuration or any other file in your site while the Hugo server is running, and you will see the changes in the browser right away, though you may need to [clear your cache](https://kb.iu.edu/d/ahic).
 +{{% /note %}}
 +
 +For theme specific configuration options, see the [theme site](https://github.com/theNewDynamic/gohugo-theme-ananke).
 +
 +**For further theme customization, see [Customize a Theme](/themes/customizing/).**
 +
 +### Step 7: Build static pages
 +
 +It is simple. Just call:
 +
++```txt
 +hugo -D
 +```
 +
 +Output will be in `./public/` directory by default (`-d`/`--destination` flag to change it, or set `publishdir` in the config file).
index fc5ae2501525ecfd21554b36f4f172b68273a489,0000000000000000000000000000000000000000..edf3e82a5fdfa46e9740f161d8b41c619e8673e4
mode 100644,000000..100644
--- /dev/null
@@@ -1,220 -1,0 +1,172 @@@
- title: Basic Usage
- linktitle: Basic Usage
- description: Hugo's CLI is fully featured but simple to use, even for those who have very limited experience working from the command line.
- date: 2017-02-01
- publishdate: 2017-02-01
- lastmod: 2017-02-01
 +---
- keywords: [usage,livereload,command line,flags]
++title: Basic usage
++linktitle: Basic usage
++description: Hugo's command line interface (CLI) is fully featured but simple to use, even for those with limited experience working from the command line.
 +categories: [getting started]
- draft: false
++keywords: [usage,livereload,command,flags]
 +menu:
 +  docs:
 +    parent: "getting-started"
 +    weight: 40
 +weight: 40
 +sections_weight: 40
- The following is a description of the most common commands you will use while developing your Hugo project. See the [Command Line Reference][commands] for a comprehensive view of Hugo's CLI.
 +aliases: [/overview/usage/,/extras/livereload/,/doc/usage/,/usage/]
 +toc: true
 +---
 +
- ## Test Installation
++## Test your installation
 +
- Once you have [installed Hugo][install], make sure it is in your `PATH`. You can test that Hugo has been installed correctly via the `help` command:
- ```
- hugo help
++After [installing] Hugo, test your installation by running:
 +
- The output you see in your console should be similar to the following:
++```bash
++hugo version
 +```
 +
- ```
- hugo is the main command, used to build your Hugo site.
- Hugo is a Fast and Flexible Static Site Generator
- built with love by spf13 and friends in Go.
- Complete documentation is available at https://gohugo.io/.
- Usage:
-   hugo [flags]
-   hugo [command]
- Available Commands:
-   completion  Generate the autocompletion script for the specified shell
-   config      Print the site configuration
-   convert     Convert your content to different formats
-   deploy      Deploy your site to a Cloud provider.
-   env         Print Hugo version and environment info
-   gen         A collection of several useful generators.
-   help        Help about any command
-   import      Import your site from others.
-   list        Listing out various types of content
-   mod         Various Hugo Modules helpers.
-   new         Create new content for your site
-   server      A high performance webserver
-   version     Print the version number of Hugo
- Flags:
-   -b, --baseURL string             hostname (and path) to the root, e.g. https://spf13.com/
-   -D, --buildDrafts                include content marked as draft
-   -E, --buildExpired               include expired content
-   -F, --buildFuture                include content with publishdate in the future
-       --cacheDir string            filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
-       --cleanDestinationDir        remove files from destination not found in static directories
-       --config string              config file (default is path/config.yaml|json|toml)
-       --configDir string           config dir (default "config")
-   -c, --contentDir string          filesystem path to content directory
-       --debug                      debug output
-   -d, --destination string         filesystem path to write files to
-       --disableKinds strings       disable different kind of pages (home, RSS etc.)
-       --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
-   -e, --environment string         build environment
-       --forceSyncStatic            copy all files when static is changed.
-       --gc                         enable to run some cleanup tasks (remove unused cache files) after the build
-   -h, --help                       help for hugo
-       --ignoreCache                ignores the cache directory
-       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
-   -l, --layoutDir string           filesystem path to layout directory
-       --log                        enable Logging
-       --logFile string             log File path (if set, logging enabled automatically)
-       --minify                     minify any supported output format (HTML, XML etc.)
-       --noChmod                    don't sync permission mode of files
-       --noTimes                    don't sync modification time of files
-       --panicOnWarning             panic on first WARNING log
-       --poll string                set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes
-       --printI18nWarnings          print missing translations
-       --printMemoryUsage           print memory usage to screen at intervals
-       --printPathWarnings          print warnings on duplicate target paths etc.
-       --printUnusedTemplates       print warnings on unused templates.
-       --quiet                      build in quiet mode
-       --renderToMemory             render to memory (only useful for benchmark testing)
-   -s, --source string              filesystem path to read files relative from
-       --templateMetrics            display metrics about template executions
-       --templateMetricsHints       calculate some improvement hints when combined with --templateMetrics
-   -t, --theme strings              themes to use (located in /themes/THEMENAME/)
-       --themesDir string           filesystem path to themes directory
-       --trace file                 write trace to file (not useful in general)
-   -v, --verbose                    verbose output
-       --verboseLog                 verbose logging
-   -w, --watch                      watch filesystem for changes and recreate as needed
- Use "hugo [command] --help" for more information about a command.
++You should see something like:
 +
- ## The `hugo` Command
++```text
++hugo v0.105.0-0e3b42b4a9bdeb4d866210819fc6ddcf51582ffa+extended linux/amd64 BuildDate=2022-10-28T12:29:05Z VendorInfo=snap:0.105.0
 +```
 +
- The most common usage is probably to run `hugo` with your current directory being the input directory.
++## Display available commands
 +
- This generates your website to the `public/` directory by default, although you can customize the output directory in your [site configuration][config] by changing the `publishDir` field.
++To see a list of the available commands and flags:
 +
- The command `hugo` renders your site into `public/` dir and is ready to be deployed to your web server:
++```bash
++hugo help
++```
 +
- 0 draft content
- 0 future content
- 99 pages created
- 0 paginator pages created
- 16 tags created
- 0 groups created
- in 90 ms
++To get help with a subcommand, use the `--help` flag. For example:
 +
++```bash
++hugo server --help
 +```
++
++## Build your site
++
++To build your site, `cd` into your project directory and run:
++
++```bash
 +hugo
- ## Draft, Future, and Expired Content
 +```
 +
- Hugo allows you to set `draft`, `publishdate`, and even `expirydate` in your content's [front matter][]. By default, Hugo will not publish:
++The [`hugo`] command builds your site, publishing the files to the `public` directory. To publish your site to a different directory, use the [`--destination`] flag or set [`publishDir`] in your site configuration.
 +
- 1. Content with a future `publishdate` value
- 2. Content with `draft: true` status
- 3. Content with a past `expirydate` value
++{{% note %}}
++Hugo does not clear the `public` directory before building your site. Existing files are overwritten, but not deleted. This behavior is intentional to prevent the inadvertent removal of files that you may have added to the `public` directory after the build.
 +
- All three of these can be overridden during both local development *and* deployment by adding the following flags to `hugo` and `hugo server`, respectively, or by changing the boolean values assigned to the fields of the same name (without `--`) in your [configuration][config]:
++Depending on your needs, you may wish to manually clear the contents of the public directory before every build.
++{{% /note %}}
 +
- 1. `--buildFuture`
- 2. `--buildDrafts`
- 3. `--buildExpired`
++## Draft, future, and expired content
 +
- ## LiveReload
++Hugo allows you to set `draft`, `date`, `publishDate`, and `expiryDate` in the [front matter] of your content. By default, Hugo will not publish content when:
 +
- Hugo comes with [LiveReload](https://github.com/livereload/livereload-js) built in. There are no additional packages to install. A common way to use Hugo while developing a site is to have Hugo run a server with the `hugo server` command and watch for changes:
 +
- ```
- hugo server
- 0 draft content
- 0 future content
- 99 pages created
- 0 paginator pages created
- 16 tags created
- 0 groups created
- in 120 ms
- Watching for changes in /Users/yourname/sites/yourhugosite/{data,content,layouts,static}
- Serving pages from /Users/yourname/sites/yourhugosite/public
- Web Server is available at http://localhost:1313/
- Press Ctrl+C to stop
++- The `draft` value is `true`
++- The `date` is in the future
++- The `publishDate` is in the future
++- The `expiryDate` is in the past
 +
- This will run a fully functioning web server while simultaneously watching your file system for additions, deletions, or changes within the following areas of your [project organization][dirs]:
++You can override the default behavior when running `hugo` or `hugo server` with command line flags:
++
++```bash
++hugo --buildDrafts    # or -D
++hugo --buildExpired   # or -E
++hugo --buildFuture    # or -F
 +```
 +
- * `/static/*`
- * `/content/*`
- * `/data/*`
- * `/i18n/*`
- * `/layouts/*`
- * `/themes/<CURRENT-THEME>/*`
- * `config`
++Although you can also set these values in your site configuration, it can lead to unwanted results unless all content authors are aware of, and understand, the settings.
 +
- Whenever you make changes, Hugo will simultaneously rebuild the site and continue to serve content. As soon as the build is finished, LiveReload tells the browser to silently reload the page.
++{{% note %}}
++As noted above, Hugo does not clear the `public` directory before building your site. Depending on the _current_ evaluation of the four conditions above, after the build your `public` directory may contain extraneous files from a previous build.
 +
- Most Hugo builds are so fast that you may not notice the change unless looking directly at the site in your browser. This means that keeping the site open on a second monitor (or another half of your current monitor) allows you to see the most up-to-date version of your website without the need to leave your text editor.
++A common practice is to manually clear the contents of the `public` directory before each build to remove draft, expired, and future content.
++{{% /note %}}
 +
- {{% note "Closing `</body>` Tag"%}}
- Hugo injects the LiveReload `<script>` before the closing `</body>` in your templates and will therefore not work if this tag is not present..
- {{% /note %}}
++## Develop and test your site
 +
- ### Redirect automatically to the page you just saved
++To view your site while developing layouts or creating content, `cd` into your project directory and run:
 +
- When you are working with more than one document and want to see the markup as real-time as possible it's not ideal to keep jumping between them. 
- Fortunately Hugo has an easy, embedded and simple solution for this. It's the flag `--navigateToChanged`.
++```bash
++hugo server
++```
 +
- ### Disable LiveReload
++The [`hugo server`] command builds your site into memory, and serves your pages using a minimal HTTP server. When you run `hugo server` it will display the URL of your local site:
 +
- LiveReload works by injecting JavaScript into the pages Hugo generates. The script creates a connection from the browser's web socket client to the Hugo web socket server.
++```text
++Web Server is available at http://localhost:1313/ 
++```
 +
- The following methods make it easy to disable LiveReload:
++While the server is running, it watches your project directory for changes to assets, configuration, content, data, layouts, translations, and static files. When it detects a change, the server rebuilds your site and refreshes your browser using [LiveReload].
 +
- ```
- hugo server --watch=false
- ```
++Most Hugo builds are so fast that you may not notice the change unless you are looking directly at your browser.
 +
- Or...
++### LiveReload
 +
- hugo server --disableLiveReload
- ```
++While the server is running, Hugo injects JavaScript into the generated HTML pages. The LiveReload script creates a connection from the browser to the server via web sockets. You do not need to install any software or browser plugins, nor is any configuration required.
 +
++### Automatic redirection
++
++When editing content, if you want your browser to automatically redirect to the page you last modified, run:
++
++```bash
++hugo server --navigateToChanged
 +```
- The latter flag can be omitted by adding the following:
 +
- {{< code-toggle file="config" >}}
- disableLiveReload = true
- {{< /code-toggle >}}
++## Deploy your site
++
++{{% note %}}
++As noted above, Hugo does not clear the public directory before building your site. Manually clear the contents of the public directory before each build to remove draft, expired, and future content.
++{{% /note %}}
 +
- ## Deploy Your Website
++When are ready to deploy your site, run:
 +
- After running `hugo server` for local web development, you need to do a final `hugo` run *without the `server` part of the command* to rebuild your site. You may then deploy your site by copying the `public/` directory to your production web server.
++```bash
++hugo
++```
++
++This builds your site, publishing the files to the public directory. The directory structure will look something like this:
++
++```text
++public/
++├── categories/
++│   ├── index.html
++│   └── index.xml  <-- RSS feed for this section
++├── post/
++│   ├── my-first-post/
++│   │   └── index.html
++│   ├── index.html
++│   └── index.xml  <-- RSS feed for this section
++├── tags/
++│   ├── index.html
++│   └── index.xml  <-- RSS feed for this section
++├── index.html
++├── index.xml      <-- RSS feed for the site
++└── sitemap.xml
++```
 +
- Since Hugo generates a static website, your site can be hosted *anywhere* using any web server. See [Hosting and Deployment][hosting] for methods for hosting and automating deployments contributed by the Hugo community.
++In a simple hosting environment, where you typically `ftp`, `rsync`, or `scp` your files to the root of a virtual host, the contents of the `public` directory are all that you need.
 +
- {{% warning "Generated Files are **NOT** Removed on Site Build" %}}
- Running `hugo` *does not* remove generated files before building. This means that you should delete your `public/` directory (or the publish directory you specified via flag or configuration file) before running the `hugo` command. If you do not remove these files, you run the risk of the wrong files (e.g., drafts or future posts) being left in the generated site.
- {{% /warning %}}
++Most of our users deploy their sites using a CI/CD workflow, where a push[^1] to their GitHub or GitLab repository triggers a build and deployment. Popular providers include [AWS Amplify], [CloudCannon], [Cloudflare Pages], [GitHub Pages], [GitLab Pages], and [Netlify].
 +
- [config]: /getting-started/configuration/
- [dirs]: /getting-started/directory-structure/
++Learn more in the [hosting and deployment] section.
 +
++[^1]: The Git repository contains the entire project directory, typically excluding the public directory because the site is built _after_ the push.
 +
++[`--destination`]: /commands/hugo/#options
++[`hugo server`]: /commands/hugo_server/
++[`hugo`]: /commands/hugo/
++[`publishDir`]: /getting-started/configuration/#publishdir
++[AWS Amplify]: https://aws.amazon.com/amplify/
++[CloudCannon]: https://cloudcannon.com/
++[Cloudflare Pages]: https://pages.cloudflare.com/
 +[commands]: /commands/
- [install]: /getting-started/installing/
 +[front matter]: /content-management/front-matter/
++[GitHub Pages]: https://pages.github.com/
++[GitLab Pages]: https://docs.gitlab.com/ee/user/project/pages/
++[hosting and deployment]: /hosting-and-deployment/
 +[hosting]: /hosting-and-deployment/
++[installing]: /installation/
++[LiveReload]: https://github.com/livereload/livereload-js
++[Netlify]: https://www.netlify.com/
index e9feb765acba1c9d9a573a4d5d6111a6d8096da0,0000000000000000000000000000000000000000..8682787404f6a67260bdf0d41c9dbeae53cbc0d1
mode 100644,000000..100644
--- /dev/null
@@@ -1,57 -1,0 +1,57 @@@
- ```
 +---
 +title: Deployment with Rclone
 +linktitle: Deployment with Rclone
 +description: If you have access to your web host with SFTP/FTP/SSH/HTTP(DAV), you can use rclone to incrementally deploy your entire Hugo website.
 +date: 2021-08-09
 +publishdate: 2021-08-09
 +lastmod: 2021-08-09
 +categories: [hosting and deployment]
 +keywords: [rclone,sftp,deployment]
 +authors: [Daniel F. Dickinson]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 80
 +weight: 80
 +sections_weight: 80
 +draft: false
 +aliases: [/tutorials/deployment-with-rclone/]
 +toc: true
 +notesforauthors:
 +---
 +
 +## Assumptions
 +
 +* A web host running a web server. This could be a shared hosting environment or a VPS.
 +* Access to your web host with any of the [protocols supported by rclone](https://rclone.org/#providers), such as SFTP.
 +* A functional static website built with Hugo
 +* Deploying from an [Rclone](https://rclone.org) compatible operating system
 +* You have [installed Rclone](https://rclone.org/install/).
 +
 +**NB**: You can remove ``--interactive`` in the commands below once you are comfortable with rclone, if you wish. Also, ``--gc`` and ``--minify`` are optional in the ``hugo`` commands below.
 +
 +## Getting Started
 +
 +The spoiler is that you can even deploy your entire website from any compatible OS with no configuration. Using SFTP for example:
 +
- ```
++```txt
 +hugo --gc --minify
 +rclone sync --interactive --sftp-host sftp.example.com --sftp-user www-data --sftp-ask-password public/ :sftp:www/
 +```
 +
 +## Configure Rclone for Even Easier Usage
 +
 +The easiest way is simply to run ``rclone config``.
 +
 +The [Rclone docs](https://rclone.org/docs/) provide [an example of configuring Rclone to use SFTP](https://rclone.org/sftp/).
 +
 +For the next commands, we will assume you configured a remote you named ``hugo-www``
 +
 +The above 'spoiler' commands could become:
 +
++```txt
 +hugo --gc --minify
 +rclone sync --interactive public/ hugo-www:www/
 +```
 +
 +After you issue the above commands (and respond to any prompts), check your website and you will see that it is deployed.
index ad59b71f1dcd8addb7dada0834fa09b21052d4f2,0000000000000000000000000000000000000000..dec0556cf601f3450e83b1110beb6facd80d90e0
mode 100644,000000..100644
--- /dev/null
@@@ -1,148 -1,0 +1,148 @@@
- ```
 +---
 +title: Deployment with Rsync
 +linktitle: Deployment with Rsync
 +description: If you have access to your web host with SSH, you can use a simple rsync one-liner to incrementally deploy your entire Hugo website.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +categories: [hosting and deployment]
 +keywords: [rsync,deployment]
 +authors: [Adrien Poupin]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 70
 +weight: 70
 +sections_weight: 70
 +draft: false
 +aliases: [/tutorials/deployment-with-rsync/]
 +toc: true
 +notesforauthors:
 +---
 +
 +## Assumptions
 +
 +* A web host running a web server. This could be a shared hosting environment or a VPS.
 +* Access to your web host with SSH
 +* A functional static website built with Hugo
 +
 +The spoiler is that you can deploy your entire website with a command that looks like the following:
 +
- ```
++```txt
 +hugo && rsync -avz --delete public/ www-data@ftp.topologix.fr:~/www/
 +```
 +
 +As you will see, we'll put this command in a shell script file, which makes building and deployment as easy as executing `./deploy`.
 +
 +## Copy Your SSH Key to your Host
 +
 +To make logging in to your server more secure and less interactive, you can upload your SSH key. If you have already installed your SSH key to your server, you can move on to the next section.
 +
 +First, install the ssh client. On Debian/Ubuntu/derivates, use the following command:
 +
 +{{< code file="install-openssh.sh" >}}
 +sudo apt-get install openssh-client
 +{{< /code >}}
 +
 +Then generate your ssh key. First, create the `.ssh` directory in your home directory if it doesn't exist:
 +
- ```
++```txt
 +~$ cd && mkdir .ssh & cd .ssh
 +```
 +
 +Next, execute this command to generate a new keypair called `rsa_id`:
 +
- ```
++```txt
 +~/.ssh/$ ssh-keygen -t rsa -q -C "For SSH" -f rsa_id
 +```
 +
 +You'll be prompted for a passphrase, which is an extra layer of protection. Enter the passphrase you'd like to use, and then enter it again when prompted, or leave it blank if you don't want to have a passphrase. Not using a passphrase will let you transfer files non-interactively, as you won't be prompted for a password when you log in, but it is slightly less secure.
 +
 +To make logging in easier, add a definition for your web host to the file  `~/.ssh/config` with the following command, replacing `HOST` with the IP address or hostname of your web host, and `USER` with the username you use to log in to your web host when transferring files:
 +
- ```
++```txt
 +~/.ssh/$ cat >> config <<EOF
 +Host HOST
 +     Hostname HOST
 +     Port 22
 +     User USER
 +     IdentityFile ~/.ssh/rsa_id
 +EOF
 +```
 +
 +Then copy your ssh public key to the remote server with the `ssh-copy-id` command:
 +
- ```
++```txt
 +~/.ssh/$ ssh-copy-id -i rsa_id.pub USER@HOST.com
 +```
 +
 +Now you can easily connect to the remote server:
 +
- ```
++```txt
 +~$ ssh user@host
 +Enter passphrase for key '/home/mylogin/.ssh/rsa_id':
 +```
 +
 +Now that you can log in with your SSH key, let's create a script to automate deployment of your Hugo site.
 +
 +## Shell Script
 +
 +Create a new script called `deploy` the root of your Hugo tree:
 +
- ```
++```txt
 +~/websites/topologix.fr$ editor deploy
 +```
 +
 +Add the following content. Replace the `USER`, `HOST`, and `DIR` values with your own values:
 +
- hugo && rsync -avz --delete public/ ${USER}@${HOST}:~/${DIR}
++```bash
 +#!/bin/sh
 +USER=my-user
 +HOST=my-server.com
 +DIR=my/directory/to/topologix.fr/   # the directory where your web site files should go
 +
- Note that `DIR` is the relative path from the remote user's home. If you have to specify a full path (for instance `/var/www/mysite/`) you must change `~/${DIR}` to `${DIR}` inside the command line. For most cases you should not have to.
++hugo && rsync -avz --delete public/ ${USER}@${HOST}:~/${DIR} # this will delete everything on the server that's not in the local public folder 
 +
 +exit 0
 +```
 +
- ```
++Note that `DIR` is the relative path from the remote user's home. If you have to specify a full path (for instance `/var/www/mysite/`) you must change `~/${DIR}` to `${DIR}` inside the command-line. For most cases you should not have to.
 +
 +Save and close, and make the `deploy` file executable:
 +
- ```
++```txt
 +~/websites/topologix.fr$ chmod +x deploy
 +```
 +
 +Now you only have to enter the following command to deploy and update your website:
 +
- ```
++```txt
 +~/websites/topologix.fr$ ./deploy
 +```
 +
 +Your site builds and deploys:
 +
++```txt
 +Started building sites ...
 +Built site for language en:
 +0 draft content
 +0 future content
 +0 expired content
 +5 pages created
 +0 non-page files copied
 +0 paginator pages created
 +0 tags created
 +0 categories created
 +total in 56 ms
 +sending incremental file list
 +404.html
 +index.html
 +index.xml
 +sitemap.xml
 +posts/
 +posts/index.html
 +
 +sent 9,550 bytes  received 1,708 bytes  7,505.33 bytes/sec
 +total size is 966,557  speedup is 85.86
 +```
 +
 +You can incorporate other proprocessing tasks into this deployment script as well.
index b0ea7a7cf4f3cbf9ee1ce29e8cf0f85ffec739ce,0000000000000000000000000000000000000000..fa5bb41df81e37aac7899c8ecf45756583198119
mode 100644,000000..100644
--- /dev/null
@@@ -1,65 -1,0 +1,65 @@@
- lastmod: 2021-01-06
 +---
 +title: Host on 21YunBox
 +linktitle: Host on 21YunBox
 +description: Host your Hugo site with 21YunBox's blazing fast Chinese CDN, fully-managed SSL and auto deploys from Gitee.
 +date: 2021-01-06
 +publishdate: 2021-01-06
 +categories: [hosting and deployment]
 +keywords: [21yunbox,hosting,deployment]
 +authors: [Toby Glei]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +draft: false
 +aliases: []
 +toc: true
 +---
 +
 +[21YunBox](https://www.21yunbox.com) is a fully-managed cloud platform dedicated to make web deployment easy within the Chinese Great Firewall where you can host static sites, backend APIs, databases, cron jobs, and all your other apps in one place. It provides blazing fast Chinese CDN, continuous deployment, one-click HTTPS and [other services like managed databases and backend web services](https://www.21yunbox.com/docs/), providing an avenue to launch web projects in China.
 +
 +21YunBox includes the following features:
 +
 +- Continuous, automatic builds & deploys from GitHub and Gitee
 +- Automatic SSL certificates through [Let's Encrypt](https://letsencrypt.org)
 +- Instant cache invalidation with a blazing fast, Chinese CDN
 +- Unlimited [custom domains](https://www.21yunbox.com/docs/#/custom-domains)
 +- Automatic [Brotli compression](https://en.wikipedia.org/wiki/Brotli) for faster sites
 +- Native HTTP/2 support
 +- Automatic HTTP → HTTPS redirects
 +- Custom URL redirects and rewrites
 +
 +## Prerequisites
 +
 +This guide assumes you already have a Hugo project to deploy. If you need a project, use the [Quick Start](/getting-started/quick-start/) to get started or fork 21YunBox's [Hugo Example](https://gitee.com/eryiyunbox-examples/hello-hugo) before continuing.
 +
 +## Setup
 +
 +You can set up a Hugo site on 21YunBox in two quick steps:
 +
 +1. Create a new web service on 21YunBox, and give 21YunBox permission to access your GitHub or Gitee repo.
 +2. Use the following values during creation:
 +
 +   |    Field              | Value                                            |
 +   | --------------------- | ------------------------------------------------ |
 +   | **Environment**       | `Static Site`                                    |
 +   | **Build Command**     | `hugo --gc --minify` (or your own build command) |
 +   | **Publish Directory** | `./public` (or your own output directory)        |
 +
 +That's it! Your site will be live on your 21YunBox URL (which looks like `yoursite.21yunbox.com`) as soon as the build is done.
 +
 +## Continuous deploys
 +
 +Now that 21YunBox is connected to your repo, it will automatically build and publish your site any time you push to GitHub.
 +
 +Every deploy automatically and instantly invalidates the CDN cache, so your users can always access the latest content on your site.
 +
 +## Custom domains
 +
 +Add your own domains to your site easily using 21YunBox's [custom domains](https://www.21yunbox.com/docs/#/custom-domains) guide.
 +
 +## Support
++
 +Click [here](https://www.21yunbox.com/docs/#/contact) to contact with 21YunBox' experts if you need help.
index 34a21e9e981cacdc61369f67ed5877e82938313a,0000000000000000000000000000000000000000..1eed59122253b876b7c71bd4cf185b33ff57e5ca
mode 100644,000000..100644
--- /dev/null
@@@ -1,57 -1,0 +1,54 @@@
- lastmod: 2018-01-31
 +---
 +title: Host on AWS Amplify
 +linktitle: Host on AWS Amplify
 +description: Develop and deploy a cloud-powered web app with AWS Amplify.
 +date: 2018-01-31
 +publishdate: 2018-01-31
- draft: false
 +categories: [hosting and deployment]
 +keywords: [amplify,hosting,deployment]
 +authors: [Nikhil Swaminathan]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
- 1.  Accept the default build settings. The Amplify Console automatically detects your Hugo build settings and output directory.
 +aliases: []
 +toc: true
 +---
 +
 +In this guide we'll walk through how to deploy and host your Hugo site using the [AWS Amplify Console](https://console.amplify.aws).
 +
 +AWS Amplify is a combination of client library, CLI toolchain, and a Console for continuous deployment and hosting. The Amplify CLI and library allow developers to get up & running with full-stack cloud-powered applications with features like authentication, storage, serverless GraphQL or REST APIs, analytics, Lambda functions, & more. The Amplify Console provides continuous deployment and hosting for modern web apps (single page apps and static site generators). Continuous deployment allows developers to deploy updates to their web app on every code commit to their Git repository. Hosting includes features such as globally available CDNs, easy custom domain setup + HTTPS, feature branch deployments, and password protection.
 +
 +## Pre-requisites
 +
 +* [Sign up for an AWS Account](https://portal.aws.amazon.com/billing/signup?redirect_url=https%3A%2F%2Faws.amazon.com%2Fregistration-confirmation). There are no upfront charges or any term commitments to create an AWS account and signing up gives you immediate access to the AWS Free Tier.
 +* You have an account with GitHub, GitLab, or Bitbucket.
 +* You have completed the [Quick Start][] or have a Hugo website you are ready to deploy and share with the world.
 +
 +## Hosting
 +
 +1. Log in to the [AWS Amplify Console](https://console.aws.amazon.com/amplify/home) and choose Get Started under Deploy.
 +   ![Hugo Amplify](/images/hosting-and-deployment/hosting-on-aws-amplify/amplify-gettingstarted.png)
 +
 +1. Connect a branch from your GitHub, Bitbucket, GitLab, or AWS CodeCommit repository. Connecting your repository allows Amplify to deploy updates on every code commit to a branch.
 +   ![Hugo Amplify](/images/hosting-and-deployment/hosting-on-aws-amplify/amplify-connect-repo.gif)
 +
- ## Using a Newer Version of Hugo
++1. Accept the default build settings. The Amplify Console automatically detects your Hugo build settings and output directory.
 +   ![Hugo Amplify](/images/hosting-and-deployment/hosting-on-aws-amplify/amplify-build-settings.png)
 +
 +1. Review your changes and then choose **Save and deploy**. The Amplify Console will pull code from your repository, build changes to the backend and frontend, and deploy your build artifacts at `https://master.unique-id.amplifyapp.com`. Bonus: Screenshots of your app on different devices to find layout issues.
 +
++## Using a newer version of Hugo
 +
 +If you need to use a different, perhaps newer, version of Hugo than the version currently supported by AWS Amplify:
 +
 +1. Visit the [AWS Amplify Console](https://console.aws.amazon.com/amplify/home), and click the app you would like to modify
 +1. In the side navigation bar, Under App Settings, click **Build settings**
 +1. On the Build settings page, near the bottom, there is a section called **Build image settings**. Click **Edit**
 +1. Under **Live package updates**, click **Add package version override**
 +1. From the selection, click **Hugo** and ensure the version field says `latest`
 +1. Click **Save** to save the changes.
 +
 +[Quick Start]: /getting-started/quick-start/
index 9d9daa578a7fe50d7aca85209ca041f64699fb5c,0000000000000000000000000000000000000000..cf06580e78660db34d7e80e83aae517aa1f5ce46
mode 100644,000000..100644
--- /dev/null
@@@ -1,23 -1,0 +1,23 @@@
- You can create and deploy a Hugo web application to Azure Static Web Apps. The final result is a new Azure Static Web App with associated GitHub Actions that give you control over how the app is built and published. You'll learn how to create a Hugo app, setup an Azure Static Web App and deploy the Hugo app to Azure.
 +---
 +title: Hosting on Azure Static Web Apps
 +linktitle: Hosting on Azure Static Web Apps
 +description: Learn how to deploy a Hugo application to Azure Static Web Apps.
 +date: 2022-05-09
 +publishdate: 2022-05-09
 +categories: [hosting and deployment]
 +keywords: [hosting,Azure Static Web Apps]
 +authors: [Azure Static Web Apps]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 200
 +weight: 200
 +sections_weight: 200
 +draft: false
 +toc: true
 +aliases: []
 +---
 +
++You can create and deploy a Hugo web application to Azure Static Web Apps. The final result is a new Azure Static Web App with associated GitHub Actions that give you control over how the app is built and published. You'll learn how to create a Hugo app, set up an Azure Static Web App and deploy the Hugo app to Azure.
 +
 +Here's the tutorial on how to [Publish a Hugo site to Azure Static Web Apps](https://docs.microsoft.com/en-us/azure/static-web-apps/publish-hugo).
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f63c0153cfbf4346dec4a00cd51cf9e2f0c3fdb0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,101 @@@
++---
++title: Host on Azure Static Web Apps
++linktitle: Host on Azure Static Web Apps
++description: Deploy Hugo to Azure Static Web Apps and automate the whole process with Github Action Workflow
++date: 2021-03-12
++publishdate: 2021-03-12
++categories: [hosting and deployment]
++keywords: [azure,git,deployment,hosting]
++authors: [Aaron Powell]
++menu:
++  docs:
++    parent: "hosting-and-deployment"
++    weight: 10
++weight: 10
++sections_weight: 10
++toc: true
++---
++
++[Azure Static Web Apps] is a service that automatically builds and deploys full stack web apps to Azure from a Git repository, using [GitHub Actions] or [Azure DevOps].
++
++_The following documentation covers how to use GitHub Actions for the deployment. If you are using Azure DevOps, follow the Microsoft documentation._
++
++## Assumptions
++
++1. You have Git 2.8 or greater [installed on your machine][installgit].
++2. You have a GitHub account. [Signing up][ghsignup] for GitHub is free.
++3. You have an Azure account. You can sign up for a [Free Trail][azuretrial].
++4. You have a ready-to-publish Hugo website or have at least completed the [Quick Start][].
++
++## Deploy Hugo to Azure Static Web Apps
++
++1. Navigate to the [Azure Portal][azureportal]
++2. Click **Create a Resource**
++3. Search for **Static Web Apps**
++4. Click **Static Web Apps**
++5. Click **Create**
++
++![Create in Azure Portal](/images/hosting-and-deployment/hosting-on-azure/create-in-portal.png)
++
++6. For **Subscription**, accept the subscription that is listed or select a new one from the drop-down list.
++7. In _Resource group_, select **New**. In _New resource group name_, enter **hugo-static-app** and select **OK**.
++8. Next, a name for your app in the **Name** box. Valid characters include `a-z`, `A-Z`, `0-9` and `-`.
++9. For _Region_, select an available region close to you.
++10. For _SKU_, select **Free**.
++
++![Basic app details](/images/hosting-and-deployment/hosting-on-azure/basic-app-details.png)
++
++11. Click the **Sign in with GitHub** button.
++12. Select the **Organization** under which your repo exists.
++13. Select the Hugo app you wish to deploy as the _Repository_ .
++14. For the _Branch_ select the branch you want to deploy (eg: **main**).
++15. Select **Hugo** under the _Build Presets_, which will populate the configuration files with the standard Hugo build options
++  * **App Location** is the path in the Git repo where Hugo's config file is
++  * **Api Location** is the path where the Serverless API is (or left blank if there is no API)
++  * **Artifact Location** is the path where Hugo publishes to
++16. Click **Review + Create** to review the details and then **Create** to start the creation of the Azure Static Web Apps and create the GitHub Action workflow for deployment.
++
++A GitHub Action workflow will immediately start a build using Hugo and deployment to Azure. The website can be accessed via the URL shown on the _Overview_ page of the Azure Static Web Apps resource in Azure.
++
++## Using A Custom Hugo Version
++
++When you create a Static Web App, a [workflow file][swaconfig] is generated which contains the deployment settings for the site. You can configure a specific Hugo version in the workflow file by providing a value for `HUGO_VERSION` in the `env` section of the `Azure/static-web-apps-deploy` GitHub Action.
++
++```yaml
++jobs:
++  build_and_deploy_job:
++    if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
++    runs-on: ubuntu-latest
++    name: Build and Deploy Job
++    steps:
++      - uses: actions/checkout@v3
++        with:
++          submodules: true
++      - name: Build And Deploy
++        id: builddeploy
++        uses: Azure/static-web-apps-deploy@v1
++        with:
++          azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
++          repo_token: ${{ secrets.GITHUB_TOKEN }}
++          action: "upload"
++          app_location: "/" # App source code path
++          api_location: "api" # Api source code path - optional
++          output_location: "public" # Built app content directory - optional
++        env:
++          HUGO_VERSION: 0.100.2
++```
++
++## Use a Custom Domain
++
++Azure Static Web Apps supports custom domains as a CNAME or APEX domain mapping. You can configure the custom domains via the Azure Portal. Refer to the [official documentation for custom domains][domains] for more information.
++
++[Azure Static Web Apps]: https://docs.microsoft.com/azure/static-web-apps/?WT.mc_id=javascript-26008-aapowell
++[GitHub Actions]: https://docs.github.com/en/actions
++[Azure DevOps]: https://docs.microsoft.com/azure/static-web-apps/publish-devops?WT.mc_id=javascript-26008-aapowell
++[ghsignup]: https://github.com/join
++[installgit]: https://git-scm.com/downloads
++[azuretrial]: https://azure.microsoft.com/free/?WT.mc_id=javascript-26008-aapowell
++[azureportal]: https://portal.azure.com/
++[swaconfig]: https://docs.microsoft.com/azure/static-web-apps/github-actions-workflow?WT.mc_id=javascript-26008-aapowell
++[domains]: https://docs.microsoft.com/azure/static-web-apps/custom-domain?WT.mc_id=javascript-26008-aapowell
++[Quick Start]: /getting-started/quick-start/
index 3a4039f90affbf034e51fbf269b2592826b190e0,0000000000000000000000000000000000000000..fe6cca1e1cbaaf576c16262751d4bc79da5741de
mode 100644,000000..100644
--- /dev/null
@@@ -1,89 -1,0 +1,119 @@@
- lastmod: 2017-03-15
 +---
 +title: Host on Firebase
 +linktitle: Host on Firebase
 +description: You can use Firebase's free tier to host your static website; this also gives you access to Firebase's NOSQL API.
 +date: 2017-03-12
 +publishdate: 2017-03-12
- draft: false
 +categories: [hosting and deployment]
 +keywords: [hosting,firebase]
 +authors: [Michel Racic]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
- ```
 +toc: true
 +aliases: []
 +---
 +
 +## Assumptions
 +
 +1. You have an account with [Firebase][signup]. (If you don't, you can sign up for free using your Google account.)
 +2. You have completed the [Quick Start][] or have a completed Hugo website ready for deployment.
 +
 +## Initial setup
 +
 +Go to the [Firebase console][console] and create a new project (unless you already have a project). You will need to globally install `firebase-tools` (node.js):
 +
- ```
++```txt
 +npm install -g firebase-tools
 +```
 +
 +Log in to Firebase (setup on your local machine) using `firebase login`, which opens a browser where you can select your account. Use `firebase logout` in case you are already logged in but to the wrong account.
 +
 +
- ```
++```txt
 +firebase login
 +```
++
 +In the root of your Hugo project, initialize the Firebase project with the `firebase init` command:
 +
- ## Deploy
++```txt
 +firebase init
 +```
++
 +From here:
 +
 +1. Choose Hosting in the feature question
 +2. Choose the project you just set up
 +3. Accept the default for your database rules file
 +4. Accept the default for the publish directory, which is `public`
 +5. Choose "No" in the question if you are deploying a single-page app
 +
- To deploy your Hugo site, execute the `firebase deploy` command, and your site will be up in no time:
++## Using Firebase & Github CI/CD
 +
- ## CI Setup
++In new versions of Firebase, some other questions apply:
++
++6. Set up automatic builds and deploys with GitHub? 
++
++Here you will be redirected to login in your GitHub account to get permissions. Confirm.
++
++7. For which GitHub repository would you like to set up a GitHub workflow? (format: user/repository) 
++
++Include the repository you will use in the format above (Account/Repo)
++Firebase script with retrive credentials, create a service account you can later manage in yout github settings.
++
++8. Set up the workflow to run a build script before every deploy? 
++
++Here is your oportunity to include some commands before you run the deploy.
++
++9. Set up automatic deployment to your site's live channel when a PR is merged? 
++
++You can let in the default option (main)
++
++After that Firebase has been set in your project with CI/CD. After that run:
 +
 +```
 +hugo && firebase deploy
 +```
 +
- You can generate a deploy token using
++With this you will have the app initialized manualy. After that you can manage and fix your github workflow from: https://github.com/your-account/yout-repo/actions
 +
- You can also set up your CI (e.g., with [Wercker][]) and add the token to a private variable like `$FIREBASE_DEPLOY_TOKEN`.
++Don't forget to update your static pages before push!
++
++## Manual Deploy
 +
++To deploy your Hugo site, execute the `firebase deploy` command, and your site will be up in no time:
 +
++```txt
++hugo && firebase deploy
 +```
++
++## CI Setup (Other tools)
++
++You can generate a deploy token using
++
++```txt
 +firebase login:ci
 +```
 +
- ```
++You can also set up your CI and add the token to a private variable like `$FIREBASE_DEPLOY_TOKEN`.
 +
 +{{% note %}}
 +This is a private secret and it should not appear in a public repository. Make sure you understand your chosen CI and that it's not visible to others.
 +{{% /note %}}
 +
 +You can then add a step in your build to do the deployment using the token:
 +
- [console]: https://console.firebase.google.com
++```txt
 +firebase deploy --token $FIREBASE_DEPLOY_TOKEN
 +```
 +
 +## Reference links
 +
 +* [Firebase CLI Reference](https://firebase.google.com/docs/cli/#administrative_commands)
 +
++[console]: https://console.firebase.google.com/
 +[Quick Start]: /getting-started/quick-start/
 +[signup]: https://console.firebase.google.com/
index 22acca568a1f00aa0b0b0f8a871e225e0cd1b172,0000000000000000000000000000000000000000..35550ed99c940e906e3c1e1d42c8c596ad5c0ee5
mode 100644,000000..100644
--- /dev/null
@@@ -1,118 -1,0 +1,118 @@@
- 2. By default, content from the `main` branch is used to publish GitHub Pages - rather than the `gh-pages` branch which is the default for project sites. However, the GitHub Actions in these instructions publish to the `gh-pages` branch. Therefore, if you are publishing Github pages for a user or organization, you will need to change the publishing branch to `gh-pages`. See the instructions later in this document.
 +---
 +title: Host on GitHub
 +linktitle: Host on GitHub
 +description: Deploy Hugo as a GitHub Pages project or personal/organizational site and automate the whole process with Github Action Workflow
 +date: 2014-03-21
 +publishdate: 2014-03-21
 +categories: [hosting and deployment]
 +keywords: [github,git,deployment,hosting]
 +authors: [Spencer Lyon, Gunnar Morling]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 30
 +weight: 30
 +sections_weight: 30
 +toc: true
 +aliases: [/tutorials/github-pages-blog/]
 +---
 +
 +GitHub provides free and fast static hosting over SSL for personal, organization, or project pages directly from a GitHub repository via its [GitHub Pages service][] and automating development workflows and build with [GitHub Actions].
 +
 +## Assumptions
 +
 +1. You have Git 2.8 or greater [installed on your machine][installgit].
 +2. You have a GitHub account. [Signing up][ghsignup] for GitHub is free.
 +3. You have a ready-to-publish Hugo website or have at least completed the [Quick Start][].
 +
 +## Types of GitHub Pages
 +
 +There are two types of GitHub Pages:
 +
 +- User/Organization Pages (`https://<USERNAME|ORGANIZATION>.github.io/`)
 +- Project Pages (`https://<USERNAME|ORGANIZATION>.github.io/<PROJECT>/`)
 +
 +Please refer to the [GitHub Pages documentation][ghorgs] to decide which type of site you would like to create as it will determine which of the below methods to use.
 +
 +## Branches for GitHub Actions
 +
 +The GitHub Actions used in these instructions pull source content from the `main` branch and then commit the generated content to the `gh-pages` branch. This applies regardless of what type of GitHub Pages you are using. This is a clean setup as your Hugo files are stored in one branch and your generated files are published into a separate branch.
 +
 +## GitHub User or Organization Pages
 +
 +As mentioned in the [GitHub Pages documentation][ghorgs], you can host a user/organization page in addition to project pages. Here are the key differences in GitHub Pages websites for Users and Organizations:
 +
 +1. You must create a repository named `<USERNAME>.github.io` or `<ORGANIZATION>.github.io` to host your pages
- GitHub executes your software development workflows. Everytime you push your code on the GitHub repository, Github Actions will build the site automatically.
++2. By default, content from the `main` branch is used to publish GitHub Pages - rather than the `gh-pages` branch which is the default for project sites. However, the GitHub Actions in these instructions publish to the `gh-pages` branch. Therefore, if you are publishing GitHub pages for a user or organization, you will need to change the publishing branch to `gh-pages`. See the instructions later in this document.
 +
 +## Build Hugo With GitHub Action
 +
-       - main  # Set a branch to deploy
++GitHub executes your software development workflows. Every time you push your code on the GitHub repository, GitHub Actions will build the site automatically.
 +
 +Create a file in `.github/workflows/gh-pages.yml` containing the following content (based on [actions-hugo](https://github.com/marketplace/actions/hugo-setup)):
 +
 +```yml
 +name: github pages
 +
 +on:
 +  push:
 +    branches:
++      - main  # Set a branch that will trigger a deployment
 +  pull_request:
 +
 +jobs:
 +  deploy:
 +    runs-on: ubuntu-22.04
 +    steps:
 +      - uses: actions/checkout@v3
 +        with:
 +          submodules: true  # Fetch Hugo themes (true OR recursive)
 +          fetch-depth: 0    # Fetch all history for .GitInfo and .Lastmod
 +
 +      - name: Setup Hugo
 +        uses: peaceiris/actions-hugo@v2
 +        with:
 +          hugo-version: 'latest'
 +          # extended: true
 +
 +      - name: Build
 +        run: hugo --minify
 +
 +      - name: Deploy
 +        uses: peaceiris/actions-gh-pages@v3
 +        if: github.ref == 'refs/heads/main'
 +        with:
 +          github_token: ${{ secrets.GITHUB_TOKEN }}
 +          publish_dir: ./public
 +```
 +
 +For more advanced settings [actions-hugo](https://github.com/marketplace/actions/hugo-setup) and [actions-gh-pages](https://github.com/marketplace/actions/github-pages-action).
 +
 +## GitHub pages setting
 +
 +By default, the GitHub action pushes the generated content to the `gh-pages` branch. This means GitHub has to serve your `gh-pages` branch as a GitHub Pages branch. You can change this setting by going to Settings > GitHub Pages, and change the source branch to `gh-pages`.
 +
 +## Change baseURL in config.toml
 +
 +Don't forget to rename your `baseURL` in `config.toml` with the value `https://<USERNAME>.github.io` for your user repository or `https://<USERNAME>.github.io/<REPOSITORY_NAME>` for a project repository.
 +
 +Unless this is present in your `config.toml`, your website won't work.
 +
 +## Use a Custom Domain
 +
 +If you'd like to use a custom domain for your GitHub Pages site, create a file `static/CNAME`. Your custom domain name should be the only contents inside `CNAME`. Since it's inside `static`, the published site will contain the CNAME file at the root of the published site, which is a requirement of GitHub Pages.
 +
 +Refer to the [official documentation for custom domains][domains] for further information.
 +
 +[config]: /getting-started/configuration/
 +[domains]: https://help.github.com/articles/using-a-custom-domain-with-github-pages/
 +[ghorgs]: https://help.github.com/articles/user-organization-and-project-pages/#user--organization-pages
 +[ghpfromdocs]: https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/
 +[ghsignup]: https://github.com/join
 +[GitHub Pages service]: https://help.github.com/articles/what-is-github-pages/
 +[installgit]: https://git-scm.com/downloads
 +[orphan branch]: https://git-scm.com/docs/git-checkout/#Documentation/git-checkout.txt---orphanltnewbranchgt
 +[Quick Start]: /getting-started/quick-start/
 +[submodule]: https://github.com/blog/2104-working-with-submodules
 +[worktree feature]: https://git-scm.com/docs/git-worktree
 +[GitHub Actions]: https://docs.github.com/en/actions
index 03c7776a7610bb62dac310bca7249977713e3676,0000000000000000000000000000000000000000..6eb816171d60379e12085669a3583065f1d20697
mode 100644,000000..100644
--- /dev/null
@@@ -1,86 -1,0 +1,86 @@@
- ## Push Your Hugo Website to GitLab
 +---
 +title: Host on GitLab
 +linktitle: Host on GitLab
 +description: GitLab makes it easy to build, deploy, and host your Hugo website via their free GitLab Pages service, which provides native support for Hugo.
 +date: 2016-06-23
 +publishdate: 2016-06-23
 +lastmod: 2017-11-16
 +categories: [hosting and deployment]
 +keywords: [hosting,deployment,git,gitlab]
 +authors: [Riku-Pekka Silvola]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 40
 +weight: 40
 +sections_weight: 40
 +draft: false
 +toc: true
 +wip: false
 +aliases: [/tutorials/hosting-on-gitlab/]
 +---
 +
 +## Assumptions
 +
 +* Working familiarity with Git for version control
 +* Completion of the Hugo [Quick Start]
 +* A [GitLab account](https://gitlab.com/users/sign_in)
 +* A Hugo website on your local machine that you are ready to publish
 +
 +## BaseURL
 +
 +The `baseURL` in your [site configuration](/getting-started/configuration/) must reflect the full URL of your GitLab pages repository if you are using the default GitLab Pages URL (e.g., `https://<YourUsername>.gitlab.io/<your-hugo-site>/`) and not a custom domain.
 +
 +## Configure GitLab CI/CD
 +
 +Define your [CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) jobs by creating a `.gitlab-ci.yml` file in the root of your project.
 +
 +{{< code file=".gitlab-ci.yml" >}}
 +image: registry.gitlab.com/pages/hugo/hugo_extended:latest
 +
 +variables:
 +  GIT_SUBMODULE_STRATEGY: recursive
 +
 +pages:
 +  script:
 +  - hugo
 +  artifacts:
 +    paths:
 +    - public
 +  rules:
 +  - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 +{{< /code >}}
 +
 +{{% note %}}
 +See [this list](https://gitlab.com/pages/hugo/container_registry) if you wish to use a particular Hugo version to build your site.
 +{{% /note %}}
 +
- ## Wait for Your Page to Build
++## Push your Hugo website to GitLab
 +
 +Next, create a new repository on GitLab. It is *not* necessary to make the repository public. In addition, you might want to add `/public` to your .gitignore file, as there is no need to push compiled assets to GitLab or keep your output website in version control.
 +
 +```bash
 +# initialize new git repository
 +git init
 +
 +# add /public directory to our .gitignore file
 +echo "/public" >> .gitignore
 +
 +# commit and push code to master branch
 +git add .
 +git commit -m "Initial commit"
 +git remote add origin https://gitlab.com/YourUsername/your-hugo-site.git
 +git push -u origin master
 +```
 +
- ## Next Steps
++## Wait for your page to build
 +
 +That's it! You can now follow the CI agent building your page at `https://gitlab.com/<YourUsername>/<your-hugo-site>/pipelines`.
 +
 +After the build has passed, your new website is available at `https://<YourUsername>.gitlab.io/<your-hugo-site>/`.
 +
++## Next steps
 +
 +GitLab supports using custom CNAME's and TLS certificates. For more details on GitLab Pages, see the [GitLab Pages setup documentation](https://about.gitlab.com/2016/04/07/gitlab-pages-setup/).
 +
 +[Quick Start]: /getting-started/quick-start/
index bec8b36e42c14325335f37a90086ba69f4b9a748,0000000000000000000000000000000000000000..85a5ab5f48a03da2fa5f4f8d4072c5298fc193a5
mode 100644,000000..100644
--- /dev/null
@@@ -1,94 -1,0 +1,93 @@@
- title: "Hosting on KeyCDN"
 +---
- description: "Accelerate your Hugo site globally with a KeyCDN integration. This tutorial shows you how to setup your static site as a GitLab page behind a KeyCDN pull zone."
++title: "Host on KeyCDN"
 +date: 2017-09-12
- draft: false
++description: "Accelerate your Hugo site globally with a KeyCDN integration. This tutorial shows you how to set up your static site as a GitLab page behind a KeyCDN pull zone."
 +categories: [hosting and deployment]
 +keywords: [keycdn,hosting,deployment,cdn]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 40
 +slug: ""
 +aliases: []
 +toc: false
- The first step will be to login to your KeyCDN account and create a new zone. Name this whatever you like and select the [Pull Zone](https://www.keycdn.com/support/create-a-pull-zone/) option. As for the origin URL, your site will be running on [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html) with a URL of `https://youruser.gitlab.io/reponame/`. Use this as the Origin URL.
 +---
 +
 +[KeyCDN](https://www.keycdn.com/) provides a multitude of features to help accelerate and secure your Hugo site globally including Brotli compression, Let's Encrypt support, Origin Shield, and more.
 +
 +## Assumptions
 +
 +- You already have a Hugo page configured
 +- You have a GitLab account
 +- You have a KeyCDN account
 +
 +## Create a KeyCDN Pull Zone
 +
- ```
++The first step will be to log in to your KeyCDN account and create a new zone. Name this whatever you like and select the [Pull Zone](https://www.keycdn.com/support/create-a-pull-zone/) option. As for the origin URL, your site will be running on [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html) with a URL of `https://youruser.gitlab.io/reponame/`. Use this as the Origin URL.
 +
 +![Screenshot of KeyCDN's pull zone creation page](/images/hosting-and-deployment/hosting-on-keycdn/keycdn-pull-zone.png)
 +
 +While the origin location doesn’t exist yet, you will need to use your new Zone URL address (or [Zone Alias](https://www.keycdn.com/support/create-a-zone-alias/)) in the `.gitlab-ci.yml` file that will be uploaded to your GitLab project.
 +
 +Ensure that you use your Zone URL or Zone alias as the `BASEURL` variable in the example below. This will be the user-visible website address.
 +
 +## Configure Your .gitlab-ci.yml File
 +
 +Your `.gitlab-ci.yml` file should look similar to the example below. Be sure to modify any variables that are specific to your setup.
 +
- ```
++```yml
 +image: alpine:latest
 +
 +variables:
 +    BASEURL: "https://cipull-7bb7.kxcdn.com/"
 +    HUGO_VERSION: "0.26"
 +    HUGO_CHECKSUM: "67e4ba5ec2a02c8164b6846e30a17cc765b0165a5b183d5e480149baf54e1a50"
 +    KEYCDN_ZONE_ID: "75544"
 +
 +before_script:
 +    - apk update
 +    - apk add curl
 +
 +pages:
 +    stage: deploy
 +    script:
 +    - apk add git
 +    - git submodule update --init
 +    - curl -sSL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -o /tmp/hugo.tar.gz
 +    - echo "${HUGO_CHECKSUM}  /tmp/hugo.tar.gz" | sha256sum -c
 +    - tar xf /tmp/hugo.tar.gz hugo -C /tmp/ && cp /tmp/hugo /usr/bin
 +    - hugo --baseURL ${BASEURL}
 +    - curl "https://api.keycdn.com/zones/purge/${KEYCDN_ZONE_ID}.json" -u "${KEYCDN_API_KEY}:"
 +    artifacts:
 +    paths:
 +    - public
 +    only:
 +    - master
 +
 +```
 +Using this integration method,  you will have to specify the Zone ID and your [KeyCDN API](https://www.keycdn.com/api) key as secret variables. To do this, navigate to the top-left menu bar in GitLab and select Projects. Then, select your project and click on the Settings page. Finally, select Pipelines from the sub-menu and scroll down to the Secret Variable section.
 +
 +The Secret Variable for your Zone ID should look similar to:
 +
 +![Screenshot of setting the Zone ID secret variable](/images/hosting-and-deployment/hosting-on-keycdn/secret-zone-id.png)
 +
 +While the Secret Variable for your API Key will look similar to:
 +
 +![Screenshot of setting the API Key secret variable](/images/hosting-and-deployment/hosting-on-keycdn/secret-api-key.png)
 +
 +The Zone ID and API key are used to purge your zone – it’s not strictly needed but otherwise, the CDN might deliver older versions of your assets for quite a while.
 +
 +## Push Your Changes to GitLab
 +
 +Now it’s time to push the newly created repository to GitLab:
 +
++```bash
 +git remote add origin git@gitlab.com:youruser/ci-example.git
 +git push -u origin master
 +```
 +
 +You can watch the progress and CI job output in your Gitlab project under “Pipelines”.
 +
 +After verifying your CI job ran without issues, first check that your GitLab page shows up under `https://youruser.gitlab.io/reponame/` (it might look broken depending on your browser settings as all links point to your KeyCDN zone – don’t worry about that) and then by heading to whatever Zone alias / Zone URL you defined.
 +
 +To learn more about Hugo hosting options with KeyCDN, check out the complete [Hugo hosting with KeyCDN integration guide](https://www.keycdn.com/support/hugo-hosting/).
index 1e2da84665867c995bf57beb058aabcb0b4edd05,0000000000000000000000000000000000000000..5267956559b2f1fb160844a9c2ab3b6e4f204040
mode 100644,000000..100644
--- /dev/null
@@@ -1,159 -1,0 +1,156 @@@
- lastmod: 2017-03-11
 +---
 +title: Host on Netlify
 +linktitle: Host on Netlify
 +description: Netlify can host your Hugo site with CDN, continuous deployment, 1-click HTTPS, an admin GUI, and its own CLI.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [hosting and deployment]
 +keywords: [netlify,hosting,deployment]
 +authors: [Ryan Watters, Seth MacLeod]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
- ## Create a New Site with Continuous Deployment
 +aliases: []
 +toc: true
 +---
 +
 +[Netlify][netlify] provides continuous deployment services, global CDN, ultra-fast DNS, atomic deploys, instant cache invalidation, one-click SSL, a browser-based interface, a CLI, and many other features for managing your Hugo website.
 +
 +## Assumptions
 +
 +* You have an account with GitHub, GitLab, or Bitbucket.
 +* You have completed the [Quick Start][] or have a Hugo website you are ready to deploy and share with the world.
 +* You do not already have a Netlify account.
 +
 +## Create a Netlify account
 +
 +Go to [app.netlify.com][] and select your preferred signup method. This will likely be a hosted Git provider, although you also have the option to sign up with an email address.
 +
 +The following examples use GitHub, but other git providers will follow a similar process.
 +
 +![Screenshot of the homepage for app.netlify.com, containing links to the most popular hosted git solutions.](/images/hosting-and-deployment/hosting-on-netlify/netlify-signup.jpg)
 +
 +Selecting GitHub will bring up an authorization modal for authentication. Select "Authorize application."
 +
 +![Screenshot of the authorization popup for Netlify and GitHub.](/images/hosting-and-deployment/hosting-on-netlify/netlify-first-authorize.jpg)
 +
- Once selected, you'll be brought to a screen for basic setup. Here you can select the branch you wanted published, your [build command][], and your publish (i.e. deploy) directory. The publish directory should mirror that of what you've set in your [site configuration][config], the default of which is `public`. The following steps assume you are publishing from the `master` branch.
++## Create a new site with continuous deployment
 +
 +You're now already a Netlify member and should be brought to your new dashboard. Select "New site from git."
 +
 +![Screenshot of the blank Netlify admin panel with no sites and highlighted 'add new site' button'](/images/hosting-and-deployment/hosting-on-netlify/netlify-add-new-site.jpg)
 +
 +Netlify will then start walking you through the steps necessary for continuous deployment. First, you'll need to select your git provider again, but this time you are giving Netlify added permissions to your repositories.
 +
 +![Screenshot of step 1 of create a new site for Netlify: selecting the git provider](/images/hosting-and-deployment/hosting-on-netlify/netlify-create-new-site-step-1.jpg)
 +
 +And then again with the GitHub authorization modal:
 +
 +![Screenshot of step 1 of create a new site for Netlify: selecting the git provider](/images/hosting-and-deployment/hosting-on-netlify/netlify-authorize-added-permissions.jpg)
 +
 +Select the repo you want to use for continuous deployment. If you have a large number of repositories, you can filter through them in real time using repo search:
 +
 +![Screenshot of step 1 of create a new site for Netlify: selecting the git provider](/images/hosting-and-deployment/hosting-on-netlify/netlify-create-new-site-step-2.jpg)
 +
- ## Configure Hugo Version in Netlify
++Once selected, you'll be brought to a screen for basic setup. Here you can select the branch you want to publish, your [build command][], and your publish (i.e. deploy) directory. The publish directory should mirror that of what you've set in your [site configuration][config], the default of which is `public`. The following steps assume you are publishing from the `master` branch.
 +
-   HUGO_VERSION = "0.83.1"
++## Configure Hugo version in Netlify
 +
 +You can [set Hugo version](https://www.netlify.com/blog/2017/04/11/netlify-plus-hugo-0.20-and-beyond/) for your environments in `netlify.toml` file or set `HUGO_VERSION` as a build environment variable in the Netlify console.
 +
 +For production:
 +
 +{{< code file="netlify.toml" codeLang="toml" >}}
 +[context.production.environment]
-   HUGO_VERSION = "0.83.1"
++  HUGO_VERSION = "0.99.1"
 +{{< /code >}}
 +
 +For testing:
 +
 +{{< code file="netlify.toml" codeLang="toml" >}}
 +[context.deploy-preview.environment]
- ```
++  HUGO_VERSION = "0.99.1"
 +{{< /code >}}
 +
 +The Netlify configuration file can be a little hard to understand and get right for the different environment, and you may get some inspiration and tips from this site's `netlify.toml`:
 +
 +{{< code file="netlify.toml" nocode="true" >}}
 +{{< readfile file="netlify.toml" highlight="toml" >}}
 +{{< /code >}}
 +
 +## Build and Deploy Site
 +
 +In the Netlify console, selecting "Deploy site" will immediately take you to a terminal for your build:.
 +
 +![Animated gif of deploying a site to Netlify, including the terminal read out for the build.](/images/hosting-and-deployment/hosting-on-netlify/netlify-deploying-site.gif)
 +
 +Once the build is finished---this should only take a few seconds--you should now see a "Hero Card" at the top of your screen letting you know the deployment is successful. The Hero Card is the first element that you see in most pages. It allows you to see a quick summary of the page and gives access to the most common/pertinent actions and information. You'll see that the URL is automatically generated by Netlify. You can update the URL in "Settings."
 +
 +![Screenshot of successful deploy badge at the top of a deployments screen from within the Netlify admin.](/images/hosting-and-deployment/hosting-on-netlify/netlify-deploy-published.jpg)
 +
 +![Screenshot of homepage to https://hugo-netlify-example.netlify.com, which is mostly dummy text](/images/hosting-and-deployment/hosting-on-netlify/netlify-live-site.jpg)
 +
 +[Visit the live site][visit].
 +
 +Now every time you push changes to your hosted git repository, Netlify will rebuild and redeploy your site.
 +
 +See [this blog post](https://www.netlify.com/blog/2017/04/11/netlify-plus-hugo-0.20-and-beyond/) for more details about how Netlify handles Hugo versions.
 +
 +## Use Hugo Themes with Netlify
 +
 +The [`git clone` method for installing themes][installthemes] is not supported by Netlify. If you were to use `git clone`, it would require you to recursively remove the `.git` subdirectory from the theme folder and would therefore prevent compatibility with future versions of the theme.
 +
 +A *better* approach is to install a theme as a proper git submodule. You can [read the GitHub documentation for submodules][ghsm] or those found on [Git's website][gitsm] for more information, but the command is similar to that of `git clone`:
 +
- ```
++```txt
 +cd themes
 +git submodule add https://github.com/<THEMECREATOR>/<THEMENAME>
 +```
 +
 +It is recommended to only use stable versions of a theme (if it’s versioned) and always check the changelog. This can be done by checking out a specific release within the theme's directory.
 +
 +Switch to the theme's directory and list all available versions:
 +
- ```
++```txt
 +cd themes/<theme>
 +git tag
 +# exit with q
 +```
 +
 +You can checkout a specific version as follows:
 +
- ```
++```txt
 +git checkout tags/<version-name>
 +```
 +
 +You can update a theme to the latest version by executing the following command in the *root* directory of your project:
 +
- You now have a live website served over https, distributed through CDN, and configured for continuous deployment. Dig deeper into the Netlify documentation:
++```txt
 +git submodule update --rebase --remote
 +```
 +
 +## Next Steps
 +
++You now have a live website served over HTTPS, distributed through CDN, and configured for continuous deployment. Dig deeper into the Netlify documentation:
 +
 +1. [Using a Custom Domain][]
 +2. [Setting up HTTPS on Custom Domains][httpscustom]
 +3. [Redirects and Rewrite Rules][]
 +
 +[app.netlify.com]: https://app.netlify.com
 +[build command]: /getting-started/usage/#the-hugo-command
 +[config]: /getting-started/configuration/
 +[ghsm]: https://github.com/blog/2104-working-with-submodules
 +[gitsm]: https://git-scm.com/book/en/v2/Git-Tools-Submodules
 +[httpscustom]: https://www.netlify.com/docs/ssl/
 +[hugoversions]: https://github.com/netlify/build-image/blob/master/Dockerfile#L216
 +[installthemes]: /themes/installing/
 +[netlify]: https://www.netlify.com/
 +[netlifysignup]: https://app.netlify.com/signup
 +[Quick Start]: /getting-started/quick-start/
 +[Redirects and Rewrite Rules]: https://www.netlify.com/docs/redirects/
 +[Using a Custom Domain]: https://www.netlify.com/docs/custom-domains/
 +[visit]: https://hugo-netlify-example.netlify.com
index 73b20bcb2bea4777a30b158063eec9d74223d184,0000000000000000000000000000000000000000..40cb2c32e8f75b5cc00c9349350058c25e4db857
mode 100644,000000..100644
--- /dev/null
@@@ -1,90 -1,0 +1,90 @@@
- * You have an account with GitHub or GitLab.
- * You have completed the [Quick Start][] or have a Hugo website you are ready to deploy and share with the world.
- * You have a Render account. You can sign up at https://render.com/register.
 +---
 +title: Host on Render
 +linktitle: Host on Render
 +description: Host your Hugo site for free with Render's global CDN, fully-managed SSL and auto deploys from GitHub.
 +date: 2019-06-06
 +publishdate: 2019-06-06
 +categories: [hosting and deployment]
 +keywords: [hosting,deployment]
 +authors: [Anurag Goel]
 +menu:
 +  docs:
 +    parent: "hosting-and-deployment"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +draft: false
 +aliases: []
 +toc: true
 +---
 +
 +## Introduction
 +
 +[Render](https://render.com) is a fully-managed cloud platform where you can host static sites, backend APIs, databases, cron jobs, and all your other apps in one place.
 +
 +Static sites are **completely free** on Render and include the following:
 +
 +- Continuous, automatic builds & deploys from [GitHub](https://render.com/docs/github) and [GitLab](https://render.com/docs/gitlab).
 +- Automatic SSL certificates through [Let's Encrypt](https://letsencrypt.org).
 +- Instant cache invalidation with a lightning fast, global CDN.
 +- Unlimited collaborators.
 +- Unlimited [custom domains](https://render.com/docs/custom-domains).
 +- Automatic [Brotli compression](https://en.wikipedia.org/wiki/Brotli) for faster sites.
 +- Native HTTP/2 support.
 +- [Pull Request Previews](https://render.com/docs/pull-request-previews).
 +- Automatic HTTP → HTTPS redirects.
 +- Custom URL redirects and rewrites.
 +
 +## Assumptions
 +
++- You have an account with GitHub or GitLab.
++- You have completed the [Quick Start][] or have a Hugo website you are ready to deploy and share with the world.
++- You have a Render account. You can sign up at https://render.com/register.
 +
 +## Deployment
 +
 +You can set up a Hugo site on Render in two quick steps:
 +
 +1. Create a new **Static Site** on Render, and give Render permission to access your GitHub/Gitlab repo.
 +2. Use the following values during creation:
 +
 +  Field                | Value
 +  -------------------  |  -------------------
 + **Build Command**     | `hugo --gc --minify` (or your own build command)
 + **Publish Directory** | `public` (or your own output directory)
 +
 +That's it! Your site will be live on your Render URL (which looks like `yoursite.onrender.com`) as soon as the build is done.
 +
 +## Continuous Deploys
 +
 +Now that Render is connected to your repo, it will **automatically build and publish your site** any time you push to your GitHub/Gitlab.
 +
 +You can choose to disable auto deploys under the **Settings** section for your site and deploy it manually from the Render dashboard.
 +
 +## CDN and Cache Invalidation
 +
 +Render hosts your site on a global, lightning fast CDN which ensures the fastest possible download times for all your users across the globe.
 +
 +Every deploy automatically and instantly invalidates the CDN cache, so your users can always access the latest content on your site.
 +
 +## Custom Domains
 +
 +Add your own domains to your site easily using Render's [custom domains](https://render.com/docs/custom-domains) guide.
 +
 +## Pull Request Previews
 +
 +With Pull Request (PR) previews, you can visualize changes introduced in a pull request instead of simply relying on code reviews.
 +
 +Once enabled, every PR for your site will automatically generate a new static site based on the code in the PR. It will have its own URL, and it will be deleted automatically when the PR is closed.
 +
 +Read more about [Pull Request Previews](https://render.com/docs/pull-request-previews) on Render.
 +
 +## Hugo Themes
 +
 +Render automatically downloads all Git submodules defined in your Git repo on every build. This way Hugo themes added as submodules work as expected.
 +
 +## Support
 +
 +Chat with Render developers at https://render.com/chat or email `support@render.com` if you need help.
 +
 +[Quick Start]: /getting-started/quick-start/
index 2b02a559e7debffa9c42c757c7f2102592c2fa2a,0000000000000000000000000000000000000000..b2951da9a2a713015bb72894ec291535346f50a2
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,32 @@@
- - [https://blog.golang.org/using-go-modules](https://blog.golang.org/using-go-modules)
 +---
 +title: Hugo Modules
 +linktitle: Hugo Modules Overview
 +description: How to use Hugo Modules.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +menu:
 +  docs:
 +    parent: "modules"
 +    weight: 01
 +weight: 01
 +sections_weight: 01
 +categories: [hugo modules]
 +keywords: [themes,modules]
 +draft: false
 +aliases: [/themes/overview/,/themes/]
 +toc: true
 +---
 +
 +**Hugo Modules** are the core building blocks in Hugo. A _module_ can be your main project or a smaller module providing one or more of the 7 component types defined in Hugo: **static**, **content**, **layouts**, **data**, **assets**, **i18n**, and **archetypes**.
 +
 +You can combine modules in any combination you like, and even mount directories from non-Hugo projects, forming a big, virtual union file system.
 +
 +Hugo Modules are powered by Go Modules. For more information about Go Modules, see:
 +
 +- [https://github.com/golang/go/wiki/Modules](https://github.com/golang/go/wiki/Modules)
++- [https://go.dev/blog/using-go-modules](https://go.dev/blog/using-go-modules)
 +
 +This is all very much brand new and there are only a few example projects around:
 +
 +- [https://github.com/bep/docuapi](https://github.com/bep/docuapi) is a theme that has been ported to Hugo Modules while testing this feature. It is a good example of a non-Hugo-project mounted into Hugo’s folder structure. It even shows a JS Bundler implementation in regular Go templates.
 +- [https://github.com/bep/my-modular-site](https://github.com/bep/my-modular-site) is a very simple site used for testing.
index 70de492ab4bf822e1a4f21d6c1c7f406ea35cdac,0000000000000000000000000000000000000000..c05201f8a88eb72945a37dea942b7b92a54c252a
mode 100644,000000..100644
--- /dev/null
@@@ -1,173 -1,0 +1,168 @@@
- noVendor {{< new-in "0.75.0" >}}
 +---
 +title: Configure Modules
 +linktitle: Configure Modules
 +description: This page describes the configuration options for a module.
 +date: 2019-07-24
 +categories: [hugo modules]
 +keywords: [themes, source, organization, directories]
 +menu:
 +  docs:
 +    parent: "modules"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +toc: true
 +---
 +
 +## Module Config: Top level
 +
 +{{< code-toggle file="config">}}
 +[module]
 +noVendor = ""
 +proxy = "direct"
 +noProxy = "none"
 +private = "*.*"
 +replacements = ""
 +workspace = ""
 +{{< /code-toggle >}}
 +
- vendorClosest {{< new-in "0.81.0" >}}
- : When enabled, we will pick the vendored module closest to the module using it. The default behaviour is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined.
++noVendor
 +: A optional Glob pattern matching module paths to skip when vendoring, e.g. "github.com/**"
 +
- workspace {{< new-in "0.83.0" >}}
++vendorClosest
++: When enabled, we will pick the vendored module closest to the module using it. The default behavior is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined.
 +
 +proxy
 +: Defines the proxy server to use to download remote modules. Default is `direct`, which means "git clone" and similar.
 +
 +noProxy
 +: Comma separated glob list matching paths that should not use the proxy configured above.
 +
 +private
 +: Comma separated glob list matching paths that should be treated as private.
 +
- replacements {{< new-in "0.77.0" >}}
++workspace
 +: The workspace file to use. This enables Go workspace mode. Note that this can also be set via OS env, e.g. `export HUGO_MODULE_WORKSPACE=/my/hugo.work` This only works with Go 1.18+.
 +
- ```
++replacements
 +: A comma separated (or a slice) list of module path to directory replacement mapping, e.g. `github.com/bep/my-theme -> ../..,github.com/bep/shortcodes -> /some/path`. This is mostly useful for temporary locally development of a module, and then it makes sense to set it as an OS environment variable, e.g: `env HUGO_MODULE_REPLACEMENTS="github.com/bep/my-theme -> ../.."`. Any relative path is relate to [themesDir](https://gohugo.io/getting-started/configuration/#all-configuration-settings), and absolute paths are allowed.
 +
 +Note that the above terms maps directly to their counterparts in Go Modules. Some of these setting may be natural to set as OS environment variables. To set the proxy server to use, as an example:
 +
- ignoreImports {{< new-in "0.80.0" >}}
++```txt
 +env HUGO_MODULE_PROXY=https://proxy.example.org hugo
 +```
 +
 +{{< gomodules-info >}}
 +
 +## Module Config: hugoVersion
 +
 +If your module requires a particular version of Hugo to work, you can indicate that in the `module` section and the user will be warned if using a too old/new version.
 +
 +{{< code-toggle file="config">}}
 +[module]
 +[module.hugoVersion]
 +  min = ""
 +  max = ""
 +  extended = false
 +
 +{{< /code-toggle >}}
 +
 +Any of the above can be omitted.
 +
 +min
 +: The minimum Hugo version supported, e.g. `0.55.0`
 +
 +max
 +: The maximum Hugo version supported, e.g. `0.55.0`
 +
 +extended
 +: Whether the extended version of Hugo is required.
 +
 +## Module Config: imports
 +
 +{{< code-toggle file="config">}}
 +[module]
 +[[module.imports]]
 +  path = "github.com/gohugoio/hugoTestModules1_linux/modh1_2_1v"
 +  ignoreConfig = false
 +  ignoreImports = false
 +  disable = false
 +[[module.imports]]
 +  path = "my-shortcodes"
 +{{< /code-toggle >}}
 +
 +path
 +: Can be either a valid Go Module module path, e.g. `github.com/gohugoio/myShortcodes`, or the directory name for the module as stored in your themes folder.
 +
 +ignoreConfig
 +: If enabled, any module configuration file, e.g. `config.toml`, will not be loaded. Note that this will also stop the loading of any transitive module dependencies.
 +
- noMounts {{< new-in "0.84.2" >}}
++ignoreImports
 +: If enabled, module imports will not be followed.
 +
 +disable
 +: Set to `true` to disable the module while keeping any version info in the `go.*` files.
 +
++noMounts
 +:  Do not mount any folder in this import.
 +
 +noVendor
 +:  Never vendor this import (only allowed in main project).
 +
 +{{< gomodules-info >}}
 +
- : One or more [glob](https://github.com/gobwas/glob) patterns matching files or directories to include. If `excludeFiles` is not set, the files matching `includeFiles` will be the files mounted. 
 +## Module Config: mounts
 +
 +{{% note %}}
 +When the `mounts` config was introduced in Hugo 0.56.0, we were careful to preserve the existing `contentDir`, `staticDir`, and similar configuration to make sure all existing sites just continued to work. But you should not have both: if you add a `mounts` section you should remove the old `contentDir`, `staticDir`, etc. settings.
 +{{% /note %}}
 +
 +{{% warning %}}
 +When you add a mount, the default mount for the concerned target root is ignored: be sure to explicitly add it.
 +{{% /warning %}}
 +
 +**Default mounts**
 +{{< code-toggle file="config">}}
 +[module]
 +[[module.mounts]]
 +    source="content"
 +    target="content"
 +[[module.mounts]]
 +    source="static"
 +    target="static"
 +[[module.mounts]]
 +    source="layouts"
 +    target="layouts"
 +[[module.mounts]]
 +    source="data"
 +    target="data"
 +[[module.mounts]]
 +    source="assets"
 +    target="assets"
 +[[module.mounts]]
 +    source="i18n"
 +    target="i18n"
 +[[module.mounts]]
 +    source="archetypes"
 +    target="archetypes"
 +{{< /code-toggle >}}
 +
 +source
 +: The source directory of the mount. For the main project, this can be either project-relative or absolute and even a symbolic link. For other modules it must be project-relative.
 +
 +target
 +: Where it should be mounted into Hugo's virtual filesystem. It must start with one of Hugo's component folders: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, or `archetypes`. E.g. `content/blog`.
 +
 +lang
 +: The language code, e.g. "en". Only relevant for `content` mounts, and `static` mounts when in multihost mode.
 +
 +includeFiles (string or slice)
- {{< new-in "0.89.0" >}}
++: One or more [glob](https://github.com/gobwas/glob) patterns matching files or directories to include. If `excludeFiles` is not set, the files matching `includeFiles` will be the files mounted.
 +
 +The glob patterns are matched to the filenames starting from the `source` root, they should have Unix styled slashes even on Windows, `/` matches the mount root and `**` can be used as a  super-asterisk to match recursively down all directories, e.g `/posts/**.jpg`.
 +
 +The search is case-insensitive.
 +
 +excludeFiles (string or slice)
 +: One or more glob patterns matching files to exclude.
index f1feb636aa4e9f5cea0dbb5e6cb7adbe17bfee2b,0000000000000000000000000000000000000000..c78b4249b2f8c7b85b8505b8129552896bdf415a
mode 100644,000000..100644
--- /dev/null
@@@ -1,54 -1,0 +1,49 @@@
 +---
 +title: Theme Components
 +linktitle: Theme Components
 +description: Hugo provides advanced theming support with Theme Components.
 +date: 2017-02-01
 +categories: [hugo modules]
 +keywords: [themes, theme, source, organization, directories]
 +menu:
 +  docs:
 +    parent: "modules"
 +    weight: 50
 +weight: 50
 +sections_weight: 50
 +draft: false
 +aliases: [/themes/customize/,/themes/customizing/]
 +toc: true
 +---
 +
 +{{% note %}}
 +This section contain information that may be outdated and is in the process of being rewritten.
 +{{% /note %}}
 +Since Hugo `0.42` a project can configure a theme as a composite of as many theme components you need:
 +
 +{{< code-toggle file="config">}}
 +theme = ["my-shortcodes", "base-theme", "hyde"]
 +{{< /code-toggle >}}
 +
- * For `i18n` and `data` files, Hugo merges deeply using the translation id and data key inside the files.
 +You can even nest this, and have the theme component itself include theme components in its own `config.toml` (theme inheritance).[^1]
 +
 +The theme definition example above in `config.toml` creates a theme with 3 theme components with precedence from left to right.
 +
 +For any given file, data entry, etc., Hugo will look first in the project and then in `my-shortcode`, `base-theme`, and lastly `hyde`.
 +
 +Hugo uses two different algorithms to merge the filesystems, depending on the file type:
 +
- [^1]: For themes hosted on the [Hugo Themes Showcase](https://themes.gohugo.io/) components need to be added as git submodules that point to the directory `exampleSite/themes` 
++* For `i18n` and `data` files, Hugo merges deeply using the translation ID and data key inside the files.
 +* For `static`, `layouts` (templates), and `archetypes` files, these are merged on file level. So the left-most file will be chosen.
 +
 +The name used in the `theme` definition above must match a folder in `/your-site/themes`, e.g. `/your-site/themes/my-shortcodes`. There are plans to improve on this and get a URL scheme so this can be resolved automatically.
 +
 +Also note that a component that is part of a theme can have its own configuration file, e.g. `config.toml`. There are currently some restrictions to what a theme component can configure:
 +
 +* `params` (global and per language)
 +* `menu` (global and per language)
 +* `outputformats` and `mediatypes`
 +
 +The same rules apply here: The left-most param/menu etc. with the same ID will win. There are some hidden and experimental namespace support in the above, which we will work to improve in the future, but theme authors are encouraged to create their own namespaces to avoid naming conflicts.
 +
++[^1]: For themes hosted on the [Hugo Themes Showcase](https://themes.gohugo.io/) components need to be added as git submodules that point to the directory `exampleSite/themes`
index 038e0bf89e4a97fb580c93c4d50478ce2cec3442,0000000000000000000000000000000000000000..8870307b3a35a8a69a4524c1ecbab8170813a1ac
mode 100644,000000..100644
--- /dev/null
@@@ -1,143 -1,0 +1,137 @@@
 +---
 +title: Use Hugo Modules
 +linktitle: Use Hugo Modules
 +description: How to use Hugo Modules to build and manage your site.
 +date: 2019-07-24
 +categories: [hugo modules]
 +keywords: [install, themes, source, organization, directories,usage,modules]
 +menu:
 +  docs:
 +    parent: "modules"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
 +draft: false
 +aliases: [/themes/usage/,/themes/installing/,/installing-and-using-themes/]
 +toc: true
 +---
 +
 +## Prerequisite
 +
 +{{< gomodules-info >}}
 +
- {{< new-in "0.65.0" >}}
 +## Initialize a New Module
 +
 +Use `hugo mod init` to initialize a new Hugo Module. If it fails to guess the module path, you must provide it as an argument, e.g.:
 +
 +```bash
 +hugo mod init github.com/gohugoio/myShortcodes
 +```
 +
 +Also see the [CLI Doc](/commands/hugo_mod_init/).
 +
 +## Use a Module for a Theme
++
 +The easiest way to use a Module for a theme is to import it in the config.
 +
 +1. Initialize the hugo module system: `hugo mod init github.com/<your_user>/<your_project>`
 +2. Import the theme:
 +
 +{{< code-toggle file="config" >}}
 +[module]
 +  [[module.imports]]
 +    path = "github.com/spf13/hyde"
 +{{< /code-toggle >}}
 +
 +## Update Modules
 +
 +Modules will be downloaded and added when you add them as imports to your configuration, see [Module Imports](/hugo-modules/configuration/#module-config-imports).
 +
 +To update or manage versions, you can use `hugo mod get`.
 +
 +Some examples:
 +
 +### Update All Modules
 +
 +```bash
 +hugo mod get -u
 +```
 +
 +### Update All Modules Recursively
 +
- Note that since v.0.77.0 you can use modules config [`replacements`](https://gohugo.io/hugo-modules/configuration/#module-config-top-level) option. {{< new-in "0.77.0" >}}
 +```bash
 +hugo mod get -u ./...
 +```
 +
 +### Update One Module
 +
 +```bash
 +hugo mod get -u github.com/gohugoio/myShortcodes
 +```
++
 +### Get a Specific Version
 +
 +```bash
 +hugo mod get github.com/gohugoio/myShortcodes@v1.0.7
 +```
 +
 +Also see the [CLI Doc](/commands/hugo_mod_get/).
 +
 +## Make and test changes in a module
 +
 +One way to do local development of a module imported in a project is to add a replace directive to a local directory with the source in `go.mod`:
 +
 +```bash
 +replace github.com/bep/hugotestmods/mypartials => /Users/bep/hugotestmods/mypartials
 +```
 +
 +If you have the `hugo server` running, the configuration will be reloaded and `/Users/bep/hugotestmods/mypartials` put on the watch list.
 +
++Instead of modifying the `go.mod` files, you can also use the modules config [`replacements`](https://gohugo.io/hugo-modules/configuration/#module-config-top-level) option.
 +
 +## Print Dependency Graph
 +
- ```
 +Use `hugo mod graph` from the relevant module directory and it will print the dependency graph, including vendoring, module replacement or disabled status.
 +
 +E.g.:
 +
- * Most commands accept a `--ignoreVendorPaths` flag, which will then not use the vendored modules in `_vendor` for the module paths matching the [Glob](https://github.com/gobwas/glob) pattern given. Note that before Hugo 0.75 this flag was named `--ignoreVendor` and was a "all or nothing". {{< new-in "0.75.0" >}}
++```txt
 +hugo mod graph
 +
 +github.com/bep/my-modular-site github.com/bep/hugotestmods/mymounts@v1.2.0
 +github.com/bep/my-modular-site github.com/bep/hugotestmods/mypartials@v1.0.7
 +github.com/bep/hugotestmods/mypartials@v1.0.7 github.com/bep/hugotestmods/myassets@v1.0.4
 +github.com/bep/hugotestmods/mypartials@v1.0.7 github.com/bep/hugotestmods/myv2@v1.0.0
 +DISABLED github.com/bep/my-modular-site github.com/spf13/hyde@v0.0.0-20190427180251-e36f5799b396
 +github.com/bep/my-modular-site github.com/bep/hugo-fresh@v1.0.1
 +github.com/bep/my-modular-site in-themesdir
 +
 +```
 +
 +Also see the [CLI Doc](/commands/hugo_mod_graph/).
 +
 +## Vendor Your Modules
 +
 +`hugo mod vendor` will write all the module dependencies to a `_vendor` folder, which will then be used for all subsequent builds.
 +
 +Note that:
 +
 +* You can run `hugo mod vendor` on any level in the module tree.
 +* Vendoring will not store modules stored in your `themes` folder.
++* Most commands accept a `--ignoreVendorPaths` flag, which will then not use the vendored modules in `_vendor` for the module paths matching the [Glob](https://github.com/gobwas/glob) pattern given.
 +
 +Also see the [CLI Doc](/commands/hugo_mod_vendor/).
 +
 +## Tidy go.mod, go.sum
 +
 +Run `hugo mod tidy` to remove unused entries in `go.mod` and `go.sum`.
 +
 +Also see the [CLI Doc](/commands/hugo_mod_clean/).
 +
 +## Clean Module Cache
 +
 +Run `hugo mod clean` to delete the entire modules cache.
 +
 +Note that you can also configure the `modules` cache with a `maxAge`, see [File Caches](/getting-started/configuration/#configure-file-caches).
 +
 +Also see the [CLI Doc](/commands/hugo_mod_clean/).
index 47411072a089d889df89bf02403477fcebf438bb,0000000000000000000000000000000000000000..078e1f18602852aaacd74c1a3dce520daaaa8dd7
mode 100755,000000..100755
--- /dev/null
@@@ -1,15 -1,0 +1,13 @@@
- lastmod: 2018-07-14
 +---
 +title: Hugo Pipes Overview
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +---
index 7cf931f65eb45c80078738fc725daf5790a2ff80,0000000000000000000000000000000000000000..48db15c8dbce558a5def37f06312c69ae69f7464
mode 100755,000000..100755
--- /dev/null
@@@ -1,83 -1,0 +1,76 @@@
- lastmod: 2019-03-21
 +---
 +title: Babel
 +description: Hugo Pipes can process JS files with Babel.
 +date: 2019-03-21
 +publishdate: 2019-03-21
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 48
 +weight: 48
 +sections_weight: 48
 +---
 +
 +Any JavaScript resource file can be transpiled to another JavaScript version using `resources.Babel` which takes for argument the resource object and an optional dict of options listed below. Babel uses the [babel cli](https://babeljs.io/docs/en/babel-cli).
 +
 +
 +{{% note %}}
 +Hugo Pipe's Babel requires the `@babel/cli` and `@babel/core` JavaScript packages to be installed in the project or globally (`npm install -g @babel/cli @babel/core`) along with any Babel plugin(s) or preset(s) used (e.g., `npm install @babel/preset-env --save-dev`).
 +
 +If you are using the Hugo Snap package, Babel and plugin(s) need to be installed locally within your Hugo site directory, e.g., `npm install @babel/cli @babel/core --save-dev` without the `-g` flag.
 +{{% /note %}}
 +
- {{< new-in "v0.75.0" >}}
- In Hugo `v0.75` we improved the way we resolve JS configuration and dependencies. One of them is that we now add the main project's `node_modules` to `NODE_PATH` when running Babel and similar tools. There are some known [issues](https://github.com/babel/babel/issues/5618) with Babel in this area, so if you have a `babel.config.js` living in a Hugo Module (and not in the project itself), we recommend using `require` to load the presets/plugins, e.g.:
 +### Config
 +
-         presets: [
-                 [
-                         require('@babel/preset-env'),
-                         {
-                                 useBuiltIns: 'entry',
-                                 corejs: 3
-                         }
-                 ]
-         ]
++We add the main project's `node_modules` to `NODE_PATH` when running Babel and similar tools. There are some known [issues](https://github.com/babel/babel/issues/5618) with Babel in this area, so if you have a `babel.config.js` living in a Hugo Module (and not in the project itself), we recommend using `require` to load the presets/plugins, e.g.:
 +
 +
 +```js
 +module.exports = {
++  presets: [
++    [
++      require("@babel/preset-env"),
++      {
++        useBuiltIns: "entry",
++        corejs: 3,
++      },
++    ],
++  ],
 +};
 +```
 +
- : Save as much bytes as possible when printing
 +### Options
 +
 +config [string]
 +: Path to the Babel configuration file. Hugo will, by default, look for a `babel.config.js` in your project. More information on these configuration files can be found here: [babel configuration](https://babeljs.io/docs/en/configuration).
 +
 +minified [bool]
- : Output `inline` or `external` sourcemap from the babel compile. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
++: Save as many bytes as possible when printing
 +
 +noComments [bool]
 +: Write comments to generated output (true by default)
 +
 +compact [bool]
 +: Do not include superfluous whitespace characters and line terminators. Defaults to `auto` if not set.
 +
 +verbose [bool]
 +: Log everything
 +
 +sourceMap [string]
++: Output `inline` or `external` sourcemap from the babel compile. External sourcemaps will be written to the target with the output filename + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
 +
 +
 +### Examples
 +
 +```go-html-template
 +{{- $transpiled := resources.Get "scripts/main.js" | babel  -}}
 +```
 +
 +Or with options:
 +
 +```go-html-template
 +{{ $opts := dict "noComments" true }}
 +{{- $transpiled := resources.Get "scripts/main.js" | babel $opts -}}
 +```
index 79b866c930db4b86055ecba9ae9de10cf3b555a0,0000000000000000000000000000000000000000..227c7b1a32612d6da5ea622ddd4e6f786a6f4282
mode 100755,000000..100755
--- /dev/null
@@@ -1,24 -1,0 +1,23 @@@
- draft: false
 +---
 +title: Asset bundling
 +description: Hugo Pipes can bundle any number of assets together.
 +date: 2018-07-14
 +publishdate: 2018-07-14
 +lastmod: 2018-07-14
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 60
 +weight: 60
 +sections_weight: 60
 +---
 +
 +Asset files of the same MIME type can be bundled into one resource using `resources.Concat` which takes two arguments, a target path and a slice of resource objects.
 +
 +```go-html-template
 +{{ $plugins := resources.Get "js/plugins.js" }}
 +{{ $global := resources.Get "js/global.js" }}
 +{{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
 +```
index b58b577dba4f9dcb0d64e1445e0237fc7fc539a2,0000000000000000000000000000000000000000..f27ef7b5526028c0ded0328c4be1fd5b3c1754bc
mode 100755,000000..100755
--- /dev/null
@@@ -1,29 -1,0 +1,26 @@@
- lastmod: 2018-07-14
 +---
 +title: Fingerprinting and SRI
 +description: Hugo Pipes allows Fingerprinting and Subresource Integrity.
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 70
 +weight: 70
 +sections_weight: 70
 +---
 +
- <script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
 +Fingerprinting and [SRI](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) can be applied to any asset file using `resources.Fingerprint` which takes two arguments, the resource object and a [hash function](https://en.wikipedia.org/wiki/Cryptographic_hash_function).
 +
 +The default hash function is `sha256`. Other available functions are `sha384` (from Hugo `0.55`), `sha512` and `md5`.
 +
 +Any so processed asset will bear a `.Data.Integrity` property containing an integrity string, which is made up of the name of the hash function, one hyphen and the base64-encoded hash sum.
 +
 +```go-html-template
 +{{ $js := resources.Get "js/global.js" }}
 +{{ $secureJS := $js | resources.Fingerprint "sha512" }}
++<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
 +```
index a3c95688563360ca4b10efb2cb92ea07253041e1,0000000000000000000000000000000000000000..c16572e48845711016a613d16551a06a6caae353
mode 100755,000000..100755
--- /dev/null
@@@ -1,167 -1,0 +1,161 @@@
- lastmod: 2018-07-14
 +---
 +title: Hugo Pipes Introduction
 +linkTitle: Hugo Pipes
 +description: Hugo Pipes is Hugo's asset processing set of functions.
 +date: 2018-07-14
 +publishdate: 2018-07-14
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 20
 +weight: 01
 +sections_weight: 01
 +draft: false
 +toc: true
 +aliases: [/assets/]
 +---
 +
 +## Find Resources in /assets
 +
 +This is about the global Resources mounted inside `/assets`. For the `.Page` scoped Resources, see [Page Resources](/content-management/page-resources/).
 +
 +Note that you can mount any directory into Hugo's virtual `assets` folder using the [Mount Configuration](/hugo-modules/configuration/#module-config-mounts).
 +
 +| Function  | Description |
 +| ------------- | ------------- |
 +| `resources.Get`  | Get locates the filename given in Hugo's assets filesystem and creates a `Resource` object that can be used for further transformations. See [Get Resource with resources.Get and resources.GetRemote](#get-resource-with-resourcesget-and-resourcesgetremote).  |
 +| `resources.GetRemote`  | Same as `Get`, but it accepts remote URLs. See [Get Resource with resources.Get and resources.GetRemote](#get-resource-with-resourcesget-and-resourcesgetremote).|
 +| `resources.GetMatch`  | `GetMatch` finds the first Resource matching the given pattern, or nil if none found. See Match for a more complete explanation about the rules used. |
 +| `resources.Match`  | `Match` gets all resources matching the given base path prefix, e.g "*.png" will match all png files. The "*" does not match path delimiters (/), so if you organize your resources in sub-folders, you need to be explicit about it, e.g.: "images/*.png". To match any PNG image anywhere in the bundle you can do "\*\*.png", and to match all PNG images below the images folder, use "images/\*\*.jpg". The matching is case insensitive. Match matches by using the files name with path relative to the file system root with Unix style slashes (/) and no leading slash, e.g. "images/logo.png". See https://github.com/gobwas/glob for the full rules set.|
 +
 +See the [GoDoc Page](https://pkg.go.dev/github.com/gohugoio/hugo@v0.93.1/tpl/resources) for the `resources` package for an up to date overview of all template functions in this namespace.
 +
 +## Get Resource with resources.Get and resources.GetRemote
 +
 +In order to process an asset with Hugo Pipes, it must be retrieved as a `Resource` using `resources.Get` or `resources.GetRemote`.
 +
 +With `resources.Get`, the first argument is a local path relative to the `assets` directory/directories:
 +
 +```go-html-template
 +{{ $local := resources.Get "sass/main.scss" }}
 +```
 +
 +With `resources.GetRemote`, the first argument is a remote URL:
 +
 +```go-html-template
 +{{ $remote := resources.GetRemote "https://www.example.com/styles.scss" }}
 +```
 +
 +`resources.Get` and `resources.GetRemote` return `nil` if the resource is not found.
 +
 +## Copy a Resource
 +
 +{{< new-in "0.100.0" >}}
 +
 +`resources.Copy` allows you to copy almost any Hugo `Resource` (the one exception is the `Page`), possibly most useful for renaming things:
 +
 +```go-html-template
 +{{ $resized := $image.Resize "400x400" |  resources.Copy "images/mynewname.jpg" }}
 +<img src="{{ $resized.RelPermalink }}">
 +```
 +
 +### Caching
 +
 +By default, Hugo calculates a cache key based on the `URL` and the `options` (e.g. headers) given.
 +
- {{< new-in "0.91.0" >}}
 +{{< new-in "0.97.0" >}} You can override this by setting a `key` in the options map. This can be used to get more fine grained control over how often a remote resource is fetched, e.g.:
 +
 +
 +```go-html-template
 +{{ $cacheKey := print $url (now.Format "2006-01-02") }}
 +{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
 +```
 +
 +### Error Handling
 +
- Hugo publishes assets to the to the `publishDir` (typically `public`) when you invoke `.Permalink`, `.RelPermalink`, or `.Publish`. You can use `.Content` to inline the asset.
 +The return value from `resources.GetRemote` includes an `.Err` method that will return an error if the call failed. If you want to just log any error as a `WARNING` you can use a construct similar to the one below.
 +
 +```go-html-template
 +{{ with resources.GetRemote "https://gohugo.io/images/gohugoio-card-1.png" }}
 +  {{ with .Err }}
 +    {{ warnf "%s" . }}
 +  {{ else }}
 +    <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
 +  {{ end }}
 +{{ end }}
 +```
 +
 +Note that if you do not handle `.Err` yourself, Hugo will fail the build the first time you start using the `Resource` object.
 +
 +### Remote Options
 +
 +When fetching a remote `Resource`, `resources.GetRemote` takes an optional options map as the last argument, e.g.:
 +
 +```go-html-template
 +{{ $resource := resources.GetRemote "https://example.org/api" (dict "headers" (dict "Authorization" "Bearer abcd"))  }}
 +```
 +
 +If you need multiple values for the same header key, use a slice:
 +
 +```go-html-template
 +{{ $resource := resources.GetRemote "https://example.org/api"  (dict "headers" (dict "X-List" (slice "a" "b" "c")))  }}
 +```
 +
 +You can also change the request method and set the request body:
 +
 +```go-html-template
 +{{ $postResponse := resources.GetRemote "https://example.org/api"  (dict 
 +    "method" "post"
 +    "body" `{"complete": true}` 
 +    "headers" (dict 
 +        "Content-Type" "application/json"
 +    )
 +)}}
 +```
 +
 +### Caching of Remote Resources
 +
 +Remote resources fetched with `resources.GetRemote` will be cached on disk. See [Configure File Caches](/getting-started/configuration/#configure-file-caches) for details.
 +
 +## Asset directory
 +
 +Asset files must be stored in the asset directory. This is `/assets` by default, but can be configured via the configuration file's `assetDir` key.
 +
 +### Asset Publishing
 +
- Hugo Pipes invocations are cached based on the entire _pipe chain_.
++Hugo publishes assets to the `publishDir` (typically `public`) when you invoke `.Permalink`, `.RelPermalink`, or `.Publish`. You can use `.Content` to inline the asset.
 +
 +## Go Pipes
 +
 +For improved readability, the Hugo Pipes examples of this documentation will be written using [Go Pipes](/templates/introduction/#pipes):
 +
 +```go-html-template
 +{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
 +<link rel="stylesheet" href="{{ $style.Permalink }}">
 +```
 +
 +## Method aliases
 +
 +Each Hugo Pipes `resources` transformation method uses a __camelCased__ alias (`toCSS` for `resources.ToCSS`).
 +Non-transformation methods deprived of such aliases are `resources.Get`, `resources.FromString`, `resources.ExecuteAsTemplate` and `resources.Concat`.
 +
 +The example above can therefore also be written as follows:
 +
 +```go-html-template
 +{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint }}
 +<link rel="stylesheet" href="{{ $style.Permalink }}">
 +```
 +
 +## Caching
 +
++Hugo Pipes invocations are cached based on the entire *pipe chain*.
 +
 +An example of a pipe chain is:
 +
 +```go-html-template
 +{{ $mainJs := resources.Get "js/main.js" | js.Build "main.js" | minify | fingerprint }}
 +```
 +
 +The pipe chain is only invoked the first time it is encountered in a site build, and results are otherwise loaded from cache. As such, Hugo Pipes can be used in templates which are executed thousands or millions of times without negatively impacting the build performance.
index ff29ca9582d1d391351e48a47a60d30a755f7f79,0000000000000000000000000000000000000000..c95688e687b6eb21290475749e7aec9ddd4f8c4a
mode 100644,000000..100644
--- /dev/null
@@@ -1,175 -1,0 +1,163 @@@
- lastmod: 2020-07-20
 +---
 +title: JavaScript Building
 +description: Hugo Pipes can process JavaScript files with [ESBuild](https://github.com/evanw/esbuild).
 +date: 2020-07-20
 +publishdate: 2020-07-20
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 45
 +weight: 45
 +sections_weight: 45
- : If not set, the source path will be used as the base target path. 
 +---
 +
 +Any JavaScript resource file can be transpiled and "tree shaken" using `js.Build` which takes for argument either a string for the filepath or a dict of options listed below.
 +
 +### Options
 +
 +targetPath [string]
- params [map or slice] {{< new-in "0.78.0" >}}
++: If not set, the source path will be used as the base target path.
 +Note that the target path's extension may change if the target MIME type is different, e.g. when the source is TypeScript.
 +
- And then in your JS file: 
++params [map or slice]
 +: Params that can be imported as JSON in your JS files, e.g.:
 +
 +```go-html-template
 +{{ $js := resources.Get "js/main.js" | js.Build (dict "params" (dict "api" "https://example.org/api")) }}
 +```
- ``` 
++And then in your JS file:
 +
 +```js
 +import * as params from '@params';
- inject [slice] {{< new-in "0.81.0" >}}
++```
 +
 +Note that this is meant for small data sets, e.g. config settings. For larger data, please put/mount the files into `/assets` and import them directly.
 +
 +minify [bool]
 +: Let `js.Build` handle the minification.
 +
- shims {{< new-in "0.81.0" >}}
++inject [slice]
 +: This option allows you to automatically replace a global variable with an import from another file. The path names must be relative to `assets`.  See https://esbuild.github.io/api/#inject
 +
- ```
++shims
 +: This option allows swapping out a component with another. A common use case is to load dependencies like React from a CDN  (with _shims_) when in production, but running with the full bundled `node_modules` dependency during development:
 +
++```go-html-template
 +{{ $shims := dict "react" "js/shims/react.js"  "react-dom" "js/shims/react-dom.js" }}
 +{{ $js = $js | js.Build dict "shims" $shims }}
 +```
 +
 +The _shim_ files may look like these:
 +
 +```js
 +// js/shims/react.js
 +module.exports = window.React;
 +```
 +
 +```js
 +// js/shims/react-dom.js
 +module.exports = window.ReactDOM;
 +```
 +
- sourceMap [string, bool] {{< new-in "0.75.0" >}}
- : Let `js.Build` output sourceMap. Current only inline is supported. true defaults to inline.
-   One of: '`inline`, `external`
-   Default is "" (disabled)
 +With the above, these imports should work in both scenarios:
 +
 +```js
 +import * as React from 'react'
 +import * as ReactDOM from 'react-dom';
 +```
- format [string] {{< new-in "0.74.3" >}}
 +
 +target [string]
 +: The language target.
 +  One of: `es5`, `es2015`, `es2016`, `es2017`, `es2018`, `es2019`, `es2020` or `esnext`.
 +  Default is `esnext`.
 +
 +externals [slice]
 +: External dependencies. Use this to trim dependencies you know will never be executed. See https://esbuild.github.io/api/#external
 +
 +
 +defines [map]
 +: Allow to define a set of string replacement to be performed when building. Should be a map where each key is to be replaced by its value.
 +
 +```go-html-template
 +{{ $defines := dict "process.env.NODE_ENV" `"development"` }}
 +```
 +
- : Whether to generate `inline` or `external` sourcemap from esbuild. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
++format [string] 
 +: The output format.
 +  One of: `iife`, `cjs`, `esm`.
 +  Default is `iife`, a self-executing function, suitable for inclusion as a <script> tag.
 +
 +sourceMap
- {{< new-in "0.78.0" >}}
- Since Hugo `v0.78.0` `js.Build` has full support for the virtual union file system in [Hugo Modules](/hugo-modules/). You can see some simple examples in this [test project](https://github.com/gohugoio/hugoTestProjectJSModImports), but in short this means that you can do this:
++: Whether to generate `inline` or `external` sourcemap from esbuild. External sourcemaps will be written to the target with the output filename + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
 +
 +### Import JS code from /assets
 +
- Any imports in a file outside `/assets` or that does not resolve to a component inside `/assets` will be resolved by [ESBuild](https://esbuild.github.io/) with the **project directory** as the resolve directory (used as the starting point when looking for `node_modules` etc.). Also see [hugo mod npm pack](/commands/hugo_mod_npm_pack/).  If you have any imported NPM dependencies in your project, you need to make sure to run `npm install` before you run `hugo`.
++`js.Build` has full support for the virtual union file system in [Hugo Modules](/hugo-modules/). You can see some simple examples in this [test project](https://github.com/gohugoio/hugoTestProjectJSModImports), but in short this means that you can do this:
 +
 +```js
 +import { hello } from 'my/module';
 +```
 +
 +And it will resolve to the top-most `index.{js,ts,tsx,jsx}` inside `assets/my/module` in the layered file system.
 +
 +```js
 +import { hello3 } from 'my/module/hello3';
 +```
 +
 +Will resolve to `hello3.{js,ts,tsx,jsx}` inside `assets/my/module`.
 +
 +Any imports starting with `.` is resolved relative to the current file:
 +
 +```js
 +import { hello4 } from './lib';
 +```
 +
 +For other files (e.g. `JSON`, `CSS`) you need to use the relative path including any extension, e.g:
 +
 +```js
 +import * as data from 'my/module/data.json';
 +```
 +
- And then in your JS file: 
++Any imports in a file outside `/assets` or that does not resolve to a component inside `/assets` will be resolved by [ESBuild](https://esbuild.github.io/) with the **project directory** as the resolve directory (used as the starting point when looking for `node_modules` etc.). Also see [hugo mod npm pack](/commands/hugo_mod_npm_pack/).  If you have any imported npm dependencies in your project, you need to make sure to run `npm install` before you run `hugo`.
 +
 +Also note the new `params` option that can be passed from template to your JS files, e.g.:
 +
 +```go-html-template
 +{{ $js := resources.Get "js/main.js" | js.Build (dict "params" (dict "api" "https://example.org/api")) }}
 +```
++And then in your JS file:
 +
 +```js
 +import * as params from '@params';
 +```
 +
 +Hugo will, by default, generate a `assets/jsconfig.json` file that maps the imports. This is useful for navigation/intellisense help inside code editors, but if you don't need/want it, you can [turn it off](/getting-started/configuration/#configure-build).
 +
 +
- Any imports in a file outside `/assets` or that does not resolve to a component inside `/assets` will be resolved by [ESBuild](https://esbuild.github.io/) with the **project directory** as the resolve directory (used as the starting point when looking for `node_modules` etc.). Also see [hugo mod npm pack](/commands/hugo_mod_npm_pack/).  If you have any imported NPM dependencies in your project, you need to make sure to run `npm install` before you run `hugo`.
 +### Include Dependencies In package.json / node_modules
 +
- {{< new-in "0.78.1" >}} From Hugo `0.78.1` the start directory for resolving NPM packages (aka. packages that live inside a `node_modules` folder) is always the main project folder.
++Any imports in a file outside `/assets` or that does not resolve to a component inside `/assets` will be resolved by [ESBuild](https://esbuild.github.io/) with the **project directory** as the resolve directory (used as the starting point when looking for `node_modules` etc.). Also see [hugo mod npm pack](/commands/hugo_mod_npm_pack/).  If you have any imported npm dependencies in your project, you need to make sure to run `npm install` before you run `hugo`.
 +
- **Note:** If you're developing a theme/component that is supposed to be imported and depends on dependencies inside `package.json`, we recommend reading about [hugo mod npm pack](/commands/hugo_mod_npm_pack/), a tool to consolidate all the NPM dependencies in a project.
++The start directory for resolving npm packages (aka. packages that live inside a `node_modules` folder) is always the main project folder.
 +
- <script type="text/javascript" src="{{ $built.RelPermalink }}" defer></script>
++**Note:** If you're developing a theme/component that is supposed to be imported and depends on dependencies inside `package.json`, we recommend reading about [hugo mod npm pack](/commands/hugo_mod_npm_pack/), a tool to consolidate all the npm dependencies in a project.
 +
 +
 +### Examples
 +
 +```go-html-template
 +{{ $built := resources.Get "js/index.js" | js.Build "main.js" }}
 +```
 +
 +Or with options:
 +
 +```go-html-template
 +{{ $externals := slice "react" "react-dom" }}
 +{{ $defines := dict "process.env.NODE_ENV" `"development"` }}
 +
 +{{ $opts := dict "targetPath" "main.js" "externals" $externals "defines" $defines }}
 +{{ $built := resources.Get "scripts/main.js" | js.Build $opts }}
++<script src="{{ $built.RelPermalink }}" defer></script>
 +```
index d11ee58a90e1477791b7bc71c240ab2354e5d199,0000000000000000000000000000000000000000..6e539e0e71aba26424459973cb84c8e14bc7cf6a
mode 100755,000000..100755
--- /dev/null
@@@ -1,27 -1,0 +1,23 @@@
- lastmod: 2018-07-14
 +---
 +title: Asset minification
 +description: Hugo Pipes allows the minification of any CSS, JS, JSON, HTML, SVG or XML resource.
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 50
 +weight: 50
 +sections_weight: 50
 +---
 +
 +Any resource of the aforementioned types can be minified using `resources.Minify` which takes for argument the resource object.
 +
 +```go-html-template
 +{{ $css := resources.Get "css/main.css" }}
 +{{ $style := $css | resources.Minify }}
 +```
 +
 +Note that you can also minify the final HTML output to `/public` by running `hugo --minify`.
index 46833e0a40bc7a1502591078bb71dc41dc6c1a32,0000000000000000000000000000000000000000..b87dc4595828a1713e294bbbf27b5585c5ed6d6e
mode 100755,000000..100755
--- /dev/null
@@@ -1,88 -1,0 +1,83 @@@
- lastmod: 2018-07-14
 +---
 +title: PostCSS
 +description: Hugo Pipes can process CSS files with PostCSS.
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 40
 +weight: 40
 +sections_weight: 40
- Any asset file can be processed using `resources.PostCSS` which takes for argument the resource object and a slice of options listed below. 
 +---
 +
- inlineImports [bool] {{< new-in "0.66.0" >}}
++Any asset file can be processed using `resources.PostCSS` which takes for argument the resource object and a slice of options listed below.
 +
 +The resource will be processed using the project's or theme's own `postcss.config.js` or any file set with the `config` option.
 +
 +```go-html-template
 +{{ $css := resources.Get "css/main.css" }}
 +{{ $style := $css | resources.PostCSS }}
 +```
 +
 +{{% note %}}
 +Hugo Pipe's PostCSS requires the `postcss-cli` JavaScript package to be installed in the environment (`npm install -g postcss postcss-cli`) along with any PostCSS plugin(s) used (e.g., `npm install -g autoprefixer`).
 +
 +If you are using the Hugo Snap package, PostCSS and plugin(s) need to be installed locally within your Hugo site directory, e.g., `npm install postcss-cli` without the `-g` flag.
 +{{% /note %}}
 +
 +### Options
 +
 +config [string]
 +: Set a custom directory to look for a config file
 +
 +noMap [bool]
 +: Default is `false`. Disable the default inline sourcemaps
 +
- Before Hugo 0.99.0 when `inlineImports` was enabled and we failed to resolve an import, we logged it as a warning. We now fail the build. If you have regular CSS imports in your CSS that you want to preserve, you can either use imports with URL or media queries (Hugo does not try to resolve those) or set `skipInlineImportsNotFound` to true.
++inlineImports [bool]
 +: Default is `false`. Enable inlining of @import statements. It does so recursively, but will only import a file once.
 +URL imports (e.g. `@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');`) and imports with media queries will be ignored.
 +Note that this import routine does not care about the CSS spec, so you can have @import anywhere in the file.
 +Hugo will look for imports relative to the module mount and will respect theme overrides.
 +
 +skipInlineImportsNotFound [bool] {{< new-in "0.99.0" >}}
- {{< new-in "0.66.0" >}}
++: Default is `false`. Before Hugo 0.99.0 when `inlineImports` was enabled and we failed to resolve an import, we logged it as a warning. We now fail the build. If you have regular CSS imports in your CSS that you want to preserve, you can either use imports with URL or media queries (Hugo does not try to resolve those) or set `skipInlineImportsNotFound` to true.
 +
 +_If no configuration file is used:_
 +
 +use [string]
 +: Space-delimited list of PostCSS plugins to use
 +
 +parser [string]
 +: Custom PostCSS parser
 +
 +stringifier [string]
 +: Custom PostCSS stringifier
 +
 +syntax [string]
 +: Custom postcss syntax
 +
 +```go-html-template
 +{{ $options := dict "config" "/path/to/custom-config-directory" "noMap" true }}
 +{{ $style := resources.Get "css/main.css" | resources.PostCSS $options }}
 +
 +{{ $options := dict "use" "autoprefixer postcss-color-alpha" }}
 +{{ $style := resources.Get "css/main.css" | resources.PostCSS $options }}
 +```
 +
 +## Check Hugo Environment from postcss.config.js
 +
 +The current Hugo environment name (set by `--environment` or in config or OS environment) is available in the Node context, which allows constructs like this:
 +
 +```js
 +module.exports = {
 +  plugins: [
 +    require('autoprefixer'),
 +    ...process.env.HUGO_ENVIRONMENT === 'production'
 +      ? [purgecss]
 +      : []
 +  ]
 +}
 +```
index aafb786a473c441e4fb5d67b97b22205c08932b9,0000000000000000000000000000000000000000..1aa3983568e54d9d4ecde882fd8c006f765cc5d8
mode 100755,000000..100755
--- /dev/null
@@@ -1,70 -1,0 +1,70 @@@
- Marking a resource with `resources.PostProcess` delays any transformations to after the build, typically because one or more of the steps in the transformation chain depends on the result of the build (e.g. files in `public`).{{< new-in "0.69.0" >}}
 +---
 +title: PostProcess
 +description: Allows delaying of resource transformations to after the build.
 +date: 2020-04-09
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 39
 +weight: 39
 +sections_weight: 39
 +---
 +
++Marking a resource with `resources.PostProcess` delays any transformations to after the build, typically because one or more of the steps in the transformation chain depends on the result of the build (e.g. files in `public`).
 +
 +A prime use case for this is [CSS purging with PostCSS](#css-purging-with-postcss).
 +
 +There are currently two limitations to this:
 +
 +1. This only works in `*.html` templates (i.e. templates that produces HTML files).
 +2. You cannot manipulate the values returned from the resource's methods. E.g. the `upper` in this example will not work as expected:
 +
 +    ```go-html-template
 +    {{ $css := resources.Get "css/main.css" }}
 +    {{ $css = $css | resources.PostCSS | minify | fingerprint | resources.PostProcess }}
 +    {{ $css.RelPermalink | upper }}
 +    ```
 +
 +## CSS purging with PostCSS
 +
 +{{% note %}}
 +There are several ways to set up CSS purging with PostCSS in Hugo. If you have a simple project, you should consider going the simpler route and drop the use of `resources.PostProcess` and just extract keywords from the templates. See the [Tailwind documentation](https://tailwindcss.com/docs/controlling-file-size/#app) for some examples.
 +{{% /note %}}
 +
 +The below configuration will write a `hugo_stats.json` file to the project root as part of the build. If you're only using this for the production build, you should consider placing it below [config/production](/getting-started/configuration/#configuration-directory).
 +
 +{{< code-toggle file="config" >}}
 +[build]
 +  writeStats = true
 +{{< /code-toggle >}}
 +
 +`postcss.config.js`
 +
 +```js
 +const purgecss = require('@fullhuman/postcss-purgecss')({
 +    content: [ './hugo_stats.json' ],
 +    defaultExtractor: (content) => {
 +        let els = JSON.parse(content).htmlElements;
 +        return els.tags.concat(els.classes, els.ids);
 +    }
 +});
 +
 +module.exports = {
 +     plugins: [
 +         ...(process.env.HUGO_ENVIRONMENT === 'production' ? [ purgecss ] : [])
 +     ]
 + };
 +```
 +
 +Note that in the example above, the "CSS purge step" will only be applied to the production build. This means that you need to do something like this in your head template to build and include your CSS:
 +
 +```go-html-template
 +{{ $css := resources.Get "css/main.css" }}
 +{{ $css = $css | resources.PostCSS }}
 +{{ if hugo.IsProduction }}
 +{{ $css = $css | minify | fingerprint | resources.PostProcess }}
 +{{ end }}
 +<link href="{{ $css.RelPermalink }}" rel="stylesheet" />
 +```
index 8b942d2f32b86e5411e5a8b824f19f98c332e77f,0000000000000000000000000000000000000000..ae7598ebec24ce6a116909c872a517cfeaa1617b
mode 100755,000000..100755
--- /dev/null
@@@ -1,31 -1,0 +1,29 @@@
- lastmod: 2018-07-14
 +---
 +title: Creating a resource from a string
 +linkTitle: Resource from String
 +description: Hugo Pipes allows the creation of a resource from a string.
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 90
 +weight: 90
 +sections_weight: 90
- <script type="text/javascript" src="{{ $vars.Permalink }}"></script>
- <script type="text/javascript" src="{{ $global.Permalink }}"></script>
 +---
 +
 +It is possible to create a resource directly from the template using `resources.FromString` which takes two arguments, the given string and the resource target path.
 +
 +The following example creates a resource file containing localized variables for every project's languages.
 +
 +```go-html-template
 +{{ $string := (printf "var rootURL = '%s'; var apiURL = '%s';" (absURL "/") (.Param "API_URL")) }}
 +{{ $targetPath := "js/vars.js" }}
 +{{ $vars := $string | resources.FromString $targetPath }}
 +{{ $global := resources.Get "js/global.js" | resources.Minify }}
 +
++<script src="{{ $vars.Permalink }}"></script>
++<script src="{{ $global.Permalink }}"></script>
 +```
index 9bc8c7e9d9ba5a6791a4f991efc3c38a622d3df3,0000000000000000000000000000000000000000..bb0fdb2c287e0dabaadc6834b5b112c5e4242088
mode 100755,000000..100755
--- /dev/null
@@@ -1,38 -1,0 +1,35 @@@
- lastmod: 2018-07-14
 +---
 +title: Creating a resource from template
 +linkTitle: Resource from Template
 +description: Hugo Pipes allows the creation of a resource from an asset file using Go Template.
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 80
 +weight: 80
 +sections_weight: 80
-       background-color:$backgroundColor;
-       color: $textColor;
 +---
 +
 +In order to use Hugo Pipes function on an asset file containing Go Template magic the function `resources.ExecuteAsTemplate` must be used.
 +
 +The function takes three arguments: the resource target path, the template context, and the resource object.
 +
 +```go-html-template
 +// assets/sass/template.scss
 +$backgroundColor: {{ .Param "backgroundColor" }};
 +$textColor: {{ .Param "textColor" }};
 +body{
++  background-color:$backgroundColor;
++  color: $textColor;
 +}
 +// [...]
 +```
 +
 +```go-html-template
 +{{ $sassTemplate := resources.Get "sass/template.scss" }}
 +{{ $style := $sassTemplate | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS }}
 +```
index c4a0a55204f0370a287b4d355e16a50f692dfe21,0000000000000000000000000000000000000000..ad4a66b11afb2c191dfb5358c18fd870c45cd5b3
mode 100755,000000..100755
--- /dev/null
@@@ -1,54 -1,0 +1,51 @@@
- title: SASS / SCSS
- description: Hugo Pipes allows the processing of SASS and SCSS files.
 +---
- lastmod: 2018-07-14
++title: Sass / SCSS
++description: Hugo Pipes allows the processing of Sass and SCSS files.
 +date: 2018-07-14
 +publishdate: 2018-07-14
- draft: false
 +categories: [asset management]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "pipes"
 +    weight: 30
 +weight: 02
 +sections_weight: 02
- Any SASS or SCSS file can be transformed into a CSS file using `resources.ToCSS` which takes two arguments, the resource object and a map of options listed below.
 +---
 +
- transpiler [string] {{< new-in "0.80.0" >}}
++Any Sass or SCSS file can be transformed into a CSS file using `resources.ToCSS` which takes two arguments, the resource object and a map of options listed below.
 +
 +```go-html-template
 +{{ $sass := resources.Get "sass/main.scss" }}
 +{{ $style := $sass | resources.ToCSS }}
 +```
 +
 +### Options
 +
- : The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. Note that the Embedded Dart Sass project is still in beta. We will try to improve the installation process when it has stable releases, but if you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) (Hugo after 0.81.0 requires beta 6 or newer) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows).
++transpiler [string]
 +
- : Additional SCSS/SASS include paths. Paths must be relative to the project directory.
++: The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. If you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows).
 +
 +targetPath [string]
 +: If not set, the resource's target path will be the asset file original path with its extension replaced by `.css`.
 +
 +outputStyle [string]
 +: Default is `nested` (LibSass) and `expanded` (Dart Sass). Other available output styles for LibSass are `expanded`, `compact` and `compressed`. Dart Sass only supports `expanded` and `compressed`.
 +
 +precision [int]
 +: Precision of floating point math. **Note:** This option is not supported by Dart Sass.
 +
 +enableSourceMap [bool]
 +: When enabled, a source map will be generated.
 +
 +includePaths [string slice]
- Setting `outputStyle` to `compressed` will handle SASS/SCSS files minification better than the more generic [`resources.Minify`]({{< ref "minification">}}).
++: Additional SCSS/Sass include paths. Paths must be relative to the project directory.
 +
 +```go-html-template
 +{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules/myscss")) }}
 +{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }}
 +```
 +
 +{{% note %}}
++Setting `outputStyle` to `compressed` will handle Sass/SCSS files minification better than the more generic [`resources.Minify`]({{< ref "minification">}}).
 +{{% /note %}}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e5a34b1f2e5ad424a260b170917d1196c7ff764c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,15 @@@
++---
++title: Installation
++linkTitle: Installation overview
++description: Install Hugo on macOS, Linux, Windows, BSD, and on any machine that can run the Go compiler tool chain.
++aliases: [/getting-started/installing/]
++categories: [installation]
++keywords: [installation]
++menu:
++  docs:
++    parent: installation
++    weight: 10
++toc: false
++---
++
++{{% param "description" %}}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f17b640852b305b02cb0bf8a1f07967e077c4386
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,79 @@@
++---
++title: BSD
++linkTitle: BSD
++description: Install Hugo on BSD derivatives.
++categories: [installation]
++menu:
++  docs:
++    parent: installation
++    weight: 50
++toc: true
++weight: 50
++---
++{{% readfile file="/installation/common/01-editions.md" %}}
++
++{{% readfile file="/installation/common/02-prerequisites.md" %}}
++
++{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
++
++## Repository packages
++
++Most BSD derivatives maintain a repository for commonly installed applications. Please note that these repositories may not contain the [latest release].
++
++[latest release]: https://github.com/gohugoio/hugo/releases/latest
++
++### DragonFly BSD
++
++[DragonFly BSD] includes Hugo in its package repository. This will install the extended edition of Hugo:
++
++```sh
++sudo pkg install gohugo
++```
++
++[DragonFly BSD]: https://www.dragonflybsd.org/
++
++### FreeBSD
++
++[FreeBSD] includes Hugo in its package repository. This will install the extended edition of Hugo:
++
++```sh
++sudo pkg install gohugo
++```
++
++[FreeBSD]: https://www.freebsd.org/
++
++### NetBSD
++
++[NetBSD] includes Hugo in its package repository. This will install the extended edition of Hugo:
++
++```sh
++sudo pkgin install go-hugo
++```
++
++[NetBSD]: https://www.netbsd.org/
++
++### OpenBSD
++
++[OpenBSD] includes Hugo in its package repository. This will prompt you to select which edition of Hugo to install:
++
++```sh
++doas pkg_add hugo
++```
++
++[OpenBSD]: https://www.openbsd.org/
++
++{{% readfile file="/installation/common/04-docker.md" %}}
++
++{{% readfile file="/installation/common/05-build-from-source.md" %}}
++
++## Comparison
++
++||Prebuilt binaries|Repository packages|Docker|Build from source
++:--|:--:|:--:|:--:|:--:
++Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
++Easy to upgrade?|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
++Easy to downgrade?|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
++Automatic updates?|:x:|varies|:x: [^1]|:x:
++Latest version available?|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
++
++[^1]: Possible but requires advanced configuration.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ee9f3ff937687a46fbb33fc363ffa8340192af9c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,8 @@@
++## Editions
++
++Hugo is available in two editions: standard and extended. With the extended edition you can:
++
++- Encode WebP images (you can decode WebP images with both editions)
++- Transpile Sass to CSS using the embedded LibSass transpiler
++
++We recommend that you install the extended edition.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..00837082522b500a36713d87ae9be61ab79e0cab
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,27 @@@
++## Prerequisites
++
++Although not required in all cases, Git and Go are often used when working with Hugo.
++
++Git is required to:
++
++- Use the [Hugo Modules] feature
++- Build Hugo from source
++- Install a theme as a Git submodule
++- Access [commit information] from a local Git repository
++- Host your site with services such as [AWS Amplify], [CloudCannon], [Cloudflare Pages], [GitHub Pages], [GitLab Pages], and [Netlify].
++
++Go is required to:
++
++- Use the Hugo Modules feature
++- Build Hugo from source
++
++Please refer to the [Git] and [Go] documentation for installation instructions.
++
++[AWS Amplify]: https://aws.amazon.com/amplify/
++[CloudCannon]: https://cloudcannon.com/
++[Cloudflare Pages]: https://pages.cloudflare.com/
++[Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
++[GitHub Pages]: https://pages.github.com/
++[GitLab Pages]: https://docs.gitlab.com/ee/user/project/pages/
++[Go]: https://go.dev/doc/install
++[Netlify]: https://www.netlify.com/
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f821f79a26bca2bdb276ab7768c3efee7a4accc7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,21 @@@
++## Prebuilt binaries
++
++Prebuilt binaries are available for a variety of operating systems and architectures. Visit the [latest release] page, and scroll down to the Assets section.
++
++<!-- markdownlint-disable-next-line MD051 -->
++1. Download the archive for the desired [edition], operating system, and architecture
++1. Extract the archive
++1. Move the executable to the desired directory
++1. Add this directory to the PATH environment variable
++1. Verify that you have _execute_ permission on the file
++
++Please consult your operating system documentation if you need help setting file permissions or modifying your PATH environment variable.
++
++If you do not see a prebuilt binary for the desired edition, operating system, and architecture, install Hugo using one of the methods described below.
++
++[commit information]: https://gohugo.io/variables/git
++[edition]: #editions
++[Git]: https://git-scm.com/
++[Go]: https://go.dev/
++[Hugo Modules]: /hugo-modules/
++[latest release]: https://github.com/gohugoio/hugo/releases/latest
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..24f5cd942facd3dcc3d69cb685cefc04b526c781
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,10 @@@
++## Docker
++
++[Erlend Klakegg Bergheim] graciously maintains [Docker images] based on images for Alpine Linux, Busybox, Debian, and Ubuntu.
++
++```sh
++docker pull klakegg/hugo
++```
++
++[Docker images]: https://hub.docker.com/r/klakegg/hugo
++[Erlend Klakegg Bergheim]: https://github.com/klakegg
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a135de9fd5f83722dd9748326d9bc351b957a2cf
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,20 @@@
++## Build from source
++
++To build Hugo from source you must:
++
++1. Install [Git]
++1. Install [Go] version 1.18 or later
++1. Update your PATH environment variable as described in the [Go documentation]
++
++> The install directory is controlled by the GOPATH and GOBIN environment variables. If GOBIN is set, binaries are installed to that directory. If GOPATH is set, binaries are installed to the bin subdirectory of the first directory in the GOPATH list. Otherwise, binaries are installed to the bin subdirectory of the default GOPATH ($HOME/go or %USERPROFILE%\go).
++
++Then build and test:
++
++```sh
++go install -tags extended github.com/gohugoio/hugo@latest
++hugo version
++```
++
++[Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
++[Go]: https://go.dev/doc/install
++[Go documentation]: https://go.dev/doc/code#Command
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7178a9f4fc1d1799bcf9cad5a223182e4d9e0f1f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,9 @@@
++### Homebrew
++
++[Homebrew] is a free and open source package manager for macOS and Linux. This will install the extended edition of Hugo:
++
++```sh
++brew install hugo
++```
++
++[Homebrew]: https://brew.sh/
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cbb7365a66e5533e7366328d6fe26df6c25577d7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
+++++
++headless = true
+++++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..03ffe9430dd3b023218c2c36258d292835582abb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,125 @@@
++---
++title: Linux
++linkTitle: Linux
++description: Install Hugo on Linux.
++categories: [installation]
++menu:
++  docs:
++    parent: installation
++    weight: 30
++toc: true
++weight: 30
++---
++{{% readfile file="/installation/common/01-editions.md" %}}
++
++{{% readfile file="/installation/common/02-prerequisites.md" %}}
++
++{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
++
++## Package managers
++
++### Snap
++
++[Snap] is a free and open source package manager for Linux. Available for [most distributions], Snap packages are simple to install and are automatically updated. This will install the extended edition of Hugo:
++
++```sh
++sudo snap install hugo
++```
++
++[most distributions]: https://snapcraft.io/docs/installing-snapd
++[Snap]: https://snapcraft.io/
++
++{{% readfile file="/installation/common/homebrew.md" %}}
++
++## Repository packages
++
++Most Linux distributions maintain a repository for commonly installed applications. Please note that these repositories may not contain the [latest release].
++
++[latest release]: https://github.com/gohugoio/hugo/releases/latest
++
++### Arch Linux
++
++Derivatives of the [Arch Linux] distribution of Linux include [EndeavourOS], [Garuda Linux], [Manjaro], and others. This will install the extended edition of Hugo:
++
++```sh
++sudo pacman -S hugo
++```
++
++[Arch Linux]: https://archlinux.org/
++[EndeavourOS]: https://endeavouros.com/
++[Manjaro]: https://manjaro.org/
++[Garuda Linux]: https://garudalinux.org/
++
++### Debian
++
++Derivatives of the [Debian] distribution of Linux include [elementary OS], [KDE neon], [Linux Lite], [Linux Mint], [MX Linux], [Pop!_OS], [Ubuntu], [Zorin OS], and others. This will install the extended edition of Hugo:
++
++```sh
++sudo apt install hugo
++```
++
++You can also download Debian packages from the [latest release] page.
++
++[Debian]: https://www.debian.org/
++[elementary OS]: https://elementary.io/
++[KDE neon]: https://neon.kde.org/
++[Linux Lite]: https://www.linuxliteos.com/
++[Linux Mint]: https://linuxmint.com/
++[MX Linux]: https://mxlinux.org/
++[Pop!_OS]: https://pop.system76.com/
++[Ubuntu]: https://ubuntu.com/
++[Zorin OS]: https://zorin.com/os/
++
++### Fedora
++
++Derivatives of the [Fedora] distribution of Linux include [CentOS], [Red Hat Enterprise Linux], and others. This will install the extended edition of Hugo:
++
++
++```sh
++sudo dnf install hugo
++```
++
++[CentOS]: https://www.centos.org/
++[Fedora]: https://getfedora.org/
++[Red Hat Enterprise Linux]: https://www.redhat.com/
++
++### openSUSE
++
++Derivatives of the [openSUSE] distribution of Linux include [GeckoLinux], [Linux Karmada], and others. This will install the extended edition of Hugo:
++
++
++```sh
++sudo zypper install hugo
++```
++
++[GeckoLinux]: https://geckolinux.github.io/
++[Linux Karmada]: https://linuxkamarada.com/
++[openSUSE]: https://www.opensuse.org/
++
++### Solus
++
++The [Solus] distribution of Linux includes Hugo in its package repository. This will install the _standard_ edition of Hugo:
++
++```sh
++sudo eopkg install hugo
++```
++
++[Solus]: https://getsol.us/home/
++
++{{% readfile file="/installation/common/04-docker.md" %}}
++
++{{% readfile file="/installation/common/05-build-from-source.md" %}}
++
++## Comparison
++
++||Prebuilt binaries|Package managers|Repository packages|Docker|Build from source
++:--|:--:|:--:|:--:|:--:|:--:
++Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
++Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
++Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^1]|varies|:heavy_check_mark:|:heavy_check_mark:
++Automatic updates?|:x:|varies [^2]|:x:|:x: [^3]|:x:
++Latest version available?|:heavy_check_mark:|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
++
++[^1]: Easy if a previous version is still installed.
++[^2]: Snap packages are automatically updated. Homebrew requires advanced configuration.
++[^3]: Possible but requires advanced configuration.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c614f39bad65b847bbf7b7dcc6e345ed062d974a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,48 @@@
++---
++title: macOS
++linkTitle: macOS
++description: Install Hugo on macOS.
++categories: [installation]
++menu:
++  docs:
++    parent: installation
++    weight: 20
++toc: true
++weight: 20
++---
++{{% readfile file="/installation/common/01-editions.md" %}}
++
++{{% readfile file="/installation/common/02-prerequisites.md" %}}
++
++{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
++
++## Package managers
++
++{{% readfile file="/installation/common/homebrew.md" %}}
++
++### MacPorts
++
++[MacPorts] is a free and open source package manager for macOS. This will install the extended edition of Hugo:
++
++```sh
++sudo port install hugo
++```
++
++[MacPorts]: https://www.macports.org/
++
++{{% readfile file="/installation/common/04-docker.md" %}}
++
++{{% readfile file="/installation/common/05-build-from-source.md" %}}
++
++## Comparison
++
++||Prebuilt binaries|Package managers|Docker|Build from source
++:--|:--:|:--:|:--:|:--:|:--:
++Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
++Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
++Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^1]|:heavy_check_mark:|:heavy_check_mark:
++Automatic updates?|:x:|:x: [^2]|:x: [^2]|:x:
++Latest version available?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
++
++[^1]: Easy if a previous version is still installed.
++[^2]: Possible but requires advanced configuration.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6ef17acd40bf370f1a5a2601f8ab7aa1dac27795
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,63 @@@
++---
++title: Windows
++linkTitle: Windows
++description: Install Hugo on Windows.
++categories: [installation]
++menu:
++  docs:
++    parent: installation
++    weight: 40
++toc: true
++weight: 40
++---
++{{% readfile file="/installation/common/01-editions.md" %}}
++
++{{% readfile file="/installation/common/02-prerequisites.md" %}}
++
++{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
++
++## Package managers
++
++### Chocolatey
++
++[Chocolatey] is a free and open source package manager for Windows. This will install the extended edition of Hugo:
++
++```sh
++choco install hugo-extended
++```
++
++[Chocolatey]: https://chocolatey.org/
++
++### Scoop
++
++[Scoop] is a free and open source package manager for Windows. This will install the extended edition of Hugo:
++
++```sh
++scoop install hugo-extended
++```
++
++[Scoop]: https://scoop.sh/
++
++{{% readfile file="/installation/common/04-docker.md" %}}
++
++{{% readfile file="/installation/common/05-build-from-source.md" %}}
++
++{{% note %}}
++When building the extended edition of Hugo from source on Windows, you will also need to install the [GCC compiler]. See these [detailed instructions].
++
++[detailed instructions]: https://discourse.gohugo.io/t/41370
++[GCC compiler]: https://gcc.gnu.org/
++{{% /note %}}
++
++## Comparison
++
++||Prebuilt binaries|Package managers|Docker|Build from source
++:--|:--:|:--:|:--:|:--:|:--:
++Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
++Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
++Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^2]|:heavy_check_mark:|:heavy_check_mark:
++Automatic updates?|:x:|:x: [^1]|:x: [^1]|:x:
++Latest version available?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
++
++[^1]: Possible but requires advanced configuration.
++[^2]: Easy if a previous version is still installed.
index 91128e48ee7e132a305d570911163e2db8cbe2e1,0000000000000000000000000000000000000000..4d89d2ac7ac9a45a038c0fedc5ac7e6047d69c9d
mode 100644,000000..100644
--- /dev/null
@@@ -1,64 -1,0 +1,64 @@@
- * Trim newlines in the hightlight shortcode [0d29a0f7](https://github.com/gohugoio/hugo/commit/0d29a0f7819e8d73149701052c29f090cd6db42b) [@bep](https://github.com/bep) [#3898](https://github.com/gohugoio/hugo/issues/3898)
 +
 +---
 +date: 2017-09-25
 +title: "Hugo 0.28: High-speed Syntax Highlighting!"
 +description: "Chroma is the new default syntax highlighter in Hugo."
 +categories: ["Releases"]
 +images:
 +- images/blog/hugo-28-poster.png
 +---
 +
 +      Hugo `0.28` brings **blistering fast and native syntax highlighting** from [Chroma](https://github.com/alecthomas/chroma) ([fb33d828](https://github.com/gohugoio/hugo/commit/fb33d8286d78a78a74deb44355b621852a1c4033) [@bep](https://github.com/bep) [#3888](https://github.com/gohugoio/hugo/issues/3888)). A big thank you to [Alec Thomas](https://github.com/alecthomas) for taking on this massive task of porting the popular python highlighter Pygments to Go.
 +
 +Hugo has been caching the highlighter output to disk, so for repeated builds it has been fine, but this little snippet, showing a build of the [gohugo.io](https://gohugo.io/) site without cache and with both Pygments and Chroma, should illustrate the improvement:
 +
 +{{< asciicast Lc5iwTVny2kuUC8lqvNnL6oDU >}}
 +
 +See the [Updated Documentation](https://gohugo.io/content-management/syntax-highlighting/) for more information about how this works.
 +
 +Worth mentioning is also the `liveReloadPort`  flag on `hugo server`, which makes it possible to do "live reloads" behind a HTTPS proxy, which makes for very cool remote customer demos.
 +
 +One example would be a Hugo server running behind a [ngrok](https://ngrok.com) tunnel:
 +
 +```bash
 +ngrok http 1313
 +```
 +Then start the Hugo server with:
 +
 +```bash
 +hugo server -b https://youridhere.ngrok.io --appendPort=false --liveReloadPort=443 --navigateToChanged
 +```
 +
 +The `navigateToChanged` flag is slightly unrelated, but it is super cool ...
 +
 +This release represents **15 contributions by 2 contributors** to the main Hugo code base.
 +
 +Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), 
 +which has received **9 contributions by 7 contributors**. A special thanks to [@bep](https://github.com/bep), [@i-give-up](https://github.com/i-give-up), [@muhajirframe](https://github.com/muhajirframe), and [@icannotfly](https://github.com/icannotfly) for their work on the documentation site.
 +
 +Hugo now has:
 +
 +* 19771+ [stars](https://github.com/gohugoio/hugo/stargazers)
 +* 454+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
 +* 180+ [themes](http://themes.gohugo.io/)
 +
 +## Notes
 +* Hugo now uses Chroma as new default syntax highlighter. This should in most cases work out-of-the box or with very little adjustments. But if you want to continue to use Pygments, set `pygmentsUseClassic=true` in your site config.
 +* We now add a set of "no cache" headers to the responses for `hugo server`, which makes the most sense in most development scenarios. Run with `hugo server --noHTTPCache=false` to get the old behaviour.
 +
 +## Enhancements
 +
 +### Templates
 +
 +* Add `urls.Parse` function [81ed5647](https://github.com/gohugoio/hugo/commit/81ed564793609a32be20a569cc15da2cc02dd734) [@moorereason](https://github.com/moorereason) [#3849](https://github.com/gohugoio/hugo/issues/3849)
 +* Add `math.Ceil`, `Floor`, and `Round` [19c59104](https://github.com/gohugoio/hugo/commit/19c5910485242838d6678c2aacd8501f7e646a53) [@moorereason](https://github.com/moorereason) [#3883](https://github.com/gohugoio/hugo/issues/3883)
 +
 +### Other
 +
 +* Use Chroma as new default syntax highlighter [fb33d828](https://github.com/gohugoio/hugo/commit/fb33d8286d78a78a74deb44355b621852a1c4033) [@bep](https://github.com/bep) [#3888](https://github.com/gohugoio/hugo/issues/3888)
++* Trim newlines in the highlight shortcode [0d29a0f7](https://github.com/gohugoio/hugo/commit/0d29a0f7819e8d73149701052c29f090cd6db42b) [@bep](https://github.com/bep) [#3898](https://github.com/gohugoio/hugo/issues/3898)
 +* Update `goorgeous` [b8fabce2](https://github.com/gohugoio/hugo/commit/b8fabce217fcb52e3f273491bef95c7977058732) [@bep](https://github.com/bep) [#3899](https://github.com/gohugoio/hugo/issues/3899)
 +* Add `liveReloadPort` flag to server [b1804776](https://github.com/gohugoio/hugo/commit/b180477631555824a06293053e2b6e63c5f07361) [@bep](https://github.com/bep) [#3882](https://github.com/gohugoio/hugo/issues/3882)
 +* Add `noHTTPCache` flag to hugo server (default on) [0b34af21](https://github.com/gohugoio/hugo/commit/0b34af216154367af7f53ce93d44e6b3d58c3f34) [@bep](https://github.com/bep) [#3897](https://github.com/gohugoio/hugo/issues/3897)
 +* Make `noHTTPCache` default on [80c7ea60](https://github.com/gohugoio/hugo/commit/80c7ea60a0e0f488563a6b7311f3d4c23457aac7) [@bep](https://github.com/bep) [#3897](https://github.com/gohugoio/hugo/issues/3897)
 +
index 1f5385f333b0d88ccdae4a5dd52e9443748ea801,0000000000000000000000000000000000000000..f5b24787f483319c8ff3f0b92bd71971244808cc
mode 100644,000000..100644
--- /dev/null
@@@ -1,19 -1,0 +1,12 @@@
 +---
 +date: 2021-11-17
 +title: "Hugo 0.89.4: One Bug Fix"
 +description: "This version fixes one bug introduced in 0.89.0."
 +categories: ["Releases"]
 +images:
 +- images/blog/hugo-bug-poster.png
 +---
 +
-       
 +This is a bug-fix release with one important fix for people using `hugo new` to create new content:
 +
 +* Fix content dir resolution when main project is a Hugo Module [2e70f61f](https://github.com/gohugoio/hugo/commit/2e70f61fb04cea08ef6598728a57637ae2cc199c) [@bep](https://github.com/bep) [#9177](https://github.com/gohugoio/hugo/issues/9177)
index 42138dd8aca5f03019ec80742bcc0a219b52dede,0000000000000000000000000000000000000000..2aeb604384bb87fa88093dd8602e0363a2f0bcc5
mode 100644,000000..100644
--- /dev/null
@@@ -1,87 -1,0 +1,87 @@@
- ```
 +Go templates [format your dates][time] according to a single reference time:
 +
- ```
++```txt
 +Mon Jan 2 15:04:05 MST 2006
 +```
 +
 +You can think of `MST` as `07`, thus making the reference format string a sequence of numbers. The following is [taken directly from the Go docs][gdex]:
 +
- ```
++```txt
 +Jan 2 15:04:05 2006 MST
 +  1 2  3  4  5    6  -7
 +```
 +
 +### Hugo Date Templating Reference
 +
 +Each of the following examples show the reference formatting string followed by the string Hugo will output in your HTML.
 +
 +Note that the examples were rendered and tested in [CST][] and pull from a single example date you might have in your content's front matter:
 +
- ```
++```yml
 +date: 2017-03-03T14:15:59-06:00
 +```
 +
 +`.Date` (i.e. called via [page variable][pagevars])
 +: **Returns**: `2017-03-03 14:15:59 -0600 CST`
 +
 +`"Monday, January 2, 2006"`
 +: **Returns**: `Friday, March 3, 2017`
 +
 +`"Mon Jan 2 2006"`
 +: **Returns**: `Fri Mar 3 2017`
 +
 +`"January 2nd"`
 +: **Returns**: `March 3rd`
 +
 +`"January 2006"`
 +: **Returns**: `March 2017`
 +
 +`"2006-01-02"`
 +: **Returns**: `2017-03-03`
 +
 +`"Monday"`
 +: **Returns**: `Friday`
 +
 +`"02 Jan 06 15:04 MST"` (RFC822)
 +: **Returns**: `03 Mar 17 14:15 CST`
 +
 +`"02 Jan 06 15:04 -0700"` (RFC822Z)
 +: **Returns**: `03 Mar 17 14:15 -0600`
 +
 +`"Mon, 02 Jan 2006 15:04:05 MST"` (RFC1123)
 +: **Returns**: `Fri, 03 Mar 2017 14:15:59 CST`
 +
 +`"Mon, 02 Jan 2006 15:04:05 -0700"` (RFC339)
 +: **Returns**: `Fri, 03 Mar 2017 14:15:59 -0600`
 +
 +### Cardinal Numbers and Ordinal Abbreviations
 +
 +Spelled-out cardinal numbers (e.g. "one", "two", and "three") and ordinal abbreviations (e.g. "1st", "2nd", and "3rd") are not currently supported.
 +
 +To continue with the example above:
 +
- ```
++```go-html-template
 +{{.Date.Format "Jan 2nd 2006"}}
 +```
 +
 +Hugo assumes you want to append `nd` as a string to the day of the month and outputs the following:
 +
- [time]: https://golang.org/pkg/time/
++```txt
 +Mar 3nd 2017
 +```
 +
 +### Use `.Local` and `.UTC`
 +
 +In conjunction with the [`dateFormat` function][dateFormat], you can also convert your dates to `UTC` or to local timezones:
 +
 +`{{ dateFormat "02 Jan 06 15:04 MST" .Date.UTC }}`
 +: **Returns**: `03 Mar 17 20:15 UTC`
 +
 +`{{ dateFormat "02 Jan 06 15:04 MST" .Date.Local }}`
 +: **Returns**: `03 Mar 17 14:15 CST`
 +
 +[CST]: https://en.wikipedia.org/wiki/Central_Time_Zone
 +[dateFormat]: /functions/dateformat/
 +[gdex]: https://golang.org/pkg/time/#example_Time_Format
 +[pagevars]: /variables/page/
++[time]: https://golang.org/pkg/time/
index df5c7d26e97207382b56c0a6b59862d428b7756f,0000000000000000000000000000000000000000..fbf898980288222b1f8c7e2980f1ed73a8f26d6b
mode 100644,000000..100644
--- /dev/null
@@@ -1,34 -1,0 +1,34 @@@
- : {{< new-in "0.68.0" >}} Collection of **all** _regular_ pages under a _list_ page. This **includes** regular pages in nested sections/_list_ pages.
 +* A _regular_ page is a "post" page or a "content" page.
 +  * A _leaf bundle_ is a regular page.
 +* A _list_ page can list _regular_ pages and other _list_ pages. Some
 +  examples are: homepage, section pages, _taxonomy_ (`/tags/`) and
 +  _term_ (`/tags/foo/`) pages.
 +  * A _branch bundle_ is a _list_ page.
 +
 +`.Site.Pages`
 +: Collection of **all** pages of the site: _regular_ pages,
 +    sections, taxonomies, etc. -- Superset of everything!
 +
 +`.Site.RegularPages`
 +: Collection of only _regular_ pages.
 +
 +The above `.Site. ..` page collections can be accessed from any scope in
 +the templates.
 +
 +Below variables return a collection of pages only from the scope of
 +the current _list_ page:
 +
 +`.Pages`
 +: Collection of _regular_ pages and _only first-level_
 +    section pages under the current _list_ page.
 +
 +`.RegularPages`
 +: Collection of only _regular_ pages under the
 +    current _list_ page. This **excludes** regular pages in nested sections/_list_ pages (those are subdirectories with an `_index.md` file.
 +
 +`.RegularPagesRecursive`
++: Collection of **all** _regular_ pages under a _list_ page. This **includes** regular pages in nested sections/_list_ pages.
 +
 +Note
 +: From the scope of _regular_ pages, `.Pages` and
 +    `.RegularPages` return an empty slice.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d304cf191abb256b7f86feb8a35d944a581f28cf
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++**Alora Labs** is a product development consultancy headquartered in Toronto, Canada. 
++
++We help companies build software and IoT products and were recently recognized as one of the [**top IoT development firms**](https://aloralabs.com/insights/alora-labs-receives-clutch-2021-top-iot-agency-award) in Toronto.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b8e1f302b68da167b10047f2191e7361ffd11f9d
new file mode 100644 (file)
Binary files differ
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5e6e1813137028b444b72a548763d1dbedfe6499
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,18 @@@
++---
++title: Alora Labs
++date: 2021-05-27
++description: "Showcase: \"Making performant websites accessible for everyone.\""
++siteURL: https://aloralabs.com/
++siteSource: https://github.com/aloralabs/homepage
++aliases: [/showcase/aloralabs/]
++---
++
++At Alora Labs we always have an eye open for new tools and technology that we can utilize to the benefit of our customers or internal projects like our website.
++
++The previous iteration of our site was built with Jekyll, which served us well at first. However as time went on, we became frustrated with the number of dependencies we had to rely on, that would often break at the most inconvenient times. 
++
++Hugo was a breath of fresh air in this regard, a single binary that works equally well on Windows as it did on macOS or Linux. We no longer need additional tools for image optimization, Sass compilation or JavaScript bundling. Everything just works, and with a substantial performance boost too.
++
++Hugo has become a favorite tool in the toolbelt and the foundation for many client projects. We couldn't be happier with the switch and we are optimistic about recommending Hugo for many years to come. 
++
++Thank you to the vibrant community and talented development team for all the hard work in making Hugo a success. As excellent as Hugo is now, we cannot wait to see what the release notes have in store for us next.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c7dd9894a1f76ba319eaf1192ff351d0db446cff
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,11 @@@
++
++__We are Ampio.__ We design and manufacture a building automation system that provides control, comfort, safety and reliability. Visit [our page](http://ampio.com/) to learn more about our solution!
++
++__Ampio Knowledge Base__ is a service built and maintained with Hugo. It is a self-service support platform for our customers and certified installers. It also contains a complete portfolio of our modules---building blocks of the Ampio building automation system.
++
++The site is built by:
++
++* [@mgetka](https://github.com/mgetka), developer
++* [@SteynAnna](https://github.com/SteynAnna), maintainer
++
++and other members of the Ampio team responsible for content creation.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..07974e7f11e5ef272557958869224ef5c9574a53
new file mode 100644 (file)
Binary files differ
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..198e62fcac1733715e2ed8036e494e4ff748f737
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,77 @@@
++---
++title: Ampio Knowledge Base
++date: 2022-10-30
++
++description: "Knowledge base for the Ampio building automation system."
++siteURL: https://help.ampio.com/
++---
++
++As a company that specializes in highly customizable smart solutions for various industries, Ampio has accumulated a vast amount of knowledge throughout the years. We were on the lookout for a user-friendly platform to impart this knowledge to our clients and installers. Delivering a service that caters to both audiences, scattered around the globe with vastly divergent needs and expectations, was a challenge.
++
++On the one hand, we needed something that would let us educate a client with no technical knowledge about our system in a visually appealing way.
++
++On the other hand, our installers required technical drawings, offline manuals, and a deep dive into highly specialized subjects.
++
++Over and above that, we could not overlook the fact that our internal team of editors and maintainers of the Knowledge Base included non-programmers who had to be able to create content and navigate the architecture of the site just as well as those adept at coding.
++
++We started our journey with the following requirements:
++
++ - Ease of contribution
++ - Efficient search capabilities
++ - The possibility of deployment to simple shared hosting
++ - Proper support for multilingualism
++
++## Dark ages of WordPress
++
++With the above-mentioned in mind, we built our first revision of the service in WordPress with a commercial knowledge base plugin. The initial requirements seemed not to be exorbitant, and yet we were surprised to see that only a few of the available solutions covered them. Especially, the case of multilingualism appeared to be particularly neglected across the available products.
++
++The WordPress-based products made big promises: pay some bucks, bootstrap the service in minutes, and forget about all the development troubles. And although those promises could possibly be deliverable on WordPress' end, it was definitely not true for anything more than the most generic deployments. In our case, we were dealing with more and more trade-offs. Plus, the solution was just slow on the simple shared hosting environment that we dedicated to the job.
++
++## Turning point
++
++The turning point was the introduction of a new key requirement---each document was to be downloadable in the PDF format. Such functionality was not available in the plugins we owned, nor did it look like any of the other existing WordPress plugins could fulfill our needs to a satisfactory degree. Nobody in our team was brave enough to add such a functionality to the current stack, so we decided to start from scratch.
++
++On top of that new development, we had to remember another one of our key requirements, namely, that mostly non-programmers were to be responsible for the service maintenance and content creation. Initially, we were leaning towards headless CMS-based solutions, but finally we made a bold move and decided to create a Git-managed Jamstack service and see what happens.
++
++## Hugo to the rescue!
++
++Hugo was our first choice of SSG. The multilingualism support was the primary feature that convinced us. Later on, going through the documentation, we continued to discover new exciting features that we didn't even know we needed when we started.
++
++The rich functionalities of WordPress WYSIWYG editors soon turned out to be a curse. It became burdensome to maintain formatting consistency across documents prepared by multiple contributors. When we considered Markdown, we knew that it would give us a lot less flexibility. In our case, it proved to be a blessing in disguise---the constraints imposed by the notation ensured that each document was prepared in the same way. And in the cases where Markdown was not enough, Hugo shortcodes gave us all that we needed to get the results we anticipated.
++
++In terms of PDF generation, we utilized [custom output formats](https://gohugo.io/templates/output-formats/) to produce intermediary document representations, which are consumed by our custom tool transforming them to TeX documents, which are finally used to produce PDF files.
++
++Custom output formats were also used to create search indexes. The search functionality is built on the brilliant [TNTSearch](https://github.com/teamtnt/tntsearch) library. The search queries and results are handled by PHP snippets embedded into static documents handled by Hugo.
++
++We even implemented a simple REST API generated by Hugo! We have yet to find something that cannot be achieved with this stack, while in WordPress-based solutions we were struggling with things as simple as defining custom document ordering in one of the categories list views.
++
++When talking about Hugo, we cannot forget about the speed. At the beginning we were not considering it a killer feature, but as our document base grew bigger, we appreciated it more and more. Dry-runs are not so common---most of the time we are working on one of the documents with cache already built during one of the previous Hugo runs. In such a scenario, Hugo rebuilds the site in about a second and we consider it a very good result.
++
++```
++                   | EN  | PL
++-------------------+-----+------
++  Pages            | 483 | 486
++  Paginator pages  |  56 |  55
++  Non-page files   | 745 | 749
++  Static files     | 917 | 917
++  Processed images | 487 | 490
++  Aliases          |  80 |  79
++  Sitemaps         |   2 |   1
++  Cleaned          |   0 |   0
++
++Total in 1096 ms
++```
++
++## Adaptation among the contributors
++
++Very quickly it became apparent that our initial concerns about the adaptation of the workflow among contributors were grossly exaggerated. Markdown is fairly straightforward and did not cause any trouble for the contributors.
++
++We recommended that our colleagues use Visual Studio Code as a tool for content creation. The project’s repository tracks project-scoped configuration of the editor, which includes a set of _tasks_ allowing to run a live server from the GUI level. This is very useful for those who are easily frightened when faced with the mighty terminal.
++
++The basic skills of the Git workflow were also easily acquired. At the end of the day, builds and deployments are fully managed by CI/CD processes, so the administration of the service drills down to reviewing and accepting merge requests in the Git frontend. As a side effect, we receive a full and clear history of contributions, which is well appreciated by our quality assurance auditors.
++
++We could even say that our experiment spread the love for Git among non-programmers in our organization!
++
++## Summary
++
++Hugo is the best! Definitely give it a try if you are ever faced with a challenge similar to ours. And do not give it a second thought if your service contributors are not too technically inclined---it might still turn out great!
index 63f44b64553856f05f64d311bf8db08ae841be23,0000000000000000000000000000000000000000..b06eb355bbb711493fbeb136cb9c0c1cc493abad
mode 100644,000000..100644
--- /dev/null
@@@ -1,66 -1,0 +1,66 @@@
- -   **Earn trust**  —We recognize that trust has to be earned every time. We are including all  [required links and content](https://digital.gov/resources/required-web-content-and-links/)  on our site, clearly identifying as a government site, building with modern best practices, and using https.
 +---
 +title: Digital.gov
 +date: 2020-05-01
 +description: "Showcase: \"Guidance on building better digital services in government.\""
 +siteURL: https://digital.gov/
 +siteSource: https://github.com/gsa/digitalgov.gov
 +---
 +
 +For over a decade, Digital.gov has provided guidance, training, and community support to the people who are responsible for delivering digital services in the U.S. government. Essentially, it is a place where people can find examples of problems being solved in government, and get links to the tools and resources they need.
 +
 +Through collaboration in our communities of practice, Digital.gov is a window into the people who work in technology in government and the challenges they face making digital services stronger and more effective. [Read more about our site »](https://digital.gov/2019/12/19/a-new-digitalgov/)
 +
 +Digital.gov is built using the [U.S. Web Design System](https://designsystem.digital.gov/) (USWDS) and have followed the [design principles](https://designsystem.digital.gov/maturity-model/) in building out our new site:
 +
 +-   **Start with real user needs**  — We used human-centered design methods to inform our product decisions (like qualitative user research), and gathered feedback from real users. We also continually test our assumptions with small experiments.
++-   **Earn trust**  —We recognize that trust has to be earned every time. We are including all  [required links and content](https://digital.gov/resources/required-web-content-and-links/)  on our site, clearly identifying as a government site, building with modern best practices, and using HTTPS.
 +-   **Embrace accessibility**  —  [Accessibility](https://digital.gov/resources/intro-accessibility/)  affects everybody, and we built it into every decision. We’re continually working to conform to Section 508 requirements, use user experience best practices, and support a wide range of devices.
 +-   **Promote continuity**  — We started from shared solutions like USWDS and  [Federalist](https://federalist.18f.gov/). We designed our site to clearly identify as a government site by including USWDS’s .gov banner, common colors and patterns, and built with modern best practices.
 +-   **Listen**  — We actively collect user feedback and web metrics. We use the  [Digital Analytics Program](https://digital.gov/services/dap/)  (DAP) and analyze the data to discover actionable insights. We make small, incremental changes to continuously improve our website by listening to readers and learning from what we hear.
 +
 +_More on the [USWDS maturity model »](https://designsystem.digital.gov/maturity-model/)_
 +
 +## Open Tools
 +
 +We didn’t start from scratch. We built and designed the Digital.gov using many of the open-source tools and services that we develop for government here in the  [Technology Transformation Services](https://www.gsa.gov/tts/) (TTS).
 +
 +Using services that make it possible to design, build, and iterate quickly are essential to modern web design and development, which is why [Federalist](https://federalist.18f.gov/) and the [U.S. Web Design System](https://designsystem.digital.gov/) are such a great combination.
 +
 +**Why Hugo?** Well, with around `~3,000` files _(and growing)_ and `~9,000` built pages, we needed a site generator that could handle that volume with lightning fast speed.
 +
 +Hugo was the clear option. The [Federalist](https://federalist.18f.gov/) team quickly added it to their available site generators, and we were off.
 +
 +At the moment, it takes around `32 seconds` to build close to `~10,000` pages!
 +
 +Take a look:
 +
 +```bash
 +
 +                   |  EN
 +-------------------+-------
 +  Pages            | 7973
 +  Paginator pages  |  600
 +  Non-page files   |  108
 +  Static files     |  851
 +  Processed images |    0
 +  Aliases          | 1381
 +  Sitemaps         |    1
 +  Cleaned          |    0
 +
 +Built in 32.427 seconds
 +
 +```
 +
 +In addition to Hugo, we are proudly using a number of other tools and services, all built by government are free to use:
 +
 +-   [Federalist](https://federalist.18f.gov/)
 +-   [Search.gov](https://www.search.gov/)  — A free, hosted search platform for federal websites.
 +-   [Cloud.gov](https://www.cloud.gov/)  — helps teams build, run, and authorize cloud-ready or legacy government systems quickly and cheaply.
 +-   [Federal CrowdSource Mobile Testing Program](https://digital.gov/services/mobile-application-testing-program/)  — Free mobile compatibility testing by feds, for feds.
 +-   [Digital Analytics Program](https://digital.gov/services/dap/)  (DAP) — A free analytics tool for measuring digital services in the federal government
 +-   [Section508.gov](https://www.section508.gov/)  and  [PlainLanguage.gov](https://www.plainlanguage.gov/)  resources
 +-   [API.data.gov](https://api.data.gov/)  — a free API management service for federal agencies
 +-   [U.S. Digital Registry](https://digital.gov/services/u-s-digital-registry/)  — A resource for confirming the official status of government social media accounts, mobile apps, and mobile websites.
 +
 +
 +**Questions or feedback?** [Submit an issue](https://github.com/GSA/digitalgov.gov/issues) or send us an email to [digitalgov@gsa.gov](mailto:digitalgov@gsa.gov) :heart:
index e9338a625f764d164a6379809a73c3f95b575485,0000000000000000000000000000000000000000..a229e4f6a72077f3f8a5f76722e26e0743ea2ca1
mode 100644,000000..100644
--- /dev/null
@@@ -1,17 -1,0 +1,17 @@@
- The site is able to achieve Lighthouse performance scores of 95+, despite the fact that it is a fully interactive PWA that ships Angular and Firebase in the JS bundle. This is made possible by (1) prerendering content with Hugo and (2) lazily embedding native web components directly in the HTML and markdown. We provide a [detailed explanation](https://youtu.be/gun8OiGtlNc) of the architecture on YouTube and can't imagine development without Hugo.
 +---
 +title: fireship.io
 +date: 2019-02-02
 +description: "Showcase: \"Hugo helps us create complex technical content that integrates engaging web components\""
 +siteURL: https://fireship.io
 +siteSource: https://github.com/fireship-io/fireship.io
 +byline: "[Jeff Delaney](https://github.com/codediodeio), Fireship.io Creator"
 +---
 +
 +After careful consideration of JavaScript/JSX-based static site generators, it became clear that Hugo was the only tool capable of handling our project's complex demands. Not only do we have multiple content formats and taxonomies, but we often need to customize the experience at a more granular level. The problems Hugo has solved for us include:
 +
 +- **Render speed.** We know from past experience that JavaScript-based static site generators become very slow when you have thousands of pages and images.
 +- **Feature-rich.** Our site has a long list of specialized needs and Hugo somehow manages to cover every single use case.
 +- **Composability.** Hugo's partial and shortcode systems empower us to write DRY and maintainable templates.
 +- **Simplicity.** Hugo is easy to learn (even without Go experience) and doesn't burden us with brittle dependencies.
 +
++The site is able to achieve Lighthouse performance scores of 95+, despite the fact that it is a fully interactive PWA that ships Angular and Firebase in the JS bundle. This is made possible by (1) prerendering content with Hugo and (2) lazily embedding native web components directly in the HTML and Markdown. We provide a [detailed explanation](https://youtu.be/gun8OiGtlNc) of the architecture on YouTube and can't imagine development without Hugo.
index 767365cc0239169a2db897772ce76802ee9c616b,0000000000000000000000000000000000000000..0b8f28743ed3162a444fa22b5758d8cc1ee7b46c
mode 100644,000000..100644
--- /dev/null
@@@ -1,5 -1,0 +1,4 @@@
- Forestry.io is a Git-backed CMS (content management system) for websites and web products built using static site generators such as Hugo. 
 +
++Forestry.io is a Git-backed CMS (content management system) for websites and web products built using static site generators such as Hugo.
 +
 +Forestry bridges the gap between developers and their teams, by making development fun and easy, while providing powerful content management for their teams.
index 92fccadf66ed92cccbb7dd50aaafa8cfece479b6,0000000000000000000000000000000000000000..fd849f8444cfa1720cba6e1ba9e1b08b4708b046
mode 100644,000000..100644
--- /dev/null
@@@ -1,9 -1,0 +1,7 @@@
 +[Godot Tutorials](https://godottutorials.com) aims to teach beginners how to get up and running with basic game programming and game development skills.
 +
 +The website is built with the **Hugo Framework** alongside aws+cloudfront+lambda.
 +
 +The site is built by:
 +
- * [Godot Tutorials](https://godottutorials.com)
++- [Godot Tutorials](https://godottutorials.com)
index e33e413e1d867c997db9dbbc4464ff3ed36c2a46,0000000000000000000000000000000000000000..56a8dfc4d15c5cf8eba8ed84ad2397e647be5280
mode 100644,000000..100644
--- /dev/null
@@@ -1,25 -1,0 +1,25 @@@
- As I created videos, I ran into a problem; if I made a mistake with a Youtube video, it was difficult to correct errors.
 +---
 +
 +title: Godot Tutorials
 +date: 2021-01-07
 +
 +description: "Teaching game development skills with love."
 +
 +# The URL to the site on the internet.
 +siteURL: https://godottutorials.com
 +
 +# Add credit to the article author. Leave blank or remove if not needed/wanted.
 +byline: "[Godot Tutorials](https://godottutorials.com), Web Developer & Game Programmer"
 +
 +---
 +
 +
 +[Godot Tutorials](https://godottutorials.com) started as a way to teach beginners game programming and game development.
- As I researched blogging platforms, I came across two solutions; however, I chose [Hugo](https://gohugo.io) because it's built with markdown in mind and simplified my workflow.
++As I created videos, I ran into a problem; if I made a mistake with a YouTube video, it was difficult to correct errors.
 +
 +I discovered that blogging episodes and having articles that teach on top of my videos is a fantastic solution to my problem.
 +
++As I researched blogging platforms, I came across two solutions; however, I chose [Hugo](https://gohugo.io) because it's built with Markdown in mind and simplified my workflow.
 +
 +In a sense, with [Hugo](https://gohugo.io) programmed the right way, I can focus **more time on planning, creating, and editing**
 +my videos and **less time maintaining and fixing** my website.
index 85ec17a8b95b8698d9e62d33c65d2cbf50c56e5d,0000000000000000000000000000000000000000..7ca2b6cefb563d0db21d5a619ed9045ed3d7b905
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,31 @@@
 +---
 +title: Hapticmedia Blog
 +date: 2019-10-01
 +description: "Showcase: \"A simple, but powerful, multilingual blog.\""
 +siteURL: https://hapticmedia.fr/blog/en/
 +byline: "[Cyril Bonnet](https://github.com/monsieurnebo), Web Developer"
- Hugo addresses all these needs, coupled with [Forestry.io](https://forestry.io/) for its administration via a "turnkey" interface. We have attached particular importance to SEO, and therefore to the creation of an advanced taxonomy system. Thus, each author and tag has a dedicated page, listing the related posts.
 +---
 +
 +Our goal was to create a simple, effective and multilingual blog on [3D technology](https://hapticmedia.fr/blog/en/3d-technology/) that could be managed by a non-technical profile.
 +
 +## Why Hugo?
 +
++Hugo addresses all these needs, coupled with [Forestry.io](https://forestry.io/) for its administration via a "turnkey" interface. We have attached particular importance to SEO, and therefore to the creation of an advanced taxonomy system. Thus, each author and tag has a dedicated page, listing the related posts.
 +
 +## What we liked
++
 +- The **multilingual** content support, especially simple to setup.
 +- The **multiple environments** support (develop, staging, test, production, ...).
 +- Although a hard start with the Go language, the power of the **Hugo's templating**.
 +- The **partial layouts**, including the `internals` (e.g. social meta tags).
 +- The **build time**, unbeatable ⚡️⚡️⚡️.
 +
 +## Tools & workflow
++
 +- We used the same design as **[our website](https://hapticmedia.fr/en/)**, recreated as a Hugo HTML template.
 +- **[Hugo](https://gohugo.io)** for the static website generator.
 +- **[CircleCI](https://circleci.com)** for continuous integration & deployment.
 +- **[AWS](https://aws.amazon.com/)** for web hosting.
 +- **[Forestry.io](https://forestry.io)** for the content management.
 +
 +**All of these tools allow our editor to manage the blog's content without having to worry about its technical aspect, which is managed by the developers.**
index 9254979499e6bdd63fb0039c3ee940de0f813bff,0000000000000000000000000000000000000000..66fc46f44129578402a495f96b666fef6bbbdf42
mode 100644,000000..100644
--- /dev/null
@@@ -1,69 -1,0 +1,69 @@@
- The starter point was the [Victor Hugo](https://github.com/netlify/victor-hugo) repository that Netlify have created. It let me dive in with Hugo, PostCSS, BrowserSync and ES6 without setting up any tooling myself – always a win!
 +---
 +
 +title: Hartwell Insurance
 +
 +date: 2018-02-09
 +
 +description: "Showcase: \"Hugo + Netlify + PWA makes for a rapid website.\""
 +
 +siteURL: https://www.hartwell-insurance.com/
 +
 +byline: "[Trys Mudford](http://www.trysmudford.com), Lead Developer, Tomango"
 +
 +---
 +
 +We’ve just launched a shiny new website for [Hartwell Insurance](https://www.hartwell-insurance.com/) – I’m really proud of it. It was tackled in a different way to most previous Tomango site builds, using some fancy new tools and some vintage web standards.
 +
 +It’s a multi-page, single-page (!) website written in Hugo, a static site generator built with performance as a first-class feature. _I’ve outlined a load of benefits to Hugo & static sites [here](https://why-static.netlify.com/), in case you’re interested._
 +
 +> **In essence, a static site generator pre-renders the whole site into HTML files and serves them like it’s 1995.**
 +
 +There’s no Apache or Node backend that does compilation at runtime, it’s all done at the build step. This means the server; Netlify in this case, only has to do one thing – serve files. Unsurprisingly, serving simple files is VERY quick.
 +
++The starter point was the [Victor Hugo](https://github.com/netlify/victor-hugo) repository that Netlify have created. It let me dive in with Hugo, PostCSS, Browsersync and ES6 without setting up any tooling myself – always a win!
 +
 +I then took all the content from the design file and moved it into Markdown, putting shortcodes in where necessary. This site did need a number of custom shortcodes for the presentational elements like the expanding circles and full width backgrounds. But mostly it was just clean, semantic HTML with some CSS and JS enhancement thrown in.
 +
 +For example, this two column layout shown below. I used CSS Columns with a  `break-after: always;` on the `<h1>`. No multi-wrapper or difficult-to-clear shortcodes, just clean HTML.
 +
 +![The multi-column setup on Hartwell Insurance](hartwell-columns.png)
 +
 +For the ripple effects on the section headings, I used JS to prepend a `<canvas>` element then animated it with `RequestAnimationFrame`. It adds a nice bit of movement on the page.
 +
 +On the Hartwell Profitmaker section, I toyed with the idea of using Vue.js for the calculator, but after giving it some thought, I decided to code in Vanilla. The result, all of the site JS comes in at 3.2KB!
 +
 +The plan was to host with Netlify and therefore get access to Netlify Forms. It meant spending 0 minutes on getting a backend set up – I could focus fully on the frontend.
 +
 +Cache invalidation isn’t normally something I spend all that much time thinking about when building a site. But as this site was going to be a Progressive Web App, invalidating files would be important to ensure the site didn’t appear broken when we made changes. As I was using Victor-Hugo, I wasn’t really sure how to best tackle this and sadly spent far too many hours wrangling with Webpack and Gulp files to try and get hashed file names working nicely.
 +
 +Then; while I was waiting for a haircut, I read a [Netlify blog post](https://www.netlify.com/blog/2017/02/23/better-living-through-caching/) on how they do cache invalidation with HTTP2 and it promptly blew my mind.
 +
 +When you request an asset, they send an ETag in the headers which is a hash of the file. There’s also a header to tell the browser not to trust it’s own cache (which sounds a little bit bonkers).
 +
 +So when you request the page, it opens a persistent HTTP2 connection up (so no new connections for file requests). When it gets to requesting that asset, the browser sends the ETag back to Netlify and they either return nothing if the ETag matches, or the new file with the new ETag. No `app.klfjlkdsfjdslkfjdslkfdsj.js` or `app.js?v=20180112`. Just a clean `app.js` with instant cache invalidation. Amazing.
 +
 +Finally, the [Service Worker](https://www.hartwell-insurance.com/sw.js) could be added. This turned out to be straightforward as the Netlify cache invalidation system solved most of the pain points. I went for a network-first, cache-fallback setup for both assets and HTML. This does mean flaky speeds are reliant on the page connection time, but given we’re on HTTP2, I’m hoping the persistent connection and tiny ETag size will keep it quick. For online connections, every request is up to date and instantly live after any update. Offline connections fall back to every assets’ last cached state. It seems to work really nicely, and there’s no need for an update prompt if assets have changed.
 +
 +---
 +
 +## The results
 +
 +The WebPageTest results are looking good. The speed index is 456, 10x smaller than the average Alexa top 300,000 score.
 +
 +![WebPageTest results](hartwell-webpagetest.png)
 +
 +[TestMySite.io](https://testmysite.io/5a7e1bb2df99531a23c9ad2f/hartwell-insurance.com) is return ~2ms time to first byte from the CDN edge nodes. Lighthouse audits are also very promising. There’s still some improvement to be gained lazy-loading the images and inlining the CSS. I’m less excited about the [second suggestion](http://www.trysmudford.com/css-in-2017/), but I’ll certainly look at some lazy-loading, especially as I’m already using `IntersectionObserver` for some animations.
 +
 +![Lighthouse results](hartwell-lighthouse.png)
 +
 +The most encouraging result is how quick the site is around the world. Most Tomango clients (and their customers) are pretty local and almost exclusively UK-based. We have a dedicated server in Surrey that serves our market pretty well. It did take me by surprise just how much slower a connection from the USA, Australia and Japan to our server was. They’re waiting ~500ms just for the first byte, let alone downloading each asset.
 +
 +[Hartwell Insurance](https://www.hartwell-insurance.com/) are a US company so by putting them on our server, we’d be instantly hampering their local response times by literally seconds. This was one of the main reasons for going with Netlify. They provide global CDN hosting that’s quick from anywhere in the world.
 +
 +---
 +
 +This project was such a blast to develop, it’s a real pleasure to put new technologies to good use in production, and to see real performance and usability benefits from them. Even using classic web methods of serving folders with files is fun when you’ve been databasing for a while – there’s something really ‘pure’ about it.
 +
 +---
 +
 +_This was originally posted on [my website](http://www.trysmudford.com/perfomance-wins-with-hugo-and-netlify/)_
index 06e4a65485925be66abbc578279fba85fd5d72f0,0000000000000000000000000000000000000000..72707bfde478db96e3aaaa9730536e465fd7dbe5
mode 100644,000000..100644
--- /dev/null
@@@ -1,22 -1,0 +1,18 @@@
 +---
 +title: Hugo Showcase Template
 +date: 2018-02-07
 +description: "A short description of this page."
 +siteURL: https://gohugo.io/
 +siteSource: https://github.com/gohugoio/hugoDocs
 +byline: "[bep](https://github.com/bep), Hugo Lead"
 +---
- We would really appreciate if you could:
 +Have a **notable Hugo site[^1]**? We would love to feature it in this **Showcase Section**
 +
- 1. Fork https://github.com/gohugoio/hugoDocs
- 2. Run `hugo new showcase/your-site` (this requires >= Hugo 0.49). This will use the archetype bundle in the [docs repo](https://github.com/gohugoio/hugoDocs/tree/master/archetypes).
++Please:
 +
- 3. Create a new pull request in https://github.com/gohugoio/hugoDocs/pulls
++1. Fork https://github.com/gohugoio/hugoDocs.
++2. Run `hugo new showcase/your-site`. This will use the archetype bundle in the [docs repo](https://github.com/gohugoio/hugoDocs/tree/master/archetypes).
 +3. Follow the instructions in the newly created page bundle.
++4. Create a new pull request in https://github.com/gohugoio/hugoDocs/pulls.
 +
 +[^1]: We want this to show Hugo in its best light, so this is not for the average Hugo blog. In most cases the answer to "Is my site [notable](https://www.dictionary.com/browse/notable)?" will be obvious, but if in doubt, create an [issue](https://github.com/gohugoio/hugoDocs/issues) with a link and some words, and we can discuss it. But if you have a site with an interesting Hugo story or a company site where the company itself is notable, you are most welcome.
index 2be62943708c84a47687b5dccf5664b8b5189cab,0000000000000000000000000000000000000000..81c4c38bdbf63415a9ebd54584bcd99c290e864c
mode 100644,000000..100644
--- /dev/null
@@@ -1,65 -1,0 +1,66 @@@
- ```
 +---
 +title: Custom 404 Page
 +linktitle: 404 Page
 +description: If you know how to create a single page template, you have unlimited options for creating a custom 404.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +categories: [templates]
 +keywords: [404, page not found]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 120
 +weight: 120   #rem
 +draft: false
 +aliases: []
 +toc: false
 +---
 +
 +When using Hugo with [GitHub Pages](https://pages.github.com/), you can provide your own template for a [custom 404 error page](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site) by creating a 404.html template file in your `/layouts` folder. When Hugo generates your site, the `404.html` file will be placed in the root.
 +
 +404 pages will have all the regular [page variables][pagevars] available to use in the templates.
 +
 +In addition to the standard page variables, the 404 page has access to all site content accessible from `.Pages`.
 +
- * Azure Static website. You can specify the `Error document path` in the Static website configuration page of the Azure portal. [More details are available in the Static website documentation](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website).
++```txt
 +▾ layouts/
 +    404.html
 +```
 +
 +## 404.html
 +
 +This is a basic example of a 404.html template:
 +
 +{{< code file="layouts/404.html" download="404.html" >}}
 +{{ define "main"}}
 +    <main id="main">
 +      <div>
 +       <h1 id="title"><a href="{{ "" | relURL }}">Go Home</a></h1>
 +      </div>
 +    </main>
 +{{ end }}
 +{{< /code >}}
 +
 +## Automatic Loading
 +
 +Your 404.html file can be set to load automatically when a visitor enters a mistaken URL path, dependent upon the web serving environment you are using. For example:
 +
 +* [GitHub Pages](/hosting-and-deployment/hosting-on-github/) and [GitLab Pages](/hosting-and-deployment/hosting-on-gitlab/). The 404 page is automatic.
 +* Apache. You can specify `ErrorDocument 404 /404.html` in an `.htaccess` file in the root of your site.
 +* Nginx. You might specify `error_page 404 /404.html;` in your `nginx.conf` file. [Details here](https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page).
 +* Amazon AWS S3. When setting a bucket up for static web serving, you can specify the error file from within the S3 GUI.
 +* Amazon CloudFront. You can specify the page in the Error Pages section in the CloudFront Console. [Details here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html)
 +* Caddy Server. Use the `handle_errors` directive to specify error pages for one or more status codes. [Details here](https://caddyserver.com/docs/caddyfile/directives/handle_errors)
 +* Netlify. Add `/* /404.html 404` to `content/_redirects`. [Details Here](https://www.netlify.com/docs/redirects/#custom-404)
++* Azure Static Web App. set `responseOverrides.404.rewrite` and `responseOverrides.404.statusCode` in configfile `staticwebapp.config.json`. [Details here](https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#response-overrides)
++* Azure Storage as Static Web Site Hosting. You can specify the `Error document path` in the Static website configuration page of the Azure portal. [Details here](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website).
 +* DigitalOcean App Platform. You can specify `error_document` in your app specification file or use control panel to set up error document. [Details here](https://docs.digitalocean.com/products/app-platform/how-to/manage-static-sites/#configure-a-static-site).
 +* [Firebase Hosting](https://firebase.google.com/docs/hosting/full-config#404): `/404.html` automatically gets used as the 404 page.
 +
 +{{% note %}}
 +`hugo server` will not automatically load your custom `404.html` file, but you
 +can test the appearance of your custom "not found" page by navigating your
 +browser to `/404.html`.
 +{{% /note %}}
 +
 +[pagevars]: /variables/page/
index f2648bd52da3a5f15b6621f3d537c6d14190d0ce,0000000000000000000000000000000000000000..c82cc09a1666181465b60d81d29a8b4bf98bac71
mode 100644,000000..100644
--- /dev/null
@@@ -1,103 -1,0 +1,102 @@@
- lastmod: 2017-02-01
 +---
 +title: Base Templates and Blocks
 +linktitle:
 +description: The base and block constructs allow you to define the outer shell of your master templates (i.e., the chrome of the page).
 +date: 2017-02-01
 +publishdate: 2017-02-01
- {{< new-in "0.63.0" >}} Since Hugo v0.63, the base template lookup order closely follows that of the template it applies to (e.g. `_default/list.html`).
 +categories: [templates,fundamentals]
 +keywords: [blocks,base]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
 +draft: false
 +aliases: [/templates/blocks/,/templates/base-templates-and-blocks/]
 +toc: true
 +---
 +
 +The `block` keyword allows you to define the outer shell of your pages' one or more master template(s) and then fill in or override portions as necessary.
 +
 +{{< youtube QVOMCYitLEc >}}
 +
 +## Base Template Lookup Order
 +
- ```
++The base template lookup order closely follows that of the template it applies to (e.g. `_default/list.html`).
 +
 +See [Template Lookup Order](/templates/lookup-order/) for details and examples.
 +
 +## Define the Base Template
 +
 +The following defines a simple base template at `_default/baseof.html`. As a default template, it is the shell from which all your pages will be rendered unless you specify another `*baseof.html` closer to the beginning of the lookup order.
 +
 +{{< code file="layouts/_default/baseof.html" download="baseof.html" >}}
 +<!DOCTYPE html>
 +<html>
 +  <head>
 +    <meta charset="utf-8">
 +    <title>{{ block "title" . }}
 +      <!-- Blocks may include default content. -->
 +      {{ .Site.Title }}
 +    {{ end }}</title>
 +  </head>
 +  <body>
 +    <!-- Code that all your templates share, like a header -->
 +    {{ block "main" . }}
 +      <!-- The part of the page that begins to differ between templates -->
 +    {{ end }}
 +    {{ block "footer" . }}
 +    <!-- More shared code, perhaps a footer but that can be overridden if need be in  -->
 +    {{ end }}
 +  </body>
 +</html>
 +{{< /code >}}
 +
 +## Override the Base Template
 +
 +From the above base template, you can define a [default list template][hugolists]. The default list template will inherit all of the code defined above and can then implement its own `"main"` block from:
 +
 +{{< code file="layouts/_default/list.html" download="list.html" >}}
 +{{ define "main" }}
 +  <h1>Posts</h1>
 +  {{ range .Pages }}
 +    <article>
 +      <h2>{{ .Title }}</h2>
 +      {{ .Content }}
 +    </article>
 +  {{ end }}
 +{{ end }}
 +{{< /code >}}
 +
 +This replaces the contents of our (basically empty) "main" block with something useful for the list template. In this case, we didn't define a `"title"` block, so the contents from our base template remain unchanged in lists.
 +
 +{{% warning %}}
 +Code that you put outside the block definitions *can* break your layout. This even includes HTML comments. For example:
 +
++```go-html-template
 +<!-- Seemingly harmless HTML comment..that will break your layout at build -->
 +{{ define "main" }}
 +...your code here
 +{{ end }}
 +```
 +[See this thread from the Hugo discussion forums.](https://discourse.gohugo.io/t/baseof-html-block-templates-and-list-types-results-in-empty-pages/5612/6)
 +{{% /warning %}}
 +
 +The following shows how you can override both the `"main"` and `"title"` block areas from the base template with code unique to your [default single page template][singletemplate]:
 +
 +{{< code file="layouts/_default/single.html" download="single.html" >}}
 +{{ define "title" }}
 +  <!-- This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example-->
 +  {{ .Title }} &ndash; {{ .Site.Title }}
 +{{ end }}
 +{{ define "main" }}
 +  <h1>{{ .Title }}</h1>
 +  {{ .Content }}
 +{{ end }}
 +{{< /code >}}
 +
 +[hugolists]: /templates/lists
 +[lookup]: /templates/lookup-order/
 +[rendering the section]: /templates/section-templates/
 +[singletemplate]: /templates/single-page-templates/
index bd1ed6d76dce10daa761ca95ad291fe39b1a2e32,0000000000000000000000000000000000000000..1be4e93ebbffae6d6605ab807eb4d14b7b02c2f4
mode 100644,000000..100644
--- /dev/null
@@@ -1,251 -1,0 +1,263 @@@
- lastmod: 2017-03-12
 +---
 +title: Data Templates
 +linktitle:
 +description: In addition to Hugo's built-in variables, you can specify your own custom data in templates or shortcodes that pull from both local and dynamic sources.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [templates]
 +keywords: [data,dynamic,csv,json,toml,yaml,xml]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 80
 +weight: 80
 +sections_weight: 80
- Data Files can also be used in [Hugo themes][themes] but note that theme data files follow the same logic as other template files in the [Hugo lookup order][lookup] (i.e., given two files with the same name and relative path, the file in the root project `data` directory will override the file in the `themes/<THEME>/data` directory).
 +aliases: [/extras/datafiles/,/extras/datadrivencontent/,/doc/datafiles/]
 +toc: true
 +---
 +
 +<!-- begin data files -->
 +
 +Hugo supports loading data from YAML, JSON, XML, and TOML files located in the `data` directory in the root of your Hugo project.
 +
 +{{< youtube FyPgSuwIMWQ >}}
 +
 +## The Data Folder
 +
 +The `data` folder is where you can store additional data for Hugo to use when generating your site. Data files aren't used to generate standalone pages; rather, they're meant to be supplemental to content files. This feature can extend the content in case your front matter fields grow out of control. Or perhaps you want to show a larger dataset in a template (see example below). In both cases, it's a good idea to outsource the data in their own files.
 +
 +These files must be YAML, JSON, XML, or TOML files (using the `.yml`, `.yaml`, `.json`, `.xml`, or `.toml` extension). The data will be accessible as a `map` in the `.Site.Data` variable.
 +
++If you wish to access the data using the `.Site.Data.filename` notation, the filename must begin with an underscore or a Unicode letter, followed by zero or more underscores, Unicode letters, or Unicode digits. eg:
++
++- `123.json` - Invalid
++- `x123.json` - Valid
++- `_123.json` - Valid
++
++If you wish to access the data using the [`index`](/functions/index-function/) function, the filename is irrelevant. For example:
++Data file|Template code
++:--|:--
++`123.json`|`{{ index .Site.Data "123" }}`
++`x123.json`|`{{ index .Site.Data "x123" }}`
++`_123.json`|`{{ index .Site.Data "_123" }}`
++`x-123.json`|`{{ index .Site.Data "x-123" }}`
++
 +## Data Files in Themes
 +
- ```
++Data Files can also be used in [Hugo themes][themes] but note that theme data files are merged with the project directory taking precedence (i.e., given two files with the same name and relative path, the data in the file in the root project `data` directory will override the data from the file in the `themes/<THEME>/data` directory *for keys that are duplicated*).
 +
 +Therefore, theme authors should take care to not include data files that could be easily overwritten by a user who decides to [customize a theme][customize]. For theme-specific data items that shouldn't be overridden, it can be wise to prefix the folder structure with a namespace; e.g. `mytheme/data/<THEME>/somekey/...`. To check if any such duplicate exists, run hugo with the `-v` flag.
 +
 +The keys in the map created with data templates from data files will be a dot-chained set of `path`, `filename`, and `key` in file (if applicable).
 +
 +This is best explained with an example:
 +
 +## Example: Jaco Pastorius' Solo Discography
 +
 +[Jaco Pastorius](https://en.wikipedia.org/wiki/Jaco_Pastorius_discography) was a great bass player, but his solo discography is short enough to use as an example. [John Patitucci](https://en.wikipedia.org/wiki/John_Patitucci) is another bass giant.
 +
 +The example below is a bit contrived, but it illustrates the flexibility of data Files. This example uses TOML as its file format with the two following data files:
 +
 +* `data/jazz/bass/jacopastorius.toml`
 +* `data/jazz/bass/johnpatitucci.toml`
 +
 +`jacopastorius.toml` contains the content below. `johnpatitucci.toml` contains a similar list:
 +
 +{{< code-toggle file="jacopastorius" >}}
 +discography = [
 +"1974 - Modern American Music … Period! The Criteria Sessions",
 +"1974 - Jaco",
 +"1976 - Jaco Pastorius",
 +"1981 - Word of Mouth",
 +"1981 - The Birthday Concert (released in 1995)",
 +"1982 - Twins I & II (released in 1999)",
 +"1983 - Invitation",
 +"1986 - Broadway Blues (released in 1998)",
 +"1986 - Honestly Solo Live (released in 1990)",
 +"1986 - Live In Italy (released in 1991)",
 +"1986 - Heavy'n Jazz (released in 1992)",
 +"1991 - Live In New York City, Volumes 1-7.",
 +"1999 - Rare Collection (compilation)",
 +"2003 - Punk Jazz: The Jaco Pastorius Anthology (compilation)",
 +"2007 - The Essential Jaco Pastorius (compilation)"
 +]
 +{{< /code-toggle >}}
 +
 +The list of bass players can be accessed via `.Site.Data.jazz.bass`, a single bass player by adding the filename without the suffix, e.g. `.Site.Data.jazz.bass.jacopastorius`.
 +
 +You can now render the list of recordings for all the bass players in a template:
 +
- ```
++```go-html-template
 +{{ range $.Site.Data.jazz.bass }}
 +   {{ partial "artist.html" . }}
 +{{ end }}
 +```
 +
 +And then in the `partials/artist.html`:
 +
- ```
++```go-html-template
 +<ul>
 +{{ range .discography }}
 +  <li>{{ . }}</li>
 +{{ end }}
 +</ul>
 +```
 +
 +Discover a new favorite bass player? Just add another `.toml` file in the same directory.
 +
 +## Example: Accessing Named Values in a Data File
 +
 +Assume you have the following data structure in your `User0123.[yml|toml|xml|json]` data file located directly in `data/`:
 +
 +{{< code-toggle file="User0123" >}}
 +Name: User0123
 +"Short Description": "He is a **jolly good** fellow."
 +Achievements:
 +  - "Can create a Key, Value list from Data File"
 +  - "Learns Hugo"
 +  - "Reads documentation"
 +{{</ code-toggle >}}
 +
 +You can use the following code to render the `Short Description` in your layout:
 +
- ```
++```go-html-template
 +<div>Short Description of {{.Site.Data.User0123.Name}}: <p>{{ index .Site.Data.User0123 "Short Description" | markdownify }}</p></div>
 +```
 +
 +Note the use of the [`markdownify` template function][markdownify]. This will send the description through the Markdown rendering engine.
 +
 +
 +## Get Remote Data
 +
 +Use `getJSON` or `getCSV` to get remote data:
 +
- ```
++```go-html-template
 +{{ $dataJ := getJSON "url" }}
 +{{ $dataC := getCSV "separator" "url" }}
 +```
 +
 +If you use a prefix or postfix for the URL, the functions accept [variadic arguments][variadic]:
 +
- ```
++```go-html-template
 +{{ $dataJ := getJSON "url prefix" "arg1" "arg2" "arg n" }}
 +{{ $dataC := getCSV  "separator" "url prefix" "arg1" "arg2" "arg n" }}
 +```
 +
 +The separator for `getCSV` must be put in the first position and can only be one character long.
 +
 +All passed arguments will be joined to the final URL:
 +
- ```
++```go-html-template
 +{{ $urlPre := "https://api.github.com" }}
 +{{ $gistJ := getJSON $urlPre "/users/GITHUB_USERNAME/gists" }}
 +```
 +
 +This will resolve internally to the following:
 +
- {{< new-in "0.84.0" >}} Both `getJSON` and `getCSV` takes an optional map as the last argument, e.g.:
++```go-html-template
 +{{ $gistJ := getJSON "https://api.github.com/users/GITHUB_USERNAME/gists" }}
 +```
 +
 +### Add HTTP headers
 +
- ```
++Both `getJSON` and `getCSV` takes an optional map as the last argument, e.g.:
 +
- ```
++```go-html-template
 +{{ $data := getJSON "https://example.org/api" (dict "Authorization" "Bearer abcd")  }}
 +```
 +
 +If you need multiple values for the same header key, use a slice:
 +
- If you don't like caching at all, you can fully disable caching with the command line flag `--ignoreCache`.
++```go-html-template
 +{{ $data := getJSON "https://example.org/api" (dict "X-List" (slice "a" "b" "c"))  }}
 +```
 +
 +### Example for CSV files
 +
 +For `getCSV`, the one-character-long separator must be placed in the first position followed by the URL. The following is an example of creating an HTML table in a [partial template][partials] from a published CSV:
 +
 +{{< code file="layouts/partials/get-csv.html" >}}
 +  <table>
 +    <thead>
 +      <tr>
 +      <th>Name</th>
 +      <th>Position</th>
 +      <th>Salary</th>
 +      </tr>
 +    </thead>
 +    <tbody>
 +    {{ $url := "https://example.com/finance/employee-salaries.csv" }}
 +    {{ $sep := "," }}
 +    {{ range $i, $r := getCSV $sep $url }}
 +      <tr>
 +        <td>{{ index $r 0 }}</td>
 +        <td>{{ index $r 1 }}</td>
 +        <td>{{ index $r 2 }}</td>
 +      </tr>
 +    {{ end }}
 +    </tbody>
 +  </table>
 +{{< /code >}}
 +
 +The expression `{{index $r number}}` must be used to output the nth-column from the current row.
 +
 +### Cache URLs
 +
 +Each downloaded URL will be cached in the default folder `$TMPDIR/hugo_cache/`. The variable `$TMPDIR` will be resolved to your system-dependent temporary directory.
 +
 +With the command-line flag `--cacheDir`, you can specify any folder on your system as a caching directory.
 +
 +You can also set `cacheDir` in the [main configuration file][config].
 +
- The local CSV files to be loaded using `getCSV` must be located **outside** of the `data` directory.
++If you don't like caching at all, you can fully disable caching with the command-line flag `--ignoreCache`.
 +
 +### Authentication When Using REST URLs
 +
 +Currently, you can only use those authentication methods that can be put into an URL. [OAuth][] and other authentication methods are not implemented.
 +
 +## Load Local files
 +
 +To load local files with `getJSON` and `getCSV`, the source files must reside within Hugo's working directory. The file extension does not matter, but the content does.
 +
 +It applies the same output logic as above in [Get Remote Data](#get-remote-data).
 +
 +{{% note %}}
++The local CSV files to be loaded using `getCSV` must be located **outside** the `data` directory.
 +{{% /note %}}
 +
 +## LiveReload with Data Files
 +
 +There is no chance to trigger a [LiveReload][] when the content of a URL changes. However, when a *local* file changes (i.e., `data/*` and `themes/<THEME>/data/*`), a LiveReload will be triggered. Symlinks are not supported. Note too that because downloading of data takes a while, Hugo stops processing your Markdown files until the data download has completed.
 +
 +{{% warning "URL Data and LiveReload" %}}
 +If you change any local file and the LiveReload is triggered, Hugo will read the data-driven (URL) content from the cache. If you have disabled the cache (i.e., by running the server with `hugo server --ignoreCache`), Hugo will re-download the content every time LiveReload triggers. This can create *huge* traffic. You may reach API limits quickly.
 +{{% /warning %}}
 +
 +## Examples of Data-driven Content
 +
 +- Photo gallery JSON powered: [https://github.com/pcdummy/hugo-lightslider-example](https://github.com/pcdummy/hugo-lightslider-example)
 +- GitHub Starred Repositories [in a post](https://github.com/SchumacherFM/blog-cs/blob/master/content%2Fposts%2Fgithub-starred.md) using data-driven content in a [custom short code](https://github.com/SchumacherFM/blog-cs/blob/master/layouts%2Fshortcodes%2FghStarred.html).
 +
 +## Specs for Data Formats
 +
 +* [TOML Spec][toml]
 +* [YAML Spec][yaml]
 +* [JSON Spec][json]
 +* [CSV Spec][csv]
 +* [XML Spec][xml]
 +
 +[config]: /getting-started/configuration/
 +[csv]: https://tools.ietf.org/html/rfc4180
 +[customize]: /themes/customizing/
 +[json]: https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf "Specification for JSON, JavaScript Object Notation"
 +[LiveReload]: /getting-started/usage/#livereload
 +[lookup]: /templates/lookup-order/
 +[markdownify]: /functions/markdownify/
 +[OAuth]: https://en.wikipedia.org/wiki/OAuth
 +[partials]: /templates/partials/
 +[themes]: /themes/
 +[toml]: https://github.com/toml-lang/toml
 +[variadic]: https://en.wikipedia.org/wiki/Variadic_function
 +[vars]: /variables/
 +[yaml]: https://yaml.org/spec/
 +[xml]: https://www.w3.org/XML/
index c2de112922869e48bceef136ee13618f43c5d61e,0000000000000000000000000000000000000000..697863c4cd59dffe0e0218c6d9545d3565f53bd5
mode 100644,000000..100644
--- /dev/null
@@@ -1,66 -1,0 +1,64 @@@
- ```
 +---
 +title: Local File Templates
 +linktitle: Local File Templates
 +description: Hugo's `readDir` and `readFile` functions make it easy to traverse your project's directory structure and write file contents to your templates.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [files,directories]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 110
 +weight: 110
 +sections_weight: 110
 +draft: false
 +aliases: [/extras/localfiles/,/templates/local-files/]
 +toc: true
 +---
 +
 +## Traverse Local Files
 +
 +With Hugo's [`readDir`][readDir] and [`readFile`][readFile] template functions, you can traverse your website's files on your server.
 +
 +## Use `readDir`
 +
 +The [`readDir` function][readDir] returns an array of [`os.FileInfo`][osfileinfo]. It takes the file's `path` as a single string argument. This path can be to any directory of your website (i.e., as found on your server's file system).
 +
 +Whether the path is absolute or relative does not matter because---at least for `readDir`---the root of your website (typically `./public/`) in effect becomes both:
 +
 +1. The file system root
 +2. The current working directory
 +
 +## Use `readFile`
 +
 +The [`readfile` function][readFile] reads a file from disk and converts it into a string to be manipulated by other Hugo functions or added as-is. `readFile` takes the file, including path, as an argument passed to the function.
 +
 +To use the `readFile` function in your templates, make sure the path is relative to your *Hugo project's root directory*:
 +
- As `readFile` is a function, it is only available to you in your templates and not your content. However, we can create a simple [shortcode template][sct] that calls `readFile`, passes the first argument through the function, and then allows an optional second argument to send the file through the markdown processor. The pattern for adding this shortcode to your content will be as follows:
++```go-html-template
 +{{ readFile "/content/templates/local-file-templates" }}
 +```
 +
 +### `readFile` Example: Add a Project File to Content
 +
- ```
++As `readFile` is a function, it is only available to you in your templates and not your content. However, we can create a simple [shortcode template][sct] that calls `readFile`, passes the first argument through the function, and then allows an optional second argument to send the file through the Markdown processor. The pattern for adding this shortcode to your content will be as follows:
 +
++```go-html-template
 +{{</* readfile file="/path/to/local/file.txt" markdown="true" */>}}
 +```
 +
 +{{% warning %}}
 +If you are going to create [custom shortcodes](/templates/shortcode-templates/) with `readFile` for a theme, note that usage of the shortcode will refer to the project root and *not* your `themes` directory.
 +{{% /warning %}}
 +
 +[called directly in the Hugo docs]: https://github.com/gohugoio/hugoDocs/blob/master/content/en/templates/files.md
 +[dirindex]: https://github.com/gohugoio/hugo/blob/master/docs/layouts/shortcodes/directoryindex.html
 +[osfileinfo]: https://golang.org/pkg/os/#FileInfo
 +[readDir]: /functions/readdir/
 +[readFile]: /functions/readfile/
 +[sc]: /content-management/shortcodes/
 +[sct]: /templates/shortcode-templates/
 +[readfilesource]: https://github.com/gohugoio/hugoDocs/blob/master/layouts/shortcodes/readfile.html
 +[testfile]: https://github.com/gohugoio/hugoDocs/blob/master/content/en/readfiles/testing.txt
index ace21f54856479ac3d9d03951b8ca50631c4488b,0000000000000000000000000000000000000000..a92a0f551ec49dad476e4cb4c7015e83a7e3e50b
mode 100644,000000..100644
--- /dev/null
@@@ -1,220 -1,0 +1,240 @@@
- Hugo ships with internal templates for Google Analytics tracking, including both synchronous and asynchronous tracking codes. As well as support for both v3 and v4 of Google Analytics.
 +---
 +title: Internal Templates
 +linktitle: Internal Templates
 +description: Hugo ships with a group of boilerplate templates that cover the most common use cases for static websites.
 +date: 2017-03-06
 +publishdate: 2017-03-06
 +lastmod: 2017-03-06
 +categories: [templates]
 +keywords: [internal, analytics,]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 168
 +weight: 168
 +sections_weight: 168
 +draft: false
 +aliases: []
 +toc: true
 +wip: true
 +---
 +<!-- reference: https://discourse.gohugo.io/t/lookup-order-for-partials/5705/6
 +code: https://github.com/gohugoio/hugo/blob/e445c35d6a0c7f5fc2f90f31226cd1d46e048bbc/tpl/template_embedded.go#L147 -->
 +
 +{{% warning %}}
 +While the following internal templates are called similar to partials, they do *not* observe the partial template lookup order.
 +{{% /warning %}}
 +
 +## Google Analytics
 +
- Provide your tracking id in your configuration file:
++Hugo ships with internal templates supporting Google Analytics, both [Google Analytics 4][GA4] (GA4) and Universal Analytics.
++
++**Note:** Universal Analytics are deprecated. For details, see [Universal Analytics will be going away][].
++
++[GA4]: https://support.google.com/analytics/answer/10089681
++[Universal Analytics will be going away]: https://support.google.com/analytics/answer/11583528
 +
 +### Configure Google Analytics
 +
- **Google Analytics v3 (analytics.js)**
++Provide your tracking ID in your configuration file:
 +
- googleAnalytics = "UA-PROPERTY_ID"
++**Google Analytics 4 (gtag.js)**
 +{{< code-toggle file="config" >}}
- **Google Analytics v4 (gtag.js)**
++googleAnalytics = "G-MEASUREMENT_ID"
 +{{</ code-toggle >}}
 +
- googleAnalytics = "G-MEASUREMENT_ID"
++**Google Universal Analytics (analytics.js)**
 +{{< code-toggle file="config" >}}
- ```
- {{ template "_internal/google_analytics.html" . }}
++googleAnalytics = "UA-PROPERTY_ID"
 +{{</ code-toggle >}}
 +
 +### Use the Google Analytics Template
 +
 +You can then include the Google Analytics internal template:
 +
- {{ template "_internal/google_analytics_async.html" . }}
- ```
- When using Google Analytics v4 use `_internal/google_analytics.html`.
++```go-html-template
++{{ template "_internal/google_analytics_async.html" . }}
 +```
 +
++**Note:** The async template is _not_ suitable for Google Analytics 4.
 +
++```go-html-template
++{{ template "_internal/google_analytics.html" . }}
 +```
- A `.Site.GoogleAnalytics` variable is also exposed from the config.
 +
- ```
++If you want to create your own template, you can access the configured ID with `{{ site.Config.Services.GoogleAnalytics.ID }}`.
 +
 +## Disqus
 +
 +Hugo also ships with an internal template for [Disqus comments][disqus], a popular commenting system for both static and dynamic websites. In order to effectively use Disqus, you will need to secure a Disqus "shortname" by [signing up for the free service][disqussignup].
 +
 +### Configure Disqus
 +
 +To use Hugo's Disqus template, you first need to set a single configuration value:
 +
 +{{< code-toggle file="config" >}}
 +disqusShortname = "your-disqus-shortname"
 +{{</ code-toggle >}}
 +
 +You also have the option to set the following in the front matter for a given piece of content:
 +
 +* `disqus_identifier`
 +* `disqus_title`
 +* `disqus_url`
 +
 +### Use the Disqus Template
 +
 +To add Disqus, include the following line in templates where you want your comments to appear:
 +
- ```
++```go-html-template
 +{{ template "_internal/disqus.html" . }}
 +```
 +
 +A `.Site.DisqusShortname` variable is also exposed from the config.
 +
 +### Conditional Loading of Disqus Comments
 +
 +Users have noticed that enabling Disqus comments when running the Hugo web server on `localhost` (i.e. via `hugo server`) causes the creation of unwanted discussions on the associated Disqus account.
 +
 +You can create the following `layouts/partials/disqus.html`:
 +
 +{{< code file="layouts/partials/disqus.html" download="disqus.html" >}}
 +<div id="disqus_thread"></div>
 +<script type="text/javascript">
 +
 +(function() {
 +    // Don't ever inject Disqus on localhost--it creates unwanted
 +    // discussions from 'localhost:1313' on your Disqus account...
 +    if (window.location.hostname == "localhost")
 +        return;
 +
 +    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
 +    var disqus_shortname = '{{ .Site.DisqusShortname }}';
 +    dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
 +    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
 +})();
 +</script>
 +<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 +<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
 +{{< /code >}}
 +
 +The `if` statement skips the initialization of the Disqus comment injection when you are running on `localhost`.
 +
 +You can then render your custom Disqus partial template as follows:
 +
- ```
++```go-html-template
 +{{ partial "disqus.html" . }}
 +```
 +
 +## Open Graph
++
 +An internal template for the [Open Graph protocol](https://ogp.me/), metadata that enables a page to become a rich object in a social graph.
 +This format is used for Facebook and some other sites.
 +
 +### Configure Open Graph
 +
 +Hugo's Open Graph template is configured using a mix of configuration variables and [front-matter](/content-management/front-matter/) on individual pages.
 +
 +{{< code-toggle file="config" >}}
 +[params]
 +  title = "My cool site"
 +  images = ["site-feature-image.jpg"]
 +  description = "Text about my cool site"
 +[taxonomies]
 +  series = "series"
 +{{</ code-toggle >}}
 +
 +{{< code-toggle file="content/blog/my-post" >}}
 +title = "Post title"
 +description = "Text about this post"
 +date = "2006-01-02"
 +images = ["post-cover.png"]
 +audio = []
 +videos = []
 +series = []
 +tags = []
 +{{</ code-toggle >}}
 +
 +Hugo uses the page title and description for the title and description metadata.
 +The first 6 URLs from the `images` array are used for image metadata.
 +If [page bundles](/content-management/page-bundles/) are used and the `images` array is empty or undefined, images with filenames matching `*feature*` or `*cover*,*thumbnail*` are used for image metadata.
 +
 +Various optional metadata can also be set:
 +
 +- Date, published date, and last modified data are used to set the published time metadata if specified.
 +- `audio` and `videos` are URL arrays like `images` for the audio and video metadata tags, respectively.
 +- The first 6 `tags` on the page are used for the tags metadata.
 +- The `series` taxonomy is used to specify related "see also" pages by placing them in the same series.
 +
 +If using YouTube this will produce a og:video tag like `<meta property="og:video" content="url">`. Use the `https://youtu.be/<id>` format with YouTube videos (example: `https://youtu.be/qtIqKaDlqXo`).
 +
 +### Use the Open Graph Template
 +
 +To add Open Graph metadata, include the following line between the `<head>` tags in your templates:
 +
- ### Use the Twitter Cards Template
++```go-html-template
 +{{ template "_internal/opengraph.html" . }}
 +```
 +
 +## Twitter Cards
 +
 +An internal template for [Twitter Cards](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards),
 +metadata used to attach rich media to Tweets linking to your site.
 +
 +### Configure Twitter Cards
 +
 +Hugo's Twitter Card template is configured using a mix of configuration variables and [front-matter](/content-management/front-matter/) on individual pages.
 +
 +{{< code-toggle file="config" >}}
 +[params]
 +  images = ["site-feature-image.jpg"]
 +  description = "Text about my cool site"
 +{{</ code-toggle >}}
 +
 +{{< code-toggle file="content/blog/my-post" >}}
 +title = "Post title"
 +description = "Text about this post"
 +images = ["post-cover.png"]
 +{{</ code-toggle >}}
 +
 +If `images` aren't specified in the page front-matter, then hugo searches for [image page resources](/content-management/image-processing/) with `feature`, `cover`, or `thumbnail` in their name.
 +If no image resources with those names are found, the images defined in the [site config](/getting-started/configuration/) are used instead.
 +If no images are found at all, then an image-less Twitter `summary` card is used instead of `summary_large_image`.
 +
 +Hugo uses the page title and description for the card's title and description fields. The page summary is used if no description is given.
 +
- To add Twitter card metadata, include the following line between the `<head>` tags in your templates:
++The `.Site.Social.twitter` variable is exposed from the config as the value for `twitter:site`.
 +
++{{< code-toggle file="config" >}}
++[social]
++  twitter = "GoHugoIO"
++{{</ code-toggle >}}
 +
++NOTE: The `@` will be added for you
++
++```html
++<meta name="twitter:site" content="@GoHugoIO"/>
 +```
++
++### Use the Twitter Cards Template
++
++To add Twitter card metadata, include the following line immediately after the `<head>` element in your templates:
++
++```go-html-template
 +{{ template "_internal/twitter_cards.html" . }}
 +```
 +
 +## The Internal Templates
 +
++The code for these templates is located [here](https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates).
++
 +* `_internal/disqus.html`
 +* `_internal/google_analytics.html`
 +* `_internal/google_analytics_async.html`
 +* `_internal/opengraph.html`
 +* `_internal/pagination.html`
 +* `_internal/schema.html`
 +* `_internal/twitter_cards.html`
 +
 +[disqus]: https://disqus.com
 +[disqussignup]: https://disqus.com/profile/signup/
index ba66afa86a666180611b3d0c40cdb2e10cd22a5d,0000000000000000000000000000000000000000..01f448778e6b38ede6b942e1fb894cf6a516ad95
mode 100644,000000..100644
--- /dev/null
@@@ -1,686 -1,0 +1,671 @@@
- lastmod: 2017-02-25
 +---
 +title: Introduction to Hugo Templating
 +linktitle: Templating
 +description: Hugo uses Go's `html/template` and `text/template` libraries as the basis for the templating.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- ```
++lastmod: 2022-09-20
 +categories: [templates,fundamentals]
 +keywords: [go]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +draft: false
 +aliases: [/layouts/introduction/,/layout/introduction/, /templates/go-templates/]
 +toc: true
 +---
 +
 +{{% note %}}
 +The following is only a primer on Go Templates. For an in-depth look into Go Templates, check the official [Go docs](https://golang.org/pkg/text/template/).
 +{{% /note %}}
 +
 +Go Templates provide an extremely simple template language that adheres to the belief that only the most basic of logic belongs in the template or view layer.
 +
 +## Basic Syntax
 +
 +Go Templates are HTML files with the addition of [variables][variables] and [functions][functions]. Go Template variables and functions are accessible within `{{ }}`.
 +
 +### Access a Predefined Variable
 +
 +A _predefined variable_ could be a variable already existing in the
 +current scope (like the `.Title` example in the [Variables]({{< relref
 +"#variables" >}}) section below) or a custom variable (like the
 +`$address` example in that same section).
 +
 +
 +```go-html-template
 +{{ .Title }}
 +{{ $address }}
 +```
 +
 +Parameters for functions are separated using spaces. The general syntax is:
 +
- {{ if or 
-   (isset .Params "alt") 
++```go-html-template
 +{{ FUNCTION ARG1 ARG2 .. }}
 +```
 +
 +The following example calls the `add` function with inputs of `1` and `2`:
 +
 +```go-html-template
 +{{ add 1 2 }}
 +```
 +
 +#### Methods and Fields are Accessed via dot Notation
 +
 +Accessing the Page Parameter `bar` defined in a piece of content's [front matter][].
 +
 +```go-html-template
 +{{ .Params.bar }}
 +```
 +
 +#### Parentheses Can be Used to Group Items Together
 +
 +```go-html-template
 +{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
 +```
 +
 +#### A Single Statement Can be Split over Multiple Lines
 +
 +```go-html-template
- Note that both examples make use of Go Template's [math]][] functions.
++{{ if or
++  (isset .Params "alt")
 +  (isset .Params "caption")
 +}}
 +```
 +
 +#### Raw String Literals Can Include Newlines
 +
 +```go-html-template
 +{{ $msg := `Line one.
 +Line two.` }}
 +```
 +
 +## Variables {#variables}
 +
 +Each Go Template gets a data object. In Hugo, each template is passed
 +a `Page`.  In the below example, `.Title` is one of the elements
 +accessible in that [`Page` variable][pagevars].
 +
 +With the `Page` being the default scope of a template, the `Title`
 +element in current scope (`.` -- "the **dot**") is accessible simply
 +by the dot-prefix (`.Title`):
 +
 +```go-html-template
 +<title>{{ .Title }}</title>
 +```
 +
 +Values can also be stored in custom variables and referenced later:
 +
 +{{% note %}}
 +The custom variables need to be prefixed with `$`.
 +{{% /note %}}
 +
 +```go-html-template
 +{{ $address := "123 Main St." }}
 +{{ $address }}
 +```
++
 +Variables can be re-defined using the `=` operator. The example below
 +prints "Var is Hugo Home" on the home page, and "Var is Hugo Page" on
 +all other pages:
 +
 +```go-html-template
 +{{ $var := "Hugo Page" }}
 +{{ if .IsHome }}
 +    {{ $var = "Hugo Home" }}
 +{{ end }}
 +Var is {{ $var }}
 +```
 +
 +## Functions
 +
 +Go Templates only ship with a few basic functions but also provide a mechanism for applications to extend the original set.
 +
 +[Hugo template functions][functions] provide additional functionality specific to building websites. Functions are called by using their name followed by the required parameters separated by spaces. Template functions cannot be added without recompiling Hugo.
 +
 +### Example 1: Adding Numbers
 +
 +```go-html-template
 +{{ add 1 2 }}
 +<!-- prints 3 -->
 +```
 +
 +### Example 2: Comparing Numbers
 +
 +```go-html-template
 +{{ lt 1 2 }}
 +<!-- prints true (i.e., since 1 is less than 2) -->
 +```
 +
- The [`partial`][partials] function is used to include *partial* templates using
++Note that both examples make use of Go Template's [math][math] functions.
 +
 +{{% note "Additional Boolean Operators" %}}
 +There are more boolean operators than those listed in the Hugo docs in the [Go Template documentation](https://golang.org/pkg/text/template/#hdr-Functions).
 +{{% /note %}}
 +
 +## Includes
 +
 +When including another template, you will need to pass it the data that it would
 +need to access.
 +
 +{{% note %}}
 +To pass along the current context, please remember to include a trailing **dot**.
 +{{% /note %}}
 +
 +The templates location will always be starting at the `layouts/` directory
 +within Hugo.
 +
 +### Partial
 +
- The `template` function was used to include *partial* templates
++The [`partial`][partials] function is used to include _partial_ templates using
 +the syntax `{{ partial "<PATH>/<PARTIAL>.<EXTENSION>" . }}`.
 +
 +Example of including a `layouts/partials/header.html` partial:
 +
 +```go-html-template
 +{{ partial "header.html" . }}
 +```
 +
 +### Template
 +
- [*internal* templates][internal templates]. The syntax is `{{ template
++The `template` function was used to include _partial_ templates
 +in much older Hugo versions. Now it's useful only for calling
- #### Example 5: Conditional on empty _map_, _array_, or _slice_.
++[_internal_ templates][internal templates]. The syntax is `{{ template
 +"_internal/<TEMPLATE>.<EXTENSION>" . }}`.
 +
 +{{% note %}}
 +The available **internal** templates can be found
 +[here](https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates).
 +{{% /note %}}
 +
 +Example of including the internal `opengraph.html` template:
 +
 +```go-html-template
 +{{ template "_internal/opengraph.html" . }}
 +```
 +
 +## Logic
 +
 +Go Templates provide the most basic iteration and conditional logic.
 +
 +### Iteration
 +
 +The Go Templates make heavy use of `range` to iterate over a _map_,
 +_array_, or _slice_. The following are different examples of how to
 +use `range`.
 +
 +#### Example 1: Using Context (`.`)
 +
 +```go-html-template
 +{{ range $array }}
 +    {{ . }} <!-- The . represents an element in $array -->
 +{{ end }}
 +```
 +
 +#### Example 2: Declaring a variable name for an array element's value
 +
 +```go-html-template
 +{{ range $elem_val := $array }}
 +    {{ $elem_val }}
 +{{ end }}
 +```
 +
 +#### Example 3: Declaring variable names for an array element's index _and_ value
 +
 +For an array or slice, the first declared variable will map to each
 +element's index.
 +
 +```go-html-template
 +{{ range $elem_index, $elem_val := $array }}
 +   {{ $elem_index }} -- {{ $elem_val }}
 +{{ end }}
 +```
 +
 +#### Example 4: Declaring variable names for a map element's key _and_ value
 +
 +For a map, the first declared variable will map to each map element's
 +key.
 +
 +```go-html-template
 +{{ range $elem_key, $elem_val := $map }}
 +   {{ $elem_key }} -- {{ $elem_val }}
 +{{ end }}
 +```
 +
- `if`. Here, the `.` does not get rebinded.
++#### Example 5: Conditional on empty _map_, _array_, or _slice_
 +
 +If the _map_, _array_, or _slice_ passed into the range is zero-length then the else statement is evaluated.
 +
 +```go-html-template
 +{{ range $array }}
 +    {{ . }}
 +{{else}}
 +    <!-- This is only evaluated if $array is empty -->
 +{{ end }}
 +```
 +
 +### Conditionals
 +
 +`if`, `else`, `with`, `or`, `and` and `not` provide the framework for handling conditional logic in Go Templates. Like `range`, `if` and `with` statements are closed with an `{{ end }}`.
 +
 +Go Templates treat the following values as **false**:
 +
 +- `false` (boolean)
 +- 0 (integer)
 +- any zero-length array, slice, map, or string
 +
 +#### Example 1: `with`
 +
 +It is common to write "if something exists, do this" kind of
 +statements using `with`.
 +
 +{{% note %}}
 +`with` rebinds the context `.` within its scope (just like in `range`).
 +{{% /note %}}
 +
 +It skips the block if the variable is absent, or if it evaluates to
 +"false" as explained above.
 +
 +```go-html-template
 +{{ with .Params.title }}
 +    <h4>{{ . }}</h4>
 +{{ end }}
 +```
 +
 +#### Example 2: `with` .. `else`
 +
 +Below snippet uses the "description" front-matter parameter's value if
 +set, else uses the default `.Summary` [Page variable][pagevars]:
 +
 +
 +```go-html-template
 +{{ with .Param "description" }}
 +    {{ . }}
 +{{ else }}
 +    {{ .Summary }}
 +{{ end }}
 +```
 +
 +See the [`.Param` function][param].
 +
 +#### Example 3: `if`
 +
 +An alternative (and a more verbose) way of writing `with` is using
- ### Example 4: Internet Explorer Conditional Comments {#ie-conditional-comments}
- By default, Go Templates remove HTML comments from output. This has the unfortunate side effect of removing Internet Explorer conditional comments. As a workaround, use something like this:
- ```go-html-template
- {{ "<!--[if lt IE 9]>" | safeHTML }}
-   <script src="html5shiv.js"></script>
- {{ "<![endif]-->" | safeHTML }}
- ```
- Alternatively, you can use the backtick (`` ` ``) to quote the IE conditional comments, avoiding the tedious task of escaping every double quotes (`"`) inside, as demonstrated in the [examples](https://golang.org/pkg/text/template/#hdr-Examples) in the Go text/template documentation:
- ```go-html-template
- {{ `<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->` | safeHTML }}
- ```
++`if`. Here, the `.` does not get rebound.
 +
 +Below example is "Example 1" rewritten using `if`:
 +
 +```go-html-template
 +{{ if isset .Params "title" }}
 +    <h4>{{ index .Params "title" }}</h4>
 +{{ end }}
 +```
 +
 +#### Example 4: `if` .. `else`
 +
 +Below example is "Example 2" rewritten using `if` .. `else`, and using
 +[`isset` function][isset] + `.Params` variable (different from the
 +[`.Param` **function**][param]) instead:
 +
 +```go-html-template
 +{{ if (isset .Params "description") }}
 +    {{ index .Params "description" }}
 +{{ else }}
 +    {{ .Summary }}
 +{{ end }}
 +```
 +
 +#### Example 5: `if` .. `else if` .. `else`
 +
 +Unlike `with`, `if` can contain `else if` clauses too.
 +
 +```go-html-template
 +{{ if (isset .Params "description") }}
 +    {{ index .Params "description" }}
 +{{ else if (isset .Params "summary") }}
 +    {{ index .Params "summary" }}
 +{{ else }}
 +    {{ .Summary }}
 +{{ end }}
 +```
 +
 +#### Example 6: `and` & `or`
 +
 +```go-html-template
 +{{ if (and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")) }}
 +```
 +
 +## Pipes
 +
 +One of the most powerful components of Go Templates is the ability to stack actions one after another. This is done by using pipes. Borrowed from Unix pipes, the concept is simple: each pipeline's output becomes the input of the following pipe.
 +
 +Because of the very simple syntax of Go Templates, the pipe is essential to being able to chain together function calls. One limitation of the pipes is that they can only work with a single value and that value becomes the last parameter of the next pipeline.
 +
 +A few simple examples should help convey how to use the pipe.
 +
 +### Example 1: `shuffle`
 +
 +The following two examples are functionally the same:
 +
 +```go-html-template
 +{{ shuffle (seq 1 5) }}
 +```
 +
 +
 +```go-html-template
 +{{ (seq 1 5) | shuffle }}
 +```
 +
 +### Example 2: `index`
 +
 +The following accesses the page parameter called "disqus_url" and escapes the HTML. This example also uses the [`index` function](/functions/index-function/), which is built into Go Templates:
 +
 +```go-html-template
 +{{ index .Params "disqus_url" | html }}
 +```
 +
 +### Example 3: `or` with `isset`
 +
 +```go-html-template
 +{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr") }}
 +Stuff Here
 +{{ end }}
 +```
 +
 +Could be rewritten as
 +
 +```go-html-template
 +{{ if isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" }}
 +Stuff Here
 +{{ end }}
 +```
 +
- - Inside of an iteration, however, it will have the value of the
 +## Context (aka "the dot") {#the-dot}
 +
 +The most easily overlooked concept to understand about Go Templates is
 +that `{{ . }}` always refers to the **current context**.
 +
 +- In the top level of your template, this will be the data set made
 +  available to it.
- Notice how once we have entered the loop (i.e. `range`), the value of `{{ . }}` has changed. We have defined a variable outside of the loop (`{{$title}}`) that we've assigned a value so that we have access to the value from within the loop as well.
++- Inside an iteration, however, it will have the value of the
 +  current item in the loop; i.e., `{{ . }}` will no longer refer to
 +  the data available to the entire page.
 +
 +If you need to access page-level data (e.g., page params set in front
 +matter) from within the loop, you will likely want to do one of the
 +following:
 +
 +### 1. Define a Variable Independent of Context
 +
 +The following shows how to define a variable independent of the context.
 +
 +{{< code file="tags-range-with-page-variable.html" >}}
 +{{ $title := .Site.Title }}
 +<ul>
 +{{ range .Params.tags }}
 +    <li>
 +        <a href="/tags/{{ . | urlize }}">{{ . }}</a>
 +        - {{ $title }}
 +    </li>
 +{{ end }}
 +</ul>
 +{{< /code >}}
 +
 +{{% note %}}
- If you need to produce HTML comments from your templates, take a look at the [Internet Explorer conditional comments](#ie-conditional-comments) example. If you need variables to construct such HTML comments, just pipe `printf` to `safeHTML`. For example:
++Notice how once we have entered the loop (i.e. `range`), the value of `{{ . }}` has changed. We have defined a variable outside the loop (`{{$title}}`) that we've assigned a value so that we have access to the value from within the loop as well.
 +{{% /note %}}
 +
 +### 2. Use `$.` to Access the Global Context
 +
 +`$` has special significance in your templates. `$` is set to the starting value of `.` ("the dot") by default. This is a [documented feature of Go text/template][dotdoc]. This means you have access to the global context from anywhere. Here is an equivalent example of the preceding code block but now using `$` to grab `.Site.Title` from the global context:
 +
 +{{< code file="range-through-tags-w-global.html" >}}
 +<ul>
 +{{ range .Params.tags }}
 +  <li>
 +    <a href="/tags/{{ . | urlize }}">{{ . }}</a>
 +            - {{ $.Site.Title }}
 +  </li>
 +{{ end }}
 +</ul>
 +{{< /code >}}
 +
 +{{% warning "Don't Redefine the Dot" %}}
 +The built-in magic of `$` would cease to work if someone were to mischievously redefine the special character; e.g. `{{ $ := .Site }}`. *Don't do it.* You may, of course, recover from this mischief by using `{{ $ := . }}` in a global context to reset `$` to its default value.
 +{{% /warning %}}
 +
 +## Whitespace
 +
 +Go 1.6 includes the ability to trim the whitespace from either side of a Go tag by including a hyphen (`-`) and space immediately beside the corresponding `{{` or `}}` delimiter.
 +
 +For instance, the following Go Template will include the newlines and horizontal tab in its HTML output:
 +
 +```go-html-template
 +<div>
 +  {{ .Title }}
 +</div>
 +```
 +
 +Which will output:
 +
 +```html
 +<div>
 +  Hello, World!
 +</div>
 +```
 +
 +Leveraging the `-` in the following example will remove the extra white space surrounding the `.Title` variable and remove the newline:
 +
 +```go-html-template
 +<div>
 +  {{- .Title -}}
 +</div>
 +```
 +
 +Which then outputs:
 +
 +```html
 +<div>Hello, World!</div>
 +```
 +
 +Go considers the following characters _whitespace_:
 +
 +* <kbd>space</kbd>
 +* horizontal <kbd>tab</kbd>
 +* carriage <kbd>return</kbd>
 +* newline
 +
 +## Comments
 +
 +In order to keep your templates organized and share information throughout your team, you may want to add comments to your templates. There are two ways to do that with Hugo.
 +
 +### Go Templates comments
 +
 +Go Templates support `{{/*` and `*/}}` to open and close a comment block. Nothing within that block will be rendered.
 +
 +For example:
 +
 +```go-html-template
 +Bonsoir, {{/* {{ add 0 + 2 }} */}}Eliott.
 +```
 +
 +Will render `Bonsoir, Eliott.`, and not care about the syntax error (`add 0 + 2`) in the comment block.
 +
 +### HTML comments
 +
- ```
++If you need to produce HTML comments from your templates, take a look at the [Internet Explorer conditional comments]({{< relref "introduction.md#ie-conditional-comments" >}}) example. If you need variables to construct such HTML comments, just pipe `printf` to `safeHTML`. For example:
 +
 +```go-html-template
 +{{ printf "<!-- Our website is named: %s -->" .Site.Title | safeHTML }}
 +```
 +
 +#### HTML comments containing Go Templates
 +
 +HTML comments are by default stripped, but their content is still evaluated. That means that although the HTML comment will never render any content to the final HTML pages, code contained within the comment may fail the build process.
 +
 +{{% note %}}
 +Do **not** try to comment out Go Template code using HTML comments.
 +{{% /note %}}
 +
 +```go-html-template
 +<!-- {{ $author := "Emma Goldman" }} was a great woman. -->
 +{{ $author }}
 +```
 +
 +The templating engine will strip the content within the HTML comment, but will first evaluate any Go Template code if present within. So the above example will render `Emma Goldman`, as the `$author` variable got evaluated in the HTML comment. But the build would have failed if that code in the HTML comment had an error.
 +
 +## Hugo Parameters
 +
 +Hugo provides the option of passing values to your template layer through your [site configuration][config] (i.e. for site-wide values) or through the metadata of each specific piece of content (i.e. the [front matter][]). You can define any values of any type and use them however you want in your templates, as long as the values are supported by the [front matter format]({{< ref "front-matter.md#front-matter-formats" >}}).
 +
 +## Use Content (`Page`) Parameters
 +
 +You can provide variables to be used by templates in individual content's [front matter][].
 +
 +An example of this is used in the Hugo docs. Most of the pages benefit from having the table of contents provided, but sometimes the table of contents doesn't make a lot of sense. We've defined a `notoc` variable in our front matter that will prevent a table of contents from rendering when specifically set to `true`.
 +
 +Here is the example front matter (YAML):
 +
++```yml
 +---
 +title: Roadmap
 +lastmod: 2017-03-05
 +date: 2013-11-18
 +notoc: true
 +---
 +```
 +
 +Here is an example of corresponding code that could be used inside a `toc.html` [partial template][partials]:
 +
 +{{< code file="layouts/partials/toc.html" download="toc.html" >}}
 +{{ if not .Params.notoc }}
 +<aside>
 +  <header>
 +    <a href="#{{.Title | urlize}}">
 +    <h3>{{.Title}}</h3>
 +    </a>
 +  </header>
 +  {{.TableOfContents}}
 +</aside>
 +<a href="#" id="toc-toggle"></a>
 +{{ end }}
 +{{< /code >}}
 +
 +We want the *default* behavior to be for pages to include a TOC unless otherwise specified. This template checks to make sure that the `notoc:` field in this page's front matter is not `true`.
 +
 +## Use Site Configuration Parameters
 +
 +You can arbitrarily define as many site-level parameters as you want in your [site's configuration file][config]. These parameters are globally available in your templates.
 +
 +For instance, you might declare the following:
 +
 +{{< code-toggle file="config" >}}
 +params:
 +  copyrighthtml: "Copyright &#xA9; 2017 John Doe. All Rights Reserved."
 +  twitteruser: "spf13"
 +  sidebarrecentlimit: 5
 +{{< /code >}}
 +
 +Within a footer layout, you might then declare a `<footer>` that is only rendered if the `copyrighthtml` parameter is provided. If it *is* provided, you will then need to declare the string is safe to use via the [`safeHTML` function][safehtml] so that the HTML entity is not escaped again. This would let you easily update just your top-level config file each January 1st, instead of hunting through your templates.
 +
 +```go-html-template
 +{{ if .Site.Params.copyrighthtml }}
 +    <footer>
 +        <div class="text-center">{{.Site.Params.CopyrightHTML | safeHTML}}</div>
 +    </footer>
 +{{ end }}
 +```
 +
 +An alternative way of writing the "`if`" and then referencing the same value is to use [`with`][with] instead. `with` rebinds the context (`.`) within its scope and skips the block if the variable is absent:
 +
 +{{< code file="layouts/partials/twitter.html" >}}
 +{{ with .Site.Params.twitteruser }}
 +    <div>
 +        <a href="https://twitter.com/{{.}}" rel="author">
 +        <img src="/images/twitter.png" width="48" height="48" title="Twitter: {{.}}" alt="Twitter"></a>
 +    </div>
 +{{ end }}
 +{{< /code >}}
 +
 +Finally, you can pull "magic constants" out of your layouts as well. The following uses the [`first`][first] function, as well as the [`.RelPermalink`][relpermalink] page variable and the [`.Site.Pages`][sitevars] site variable.
 +
 +```go-html-template
 +<nav>
 +  <h1>Recent Posts</h1>
 +  <ul>
 +  {{- range first .Site.Params.SidebarRecentLimit .Site.Pages -}}
 +      <li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
 +  {{- end -}}
 +  </ul>
 +</nav>
 +```
 +
 +## Example: Show Future Events
 +
 +Given the following content structure and [front matter]:
 +
 +```text
 +content/
 +└── events/
 +    ├── event-1.md
 +    ├── event-2.md
 +    └── event-3.md
 +```
 +
 +{{< code-toggle file="content/events/event-1.md" copy="false" >}}
 +title = 'Event 1'
 +date = 2021-12-06T10:37:16-08:00
 +draft = false
 +start_date = 2021-12-05T09:00:00-08:00
 +end_date = 2021-12-05T11:00:00-08:00
 +{{< /code-toggle >}}
 +
 +This [partial template][partials] renders future events:
 +
 +{{< code file="layouts/partials/future-events.html" >}}
 +<h2>Future Events</h2>
 +<ul>
 +  {{ range where site.RegularPages "Type" "events" }}
 +    {{ if gt (.Params.start_date | time.AsTime) now }}
 +      {{ $startDate := .Params.start_date | time.Format ":date_medium" }}
 +      <li>
 +        <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> - {{ $startDate }}
 +      </li>
 +    {{ end }}
 +  {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +If you restrict front matter to the TOML format, and omit quotation marks surrounding date fields, you can perform date comparisons without casting.
 +
 +{{< code file="layouts/partials/future-events.html" >}}
 +<h2>Future Events</h2>
 +<ul>
 +  {{ range where (where site.RegularPages "Type" "events") "Params.start_date" "gt" now }}
 +    {{ $startDate := .Params.start_date | time.Format ":date_medium" }}
 +    <li>
 +      <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> - {{ $startDate }}
 +    </li>
 +  {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +[config]: {{< relref "getting-started/configuration" >}}
 +[dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
 +[first]: {{< relref "functions/first" >}}
 +[front matter]: {{< relref "content-management/front-matter" >}}
 +[functions]: {{< relref "functions" >}}
 +[internal templates]: {{< relref "templates/internal" >}}
 +[isset]: {{< relref "functions/isset" >}}
 +[math]: {{< relref "functions/math" >}}
 +[pagevars]: {{< relref "variables/page" >}}
 +[param]: {{< relref "functions/param" >}}
 +[partials]: {{< relref "templates/partials" >}}
 +[relpermalink]: {{< relref "variables/page#page-variables" >}}
 +[safehtml]: {{< relref "functions/safehtml" >}}
 +[sitevars]: {{< relref "variables/site" >}}
 +[variables]: {{< relref "variables" >}}
 +[with]: {{< relref "functions/with" >}}
index 97dc0f40d1fd2470b6466787f3d3836da23c073c,0000000000000000000000000000000000000000..18f03c6f111bedfcb2901f29b368b484ee0eca56
mode 100644,000000..100644
--- /dev/null
@@@ -1,600 -1,0 +1,600 @@@
- ```
 +---
 +title: Lists of Content in Hugo
 +linktitle: List Templates
 +description: Lists have a specific meaning and usage in Hugo when it comes to rendering your site homepage, section page, taxonomy list, or taxonomy terms list.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [lists,sections,rss,taxonomies,terms]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 22
 +weight: 22
 +sections_weight: 22
 +draft: false
 +aliases: [/templates/list/,/layout/indexes/]
 +toc: true
 +---
 +
 +## What is a List Page Template?
 +
 +{{< youtube 8b2YTSMdMps >}}
 +
 +A list page template is a template used to render multiple pieces of content in a single HTML page. The exception to this rule is the homepage, which is still a list but has its own [dedicated template][homepage].
 +
 +Hugo uses the term *list* in its truest sense; i.e. a sequential arrangement of material, especially in alphabetical or numerical order. Hugo uses list templates on any output HTML page where content is traditionally listed:
 +
 +* [Taxonomy terms pages][taxterms]
 +* [Taxonomy list pages][taxlists]
 +* [Section list pages][sectiontemps]
 +* [RSS][rss]
 +
 +For template lookup order, see [Template Lookup](/templates/lookup-order/).
 +
 +The idea of a list page comes from the [hierarchical mental model of the web][mentalmodel] and is best demonstrated visually:
 +
 +[![Image demonstrating a hierarchical website sitemap.](/images/site-hierarchy.svg)](/images/site-hierarchy.svg)
 +
 +## List Defaults
 +
 +### Default Templates
 +
 +Since section lists and taxonomy lists (N.B., *not* [taxonomy terms lists][taxterms]) are both *lists* with regards to their templates, both have the same terminating default of `_default/list.html` or `themes/<THEME>/layouts/_default/list.html` in their lookup order. In addition, both [section lists][sectiontemps] and [taxonomy lists][taxlists] have their own default list templates in `_default`.
 +
 +See [Template Lookup Order](/templates/lookup-order/) for the complete reference.
 +
 +## Add Content and Front Matter to List Pages
 +
 +Since v0.18, [everything in Hugo is a `Page`][bepsays]. This means list pages and the homepage can have associated content files (i.e. `_index.md`) that contain page metadata (i.e., front matter) and content.
 +
 +This new model allows you to include list-specific front matter via `.Params` and also means that list templates (e.g., `layouts/_default/list.html`) have access to all [page variables][pagevars].
 +
 +{{% note %}}
 +It is important to note that all `_index.md` content files will render according to a *list* template and not according to a [single page template](/templates/single-page-templates/).
 +{{% /note %}}
 +
 +### Example Project Directory
 +
 +The following is an example of a typical Hugo project directory's content:
 +
- ```
++```txt
 +.
 +...
 +├── content
 +|   ├── posts
 +|   |   ├── _index.md
 +|   |   ├── post-01.md
 +|   |   └── post-02.md
 +|   └── quote
 +|   |   ├── quote-01.md
 +|   |   └── quote-02.md
 +...
 +```
 +
 +Using the above example, let's assume you have the following in `content/posts/_index.md`:
 +
 +{{< code file="content/posts/_index.md" >}}
 +---
 +title: My Go Journey
 +date: 2017-03-23
 +publishdate: 2017-03-24
 +---
 +
 +I decided to start learning Go in March 2017.
 +
 +Follow my journey through this new blog.
 +{{< /code >}}
 +
 +You can now access this `_index.md`'s' content in your list template:
 +
 +{{< code file="layouts/_default/list.html" download="list.html" >}}
 +{{ define "main" }}
 +<main>
 +    <article>
 +        <header>
 +            <h1>{{.Title}}</h1>
 +        </header>
 +        <!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
 +        {{.Content}}
 +    </article>
 +    <ul>
 +    <!-- Ranges through content/posts/*.md -->
 +    {{ range .Pages }}
 +        <li>
 +            <a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
 +        </li>
 +    {{ end }}
 +    </ul>
 +</main>
 +{{ end }}
 +{{< /code >}}
 +
 +This above will output the following HTML:
 +
 +{{< code file="example.com/posts/index.html" copy="false" >}}
 +<!--top of your baseof code-->
 +<main>
 +    <article>
 +        <header>
 +            <h1>My Go Journey</h1>
 +        </header>
 +        <p>I decided to start learning Go in March 2017.</p>
 +        <p>Follow my journey through this new blog.</p>
 +    </article>
 +    <ul>
 +        <li><a href="/posts/post-01/">Post 1</a></li>
 +        <li><a href="/posts/post-02/">Post 2</a></li>
 +    </ul>
 +</main>
 +<!--bottom of your baseof-->
 +{{< /code >}}
 +
 +### List Pages Without `_index.md`
 +
 +You do *not* have to create an `_index.md` file for every list page (i.e. section, taxonomy, taxonomy terms, etc) or the homepage. If Hugo does not find an `_index.md` within the respective content section when rendering a list template, the page will be created but with no `{{.Content}}` and only the default values for `.Title` etc.
 +
 +Using this same `layouts/_default/list.html` template and applying it to the `quotes` section above will render the following output. Note that `quotes` does not have an `_index.md` file to pull from:
 +
 +{{< code file="example.com/quote/index.html" copy="false" >}}
 +<!--baseof-->
 +<main>
 +    <article>
 +        <header>
 +        <!-- Hugo assumes that .Title is the name of the section since there is no _index.md content file from which to pull a "title:" field -->
 +            <h1>Quotes</h1>
 +        </header>
 +    </article>
 +    <ul>
 +        <li><a href="https://example.com/quote/quotes-01/">Quote 1</a></li>
 +        <li><a href="https://example.com/quote/quotes-02/">Quote 2</a></li>
 +    </ul>
 +</main>
 +<!--baseof-->
 +{{< /code >}}
 +
 +{{% note %}}
 +The default behavior of Hugo is to pluralize list titles; hence the inflection of the `quote` section to "Quotes" when called with the `.Title` [page variable](/variables/page/). You can change this via the `pluralizeListTitles` directive in your [site configuration](/getting-started/configuration/).
 +{{% /note %}}
 +
 +## Example List Templates
 +
 +### Section Template
 +
 +This list template has been modified slightly from a template originally used in [spf13.com](https://spf13.com/). It makes use of [partial templates][partials] for the chrome of the rendered page rather than using a [base template][base]. The examples that follow also use the [content view templates][views] `li.html` or `summary.html`.
 +
 +{{< code file="layouts/section/posts.html" >}}
 +{{ partial "header.html" . }}
 +{{ partial "subheader.html" . }}
 +<main>
 +  <div>
 +   <h1>{{ .Title }}</h1>
 +        <ul>
 +        <!-- Renders the li.html content view for each content/posts/*.md -->
 +            {{ range .Pages }}
 +                {{ .Render "li"}}
 +            {{ end }}
 +        </ul>
 +  </div>
 +</main>
 +{{ partial "footer.html" . }}
 +{{< /code >}}
 +
 +### Taxonomy Template
 +
 +{{< code file="layouts/_default/taxonomy.html" download="taxonomy.html" >}}
 +{{ define "main" }}
 +<main>
 +  <div>
 +   <h1>{{ .Title }}</h1>
 +   <!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
 +    {{ range .Pages }}
 +        {{ .Render "summary"}}
 +    {{ end }}
 +  </div>
 +</main>
 +{{ end }}
 +{{< /code >}}
 +
 +## Order Content
 +
 +Hugo lists render the content based on metadata you provide in [front matter][]. In addition to sane defaults, Hugo also ships with multiple methods to make quick work of ordering content inside list templates:
 +
 +### Default: Weight > Date > LinkTitle > FilePath
 +
 +{{< code file="layouts/partials/default-order.html" >}}
 +<ul>
 +    {{ range .Pages }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Weight
 +
 +Lower weight gets higher precedence. So content with lower weight will come first.
 +
 +{{< code file="layouts/partials/by-weight.html" >}}
 +<ul>
 +    {{ range .Pages.ByWeight }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Date
 +
 +{{< code file="layouts/partials/by-date.html" >}}
 +<ul>
 +    <!-- orders content according to the "date" field in front matter -->
 +    {{ range .Pages.ByDate }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Publish Date
 +
 +{{< code file="layouts/partials/by-publish-date.html" >}}
 +<ul>
 +    <!-- orders content according to the "publishdate" field in front matter -->
 +    {{ range .Pages.ByPublishDate }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Expiration Date
 +
 +{{< code file="layouts/partials/by-expiry-date.html" >}}
 +<ul>
 +    {{ range .Pages.ByExpiryDate }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Last Modified Date
 +
 +{{< code file="layouts/partials/by-last-mod.html" >}}
 +<ul>
 +    <!-- orders content according to the "lastmod" field in front matter -->
 +    {{ range .Pages.ByLastmod }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Length
 +
 +{{< code file="layouts/partials/by-length.html" >}}
 +<ul>
 +    <!-- orders content according to content length in ascending order (i.e., the shortest content will be listed first) -->
 +    {{ range .Pages.ByLength }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Title
 +
 +{{< code file="layouts/partials/by-title.html" >}}
 +<ul>
 +    <!-- ranges through content in ascending order according to the "title" field set in front matter -->
 +    {{ range .Pages.ByTitle }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Link Title
 +
 +{{< code file="layouts/partials/by-link-title.html" >}}
 +<ul>
 +    <!-- ranges through content in ascending order according to the "linktitle" field in front matter. If a "linktitle" field is not set, the range will start with content that only has a "title" field and use that value for .LinkTitle -->
 +    {{ range .Pages.ByLinkTitle }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +### By Parameter
 +
 +Order based on the specified front matter parameter. Content that does not have the specified front matter field  will use the site's `.Site.Params` default. If the parameter is not found at all in some entries, those entries will appear together at the end of the ordering.
 +
 +{{< code file="layouts/partials/by-rating.html" >}}
 +<!-- Ranges through content according to the "rating" field set in front matter -->
 +{{ range (.Pages.ByParam "rating") }}
 +  <!-- ... -->
 +{{ end }}
 +{{< /code >}}
 +
 +If the targeted front matter field is nested beneath another field, you can access the field using dot notation.
 +
 +{{< code file="layouts/partials/by-nested-param.html" >}}
 +{{ range (.Pages.ByParam "author.last_name") }}
 +  <!-- ... -->
 +{{ end }}
 +{{< /code >}}
 +
 +### Reverse Order
 +
 +Reversing order can be applied to any of the above methods. The following uses `ByDate` as an example:
 +
 +{{< code file="layouts/partials/by-date-reverse.html" >}}
 +<ul>
 +    {{ range .Pages.ByDate.Reverse }}
 +        <li>
 +            <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
 +            <time>{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
 +        </li>
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +## Group Content
 +
 +Hugo provides some functions for grouping pages by Section, Type, Date, etc.
 +
 +### By Page Field
 +
 +{{< code file="layouts/partials/by-page-field.html" >}}
 +<!-- Groups content according to content section. The ".Key" in this instance will be the section's title. -->
 +{{ range .Pages.GroupBy "Section" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +In the above example, you may want `{{.Title}}` to point the `title` field you have added to your `_index.md` file instead. You can access this value using the [`.GetPage` function][getpage]:
 +
 +{{< code file="layouts/partials/by-page-field.html" >}}
 +<!-- Groups content according to content section.-->
 +{{ range .Pages.GroupBy "Section" }}
 +<!-- Checks for existence of _index.md for a section; if available, pulls from "title" in front matter -->
 +{{ with $.Site.GetPage "section" .Key }}
 +<h3>{{.Title}}</h3>
 +{{ else }}
 +<!-- If no _index.md is available, ".Key" defaults to the section title and filters to title casing -->
 +<h3>{{ .Key | title }}</h3>
 +{{ end }}
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +### By Date
 +
 +{{< code file="layouts/partials/by-page-date.html" >}}
 +<!-- Groups content by month according to the "date" field in front matter -->
 +{{ range .Pages.GroupByDate "2006-01" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +{{< new-in "0.97.0" >}} `GroupByDate` accepts the same time layouts as in [time.Format](/functions/dateformat/) and The `.Key` in the result will be localized for the current language.
 +
 +### By Publish Date
 +
 +{{< code file="layouts/partials/by-page-publish-date.html" >}}
 +<!-- Groups content by month according to the "publishDate" field in front matter -->
 +{{ range .Pages.GroupByPublishDate "2006-01" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .PublishDate.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +{{< new-in "0.97.0" >}} `GroupByDate` accepts the same time layouts as in [time.Format](/functions/dateformat/) and The `.Key` in the result will be localized for the current language.
 +
 +### By Lastmod
 +
 +{{< code file="layouts/partials/by-page-lastmod.html" >}}
 +<!-- Groups content by month according to the "lastMod" field in front matter -->
 +{{ range .Pages.GroupByLastmod "2006-01" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Lastmod.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +{{< new-in "0.97.0" >}} `GroupByDate` accepts the same time layouts as in [time.Format](/functions/dateformat/) and The `.Key` in the result will be localized for the current language.
 +
 +### By Expiry Date
 +
 +{{< code file="layouts/partials/by-page-expiry-date.html" >}}
 +<!-- Groups content by month according to the "expiryDate" field in front matter -->
 +{{ range .Pages.GroupByExpiryDate "2006-01" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .ExpiryDate.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +{{< new-in "0.97.0" >}} `GroupByDate` accepts the same time layouts as in [time.Format](/functions/dateformat/) and The `.Key` in the result will be localized for the current language.
 +
 +### By Page Parameter
 +
 +{{< code file="layouts/partials/by-page-param.html" >}}
 +<!-- Groups content according to the "param_key" field in front matter -->
 +{{ range .Pages.GroupByParam "param_key" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +### By Page Parameter in Date Format
 +
 +The following template takes grouping by `date` a step further and uses Go's layout string. See the [`Format` function][] for more examples of how to use Go's layout string to format dates in Hugo.
 +
 +{{< code file="layouts/partials/by-page-param-as-date.html" >}}
 +<!-- Groups content by month according to the "param_key" field in front matter -->
 +{{ range .Pages.GroupByParamDate "param_key" "2006-01" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +### Reverse Key Order
 +
 +Ordering of groups is performed by keys in alphanumeric order (A–Z, 1–100) and in reverse chronological order (i.e., with the newest first) for dates.
 +
 +While these are logical defaults, they are not always the desired order. There are two different syntaxes to change Hugo's default ordering for groups, both of which work the same way.
 +
 +#### 1. Adding the Reverse Method
 +
- ```
++```go-html-template
 +{{ range (.Pages.GroupBy "Section").Reverse }}
 +```
 +
- ```
++```go-html-template
 +{{ range (.Pages.GroupByDate "2006-01").Reverse }}
 +```
 +
 +#### 2. Providing the Alternate Direction
 +
- ```
++```go-html-template
 +{{ range .Pages.GroupByDate "2006-01" "asc" }}
 +```
 +
- Because Grouping returns a `{{.Key}}` and a slice of pages, all of the ordering methods listed above are available.
++```go-html-template
 +{{ range .Pages.GroupBy "Section" "desc" }}
 +```
 +
 +### Order Within Groups
 +
++Because Grouping returns a `{{.Key}}` and a slice of pages, all the ordering methods listed above are available.
 +
 +Here is the ordering for the example that follows:
 +
 +1. Content is grouped by month according to the `date` field in front matter.
 +2. Groups are listed in ascending order (i.e., the oldest groups first)
 +3. Pages within each respective group are ordered alphabetically according to the `title`.
 +
 +{{< code file="layouts/partials/by-group-by-page.html" >}}
 +{{ range .Pages.GroupByDate "2006-01" "asc" }}
 +<h3>{{ .Key }}</h3>
 +<ul>
 +    {{ range .Pages.ByTitle }}
 +    <li>
 +    <a href="{{ .Permalink }}">{{ .Title }}</a>
 +    <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +    </li>
 +    {{ end }}
 +</ul>
 +{{ end }}
 +{{< /code >}}
 +
 +## Filtering and Limiting Lists {#filtering-and-limiting-lists}
 +
 +Sometimes you only want to list a subset of the available content. A
 +common is to only display posts from [**main sections**][mainsections]
 +on the blog's homepage.
 +
 +See the documentation on [`where` function][wherefunction] and
 +[`first` function][firstfunction] for further details.
 +
 +[base]: /templates/base/
 +[bepsays]: https://bepsays.com/en/2016/12/19/hugo-018/
 +[directorystructure]: /getting-started/directory-structure/
 +[`Format` function]: /functions/format/
 +[front matter]: /content-management/front-matter/
 +[getpage]: /functions/getpage/
 +[homepage]: /templates/homepage/
 +[homepage]: /templates/homepage/
 +[mentalmodel]: https://webstyleguide.com/wsg3/3-information-architecture/3-site-structure.html
 +[pagevars]: /variables/page/
 +[partials]: /templates/partials/
 +[RSS 2.0]: https://cyber.harvard.edu/rss/rss.html "RSS 2.0 Specification"
 +[rss]: /templates/rss/
 +[sections]: /content-management/sections/
 +[sectiontemps]: /templates/section-templates/
 +[sitevars]: /variables/site/
 +[taxlists]: /templates/taxonomy-templates/#taxonomy-list-templates
 +[taxterms]: /templates/taxonomy-templates/#taxonomy-terms-templates
 +[taxvars]: /variables/taxonomy/
 +[views]: /templates/views/
 +[wherefunction]: /functions/where/
 +[firstfunction]: /functions/first/
 +[mainsections]: /functions/where/#mainsections
index e021c81123474496bf5d0dbe75abd2a4bcd24d96,0000000000000000000000000000000000000000..edb03839e32d88c5bdb5a5b400c0d75bd82259fa
mode 100644,000000..100644
--- /dev/null
@@@ -1,82 -1,0 +1,82 @@@
- : Is value of `type` if set in front matter, else it is the name of the root section (e.g. "blog"). It will always have a value, so if not set, the value is "page". 
 +---
 +title: Hugo's Lookup Order
 +linktitle: Template Lookup Order
 +description: Hugo searches for the layout to use for a given page in a well defined order, starting from the most specific.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-07-05
 +categories: [templates,fundamentals]
 +keywords: [templates]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 15
 +  quicklinks:
 +weight: 15
 +sections_weight: 15
 +draft: false
 +aliases: [/templates/lookup/]
 +toc: true
 +---
 +
 +## Hugo Layouts Lookup Rules
 +
 +Hugo takes the parameters listed below into consideration when choosing a layout for a given page. They are listed in a priority order. This should feel natural, but look at the table below for concrete examples of the different parameter variations.
 +
 +
 +Kind
 +: The page `Kind` (the home page is one). See the example tables below per kind. This also determines if it is a **single page** (i.e. a regular content page. We then look for a template in `_default/single.html` for HTML) or a **list page** (section listings, home page, taxonomy lists, taxonomy terms. We then look for a template in `_default/list.html` for HTML).
 +
 +Layout
 +: Can be set in page front matter.
 +
 +Output Format
 +: See [Custom Output Formats](/templates/output-formats). An output format has both a `name` (e.g. `rss`, `amp`, `html`) and a `suffix` (e.g. `xml`, `html`). We prefer matches with both (e.g. `index.amp.html`, but look for less specific templates.
 +
 +Note that if the output format's Media Type has more than one suffix defined, only the first is considered.
 +
 +Language
 +: We will consider a language code in the template name. If the site language is `fr`, `index.fr.amp.html` will win over `index.amp.html`, but `index.amp.html` will be chosen before `index.fr.html`.
 +
 +Type
++: Is value of `type` if set in front matter, else it is the name of the root section (e.g. "blog"). It will always have a value, so if not set, the value is "page".
 +
 +Section
 +: Is relevant for `section`, `taxonomy` and `term` types.
 +
 +{{% note %}}
 +**Tip:** The examples below look long and complex. That is the flexibility talking. Most Hugo sites contain just a handful of templates:
 +
 +```bash
 +├── _default
 +│   ├── baseof.html
 +│   ├── list.html
 +│   └── single.html
 +└── index.html
 +```
 +{{% /note %}}
 +
 +
 +## Hugo Layouts Lookup Rules With Theme
 +
 +In Hugo, layouts can live in either the project's or the themes' layout folders, and the most specific layout will be chosen. Hugo will interleave the lookups listed below, finding the most specific one either in the project or themes.
 +
 +## Examples: Layout Lookup for Regular Pages
 +
 +{{< datatable-filtered "output" "layouts" "Kind == page" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
 +
 +## Examples: Layout Lookup for Home Page
 +
 +{{< datatable-filtered "output" "layouts" "Kind == home" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
 +
 +## Examples: Layout Lookup for Section Pages
 +
 +{{< datatable-filtered "output" "layouts" "Kind == section" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
 +
 +## Examples: Layout Lookup for Taxonomy Pages
 +
 +{{< datatable-filtered "output" "layouts" "Kind == taxonomy" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
 +
 +## Examples: Layout Lookup for Term Pages
 +
 +{{< datatable-filtered "output" "layouts" "Kind == term" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
index dd7ab380fff8e9b90a956dc8704efd50abcc591f,0000000000000000000000000000000000000000..bdf89c2e5c5d8e87b06e809d90820f2f98d84a7b
mode 100644,000000..100644
--- /dev/null
@@@ -1,184 -1,0 +1,183 @@@
- structured. Instead, it provides all of the functions you will need to be
- able to build your menu however you want.
 +---
 +title: Menu Templates
 +linktitle: Menu Templates
 +description: Menus are a powerful but simple feature for content management but can be easily manipulated in your templates to meet your design needs.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [lists,sections,menus]
 +menu:
 +  docs:
 +    title: "how to use menus in templates"
 +    parent: "templates"
 +    weight: 130
 +weight: 130
 +sections_weight: 130
 +draft: false
 +aliases: [/templates/menus/]
 +toc: false
 +---
 +
 +Hugo makes no assumptions about how your rendered HTML will be
- ```
++structured. Instead, it provides all the functions you will need to
++build your menu however you want.
 +
 +The following is an example:
 +
 +{{< code file="layouts/partials/sidebar.html" download="sidebar.html" >}}
 +<!-- sidebar start -->
 +<aside>
 +    <ul>
 +        {{ $currentPage := . }}
 +        {{ range .Site.Menus.main }}
 +            {{ if .HasChildren }}
 +                <li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
 +                    <a href="#">
 +                        {{ .Pre }}
 +                        <span>{{ .Name }}</span>
 +                    </a>
 +                </li>
 +                <ul class="sub-menu">
 +                    {{ range .Children }}
 +                        <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
 +                            <a href="{{ .URL }}">{{ .Name }}</a>
 +                        </li>
 +                    {{ end }}
 +                </ul>
 +            {{ else }}
 +                <li>
 +                    <a href="{{ .URL }}">
 +                        {{ .Pre }}
 +                        <span>{{ .Name }}</span>
 +                    </a>
 +                </li>
 +            {{ end }}
 +        {{ end }}
 +        <li>
 +            <a href="#" target="_blank">Hardcoded Link 1</a>
 +        </li>
 +        <li>
 +            <a href="#" target="_blank">Hardcoded Link 2</a>
 +        </li>
 +    </ul>
 +</aside>
 +{{< /code >}}
 +
 +{{% note "`absLangURL` and `relLangURL`" %}}
 +Use the [`absLangURL`](/functions/abslangurl) or [`relLangURL`](/functions/rellangurl) functions if your theme makes use of the [multilingual feature](/content-management/multilingual/). In contrast to `absURL` and `relURL`, these two functions add the correct language prefix to the url.
 +{{% /note %}}
 +
 +## Section Menu for Lazy Bloggers
 +
 +To enable this menu, configure `sectionPagesMenu` in your site `config`:
 +
- The menu name can be anything, but take a note of what it is. 
++```yml
 +sectionPagesMenu = "main"
 +```
 +
- ```
++The menu name can be anything, but take a note of what it is.
 +
 +This will create a menu with all the sections as menu items and all the sections' pages as "shadow-members". Ensure that all first level directories that you would like to show up on this menu are [Branch Bundles](https://gohugo.io/content-management/sections/). Leaf Bundles do not form sections.
 +
 +The _shadow_ implies that the pages isn't represented by a menu-item themselves, but this enables you to create a top-level menu like this:
 +
++```go-html-template
 +<nav class="sidebar-nav">
 +    {{ $currentPage := . }}
 +    {{ range .Site.Menus.main }}
 +    <a class="sidebar-nav-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
 +    {{ end }}
 +</nav>
 +```
 +
 +In the above, the menu item is marked as active if on the current section's list page or on a page in that section.
 +
- ```
 +## Site Config menus
 +
 +The above is all that's needed. But if you want custom menu items, e.g. changing weight, name, or link title attribute, you can define them manually in the site config file:
 +
 +{{< code-toggle file="config" >}}
 +[[menu.main]]
 +    name = "This is the blog section"
 +    title = "blog section"
 +    weight = -110
 +    identifier = "blog"
 +    url = "/blog/"
 +{{</ code-toggle >}}
 +
 +{{% note %}}
 +The `identifier` *must* match the section name.
 +{{% /note %}}
 +
 +## Menu Entries from the Page's front matter
 +
 +It's also possible to create menu entries from the page (i.e. the `.md`-file).
 +
 +Here is a `yaml` example:
 +
- ```
++```yml
 +---
 +title: Menu Templates
 +linktitle: Menu Templates
 +menu:
 +  docs:
 +    title: "how to use menus in templates"
 +    parent: "templates"
 +    weight: 130
 +---
 +...
 +```
 +
 +{{% note %}}
 +You can define more than one menu. It also doesn't have to be a complex value,
 +`menu` can also be a string, an array of strings, or an array of complex values
 +like in the example above.
 +{{% /note %}}
 +
 +### Using .Page in Menus
 +
 +If you use the front matter method of defining menu entries, you'll get access to the `.Page` variable.
 +This allows to use every variable that's reachable from the [page variable](/variables/page/).
 +
 +This variable is only set when the menu entry is defined in the page's front matter.
 +Menu entries from the site config don't know anything about `.Page`.
 +
 +That's why you have to use the go template's `with` keyword or something similar in your templating language.
 +
 +Here's an example:
 +
- ```
++```go-html-template
 +<nav class="sidebar-nav">
 +  {{ range .Site.Menus.main }}
 +    <a href="{{ .URL }}" title="{{ .Title }}">
 +      {{- .Name -}}
 +      {{- with .Page -}}
 +        <span class="date">
 +        {{- dateFormat " (2006-01-02)" .Date -}}
 +        </span>
 +      {{- end -}}
 +    </a>
 +  {{ end }}
 +</nav>
 +```
 +
 +## Using .Params in Menus
 +
 +User-defined content on menu items are accessible via `.Params`.
 +
 +Here's an example:
 +
++```go-html-template
 +<nav class="sidebar-nav">
 +  {{ range .Site.Menus.main }}
 +    <a href="{{ .URL }}" title="{{ .Title }}" class="{{ with .Params.class }}{{ . }}{{ end }}">
 +      {{- .Name -}}
 +    </a>
 +  {{ end }}
 +</nav>
 +```
 +
 +{{% note %}}
 +With Menu-level .Params they can easily exist on one menu item but not another. It's recommended to access them gracefully using the [with function](/functions/with).
 +{{% /note %}}
index df48d55dc026cb22a29ca055ed867130848e4c0e,0000000000000000000000000000000000000000..81a825493d1209db933b1842c00a44d59244cc3f
mode 100644,000000..100644
--- /dev/null
@@@ -1,260 -1,0 +1,257 @@@
- keywords: ["amp","outputs","rss"]
 +---
 +title: Custom Output Formats
 +linktitle: Custom Output Formats
 +description: Hugo can output content in multiple formats, including calendar events, e-book formats, Google AMP, and JSON search indexes, or any custom text format.
 +date: 2017-03-22
 +publishdate: 2017-03-22
 +lastmod: 2019-12-11
 +categories: [templates]
- A [media type][] (also known as *MIME type* and *content type*) is a two-part identifier for file formats and format contents transmitted on the Internet.
++keywords: ["amp", "outputs", "rss"]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 18
 +weight: 18
 +sections_weight: 18
 +draft: false
 +aliases: [/templates/outputs/,/extras/output-formats/,/content-management/custom-outputs/]
 +toc: true
 +---
 +
 +This page describes how to properly configure your site with the media types and output formats, as well as where to create your templates for your custom outputs.
 +
 +## Media Types
 +
- * It is possible to add custom media types or change the defaults; e.g., if you want to change the suffix for `text/html` to `asp`.
- * `Suffixes` are the values that will be used for URLs and filenames for that media type in Hugo.
- * The `Type` is the identifier that must be used when defining new/custom `Output Formats` (see below).
- * The full set of media types will be registered in Hugo's built-in development server to make sure they are recognized by the browser.
++A [media type][] (also known as _MIME type_ and _content type_) is a two-part identifier for file formats and format contents transmitted on the internet.
 +
 +This is the full set of built-in media types in Hugo:
 +
 +{{< datatable "media" "types" "type" "suffixes" >}}
 +
 +**Note:**
 +
- * A page can be output in as many output formats as you want, and you can have an infinite amount of output formats defined **as long as they resolve to a unique path on the file system**. In the above table, the best example of this is `AMP` vs. `HTML`. `AMP` has the value `amp` for `Path` so it doesn't overwrite the `HTML` version; e.g. we can now have both `/index.html` and `/amp/index.html`.
- * The `MediaType` must match the `Type` of an already defined media type.
- * You can define new output formats or redefine built-in output formats; e.g., if you want to put `AMP` pages in a different path.
++- It is possible to add custom media types or change the defaults; e.g., if you want to change the suffix for `text/html` to `asp`.
++- `Suffixes` are the values that will be used for URLs and filenames for that media type in Hugo.
++- The `Type` is the identifier that must be used when defining new/custom `Output Formats` (see below).
++- The full set of media types will be registered in Hugo's built-in development server to make sure they are recognized by the browser.
 +
 +To add or modify a media type, define it in a `mediaTypes` section in your [site configuration][config], either for all sites or for a given language.
 +
 +{{< code-toggle file="config" >}}
 +[mediaTypes]
 +  [mediaTypes."text/enriched"]
 +  suffixes = ["enr"]
 +  [mediaTypes."text/html"]
 +  suffixes = ["asp"]
 +{{</ code-toggle >}}
 +
 +The above example adds one new media type, `text/enriched`, and changes the suffix for the built-in `text/html` media type.
 +
 +**Note:** these media types are configured for **your output formats**. If you want to redefine one of Hugo's default output formats (e.g. `HTML`), you also need to redefine the media type. So, if you want to change the suffix of the `HTML` output format from `html` (default) to `htm`:
 +
 +```toml
 +[mediaTypes]
 +[mediaTypes."text/html"]
 +suffixes = ["htm"]
 +
 +# Redefine HTML to update its media type.
 +[outputFormats]
 +[outputFormats.HTML]
 +mediaType = "text/html"
 +```
 +
 +**Note** that for the above to work, you also need to add an `outputs` definition in your site config.
 +
 +## Output Format Definitions
 +
 +Given a media type and some additional configuration, you get an **Output Format**.
 +
 +This is the full set of Hugo's built-in output formats:
 +
 +{{< datatable "output" "formats" "name" "mediaType" "path" "baseName" "rel" "protocol" "isPlainText" "isHTML" "noUgly" "permalinkable" >}}
 +
- : enable if it doesn't make sense to include this format in an `AlternativeOutputFormats` format listing on `Page` (e.g., with `CSS`). Note that we use the term *alternative* and not *alternate* here, as it does not necessarily replace the other format. **Default:** `false`.
++- A page can be output in as many output formats as you want, and you can have an infinite amount of output formats defined **as long as they resolve to a unique path on the file system**. In the above table, the best example of this is `AMP` vs. `HTML`. `AMP` has the value `amp` for `Path` so it doesn't overwrite the `HTML` version; e.g. we can now have both `/index.html` and `/amp/index.html`.
++- The `MediaType` must match the `Type` of an already defined media type.
++- You can define new output formats or redefine built-in output formats; e.g., if you want to put `AMP` pages in a different path.
 +
 +To add or modify an output format, define it in an `outputFormats` section in your site's [configuration file](/getting-started/configuration/), either for all sites or for a given language.
 +
 +{{< code-toggle file="config" >}}
 +[outputFormats.MyEnrichedFormat]
 +mediaType = "text/enriched"
 +baseName = "myindex"
 +isPlainText = true
 +protocol = "bep://"
 +{{</ code-toggle >}}
 +
 +The above example is fictional, but if used for the homepage on a site with `baseURL` `https://example.org`, it will produce a plain text homepage with the URL `bep://example.org/myindex.enr`.
 +
 +### Configure Output Formats
 +
 +The following is the full list of configuration options for output formats and their default values:
 +
 +`name`
 +: the output format identifier. This is used to define what output format(s) you want for your pages.
 +
 +`mediaType`
 +: this must match the `Type` of a defined media type.
 +
 +`path`
 +: sub path to save the output files.
 +
 +`baseName`
 +: the base filename for the list filenames (homepage, etc.). **Default:** `index`.
 +
 +`rel`
 +: can be used to create `rel` values in `link` tags. **Default:** `alternate`.
 +
 +`protocol`
 +: will replace the "http://" or "https://" in your `baseURL` for this output format.
 +
 +`isPlainText`
 +: use Go's plain text templates parser for the templates. **Default:** `false`.
 +
 +`isHTML`
 +: used in situations only relevant for `HTML`-type formats; e.g., page aliases. **Default:** `false`.
 +
 +`noUgly`
 +: used to turn off ugly URLs If `uglyURLs` is set to `true` in your site. **Default:** `false`.
 +
 +`notAlternative`
- A `Page` in Hugo can be rendered to multiple *output formats* on the file
++: enable if it doesn't make sense to include this format in an `AlternativeOutputFormats` format listing on `Page` (e.g., with `CSS`). Note that we use the term _alternative_ and not _alternate_ here, as it does not necessarily replace the other format. **Default:** `false`.
 +
 +`permalinkable`
 +: make `.Permalink` and `.RelPermalink` return the rendering Output Format rather than main ([see below](#link-to-output-formats)). This is enabled by default for `HTML` and `AMP`. **Default:** `false`.
 +
 +`weight`
 +: Setting this to a non-zero value will be used as the first sort criteria.
 +
 +## Output Formats for Pages
 +
- | Kind           | Default Output Formats |
- |--------------- |----------------------- |
- | `page`         | HTML                   |
- | `home`         | HTML, RSS              |
- | `section`      | HTML, RSS              |
++A `Page` in Hugo can be rendered to multiple _output formats_ on the file
 +system.
 +
 +### Default Output Formats
++
 +Every `Page` has a [`Kind`][page_kinds] attribute, and the default Output
 +Formats are set based on that.
 +
- Note that in the above examples, the *output formats* for `section`,
- `taxonomy` and `term` will stay at their default value `["HTML",
- "RSS"]`.
- {{< new-in "0.73.0" >}} We have fixed the before confusing page kinds used for taxonomies (see the listing below) to be in line with the terms used when we talk about taxonomies. We have been careful to avoid site breakage, and you should get an ERROR in the console if you need to adjust your `outputs` section.
++| Kind       | Default Output Formats |
++| ---------- | ---------------------- |
++| `page`     | HTML                   |
++| `home`     | HTML, RSS              |
++| `section`  | HTML, RSS              |
 +| `taxonomy` | HTML, RSS              |
 +| `term`     | HTML, RSS              |
 +
 +### Customizing Output Formats
 +
 +This can be changed by defining an `outputs` list of output formats in either
 +the `Page` front matter or in the site configuration (either for all sites or
 +per language).
 +
 +Example from site config file:
 +
 +{{< code-toggle file="config" >}}
 +[outputs]
 +  home = ["HTML", "AMP", "RSS"]
 +  page = ["HTML"]
 +{{</ code-toggle >}}
 +
- ##  List Output formats
++Note that in the above examples, the _output formats_ for `section`,
++`taxonomy` and `term` will stay at their default value `["HTML", "RSS"]`.
 +
 +{{% page-kinds %}}
 +
 +* The `outputs` definition is per [`Page` `Kind`][page_kinds] (`page`, `home`, `section`, `taxonomy`, or `term`).
 +* The names (e.g. `HTML`, `AMP`) used must match the `Name` of a defined *Output Format*.
 +  * These names are case insensitive.
 +* These can be overridden per `Page` in the front matter of content files.
 +
 +The following is an example of `YAML` front matter in a content file that defines output formats for the rendered `Page`:
 +
 +```yaml
 +---
 +date: "2016-03-19"
 +outputs:
 +- html
 +- amp
 +- json
 +---
 +```
 +
- __Same template file as above with json output format's `permalinkable` set to true:__
++## List Output formats
 +
 +Each `Page` has both an `.OutputFormats` (all formats, including the current) and an `.AlternativeOutputFormats` variable, the latter of which is useful for creating a `link rel` list in your site's `<head>`:
 +
 +```go-html-template
 +{{ range .AlternativeOutputFormats -}}
 +<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
 +{{ end -}}
 +```
 +
 +## Link to Output Formats
 +
 +`.Permalink` and `.RelPermalink` on `Page` will return the first output format defined for that page (usually `HTML` if nothing else is defined). This is regardless of the template file they are being called from.
 +
 +__from `single.json.json`:__
 +```go-html-template
 +{{ .RelPermalink }} > /that-page/
 +{{ with  .OutputFormats.Get "json" -}}
 +{{ .RelPermalink }} > /that-page/index.json
 +{{- end }}
 +```
 +
 +In order for them to return the output format of the current template file instead, the given output format should have its `permalinkable` setting set to true.
 +
- The following table shows examples of different output formats, the suffix used, and Hugo's respective template [lookup order][]. All of the examples in the table can:
++**Same template file as above with json output format's `permalinkable` set to true:**
 +
 +```go-html-template
 +{{ .RelPermalink }} > /that-page/index.json
 +{{ with  .OutputFormats.Get "html" -}}
 +{{ .RelPermalink }} > /that-page/
 +{{- end }}
 +```
 +
 +From content files, you can use the [`ref` or `relref` shortcodes](/content-management/shortcodes/#ref-and-relref):
 +
 +```go-html-template
 +[Neat]({{</* ref "blog/neat.md" "amp" */>}})
 +[Who]({{</* relref "about.md#who" "amp" */>}})
 +```
 +
 +## Templates for Your Output Formats
 +
 +A new output format needs a corresponding template in order to render anything useful.
 +
 +{{% note %}}
 +The key distinction for Hugo versions 0.20 and newer is that Hugo looks at an output format's `Name` and MediaType's `Suffixes` when choosing the template used to render a given `Page`.
 +{{% /note %}}
 +
- ```
++The following table shows examples of different output formats, the suffix used, and Hugo's respective template [lookup order][]. All the examples in the table can:
 +
 +* Use a [base template][base].
 +* Include [partial templates][partials]
 +
 +{{< datatable "output" "layouts" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
 +
 +Hugo will now also detect the media type and output format of partials, if possible, and use that information to decide if the partial should be parsed as a plain text template or not.
 +
 +Hugo will look for the name given, so you can name it whatever you want. But if you want it treated as plain text, you should use the file suffix and, if needed, the name of the Output Format. The pattern is as follows:
 +
- ```
++```go-html-template
 +[partial name].[OutputFormat].[suffix]
 +```
 +
 +The partial below is a plain text template (Output Format is `CSV`, and since this is the only output format with the suffix `csv`, we don't need to include the Output Format's `Name`):
 +
++```go-html-template
 +{{ partial "mytextpartial.csv" . }}
 +```
 +
 +[base]: /templates/base/
 +[config]: /getting-started/configuration/
 +[lookup order]: /templates/lookup/
 +[media type]: https://en.wikipedia.org/wiki/Media_type
 +[partials]: /templates/partials/
 +[page_kinds]: /templates/section-templates/#page-kinds
index d89735f7c30c25f8f521f8d1c7b65a11ea03c085,0000000000000000000000000000000000000000..dc56c18c4c615f1837d3a63b2297b82006a366c4
mode 100644,000000..100644
--- /dev/null
@@@ -1,161 -1,0 +1,158 @@@
- lastmod: 2017-02-01
 +---
 +title: Pagination
 +linktitle: Pagination
 +description: Hugo supports pagination for your homepage, section pages, and taxonomies.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [templates]
 +keywords: [lists,sections,pagination]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 140
 +weight: 140
 +sections_weight: 140
- ```
 +aliases: [/extras/pagination,/doc/pagination/]
 +toc: true
 +---
 +
 +The real power of Hugo pagination shines when combined with the [`where` function][where] and its SQL-like operators: [`first`][], [`last`][], and [`after`][]. You can even [order the content][lists] the way you've become used to with Hugo.
 +
 +## Configure Pagination
 +
 +Pagination can be configured in your [site configuration][configuration]:
 +
 +`paginate`
 +: default = `10`. This setting can be overridden within the template.
 +
 +`paginatePath`
 +: default = `page`. Allows you to set a different path for your pagination pages.
 +
 +Setting `paginate` to a positive value will split the list pages for the homepage, sections and taxonomies into chunks of that size. But note that the generation of the pagination pages for sections, taxonomies and homepage is *lazy* --- the pages will not be created if not referenced by a `.Paginator` (see below).
 +
 +`paginatePath` is used to adapt the `URL` to the pages in the paginator (the default setting will produce URLs on the form `/page/1/`.
 +
 +## List Paginator Pages
 +
 +{{% warning %}}
 +`.Paginator` is provided to help you build a pager menu. This feature is currently only supported on homepage and list pages (i.e., taxonomies and section lists).
 +{{% /warning %}}
 +
 +There are two ways to configure and use a `.Paginator`:
 +
 +1. The simplest way is just to call `.Paginator.Pages` from a template. It will contain the pages for *that page*.
 +2. Select another set of pages with the available template functions and ordering options, and pass the slice to `.Paginate`, e.g.
 +  * `{{ range (.Paginate ( first 50 .Pages.ByTitle )).Pages }}` or
 +  * `{{ range (.Paginate .RegularPagesRecursive).Pages }}`.
 +
 +For a given **Page**, it's one of the options above. The `.Paginator` is static and cannot change once created.
 +
 +If you call `.Paginator` or `.Paginate` multiple times on the same page, you should ensure all the calls are identical. Once *either* `.Paginator` or `.Paginate` is called while generating a page, its result is cached, and any subsequent similar call will reuse the cached result. This means that any such calls which do not match the first one will not behave as written.
 +
 +(Remember that function arguments are eagerly evaluated, so a call like `$paginator := cond x .Paginator (.Paginate .RegularPagesRecursive)` is an example of what you should *not* do. Use `if`/`else` instead to ensure exactly one evaluation.)
 +
 +The global page size setting (`Paginate`) can be overridden by providing a positive integer as the last argument. The examples below will give five items per page:
 +
 +* `{{ range (.Paginator 5).Pages }}`
 +* `{{ $paginator := .Paginate (where .Pages "Type" "posts") 5 }}`
 +
 +It is also possible to use the `GroupBy` functions in combination with pagination:
 +
- ```
++```go-html-template
 +{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups  }}
 +```
 +
 +## Build the navigation
 +
 +The `.Paginator` contains enough information to build a paginator interface.
 +
 +The easiest way to add this to your pages is to include the built-in template (with `Bootstrap`-compatible styles):
 +
- ```
++```go-html-template
 +{{ template "_internal/pagination.html" . }}
 +```
 +
 +{{% note "When to Create `.Paginator`" %}}
 +If you use any filters or ordering functions to create your `.Paginator` *and* you want the navigation buttons to be shown before the page listing, you must create the `.Paginator` before it's used.
 +{{% /note %}}
 +
 +The following example shows how to create `.Paginator` before its used:
 +
- ```
++```go-html-template
 +{{ $paginator := .Paginate (where .Pages "Type" "posts") }}
 +{{ template "_internal/pagination.html" . }}
 +{{ range $paginator.Pages }}
 +   {{ .Title }}
 +{{ end }}
 +```
 +
 +Without the `where` filter, the above example is even simpler:
 +
- ```
++```go-html-template
 +{{ template "_internal/pagination.html" . }}
 +{{ range .Paginator.Pages }}
 +   {{ .Title }}
 +{{ end }}
 +```
 +
 +If you want to build custom navigation, you can do so using the `.Paginator` object, which includes the following properties:
 +
 +`PageNumber`
 +: The current page's number in the pager sequence
 +
 +`URL`
 +: The relative URL to the current pager
 +
 +`Pages`
 +: The pages in the current pager
 +
 +`NumberOfElements`
 +: The number of elements on this page
 +
 +`HasPrev`
 +: Whether there are page(s) before the current
 +
 +`Prev`
 +: The pager for the previous page
 +
 +`HasNext`
 +: Whether there are page(s) after the current
 +
 +`Next`
 +: The pager for the next page
 +
 +`First`
 +: The pager for the first page
 +
 +`Last`
 +: The pager for the last page
 +
 +`Pagers`
 +: A list of pagers that can be used to build a pagination menu
 +
 +`PageSize`
 +: Size of each pager
 +
 +`TotalPages`
 +: The number of pages in the paginator
 +
 +`TotalNumberOfElements`
 +: The number of elements on all pages in this paginator
 +
 +## Additional information
 +
 +The pages are built on the following form (`BLANK` means no value):
 +
++```txt
 +[SECTION/TAXONOMY/BLANK]/index.html
 +[SECTION/TAXONOMY/BLANK]/page/1/index.html => redirect to  [SECTION/TAXONOMY/BLANK]/index.html
 +[SECTION/TAXONOMY/BLANK]/page/2/index.html
 +....
 +```
 +
 +[`first`]: /functions/first/
 +[`last`]: /functions/last/
 +[`after`]: /functions/after/
 +[configuration]: /getting-started/configuration/
 +[lists]: /templates/lists/
 +[where]: /functions/where/
index 56a676d7eae7e320ee050d78949c0f320b52bd1c,0000000000000000000000000000000000000000..b3826d56d59b340f0d5483b984cdc88cb3e60390
mode 100644,000000..100644
--- /dev/null
@@@ -1,208 -1,0 +1,206 @@@
- In addition to outputting markup, partials can be used to return a value of any type. In order to return a value, a partial must include a lone `return` statement _at the end of the partial_.
 +---
 +title: Partial Templates
 +linktitle: Partial Templates
 +description: Partials are smaller, context-aware components in your list and page templates that can be used economically to keep your templating DRY.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [lists,sections,partials]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 90
 +weight: 90
 +sections_weight: 90
 +draft: false
 +aliases: [/templates/partial/,/layout/chrome/,/extras/analytics/]
 +toc: true
 +---
 +
 +{{< youtube pjS4pOLyB7c >}}
 +
 +## Partial Template Lookup Order
 +
 +Partial templates---like [single page templates][singletemps] and [list page templates][listtemps]---have a specific [lookup order][]. However, partials are simpler in that Hugo will only check in two places:
 +
 +1. `layouts/partials/*<PARTIALNAME>.html`
 +2. `themes/<THEME>/layouts/partials/*<PARTIALNAME>.html`
 +
 +This allows a theme's end user to copy a partial's contents into a file of the same name for [further customization][customize].
 +
 +## Use Partials in your Templates
 +
 +All partials for your Hugo project are located in a single `layouts/partials` directory. For better organization, you can create multiple subdirectories within `partials` as well:
 +
 +```txt
 +layouts/
 +└── partials/
 +    ├── footer/
 +    │   ├── scripts.html
 +    │   └── site-footer.html
 +    ├── head/
 +    │   ├── favicons.html
 +    │   ├── metadata.html
 +    │   ├── prerender.html
 +    │   └── twitter.html
 +    └── header/
 +        ├── site-header.html
 +        └── site-nav.html
 +```
 +
 +All partials are called within your templates using the following pattern:
 +
 +```go-html-template
 +{{ partial "<PATH>/<PARTIAL>.html" . }}
 +```
 +
 +{{% note %}}
 +One of the most common mistakes with new Hugo users is failing to pass a context to the partial call. In the pattern above, note how "the dot" (`.`) is required as the second argument to give the partial context. You can read more about "the dot" in the [Hugo templating introduction](/templates/introduction/).
 +{{% /note %}}
 +
 +{{% note %}}
 +`<PARTIAL>` including `baseof` is reserved. ([#5373](https://github.com/gohugoio/hugo/issues/5373))
 +{{% /note %}}
 +
 +As shown in the above example directory structure, you can nest your directories within `partials` for better source organization. You only need to call the nested partial's path relative to the `partials` directory:
 +
 +```go-html-template
 +{{ partial "header/site-header.html" . }}
 +{{ partial "footer/scripts.html" . }}
 +```
 +
 +### Variable Scoping
 +
 +The second argument in a partial call is the variable being passed down. The above examples are passing the `.`, which tells the template receiving the partial to apply the current [context][context].
 +
 +This means the partial will *only* be able to access those variables. The partial is isolated and *has no access to the outer scope*. From within the partial, `$.Var` is equivalent to `.Var`.
 +
 +## Returning a value from a Partial
 +
- {{< new-in "0.74.0" >}}
++In addition to outputting markup, partials can be used to return a value of any type. In order to return a value, a partial must include a lone `return` statement *at the end of the partial*.
 +
 +### Example GetFeatured
 +
 +```go-html-template
 +{{/* layouts/partials/GetFeatured.html */}}
 +{{ return first . (where site.RegularPages "Params.featured" true) }}
 +```
 +
 +```go-html-template
 +{{/* layouts/index.html */}}
 +{{ range partial "GetFeatured.html" 5 }}
 +  [...]
 +{{ end }}
 +```
 +
 +### Example GetImage
 +
 +```go-html-template
 +{{/* layouts/partials/GetImage.html */}}
 +{{ $image := false }}
 +{{ with .Params.gallery }}
 +  {{ $image = index . 0 }}
 +{{ end }}
 +{{ with .Params.image }}
 +  {{ $image = . }}
 +{{ end }}
 +{{ return $image }}
 +```
 +
 +```go-html-template
 +{{/* layouts/_default/single.html */}}
 +{{ with partial "GetImage.html" . }}
 +  [...]
 +{{ end }}
 +```
 +
 +{{% note %}}
 +Only one `return` statement is allowed per partial file.
 +{{% /note %}}
 +
 +## Inline Partials
 +
 +You can also define partials inline in the template. But remember that template namespace is global, so you need to make sure that the names are unique to avoid conflicts.
 +
 +```go-html-template
 +Value: {{ partial "my-inline-partial.html" . }}
 +
 +{{ define "partials/my-inline-partial.html" }}
 +{{ $value := 32 }}
 +{{ return $value }}
 +{{ end }}
 +```
 +
 +## Cached Partials
 +
 +The [`partialCached` template function][partialcached] can offer significant performance gains for complex templates that don't need to be re-rendered on every invocation. The simplest usage is as follows:
 +
 +```go-html-template
 +{{ partialCached "footer.html" . }}
 +```
 +
 +You can also pass additional parameters to `partialCached` to create *variants* of the cached partial.
 +
 +For example, you can tell Hugo to only render the partial `footer.html` once per section:
 +
 +```go-html-template
 +{{ partialCached "footer.html" . .Section }}
 +```
 +
 +If you need to pass additional parameters to create unique variants, you can pass as many variant parameters as you need:
 +
 +```go-html-template
 +{{ partialCached "footer.html" . .Params.country .Params.province }}
 +```
 +
 +Note that the variant parameters are not made available to the underlying partial template. They are only use to create a unique cache key.
 +
 +### Example `header.html`
 +
 +The following `header.html` partial template is used for [spf13.com](https://spf13.com/):
 +
 +{{< code file="layouts/partials/header.html" download="header.html" >}}
 +<!DOCTYPE html>
 +<html class="no-js" lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
 +<head>
 +    <meta charset="utf-8">
 +
 +    {{ partial "meta.html" . }}
 +
 +    <base href="{{ .Site.BaseURL }}">
 +    <title> {{ .Title }} : spf13.com </title>
 +    <link rel="canonical" href="{{ .Permalink }}">
 +    {{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }}
 +
 +    {{ partial "head_includes.html" . }}
 +</head>
 +{{< /code >}}
 +
 +{{% note %}}
 +The `header.html` example partial was built before the introduction of block templates to Hugo. Read more on [base templates and blocks](/templates/base/) for defining the outer chrome or shell of your master templates (i.e., your site's head, header, and footer). You can even combine blocks and partials for added flexibility.
 +{{% /note %}}
 +
 +### Example `footer.html`
 +
 +The following `footer.html` partial template is used for [spf13.com](https://spf13.com/):
 +
 +{{< code file="layouts/partials/footer.html" download="footer.html" >}}
 +<footer>
 +  <div>
 +    <p>
 +    &copy; 2013-14 Steve Francia.
 +    <a href="https://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution">Some rights reserved</a>;
 +    please attribute properly and link back.
 +    </p>
 +  </div>
 +</footer>
 +{{< /code >}}
 +
 +[context]: /templates/introduction/ "The most easily overlooked concept to understand about Go templating is how the dot always refers to the current context."
 +[customize]: /themes/customizing/ "Hugo provides easy means to customize themes as long as users are familiar with Hugo's template lookup order."
 +[listtemps]: /templates/lists/ "To effectively leverage Hugo's system, see how Hugo handles list pages, where content for sections, taxonomies, and the homepage are listed and ordered."
 +[lookup order]: /templates/lookup-order/ "To keep your templating dry, read the documentation on Hugo's lookup order."
 +[partialcached]: /functions/partialcached/ "Use the partial cached function to improve build times in cases where Hugo can cache partials that don't need to be rendered with every page."
 +[singletemps]: /templates/single-page-templates/ "The most common form of template in Hugo is the single content template. Read the docs on how to create templates for individual pages."
 +[themes]: /themes/
index 6987819cae4f283965fd8947ee8475e9a90338b6,0000000000000000000000000000000000000000..6fae36ad93d03dc78dd9d87507ed1318a97600d5
mode 100644,000000..100644
--- /dev/null
@@@ -1,172 -1,0 +1,172 @@@
- {{< new-in "0.62.0" >}} Note that this is only supported with the [Goldmark](/getting-started/configuration-markup#goldmark) renderer.
 +---
 +title: "Markdown Render Hooks"
 +linkTitle: "Render Hooks"
 +description: "Render Hooks allow custom templates to override markdown rendering functionality."
 +date: 2017-03-11
 +categories: [templates]
 +keywords: [markdown]
 +toc: true
 +menu:
 +  docs:
 +    title: "Markdown Render Hooks"
 +    parent: "templates"
 +    weight: 20
 +---
 +
- You can also create type/section specific hooks in `layouts/[type/section]/_markup`, e.g.: `layouts/blog/_markup`.{{< new-in "0.71.0" >}}
++Note that this is only supported with the [Goldmark](/getting-started/configuration-markup#goldmark) renderer.
 +
 +You can override certain parts of the default Markdown rendering to HTML by creating templates with base names `render-{kind}` in `layouts/_default/_markup`.
 +
- * `heading` {{< new-in "0.71.0" >}}
++You can also create type/section specific hooks in `layouts/[type/section]/_markup`, e.g.: `layouts/blog/_markup`.
 +
 +The hook kinds currently supported are:
 +
 +* `image`
 +* `link`
- ```goat { class="black f7" }
- layouts
- └── _default
-     └── _markup
++* `heading`
 +* `codeblock`{{< new-in "0.93.0" >}}
 +
 +You can define [Output-Format-](/templates/output-formats) and [language-](/content-management/multilingual/)specific templates if needed. Your `layouts` folder may look like this:
 +
-         └── render-codeblock.html
-         └── render-codeblock-bash.html
++```text
++layouts/
++└── _default/
++    └── _markup/
++        ├── render-codeblock-bash.html
++        ├── render-codeblock.html
++        ├── render-heading.html
 +        ├── render-image.html
 +        ├── render-image.rss.xml
 +        └── render-link.html
- Attributes (map) {{< new-in "0.82.0" >}}
 +```
 +
 +Some use cases for the above:
 +
 +* Resolve link references using `.GetPage`. This would make links portable as you could translate `./my-post.md` (and similar constructs that would work on GitHub) into `/blog/2019/01/01/my-post/` etc.
 +* Add `target=_blank` to external links.
 +* Resolve and [process](/content-management/image-processing/) images.
 +* Add [header links](https://remysharp.com/2014/08/08/automatic-permalinks-for-blog-posts).
 +
 +## Render Hooks for Headings, Links and Images
 +
 +The `render-link` and `render-image` templates will receive this context:
 +
 +Page
 +: The [Page](/variables/page/) being rendered.
 +
 +Destination
 +: The URL.
 +
 +Title
 +: The title attribute.
 +
 +Text
 +: The rendered (HTML) link text.
 +
 +PlainText
 +: The plain variant of the above.
 +
 +The `render-heading` template will receive this context:
 +
 +Page
 +: The [Page](/variables/page/) being rendered.
 +
 +Level
 +: The header level (1--6)
 +
 +Anchor
 +: An auto-generated html id unique to the header within the page
 +
 +Text
 +: The rendered (HTML) text.
 +
 +PlainText
 +: The plain variant of the above.
 +
- ### Link with title Markdown example:
++Attributes (map)
 +: A map of attributes (e.g. `id`, `class`)
 +
- ### Image Markdown example:
++### Link with title Markdown example
 +
 +```md
 +[Text](https://www.gohugo.io "Title")
 +```
 +
 +Here is a code example for how the render-link.html template could look:
 +
 +{{< code file="layouts/_default/_markup/render-link.html" >}}
 +<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
 +{{< /code >}}
 +
- ![Text](https://d33wubrfki0l68.cloudfront.net/c38c7334cc3f23585738e40334284fddcaf03d5e/2e17c/images/hugo-logo-wide.svg "Title")
++### Image Markdown example
 +
 +```md
- The default behaviour for these code blocks is to do [Code Highlighting](/content-management/syntax-highlighting/#highlighting-in-code-fences), but since you can pass attributes to these code blocks, they can be used for almost anything. One example would be the built-in [GoAT Diagrams](/content-management/diagrams/#goat-diagrams-ascii) or this [Mermaid Diagram Code Block Hook](/content-management/diagrams/#mermaid-diagrams) example.
++![Text](https://gohugo.io/images/hugo-logo-wide.svg "Title")
 +```
 +
 +Here is a code example for how the render-image.html template could look:
 +
 +{{< code file="layouts/_default/_markup/render-image.html" >}}
 +<p class="md__image">
 +  <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} />
 +</p>
 +{{< /code >}}
 +
 +### Heading link example
 +
 +Given this template file
 +
 +{{< code file="layouts/_default/_markup/render-heading.html" >}}
 +<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}">¶</a></h{{ .Level }}>
 +{{< /code >}}
 +
 +And this markdown
 +
 +```md
 +### Section A
 +```
 +
 +The rendered html will be
 +
 +```html
 +<h3 id="section-a">Section A <a href="#section-a">¶</a></h3>
 +```
 +
 +## Render Hooks for Code Blocks
 +
 +{{< new-in "0.93.0" >}}
 +
 +You can add a hook template for either all code blocks or for a specific type/language (`bash` in the example below):
 +
 +```goat { class="black f7" }
 +layouts
 +└── _default
 +    └── _markup
 +        └── render-codeblock.html
 +        └── render-codeblock-bash.html
 +```
 +
++The default behavior for these code blocks is to do [Code Highlighting](/content-management/syntax-highlighting/#highlighting-in-code-fences), but since you can pass attributes to these code blocks, they can be used for almost anything. One example would be the built-in [GoAT Diagrams](/content-management/diagrams/#goat-diagrams-ascii) or this [Mermaid Diagram Code Block Hook](/content-management/diagrams/#mermaid-diagrams) example.
 +
 +The context (the ".") you receive in a code block template contains:
 +
 +Type (string)
 +: The type of code block. This will be the programming language, e.g. `bash`, when doing code highlighting.
 +
 +Attributes (map)
 +: Attributes passed in from Markdown (e.g. `{ attrName1=attrValue1 attrName2="attr Value 2" }`).
 +
 +Options (map)
 +: Chroma highlighting processing options. This will only be filled if `Type` is a known [Chroma Lexer](/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages).
 +
 +Inner (string)
 +: The text between the code fences.
 +
 +Ordinal (integer)
 +: Zero-based ordinal for all code blocks in the current document.
 +
 +Page
 +: The owning `Page`.
 +
 +Position
 +: Useful in error logging as it prints the filename and position (linenumber, column), e.g. `{{ errorf "error in code block: %s" .Position }}`.
index 009ba241a6a7769b75d34c9d9951e11e31db2c7c,0000000000000000000000000000000000000000..28ccafa56e2ad050e6d0458b350226fca82a334e
mode 100644,000000..100644
--- /dev/null
@@@ -1,92 -1,0 +1,92 @@@
- https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml
 +---
 +title: RSS Templates
 +linktitle: RSS Templates
 +description: Hugo ships with its own RSS 2.0 template that requires almost no configuration, or you can create your own RSS templates.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +keywords: [rss, xml, templates]
 +categories: [templates]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 150
 +weight: 150
 +sections_weight: 150
 +draft: false
 +toc: true
 +---
 +
 +## RSS Template Lookup Order
 +
 +See [Template Lookup Order](/templates/lookup-order/) for the complete reference.
 +
 +{{% note "Hugo Ships with an RSS Template" %}}
 +Hugo ships with its own [RSS 2.0 template](#the-embedded-rssxml). The embedded template will be sufficient for most use cases.
 +{{% /note %}}
 +
 +RSS pages are of the type `Page` and have all the [page variables](/variables/page/) available to use in the templates.
 +
 +### Section RSS
 +
 +A [section’s][section] RSS will be rendered at `/<SECTION>/index.xml` (e.g., [https://spf13.com/project/index.xml](https://spf13.com/project/index.xml)).
 +
 +Hugo provides the ability for you to define any RSS type you wish and can have different RSS files for each section and taxonomy.
 +
 +## Lookup Order for RSS Templates
 +
 +The table below shows the RSS template lookup order for the different page kinds. The first listing shows the lookup order when running with a theme (`demoTheme`).
 +
 +{{< datatable-filtered "output" "layouts" "OutputFormat == RSS" "Example" "OutputFormat" "Suffix" "Template Lookup Order" >}}
 +
 +## Configure RSS
 +
 +By default, Hugo will create an unlimited number of RSS entries. You can limit the number of articles included in the built-in RSS templates by assigning a numeric value to `rssLimit:` field in your project's [`config` file][config].
 +
 +The following values will also be included in the RSS output if specified:
 +
 +{{< code-toggle file="config" >}}
 +languageCode = "en-us"
 +copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
 +
 +[author]
 +    name = "My Name Here"
 +{{< /code-toggle >}}
 +
 +## The Embedded rss.xml
 +
 +This is the default RSS template that ships with Hugo:
 +
++<https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml>
 +
 +## Reference your RSS Feed in `<head>`
 +
 +In your `header.html` template, you can specify your RSS feed in your `<head></head>` tag using Hugo's [Output Formats][Output Formats] like this:
 +
 +```go-html-template
 +{{ range .AlternativeOutputFormats -}}
 +    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
 +{{ end -}}
 +```
 +
 +If you only want the RSS link, you can query the formats:
 +
 +```go-html-template
 +{{ with .OutputFormats.Get "rss" -}}
 +    {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
 +{{ end -}}
 +```
 +
 +Either of the two snippets above will generate the below `link` tag on the site homepage for RSS output:
 +
 +```html
 +<link rel="alternate" type="application/rss+xml" href="https://example.com/index.xml" title="Site Title">
 +```
 +
 +_We are assuming `BaseURL` to be `https://example.com/` and `$.Site.Title` to be `"Site Title"` in this example._
 +
 +[config]: /getting-started/configuration/
 +[embedded]: #the-embedded-rss-xml
 +[RSS 2.0]: https://cyber.harvard.edu/rss/rss.html "RSS 2.0 Specification"
 +[section]: /content-management/sections/
 +[Output Formats]: /templates/output-formats/#link-to-output-formats
index a40e2a2d7b4abb2fe1f44da1d064178c79d7cfee,0000000000000000000000000000000000000000..3cb37b111c63085dc58761f04cfd11ff61a1e502
mode 100644,000000..100644
--- /dev/null
@@@ -1,116 -1,0 +1,115 @@@
- ```
 +---
 +title: Section Page Templates
 +linktitle: Section Templates
 +description: Templates used for section pages are **lists** and therefore have all the variables and methods available to list pages.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [lists,sections,templates]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 40
 +weight: 40
 +sections_weight: 40
 +draft: false
 +aliases: [/templates/sections/]
 +toc: true
 +---
 +
 +## Add Content and Front Matter to Section Templates
 +
 +To effectively leverage section page templates, you should first understand Hugo's [content organization](/content-management/organization/) and, specifically, the purpose of `_index.md` for adding content and front matter to section and other list pages.
 +
 +## Section Template Lookup Order
 +
 +See [Template Lookup](/templates/lookup-order/).
 +
 +## Page Kinds
 +
 +Every `Page` in Hugo has a `.Kind` attribute.
 +
 +{{% page-kinds %}}
 +
 +## `.Site.GetPage` with Sections
 +
 +`Kind` can easily be combined with the [`where` function][where] in your templates to create kind-specific lists of content. This method is ideal for creating lists, but there are times where you may want to fetch just the index page of a single section via the section's path.
 +
 +The [`.GetPage` function][getpage] looks up an index page of a given `Kind` and `path`.
 +
 +You can call `.Site.GetPage` with two arguments: `kind` (one of the valid values
 +of `Kind` from above) and `kind value`.
 +
 +Examples:
 +
 +- `{{ .Site.GetPage "section" "posts" }}`
 +- `{{ .Site.GetPage "page" "search" }}`
 +
 +## Example: Creating a Default Section Template
 +
 +{{< code file="layouts/_default/section.html" download="section.html" >}}
 +{{ define "main" }}
 +  <main>
 +      {{ .Content }}
 +          <ul class="contents">
 +          {{ range .Paginator.Pages }}
 +              <li>{{.Title}}
 +                  <div>
 +                    {{ partial "summary.html" . }}
 +                  </div>
 +              </li>
 +          {{ end }}
 +          </ul>
 +      {{ partial "pagination.html" . }}
 +  </main>
 +{{ end }}
 +{{< /code >}}
 +
 +### Example: Using `.Site.GetPage`
 +
 +The `.Site.GetPage` example that follows assumes the following project directory structure:
 +
- ```
++```txt
 +.
 +└── content
 +    ├── blog
 +    │   ├── _index.md # "title: My Hugo Blog" in the front matter
 +    │   ├── post-1.md
 +    │   ├── post-2.md
 +    │   └── post-3.md
 +    └── events #Note there is no _index.md file in "events"
 +        ├── event-1.md
 +        └── event-2.md
 +```
 +
 +`.Site.GetPage` will return `nil` if no `_index.md` page is found. Therefore, if `content/blog/_index.md` does not exist, the template will output the section name:
 +
- ```
++```go-html-template
 +<h1>{{ with .Site.GetPage "section" "blog" }}{{ .Title }}{{ end }}</h1>
 +```
 +
 +Since `blog` has a section index page with front matter at `content/blog/_index.md`, the above code will return the following result:
 +
- ```
++```html
 +<h1>My Hugo Blog</h1>
 +```
 +
 +If we try the same code with the `events` section, however, Hugo will default to the section title because there is no `content/events/_index.md` from which to pull content and front matter:
 +
- ```
++```go-html-template
 +<h1>{{ with .Site.GetPage "section" "events" }}{{ .Title }}{{ end }}</h1>
 +```
 +
 +Which then returns the following:
 +
++```html
 +<h1>Events</h1>
 +```
 +
 +[contentorg]: /content-management/organization/
 +[getpage]: /functions/getpage/
 +[lists]: /templates/lists/
 +[lookup]: /templates/lookup-order/
 +[where]: /functions/where/
 +[sections]: /content-management/sections/
index 839032800483492809503d394a6e1ef76575bd28,0000000000000000000000000000000000000000..15accbe7a9dfa9ca474c5ed2aca01bfa22b8a3fd
mode 100644,000000..100644
--- /dev/null
@@@ -1,418 -1,0 +1,416 @@@
- Shortcodes are a means to consolidate templating into small, reusable snippets that you can embed directly inside of your content. In this sense, you can think of shortcodes as the intermediary between [page and list templates][templates] and [basic content files][].
 +---
 +title: Create Your Own Shortcodes
 +linktitle: Shortcode Templates
 +description: You can extend Hugo's built-in shortcodes by creating your own using the same templating syntax as that for single and list pages.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [shortcodes,templates]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 100
 +weight: 100
 +sections_weight: 100
 +draft: false
 +aliases: []
 +toc: true
 +---
 +
- ```
++Shortcodes are a means to consolidate templating into small, reusable snippets that you can embed directly inside your content. In this sense, you can think of shortcodes as the intermediary between [page and list templates][templates] and [basic content files][].
 +
 +{{% note %}}
 +Hugo also ships with built-in shortcodes for common use cases. (See [Content Management: Shortcodes](/content-management/shortcodes/).)
 +{{% /note %}}
 +
 +## Create Custom Shortcodes
 +
 +Hugo's built-in shortcodes cover many common, but not all, use cases. Luckily, Hugo provides the ability to easily create custom shortcodes to meet your website's needs.
 +
 +{{< youtube Eu4zSaKOY4A >}}
 +
 +### File Location
 +
 +To create a shortcode, place an HTML template in the `layouts/shortcodes` directory of your [source organization][]. Consider the file name carefully since the shortcode name will mirror that of the file but without the `.html` extension. For example, `layouts/shortcodes/myshortcode.html` will be called with either `{{</* myshortcode /*/>}}` or `{{%/* myshortcode /*/%}}` depending on the type of parameters you choose.
 +
 +You can organize your shortcodes in subfolders, e.g. in `layouts/shortcodes/boxes`. These shortcodes would then be accessible with their relative path, e.g:
 +
- ```
++```go-html-template
 +{{</* boxes/square */>}}
 +```
 +
 +Note the forward slash.
 +
 +### Shortcode Template Lookup Order
 +
 +Shortcode templates have a simple [lookup order][]:
 +
 +1. `/layouts/shortcodes/<SHORTCODE>.html`
 +2. `/themes/<THEME>/layouts/shortcodes/<SHORTCODE>.html`
 +
 +### Positional vs Named Parameters
 +
 +You can create shortcodes using the following types of parameters:
 +
 +* Positional parameters
 +* Named parameters
 +* Positional *or* named parameters (i.e, "flexible")
 +
 +In shortcodes with positional parameters, the order of the parameters is important. If a shortcode has a single required value (e.g., the `youtube` shortcode below), positional parameters work very well and require less typing from content authors.
 +
 +For more complex layouts with multiple or optional parameters, named parameters work best. While less terse, named parameters require less memorization from a content author and can be added in a shortcode declaration in any order.
 +
 +Allowing both types of parameters (i.e., a "flexible" shortcode) is useful for complex layouts where you want to set default values that can be easily overridden by users.
 +
 +### Access Parameters
 +
 +All shortcode parameters can be accessed via the `.Get` method. Whether you pass a key (i.e., string) or a number to the `.Get` method depends on whether you are accessing a named or positional parameter, respectively.
 +
 +To access a parameter by name, use the `.Get` method followed by the named parameter as a quoted string:
 +
- ```
++```go-html-template
 +{{ .Get "class" }}
 +```
 +
 +To access a parameter by position, use the `.Get` followed by a numeric position, keeping in mind that positional parameters are zero-indexed:
 +
- For the second position, you would just use: 
++```go-html-template
 +{{ .Get 0 }}
 +```
 +
- ```
++For the second position, you would just use:
 +
- ```
++```go-html-template
 +{{ .Get 1 }}
 +```
 +
 +`with` is great when the output depends on a parameter being set:
 +
- ```
++```go-html-template
 +{{ with .Get "class" }} class="{{ . }}"{{ end }}
 +```
 +
 +`.Get` can also be used to check if a parameter has been provided. This is
 +most helpful when the condition depends on either of the values, or both:
 +
- If a closing shortcode is used, the `.Inner` variable will be populated with all of the content between the opening and closing shortcodes. If a closing shortcode is required, you can check the length of `.Inner` as an indicator of its existence.
++```go-html-template
 +{{ if or (.Get "title") (.Get "alt") }} alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "title" }}{{ end }}"{{ end }}
 +```
 +
 +#### `.Inner`
 +
- A shortcode with content declared via the `.Inner` variable can also be declared without the 
- content and without the closing 
- by using the self-closing syntax:
++If a closing shortcode is used, the `.Inner` variable will be populated with the content between the opening and closing shortcodes. If a closing shortcode is required, you can check the length of `.Inner` as an indicator of its existence.
 +
- ```
++A shortcode with content declared via the `.Inner` variable can also be declared without the content and without the closing by using the self-closing syntax:
 +
- ```
++```go-html-template
 +{{</* innershortcode /*/>}}
 +```
 +
++{{% warning %}}
++Any shortcode that refers to `.Inner` must be closed or self-closed.
++
++{{% /warning %}}
++
 +#### `.Params`
 +
 +The `.Params` variable in shortcodes contains the list parameters passed to shortcode for more complicated use cases. You can also access higher-scoped parameters with the following logic:
 +
 +`$.Params`
 +: these are the parameters passed directly into the shortcode declaration (e.g., a YouTube video ID)
 +
 +`$.Page.Params`
 +: refers to the page's params; the "page" in this case refers to the content file in which the shortcode is declared (e.g., a `shortcode_color` field in a content's front matter could be accessed via `$.Page.Params.shortcode_color`).
 +
 +`$.Page.Site.Params`
 +: refers to global variables as defined in your [site's configuration file][config].
 +
 +#### `.IsNamedParams`
 +
 +The `.IsNamedParams` variable checks whether the shortcode declaration uses named parameters and returns a boolean value.
 +
 +For example, you could create an `image` shortcode that can take either a `src` named parameter or the first positional parameter, depending on the preference of the content's author. Let's assume the `image` shortcode is called as follows:
 +
- ```
++```go-html-template
 +{{</* image src="images/my-image.jpg" */>}}
 +```
 +
 +You could then include the following as part of your shortcode templating:
 +
- Let's assume you would like to keep mentions of your copyright year current in your content files without having to continually review your markdown. Your goal is to be able to call the shortcode as follows:
++```go-html-template
 +{{ if .IsNamedParams }}
 +<img src="{{ .Get "src" }}" alt="">
 +{{ else }}
 +<img src="{{ .Get 0 }}" alt="">
 +{{ end }}
 +```
 +
 +See the [example Vimeo shortcode][vimeoexample] below for `.IsNamedParams` in action.
 +
 +{{% warning %}}
 +While you can create shortcode templates that accept both positional and named parameters, you *cannot* declare shortcodes in content with a mix of parameter types. Therefore, a shortcode declared like `{{</* image src="images/my-image.jpg" "This is my alt text" */>}}` will return an error.
 +{{% /warning %}}
 +
 +You can also use the variable `.Page` to access all the normal [page variables][pagevars].
 +
 +A shortcodes can also be nested. In a nested shortcode, you can access the parent shortcode context with [`.Parent` variable][shortcodesvars]. This can be very useful for inheritance of common shortcode parameters from the root.
 +
 +### Checking for Existence
 +
 +You can check if a specific shortcode is used on a page by calling `.HasShortcode` in that page template, providing the name of the shortcode. This is sometimes useful when you want to include specific scripts or styles in the header that are only used by that shortcode.
 +
 +## Custom Shortcode Examples
 +
 +The following are examples of the different types of shortcodes you can create via shortcode template files in `/layouts/shortcodes`.
 +
 +### Single-word Example: `year`
 +
- ```
++Let's assume you would like to keep mentions of your copyright year current in your content files without having to continually review your Markdown. Your goal is to be able to call the shortcode as follows:
 +
- Embedded videos are a common addition to markdown content that can quickly become unsightly. The following is the code used by [Hugo's built-in YouTube shortcode][youtubeshortcode]:
++```go-html-template
 +{{</* year */>}}
 +```
 +
 +{{< code file="/layouts/shortcodes/year.html" >}}
 +{{ now.Format "2006" }}
 +{{< /code >}}
 +
 +### Single Positional Example: `youtube`
 +
- ```
++Embedded videos are a common addition to Markdown content that can quickly become unsightly. The following is the code used by [Hugo's built-in YouTube shortcode][youtubeshortcode]:
 +
- ```
++```go-html-template
 +{{</* youtube 09jf3ow9jfw */>}}
 +```
 +
 +Would load the template at `/layouts/shortcodes/youtube.html`:
 +
 +{{< code file="/layouts/shortcodes/youtube.html" >}}
 +<div class="embed video-player">
 +<iframe class="youtube-player" type="text/html" width="640" height="385" src="https://www.youtube.com/embed/{{ index .Params 0 }}" allowfullscreen frameborder="0">
 +</iframe>
 +</div>
 +{{< /code >}}
 +
 +{{< code file="youtube-embed.html" copy="false" >}}
 +<div class="embed video-player">
 +    <iframe class="youtube-player" type="text/html"
 +        width="640" height="385"
 +        src="https://www.youtube.com/embed/09jf3ow9jfw"
 +        allowfullscreen frameborder="0">
 +    </iframe>
 +</div>
 +{{< /code >}}
 +
 +### Single Named Example: `image`
 +
 +Let's say you want to create your own `img` shortcode rather than use Hugo's built-in [`figure` shortcode][figure]. Your goal is to be able to call the shortcode as follows in your content files:
 +
 +{{< code file="content-image.md" >}}
 +{{</* img src="/media/spf13.jpg" title="Steve Francia" */>}}
 +{{< /code >}}
 +
 +You have created the shortcode at `/layouts/shortcodes/img.html`, which loads the following shortcode template:
 +
 +{{< code file="/layouts/shortcodes/img.html" >}}
 +<!-- image -->
 +<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
 +    {{ with .Get "link" }}<a href="{{ . }}">{{ end }}
 +        <img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" }}{{ end }}"{{ end }} />
 +    {{ if .Get "link" }}</a>{{ end }}
 +    {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
 +    <figcaption>{{ if isset .Params "title" }}
 +        <h4>{{ .Get "title" }}</h4>{{ end }}
 +        {{ if or (.Get "caption") (.Get "attr") }}<p>
 +        {{ .Get "caption" }}
 +        {{ with .Get "attrlink" }}<a href="{{ . }}"> {{ end }}
 +            {{ .Get "attr" }}
 +        {{ if .Get "attrlink" }}</a> {{ end }}
 +        </p> {{ end }}
 +    </figcaption>
 +    {{ end }}
 +</figure>
 +<!-- image -->
 +{{< /code >}}
 +
 +Would be rendered as:
 +
 +{{< code file="img-output.html" copy="false" >}}
 +<figure>
 +    <img src="/media/spf13.jpg"  />
 +    <figcaption>
 +        <h4>Steve Francia</h4>
 +    </figcaption>
 +</figure>
 +{{< /code >}}
 +
 +### Single Flexible Example: `vimeo`
 +
- ```
++```go-html-template
 +{{</* vimeo 49718712 */>}}
 +{{</* vimeo id="49718712" class="flex-video" */>}}
 +```
 +
 +Would load the template found at `/layouts/shortcodes/vimeo.html`:
 +
 +{{< code file="/layouts/shortcodes/vimeo.html" >}}
 +{{ if .IsNamedParams }}
 +  <div class="{{ if .Get "class" }}{{ .Get "class" }}{{ else }}vimeo-container{{ end }}">
 +    <iframe src="https://player.vimeo.com/video/{{ .Get "id" }}" allowfullscreen></iframe>
 +  </div>
 +{{ else }}
 +  <div class="{{ if len .Params | eq 2 }}{{ .Get 1 }}{{ else }}vimeo-container{{ end }}">
 +    <iframe src="https://player.vimeo.com/video/{{ .Get 0 }}" allowfullscreen></iframe>
 +  </div>
 +{{ end }}
 +{{< /code >}}
 +
 +Would be rendered as:
 +
 +{{< code file="vimeo-iframes.html" copy="false" >}}
 +<div class="vimeo-container">
 +  <iframe src="https://player.vimeo.com/video/49718712" allowfullscreen></iframe>
 +</div>
 +<div class="flex-video">
 +  <iframe src="https://player.vimeo.com/video/49718712" allowfullscreen></iframe>
 +</div>
 +{{< /code >}}
 +
 +### Paired Example: `highlight`
 +
 +The following is taken from `highlight`, which is a [built-in shortcode][] that ships with Hugo.
 +
 +{{< code file="highlight-example.md" >}}
 +{{</* highlight html */>}}
 +  <html>
 +    <body> This HTML </body>
 +  </html>
 +{{</* /highlight */>}}
 +{{< /code >}}
 +
 +The template for the `highlight` shortcode uses the following code, which is already included in Hugo:
 +
- ```
++```go-html-template
 +{{ .Get 0 | highlight .Inner }}
 +```
 +
 +The rendered output of the HTML example code block will be as follows:
 +
 +{{< code file="syntax-highlighted.html" copy="false" >}}
 +<div class="highlight" style="background: #272822"><pre style="line-height: 125%"><span style="color: #f92672">&lt;html&gt;</span>
 +    <span style="color: #f92672">&lt;body&gt;</span> This HTML <span style="color: #f92672">&lt;/body&gt;</span>
 +<span style="color: #f92672">&lt;/html&gt;</span>
 +</pre></div>
 +{{< /code >}}
 +
 +### Nested Shortcode: Image Gallery
 +
 +Hugo's [`.Parent` shortcode variable][parent] provides access to the parent shortcode context when the shortcode in question is called within the context of a *parent* shortcode. This provides an inheritance model for common shortcode parameters.
 +
 +The following example is contrived but demonstrates the concept. Assume you have a `gallery` shortcode that expects one named `class` parameter:
 +
 +{{< code file="layouts/shortcodes/gallery.html" >}}
 +<div class="{{ .Get "class" }}">
 +  {{ .Inner }}
 +</div>
 +{{< /code >}}
 +
 +You also have an `img` shortcode with a single named `src` parameter that you want to call inside of `gallery` and other shortcodes, so that the parent defines the context of each `img`:
 +
 +{{< code file="layouts/shortcodes/img.html" >}}
 +{{- $src := .Get "src" -}}
 +{{- with .Parent -}}
 +  <img src="{{$src}}" class="{{ .Get "class" }}-image">
 +{{- else -}}
 +  <img src="{{$src}}">
 +{{- end -}}
 +{{< /code >}}
 +
 +You can then call your shortcode in your content as follows:
 +
- ```
++```go-html-template
 +{{</* gallery class="content-gallery" */>}}
 +  {{</* img src="/images/one.jpg" */>}}
 +  {{</* img src="/images/two.jpg" */>}}
 +{{</* /gallery */>}}
 +{{</* img src="/images/three.jpg" */>}}
 +```
 +
 +This will output the following HTML. Note how the first two `img` shortcodes inherit the `class` value of `content-gallery` set with the call to the parent `gallery`, whereas the third `img` only uses `src`:
 +
++```html
 +<div class="content-gallery">
 +    <img src="/images/one.jpg" class="content-gallery-image">
 +    <img src="/images/two.jpg" class="content-gallery-image">
 +</div>
 +<img src="/images/three.jpg">
 +```
 +
 +## Error Handling in Shortcodes
 +
 +Use the [errorf](/functions/errorf) template func and [.Position](/variables/shortcodes/) variable to get useful error messages in shortcodes:
 +
 +```bash
 +{{ with .Get "name" }}
 +{{ else }}
 +{{ errorf "missing value for param 'name': %s" .Position }}
 +{{ end }}
 +```
 +
 +When the above fails, you will see an `ERROR` log similar to the below:
 +
 +```bash
 +ERROR 2018/11/07 10:05:55 missing value for param name: "/Users/bep/dev/go/gohugoio/hugo/docs/content/en/variables/shortcodes.md:32:1"
 +```
 +
 +## More Shortcode Examples
 +
 +More shortcode examples can be found in the [shortcodes directory for spf13.com][spfscs] and the [shortcodes directory for the Hugo docs][docsshortcodes].
 +
- {{< new-in "0.52" >}}
- Since Hugo 0.52, you can implement your shortcodes inline -- e.g. where you use them in the content file. This can be useful for scripting that you only need in one place.
 +## Inline Shortcodes
 +
-       
++You can also implement your shortcodes inline -- e.g. where you use them in the content file. This can be useful for scripting that you only need in one place.
 +
 +This feature is disabled by default, but can be enabled in your site config:
 +
 +{{< code-toggle file="config">}}
 +enableInlineShortcodes = true
 +{{< /code-toggle >}}
 +
 +It is disabled by default for security reasons. The security model used by Hugo's template handling assumes that template authors are trusted, but that the content files are not, so the templates are injection-safe from malformed input data. But in most situations you have full control over the content, too, and then `enableInlineShortcodes = true` would be considered safe. But it's something to be aware of: It allows ad-hoc [Go Text templates](https://golang.org/pkg/text/template/) to be executed from the content files.
 +
 +And once enabled, you can do this in your content files:
 +
 + ```go-text-template
 + {{</* time.inline */>}}{{ now }}{{</* /time.inline */>}}
 + ```
 +
 +The above will print the current date and time.
 +
 + Note that an inline shortcode's inner content is parsed and executed as a Go text template with the same context as a regular shortcode template.
 +
 +This means that the current page can be accessed via `.Page.Title` etc. This also means that there are no concept of "nested inline shortcodes".
 +
 +The same inline shortcode can be reused later in the same content file, with different params if needed, using the self-closing syntax:
 +
 + ```go-text-template
 +{{</* time.inline /*/>}}
 +```
 +
 +[basic content files]: /content-management/formats/ "See how Hugo leverages markdown--and other supported formats--to create content for your website."
 +[built-in shortcode]: /content-management/shortcodes/
 +[config]: /getting-started/configuration/ "Learn more about Hugo's built-in configuration variables as well as how to us your site's configuration file to include global key-values that can be used throughout your rendered website."
 +[Content Management: Shortcodes]: /content-management/shortcodes/#using-hugo-s-built-in-shortcodes "Check this section if you are not familiar with the definition of what a shortcode is or if you are unfamiliar with how to use Hugo's built-in shortcodes in your content files."
 +[source organization]: /getting-started/directory-structure/#directory-structure-explained "Learn how Hugo scaffolds new sites and what it expects to find in each of your directories."
 +[docsshortcodes]: https://github.com/gohugoio/hugo/tree/master/docs/layouts/shortcodes "See the shortcode source directory for the documentation site you're currently reading."
 +[figure]: /content-management/shortcodes/#figure
 +[hugosc]: /content-management/shortcodes/#using-hugo-s-built-in-shortcodes
 +[lookup order]: /templates/lookup-order/ "See the order in which Hugo traverses your template files to decide where and how to render your content at build time"
 +[pagevars]: /variables/page/ "See which variables you can leverage in your templating for page vs list templates."
 +[parent]: /variables/shortcodes/
 +[shortcodesvars]: /variables/shortcodes/ "Certain variables are specific to shortcodes, although most .Page variables can be accessed within your shortcode template."
 +[spfscs]: https://github.com/spf13/spf13.com/tree/master/layouts/shortcodes "See more examples of shortcodes by visiting the shortcode directory of the source for spf13.com, the blog of Hugo's creator, Steve Francia."
 +[templates]: /templates/ "The templates section of the Hugo docs."
 +[vimeoexample]: #single-flexible-example-vimeo
 +[youtubeshortcode]: /content-management/shortcodes/#youtube "See how to use Hugo's built-in YouTube shortcode."
index 27fadb85b2f390dbad63abd5efde695c1c96d0ce,0000000000000000000000000000000000000000..9c283dfc3ed38cac90aeaa181279ef35c6bf54b5
mode 100644,000000..100644
--- /dev/null
@@@ -1,341 -1,0 +1,341 @@@
- ```
 +---
 +title: Taxonomy Templates
 +# linktitle:
 +description: Taxonomy templating includes taxonomy list pages, taxonomy terms pages, and using taxonomies in your single page templates.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [taxonomies,metadata,front matter,terms,templates]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 50
 +weight: 50
 +sections_weight: 50
 +draft: false
 +aliases: [/taxonomies/displaying/,/templates/terms/,/indexes/displaying/,/taxonomies/templates/,/indexes/ordering/, /templates/taxonomies/, /templates/taxonomy/]
 +toc: true
 +---
 +
 +<!-- NOTE! Check on https://github.com/gohugoio/hugo/issues/2826 for shifting of terms' pages to .Data.Pages AND
 +https://discourse.gohugo.io/t/how-to-specify-category-slug/4856/15 for original discussion.-->
 +
 +Hugo includes support for user-defined groupings of content called **taxonomies**. Taxonomies are classifications that demonstrate logical relationships between content. See [Taxonomies under Content Management](/content-management/taxonomies) if you are unfamiliar with how Hugo leverages this powerful feature.
 +
 +Hugo provides multiple ways to use taxonomies throughout your project templates:
 +
 +* Order the way content associated with a taxonomy term is displayed in a [taxonomy list template](#taxonomy-list-templates)
 +* Order the way the terms for a taxonomy are displayed in a [taxonomy terms template](#taxonomy-terms-templates)
 +* List a single content's taxonomy terms within a [single page template][]
 +
 +## Taxonomy List Templates
 +
 +Taxonomy list page templates are lists and therefore have all the variables and methods available to [list pages][lists].
 +
 +### Taxonomy List Template Lookup Order
 +
 +See [Template Lookup](/templates/lookup-order/).
 +
 +## Taxonomy Terms Templates
 +
 +### Taxonomy Terms Templates Lookup Order
 +
 +See [Template Lookup](/templates/lookup-order/).
 +
 +### Taxonomy Methods
 +
 +A Taxonomy is a `map[string]WeightedPages`.
 +
 +.Get(term)
 +: Returns the WeightedPages for a term.
 +
 +.Count(term)
 +: The number of pieces of content assigned to this term.
 +
 +.Alphabetical
 +: Returns an OrderedTaxonomy (slice) ordered by Term.
 +
 +.ByCount
 +: Returns an OrderedTaxonomy (slice) ordered by number of entries.
 +
 +.Reverse
 +: Returns an OrderedTaxonomy (slice) in reverse order. Must be used with an OrderedTaxonomy.
 +
 +### OrderedTaxonomy
 +
 +Since Maps are unordered, an OrderedTaxonomy is a special structure that has a defined order.
 +
 +```go
 +[]struct {
 +    Name          string
 +    WeightedPages WeightedPages
 +}
 +```
 +
 +Each element of the slice has:
 +
 +.Term
 +: The Term used.
 +
 +.WeightedPages
 +: A slice of Weighted Pages.
 +
 +.Count
 +: The number of pieces of content assigned to this term.
 +
 +.Pages
 +: All Pages assigned to this term. All [list methods][renderlists] are available to this.
 +
 +## WeightedPages
 +
 +WeightedPages is simply a slice of WeightedPage.
 +
 +```go
 +type WeightedPages []WeightedPage
 +```
 +
 +.Count(term)
 +: The number of pieces of content assigned to this term.
 +
 +.Pages
 +: Returns a slice of pages, which then can be ordered using any of the [list methods][renderlists].
 +
 +## Displaying custom metadata in Taxonomy Terms Templates
 +
 +If you need to display custom metadata for each taxonomy term, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in its front matter, [as explained in the taxonomies documentation](/content-management/taxonomies/#add-custom-metadata-to-a-taxonomy-or-term). Based on the Actors taxonomy example shown there, within your taxonomy terms template, you may access your custom fields by iterating through the variable `.Pages` as such:
 +
 +```go-html-template
 +<ul>
 +    {{ range .Pages }}
 +        <li>
 +            <a href="{{ .Permalink }}">{{ .Title }}</a>
 +            {{ .Params.wikipedia }}
 +        </li>
 +    {{ end }}
 +</ul>
 +```
 +
 +<!-- Begin /taxonomies/ordering/ -->
 +
 +## Order Taxonomies
 +
 +Taxonomies can be ordered by either alphabetical key or by the number of content pieces assigned to that key.
 +
 +### Order Alphabetically Example
 +
 +```go-html-template
 +<ul>
 +    {{ range .Data.Terms.Alphabetical }}
 +            <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
 +    {{ end }}
 +</ul>
 +```
 +
 +<!-- [See Also Taxonomy Lists](/templates/list/) -->
 +
 +## Order Content within Taxonomies
 +
 +Hugo uses both `date` and `weight` to order content within taxonomies.
 +
 +Each piece of content in Hugo can optionally be assigned a date. It can also be assigned a weight for each taxonomy it is assigned to.
 +
 +When iterating over content within taxonomies, the default sort is the same as that used for section and list pages: first by weight, then by date. This means that if the weights for two pieces of content are the same, then the more recent content will be displayed first.
 +
 +The default weight for any piece of content is 0. Zero means "does not have a weight", not "has a weight of numerical value zero".
 +
 +Weights of zero are thus treated specially: if two pages have unequal weights, and one of them is zero, then the zero-weighted page will always appear after the other one, regardless of the other's weight. Zero weights should thus be used with care: for example, if both positive and negative weights are used to extend a sequence in both directions, a zero-weighted page will appear not in the middle of the list, but at the end.
 +
 +### Assign Weight
 +
 +Content can be assigned weight for each taxonomy that it's assigned to.
 +
++```txt
 ++++
 +tags = [ "a", "b", "c" ]
 +tags_weight = 22
 +categories = ["d"]
 +title = "foo"
 +categories_weight = 44
 ++++
 +Front Matter with weighted tags and categories
 +```
 +
 +The convention is `taxonomyname_weight`.
 +
 +In the above example, this piece of content has a weight of 22 which applies to the sorting when rendering the pages assigned to the "a", "b" and "c" values of the 'tag' taxonomy.
 +
 +It has also been assigned the weight of 44 when rendering the 'd' category.
 +
 +With this the same piece of content can appear in different positions in different taxonomies.
 +
 +Currently taxonomies only support the default ordering of content which is weight -> date.
 +
 +<!-- Begin /taxonomies/templates/ -->
 +
 +There are two different templates that the use of taxonomies will require you to provide.
 +
 +Both templates are covered in detail in the templates section.
 +
 +A [list template](/templates/list/) is any template that will be used to render multiple pieces of content in a single html page. This template will be used to generate all the automatically created taxonomy pages.
 +
 +A [taxonomy terms template](/templates/terms/) is a template used to
 +generate the list of terms for a given template.
 +
 +<!-- Begin /taxonomies/displaying/ -->
 +
 +There are four common ways you can display the data in your
 +taxonomies in addition to the automatic taxonomy pages created by hugo
 +using the [list templates](/templates/list/):
 +
 +1. For a given piece of content, you can list the terms attached
 +2. For a given piece of content, you can list other content with the same
 +   term
 +3. You can list all terms for a taxonomy
 +4. You can list all taxonomies (with their terms)
 +
 +## Display a Single Piece of Content's Taxonomies
 +
 +Within your content templates, you may wish to display the taxonomies that piece of content is assigned to.
 +
 +Because we are leveraging the front matter system to define taxonomies for content, the taxonomies assigned to each content piece are located in the usual place (i.e., `.Params.<TAXONOMYPLURAL>`).
 +
 +### Example: List Tags in a Single Page Template
 +
 +```go-html-template
 +<ul>
 +    {{ range (.GetTerms "tags") }}
 +        <li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
 +    {{ end }}
 +</ul>
 +```
 +
 +If you want to list taxonomies inline, you will have to take care of optional plural endings in the title (if multiple taxonomies), as well as commas. Let's say we have a taxonomy "directors" such as `directors: [ "Joel Coen", "Ethan Coen" ]` in the TOML-format front matter.
 +
 +To list such taxonomies, use the following:
 +
 +### Example: Comma-delimit Tags in a Single Page Template
 +
 +```go-html-template
 +{{ $taxo := "directors" }} <!-- Use the plural form here -->
 +{{ with .Param $taxo }}
 +    <strong>Director{{ if gt (len .) 1 }}s{{ end }}:</strong>
 +    {{ range $index, $director := . }}
 +        {{- if gt $index 0 }}, {{ end -}}
 +        {{ with $.Site.GetPage (printf "/%s/%s" $taxo $director) -}}
 +            <a href="{{ .Permalink }}">{{ $director }}</a>
 +        {{- end -}}
 +    {{- end -}}
 +{{ end }}
 +```
 +
 +Alternatively, you may use the [delimit template function][delimit] as a shortcut if the taxonomies should just be listed with a separator. See {{< gh 2143 >}} on GitHub for discussion.
 +
 +## List Content with the Same Taxonomy Term
 +
 +If you are using a taxonomy for something like a series of posts, you can list individual pages associated with the same taxonomy. This is also a quick and dirty method for showing related content:
 +
 +### Example: Showing Content in Same Series
 +
 +```go-html-template
 +<ul>
 +    {{ range .Site.Taxonomies.series.golang }}
 +        <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>
 +    {{ end }}
 +</ul>
 +```
 +
 +## List All content in a Given taxonomy
 +
 +This would be very useful in a sidebar as “featured content”. You could even have different sections of “featured content” by assigning different terms to the content.
 +
 +### Example: Grouping "Featured" Content
 +
 +```go-html-template
 +<section id="menu">
 +    <ul>
 +        {{ range $key, $taxonomy := .Site.Taxonomies.featured }}
 +        <li>{{ $key }}</li>
 +        <ul>
 +            {{ range $taxonomy.Pages }}
 +            <li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}">{{ .LinkTitle }}</a></li>
 +            {{ end }}
 +        </ul>
 +        {{ end }}
 +    </ul>
 +</section>
 +```
 +
 +## Render a Site's Taxonomies
 +
 +If you wish to display the list of all keys for your site's taxonomy, you can retrieve them from the [`.Site` variable][sitevars] available on every page.
 +
 +This may take the form of a tag cloud, a menu, or simply a list.
 +
 +The following example displays all terms in a site's tags taxonomy:
 +
 +### Example: List All Site Tags {#example-list-all-site-tags}
 +
 +```go-html-template
 +<ul>
 +    {{ range .Site.Taxonomies.tags }}
 +            <li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
 +    {{ end }}
 +</ul>
 +```
 +
 +### Example: List All Taxonomies, Terms, and Assigned Content
 +
 +This example will list all taxonomies and their terms, as well as all the content assigned to each of the terms.
 +
 +{{< code file="layouts/partials/all-taxonomies.html" download="all-taxonomies.html" download="all-taxonomies.html" >}}
 +<section>
 +    <ul id="all-taxonomies">
 +        {{ range $taxonomy_term, $taxonomy := .Site.Taxonomies }}
 +            {{ with $.Site.GetPage (printf "/%s" $taxonomy_term) }}
 +                <li><a href="{{ .Permalink }}">{{ $taxonomy_term }}</a>
 +                    <ul>
 +                        {{ range $key, $value := $taxonomy }}
 +                            <li>{{ $key }}</li>
 +                            <ul>
 +                                {{ range $value.Pages }}
 +                                    <li hugo-nav="{{ .RelPermalink}}">
 +                                        <a href="{{ .Permalink}}">{{ .LinkTitle }}</a>
 +                                    </li>
 +                                {{ end }}
 +                            </ul>
 +                        {{ end }}
 +                    </ul>
 +                </li>
 +            {{ end }}
 +        {{ end }}
 +    </ul>
 +</section>
 +{{< /code >}}
 +
 +## `.Site.GetPage` for Taxonomies
 +
 +Because taxonomies are lists, the [`.GetPage` function][getpage] can be used to get all the pages associated with a particular taxonomy term using a terse syntax. The following ranges over the full list of tags on your site and links to each of the individual taxonomy pages for each term without having to use the more fragile URL construction of the ["List All Site Tags" example above]({{< relref "#example-list-all-site-tags" >}}):
 +
 +{{< code file="links-to-all-tags.html" >}}
 +{{ $taxo := "tags" }}
 +<ul class="{{ $taxo }}">
 +    {{ with ($.Site.GetPage (printf "/%s" $taxo)) }}
 +        {{ range .Pages }}
 +            <li><a href="{{ .Permalink }}">{{ .Title}}</a></li>
 +        {{ end }}
 +    {{ end }}
 +</ul>
 +{{< /code >}}
 +
 +<!-- TODO: ### `.Site.GetPage` Taxonomy List Example -->
 +
 +<!-- TODO: ### `.Site.GetPage` Taxonomy Terms Example -->
 +
 +
 +[delimit]: /functions/delimit/
 +[getpage]: /functions/getpage/
 +[lists]: /templates/lists/
 +[renderlists]: /templates/lists/
 +[single page template]: /templates/single-page-templates/
 +[sitevars]: /variables/site/
index 0a5150a8ae9aa7a6da7ecaf1aa3b830d11019623,0000000000000000000000000000000000000000..ef8e205dad8815af11018b329bdbd28a8fb74b13
mode 100644,000000..100644
--- /dev/null
@@@ -1,76 -1,0 +1,69 @@@
- # linktitle: Template Debugging
 +---
 +title: Template Debugging
- lastmod: 2017-02-01
 +description: You can use Go templates' `printf` function to debug your Hugo  templates. These snippets provide a quick and easy visualization of the variables available to you in different contexts.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [templates]
 +keywords: [debugging,troubleshooting]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 180
 +weight: 180
 +sections_weight: 180
- These snippets use the `printf` function available in all Go templates.  This function is an alias to the Go function, [fmt.Printf](https://golang.org/pkg/fmt/).
 +aliases: []
 +toc: false
 +---
 +
 +Here are some snippets you can add to your template to answer some common questions.
 +
- ```
++These snippets use the `printf` function available in all Go templates.  This function is an alias to the Go function, [fmt.Printf](https://pkg.go.dev/fmt).
 +
 +## What Variables are Available in this Context?
 +
 +You can use the template syntax, `$.`, to get the top-level template context from anywhere in your template. This will print out all the values under, `.Site`.
 +
- ```
++```go-html-template
 +{{ printf "%#v" $.Site }}
 +```
 +
 +This will print out the value of `.Permalink`:
 +
++```go-html-template
 +{{ printf "%#v" .Permalink }}
 +```
 +
- ```
 +This will print out a list of all the variables scoped to the current context
 +(`.`, aka ["the dot"][tempintro]).
 +
++```go-html-template
 +{{ printf "%#v" . }}
 +```
 +
- ```
 +When developing a [homepage][], what does one of the pages you're looping through look like?
 +
- ```
++```go-html-template
 +{{ range .Pages }}
 +    {{/* The context, ".", is now each one of the pages as it goes through the loop */}}
 +    {{ printf "%#v" . }}
 +{{ end }}
 +```
 +
 +## Why Am I Showing No Defined Variables?
 +
 +Check that you are passing variables in the `partial` function:
 +
- ```
++```go-html-template
 +{{ partial "header.html" }}
 +```
 +
 +This example will render the header partial, but the header partial will not have access to any contextual variables. You need to pass variables explicitly. For example, note the addition of ["the dot"][tempintro].
 +
++```go-html-template
 +{{ partial "header.html" . }}
 +```
 +
 +The dot (`.`) is considered fundamental to understanding Hugo templating. For more information, see [Introduction to Hugo Templating][tempintro].
 +
 +[homepage]: /templates/homepage/
 +[tempintro]: /templates/introduction/
index 87f66afe013a3fe5c2f941af614b8906bed22895,0000000000000000000000000000000000000000..495f701bd135bb6c214657ba7bb219eee0fdf110
mode 100644,000000..100644
--- /dev/null
@@@ -1,121 -1,0 +1,121 @@@
- ```
 +---
 +title: Content View Templates
 +# linktitle: Content Views
 +description: Hugo can render alternative views of your content, which is especially useful in list and summary views.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [templates]
 +keywords: [views]
 +menu:
 +  docs:
 +    parent: "templates"
 +    weight: 70
 +weight: 70
 +sections_weight: 70
 +draft: false
 +aliases: []
 +toc: true
 +---
 +
 +These alternative **content views** are especially useful in [list templates][lists].
 +
 +The following are common use cases for content views:
 +
 +* You want content of every type to be shown on the homepage but only with limited [summary views][summaries].
 +* You only want a bulleted list of your content on a [taxonomy list page][taxonomylists]. Views make this very straightforward by delegating the rendering of each different type of content to the content itself.
 +
 +## Create a Content View
 +
 +To create a new view, create a template in each of your different content type directories with the view name. The following example contains an "li" view and a "summary" view for the `posts` and `project` content types. As you can see, these sit next to the [single content view][single] template, `single.html`. You can even provide a specific view for a given type and continue to use the `_default/single.html` for the primary view.
 +
- ```
++```txt
 +  ▾ layouts/
 +    ▾ posts/
 +        li.html
 +        single.html
 +        summary.html
 +    ▾ project/
 +        li.html
 +        single.html
 +        summary.html
 +```
 +
 +Hugo also has support for a default content template to be used in the event that a specific content view template has not been provided for that type. Content views can also be defined in the `_default` directory and will work the same as list and single templates who eventually trickle down to the `_default` directory as a matter of the lookup order.
 +
 +
- The following example demonstrates how to use content views inside of your [list templates][lists].
++```txt
 +▾ layouts/
 +  ▾ _default/
 +      li.html
 +      single.html
 +      summary.html
 +```
 +
 +## Which Template Will be Rendered?
 +
 +The following is the [lookup order][lookup] for content views:
 +
 +1. `/layouts/<TYPE>/<VIEW>.html`
 +2. `/layouts/_default/<VIEW>.html`
 +3. `/themes/<THEME>/layouts/<TYPE>/<VIEW>.html`
 +4. `/themes/<THEME>/layouts/_default/<VIEW>.html`
 +
 +## Example: Content View Inside a List
 +
++The following example demonstrates how to use content views inside your [list templates][lists].
 +
 +### `list.html`
 +
 +In this example, `.Render` is passed into the template to call the [render function][render]. `.Render` is a special function that instructs content to render itself with the view template provided as the first argument. In this case, the template is going to render the `summary.html` view that follows:
 +
 +{{< code file="layouts/_default/list.html" download="list.html" >}}
 +<main id="main">
 +  <div>
 +  <h1 id="title">{{ .Title }}</h1>
 +  {{ range .Pages }}
 +    {{ .Render "summary"}}
 +  {{ end }}
 +  </div>
 +</main>
 +{{< /code >}}
 +
 +### `summary.html`
 +
 +Hugo will pass the entire page object to the following `summary.html` view template. (See [Page Variables][pagevars] for a complete list.)
 +
 +{{< code file="layouts/_default/summary.html" download="summary.html" >}}
 +<article class="post">
 +  <header>
 +    <h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
 +    <div class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words </div>
 +  </header>
 +  {{ .Summary }}
 +  <footer>
 +  <a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
 +  </footer>
 +</article>
 +{{< /code >}}
 +
 +### `li.html`
 +
 +Continuing on the previous example, we can change our render function to use a smaller `li.html` view by changing the argument in the call to the `.Render` function (i.e., `{{ .Render "li" }}`).
 +
 +{{< code file="layouts/_default/li.html" download="li.html" >}}
 +<li>
 +  <a href="{{ .Permalink }}">{{ .Title }}</a>
 +  <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
 +</li>
 +{{< /code >}}
 +
 +[lists]: /templates/lists/
 +[lookup]: /templates/lookup-order/
 +[pagevars]: /variables/page/
 +[render]: /functions/render/
 +[single]: /templates/single-page-templates/
 +[spf]: https://spf13.com
 +[spfsourceli]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/li.html
 +[spfsourcesection]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/section.html
 +[spfsourcesummary]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/summary.html
 +[summaries]: /content-management/summaries/
 +[taxonomylists]: /templates/taxonomy-templates/
index a186ffb06a498ae68a85bdb9725ce5f44a1930b3,0000000000000000000000000000000000000000..a630418193bb257835829c4e6aa29f615641c90f
mode 100644,000000..100644
--- /dev/null
@@@ -1,24 -1,0 +1,23 @@@
- draft: false
 +---
 +title: Developer Tools
 +linktitle: Developer Tools Overview
 +description: In addition to Hugo's powerful CLI, there is a large number of community-developed tool chains for Hugo developers.
 +date: 2016-12-05
 +publishdate: 2016-12-05
 +lastmod: 2017-02-26
 +categories: [developer tools]
 +keywords: []
 +menu:
 +  docs:
 +    parent: "tools"
 +    weight: 01
 +weight: 01
 +sections_weight: 01
 +---
 +
 +One of Hugo's greatest strengths is its passionate---and always evolving---developer community. With the exception of the `highlight` shortcode mentioned in [Syntax Highlighting][syntax], the tools and other projects featured in this section are offerings from both commercial services and open-source projects, many of which are developed by Hugo developers just like you.
 +
 +[See the popularity of Hugo compared with other static site generators.][staticgen]
 +
 +[staticgen]: https://staticgen.com
 +[syntax]: /tools/syntax-highlighting/
index 8da5fc2d77f365cc8e39cc59bcbc50c9f0103a1d,0000000000000000000000000000000000000000..ed67885fcb976047529e620d9c2cee317e90db19
mode 100644,000000..100644
--- /dev/null
@@@ -1,50 -1,0 +1,50 @@@
- lastmod: 2017-02-01
 +---
 +title: Editor Plug-ins for Hugo
 +linktitle: Editor Plug-ins
 +description: The Hugo community uses a wide range of preferred tools and has developed plug-ins for some of the most popular text editors to help automate parts of your workflow.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- * [Front Matter](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter). Once you go for a static site, you need to think about how you are going to manage your articles. Front matter is a tool that helps you maintaining the metadata/front matter of your articles like: creation date, modified date, slug, tile, SEO check, and many more...
 +categories: [developer tools]
 +keywords: [editor, plug-ins]
 +menu:
 +  docs:
 +    parent: "tools"
 +    weight: 50
 +weight: 50
 +sections_weight: 50
 +draft: false
 +aliases: []
 +toc: false
 +---
 +
 +The Hugo community uses a wide range of preferred tools and has developed plug-ins for some of the most popular text editors to help automate parts of your workflow.
 +
 +## Sublime Text
 +
 +* [Hugofy](https://github.com/akmittal/Hugofy). Hugofy is a plugin for Sublime Text 3 to make life easier to use Hugo static site generator.
 +* [Hugo Snippets](https://packagecontrol.io/packages/Hugo%20Snippets). Hugo Snippets is a useful plugin for adding automatic snippets to Sublime Text 3.
 +
 +## Visual Studio Code
 +
 +* [Hugofy](https://marketplace.visualstudio.com/items?itemName=akmittal.hugofy). Hugofy is a plugin for Visual Studio Code to "make life easier" when developing with Hugo. The source code can be found [here](https://github.com/akmittal/hugofy-vscode).
 +* [Hugo Helper](https://marketplace.visualstudio.com/items?itemName=rusnasonov.vscode-hugo). Hugo Helper is a plugin for Visual Studio Code that has some useful commands for Hugo. The source code can be found [here](https://github.com/rusnasonov/vscode-hugo).
 +* [Hugo Language and Syntax Support](https://marketplace.visualstudio.com/items?itemName=budparr.language-hugo-vscode). Hugo Language and Syntax Support is a Visual Studio Code plugin for Hugo syntax highlighting and snippets. The source code can be found [here](https://github.com/budparr/language-hugo-vscode).
 +* [Hugo Themer](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hugo-themer). Hugo Themer is an extension to help you while developing themes. It allows you to easily navigate through your theme files.
- * [ox-hugo.el](https://ox-hugo.scripter.co). Native Org-mode exporter that exports to Blackfriday Markdown with Hugo front-matter. `ox-hugo` supports two common Org blogging flows --- exporting multiple Org sub-trees in a single file to multiple Hugo posts, and exporting a single Org file to a single Hugo post. It also leverages the Org tag and property inheritance features. See [*Why ox-hugo?*](https://ox-hugo.scripter.co/doc/why-ox-hugo/) for more.
++* [Front Matter](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter). Once you go for a static site, you need to think about how you are going to manage your articles. Front matter is a tool that helps you maintain the metadata/front matter of your articles like: creation date, modified date, slug, tile, SEO check, and many more...
++* [Syntax Highlighting for Hugo Shortcodes](https://marketplace.visualstudio.com/items?itemName=kaellarkin.hugo-shortcode-syntax). This extension add some syntax highlighting for Shortcodes, making visual identification of individual pieces easier.
 +
 +## Emacs
 +
 +* [emacs-easy-hugo](https://github.com/masasam/emacs-easy-hugo). Emacs major mode for managing hugo blogs. Note that Hugo also supports [Org-mode][formats].
++* [ox-hugo.el](https://ox-hugo.scripter.co). Native Org-mode exporter that exports to Blackfriday Markdown with Hugo front-matter. `ox-hugo` supports two common Org blogging flows --- exporting multiple Org subtrees in a single file to multiple Hugo posts, and exporting a single Org file to a single Hugo post. It also leverages the Org tag and property inheritance features. See [*Why ox-hugo?*](https://ox-hugo.scripter.co/doc/why-ox-hugo/) for more.
 +
 +## Vim
 +
 +* [Vim Hugo Helper](https://github.com/robertbasic/vim-hugo-helper). A small Vim plugin to help me with writing posts with Hugo.
 +
 +## Atom
 +
 +* [Hugofy](https://atom.io/packages/hugofy). A Hugo Static Website Generator package for Atom.
 +* [language-hugo](https://atom.io/packages/language-hugo). Adds syntax highlighting to Hugo files.
 +
 +[formats]: /content-management/formats/
index b0fb036322e1b406b001609c42c3306429adcde2,0000000000000000000000000000000000000000..9f52c4c678385f143432dc20199913f242b5657e
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,30 @@@
- keywords: [frontend,gui]
 +---
 +title: Frontend Interfaces with Hugo
 +linktitle: Frontends
 +description: Do you prefer a graphical user interface over a text editor? Give these frontends a try.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [developer tools]
- * [enwrite](https://github.com/zzamboni/enwrite). Enwrite enables evernote-powered, statically generated blogs and websites. Now posting to your blog or updating your website is as easy as writing a new note in Evernote!
- * [Lipi](https://github.com/SohanChy/Lipi). Lipi is a native GUI frontend written in Java to manage your Hugo websites.
- * [Netlify CMS](https://netlifycms.org). Netlify CMS is an open source, serverless solution for managing Git based content in static sites, and it works on any platform that can host static sites. A [Hugo/Netlify CMS starter](https://github.com/netlify-templates/one-click-hugo-cms) is available to get new projects running quickly.
- * [Hokus CMS](https://github.com/julianoappelklein/hokus). Hokus CMS is an open source, multi-platform, easy to use, desktop application for Hugo. Build from simple to complex user interfaces for Hugo websites by choosing from a dozen ready-to-use components — all for free, with no vendor lock-in.
++keywords: [frontend, gui]
 +menu:
 +  docs:
 +    parent: "tools"
 +    weight: 40
 +weight: 40
 +sections_weight: 40
 +draft: false
 +aliases: []
 +toc: false
 +---
 +
- * [DATOCMS](https://www.datocms.com) DatoCMS is a fully customizable administrative area for your static websites. Use your favorite website generator, let your clients publish new content independently, and the host the site anywhere you like.
- * [Forestry.io](https://forestry.io/). Forestry is a git-backed CMS for Hugo, Gatsby, Jekyll and VuePress websites with support for GitHub, GitLab, Bitbucket and Azure Devops. Forestry provides a nice user interface to edit and model content for non technical editors. It supports S3, Cloudinary and Netlify Large Media integrations for storing media. Every time an update is made via the CMS, Forestry will commit changes back to your repo and vice-versa.
- * [CloudCannon](https://cloudcannon.com/hugo-cms/). The intuitive Git-based CMS for your Hugo website. CloudCannon syncs changes from your Git repository and pushes content changes back, so your development and content teams are always in sync. Edit all of your content on the page with visual editing, build entire pages with reusable custom components and then publish confidently.
++- [enwrite](https://github.com/zzamboni/enwrite). Enwrite enables evernote-powered, statically generated blogs and websites. Now posting to your blog or updating your website is as easy as writing a new note in Evernote!
++- [Lipi](https://github.com/SohanChy/Lipi). Lipi is a native GUI frontend written in Java to manage your Hugo websites.
++- [Netlify CMS](https://netlifycms.org). Netlify CMS is an open source, serverless solution for managing Git based content in static sites, and it works on any platform that can host static sites. A [Hugo/Netlify CMS starter](https://github.com/netlify-templates/one-click-hugo-cms) is available to get new projects running quickly.
++- [Hokus CMS](https://github.com/julianoappelklein/hokus). Hokus CMS is an open source, multi-platform, easy to use, desktop application for Hugo. Build from simple to complex user interfaces for Hugo websites by choosing from a dozen ready-to-use components — all for free, with no vendor lock-in.
 +
 +## Commercial Services
 +
++- [DATOCMS](https://www.datocms.com) DatoCMS is a fully customizable administrative area for your static websites. Use your favorite website generator, let your clients publish new content independently, and the host the site anywhere you like.
++- [Forestry.io](https://forestry.io/). Forestry is a git-backed CMS for Hugo, Gatsby, Jekyll and VuePress websites with support for GitHub, GitLab, Bitbucket and Azure Devops. Forestry provides a nice user interface to edit and model content for non technical editors. It supports S3, Cloudinary and Netlify Large Media integrations for storing media. Every time an update is made via the CMS, Forestry will commit changes back to your repo and vice-versa.
++- [CloudCannon](https://cloudcannon.com/hugo-cms/). The intuitive Git-based CMS for your Hugo website. CloudCannon syncs changes from your Git repository and pushes content changes back, so your development and content teams are always in sync. Edit all of your content on the page with visual editing, build entire pages with reusable custom components and then publish confidently.
index 7009164ebf8190f3e1865517ce8a45ee3c4185e9,0000000000000000000000000000000000000000..d6ca14ab52fabc6eaeea22a0430e760fb2674faa
mode 100644,000000..100644
--- /dev/null
@@@ -1,87 -1,0 +1,85 @@@
- keywords: [migrations,jekyll,wordpress,drupal,ghost,contentful]
 +---
 +title: Migrate to Hugo
 +linktitle: Migrations
 +description: A list of community-developed tools for migrating from your existing static site generator or content management system to Hugo.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2022-03-26
- aliases: [/developer-tools/migrations/,/developer-tools/migrated/]
++keywords: [migrations, jekyll, wordpress, drupal, ghost, contentful]
 +menu:
 +  docs:
 +    parent: "tools"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +draft: false
- - [JekyllToHugo](https://github.com/SenjinDarashiva/JekyllToHugo) - A Small script for converting Jekyll blog posts to a Hugo site.
++aliases: [/developer-tools/migrations/, /developer-tools/migrated/]
 +toc: true
 +---
 +
 +This section highlights some projects around Hugo that are independently developed. These tools try to extend the functionality of our static site generator or help you to get started.
 +
 +{{% note %}}
 +Do you know or maintain a similar project around Hugo? Feel free to open a [pull request](https://github.com/gohugoio/hugoDocs/pulls) on GitHub if you think it should be added.
 +{{% /note %}}
 +
 +Take a look at this list of migration tools if you currently use other blogging tools like Jekyll or WordPress but intend to switch to Hugo instead. They'll take care to export your content into Hugo-friendly formats.
 +
 +## Jekyll
 +
 +Alternatively, you can use the new [Jekyll import command](/commands/hugo_import_jekyll/).
 +
- - [wpxr-to-static](https://github.com/danielfdickinson/wpxr-to-static) - WordPress eXtended RSS to Static Generator Conversion, Python3 program to convert WordPress XML Export (WPXR) format files to Hugo Markdown files (with YAML metadata) and a `config.toml` for the site. Inspired by [exitwp-for-hugo](https://github.com/wooni005/exitwp-for-hugo) (a Python 2 \[EOL] script which works with the xml export from WordPress and converts WordPress pages and posts to Markdown and YAML for hugo).
++- [JekyllToHugo](https://github.com/fredrikloch/JekyllToHugo) - A Small script for converting Jekyll blog posts to a Hugo site.
 +- [ConvertToHugo](https://github.com/coderzh/ConvertToHugo) - Convert your blog from Jekyll to Hugo.
 +
 +## Ghost
 +
 +- [ghostToHugo](https://github.com/jbarone/ghostToHugo) - Convert Ghost blog posts and export them to Hugo.
 +
 +## Octopress
 +
 +- [octohug](https://github.com/codebrane/octohug) - Octopress to Hugo migrator.
 +
 +## DokuWiki
 +
 +- [dokuwiki-to-hugo](https://github.com/wgroeneveld/dokuwiki-to-hugo) - Migrates your DokuWiki source pages from [DokuWiki syntax](https://www.dokuwiki.org/wiki:syntax) to Hugo Markdown syntax. Includes extra's like the TODO plugin. Written with extensibility in mind using python 3. Also generates a TOML header for each page. Designed to copypaste the wiki directory into your /content directory.
 +
 +## WordPress
 +
 +- [wordpress-to-hugo-exporter](https://github.com/SchumacherFM/wordpress-to-hugo-exporter) - A one-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Hugo. (Note: If you have trouble using this plugin, you can [export your site for Jekyll](https://wordpress.org/plugins/jekyll-exporter/) and use Hugo's built in Jekyll converter listed above.)
 +- [blog2md](https://github.com/palaniraja/blog2md) - Works with [exported xml](https://en.support.wordpress.com/export/) file of your free YOUR-TLD.wordpress.com website. It also saves approved comments to `YOUR-POST-NAME-comments.md` file along with posts.
 +- [wordhugopress](https://github.com/nantipov/wordhugopress) - A small utility written in Java, exports the entire WordPress site from the database and resource (e.g. images) files stored locally or remotely. Therefore, migration from the backup files is possible. Supports merging of the multiple WordPress sites into a single Hugo one.
 +
 +## Medium
 +
 +- [medium2md](https://github.com/gautamdhameja/medium-2-md) - A simple Medium to Hugo exporter able to import stories in one command, including Front Matter.
 +- [medium-to-hugo](https://github.com/bgadrian/medium-to-hugo) - CLI tool written in Go to export medium posts into a Hugo compatible Markdown format. Tags and images are included. All images will be downloaded locally and linked appropriately.
 +
 +## Tumblr
 +
 +- [tumblr-importr](https://github.com/carlmjohnson/tumblr-importr) - An importer that uses the Tumblr API to create a Hugo static site.
 +- [tumblr2hugomarkdown](https://github.com/Wysie/tumblr2hugomarkdown) - Export all your Tumblr content to Hugo Markdown files with preserved original formatting.
 +- [Tumblr to Hugo](https://github.com/jipiboily/tumblr-to-hugo) - A migration tool that converts each of your Tumblr posts to a content file with a proper title and path. Furthermore, "Tumblr to Hugo" creates a CSV file with the original URL and the new path on Hugo, to help you setup the redirections.
 +
 +## Drupal
 +
 +- [drupal2hugo](https://github.com/danapsimer/drupal2hugo) - Convert a Drupal site to Hugo.
 +
 +## Joomla
 +
 +- [hugojoomla](https://github.com/davetcc/hugojoomla) - This utility written in Java takes a Joomla database and converts all the content into Markdown files. It changes any URLs that are in Joomla's internal format and converts them to a suitable form.
 +
 +## Blogger
 +
 +- [blogimport](https://github.com/natefinch/blogimport) - A tool to import from Blogger posts to Hugo.
 +- [blogger-to-hugo](https://pypi.org/project/blogger-to-hugo/) - Another tool to import Blogger posts to Hugo. It also downloads embedded images so they will be stored locally.
 +- [blog2md](https://github.com/palaniraja/blog2md) - Works with [exported xml](https://support.google.com/blogger/answer/41387?hl=en) file of your YOUR-TLD.blogspot.com website. It also saves comments to `YOUR-POST-NAME-comments.md` file along with posts.
 +- [BloggerToHugo](https://github.com/huanlin/blogger-to-hugo) - Yet another tool to import Blogger posts to Hugo. For Windows platform only, and .NET Framework 4.5 is required. See README.md before using this tool.
 +
 +## Contentful
 +
 +- [contentful2hugo](https://github.com/ArnoNuyts/contentful2hugo) - A tool to create content-files for Hugo from content on [Contentful](https://www.contentful.com/).
 +
- - [BlogML2Hugo](https://github.com/jijiechen/BlogML2Hugo) - A tool that helps you convert BlogML xml file to Hugo markdown files. Users need to take care of links to attachments and images by themselves. This helps the blogs that export BlogML files (e.g. BlogEngine.NET) transform to hugo sites easily.
 +## BlogML
 +
++- [BlogML2Hugo](https://github.com/jijiechen/BlogML2Hugo) - A tool that helps you convert BlogML xml file to Hugo Markdown files. Users need to take care of links to attachments and images by themselves. This helps the blogs that export BlogML files (e.g. BlogEngine.NET) transform to hugo sites easily.
index 3afd7b96b351579a5ba633f1dfd1b5accbdc4d9d,0000000000000000000000000000000000000000..ed7c530d0df4ac203b457f4b15c8e492dfc5af2d
mode 100644,000000..100644
--- /dev/null
@@@ -1,29 -1,0 +1,28 @@@
- lastmod: 2017-02-01
 +---
 +title: Other Hugo Community Projects
 +linktitle: Other Projects
 +description: Some interesting projects developed by the Hugo community that don't quite fit into our other developer tool categories.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- keywords: [frontend,gui]
 +categories: [developer tools]
- draft: false
++keywords: [frontend, gui]
 +menu:
 +  docs:
 +    parent: "tools"
 +    weight: 70
 +weight: 70
 +sections_weight: 70
- * [hugo-gallery](https://github.com/icecreammatt/hugo-gallery) lets you create an image gallery for Hugo sites.
- * [flickr-hugo-embed](https://github.com/nikhilm/flickr-hugo-embed) prints shortcodes to embed a set of images from an album on Flickr into Hugo.
- * [hugo-openapispec-shortcode](https://github.com/tenfourty/hugo-openapispec-shortcode) A shortcode that allows you to include [Open API Spec](https://openapis.org) (formerly known as Swagger Spec) in a page.
- * [HugoPhotoSwipe](https://github.com/GjjvdBurg/HugoPhotoSwipe) makes it easy to create image galleries using PhotoSwipe.
- * [Hugo SFTP Upload](https://github.com/thomasmey/HugoSftpUpload) Syncs the local build of your Hugo website with your remote webserver via SFTP.
- * [Emacs Easy Hugo](https://github.com/masasam/emacs-easy-hugo) Emacs package for writing blog posts in markdown or org-mode and building your site with Hugo.
- * [JAMStack Themes](https://jamstackthemes.dev/ssg/hugo/). JAMStack themes is a collection of site themes filterable by static site generator and supported CMS to help build CMS-connected sites using Hugo (linking to Hugo-specific themes).
 +aliases: []
 +toc: false
 +---
 +
 +And for all the other small things around Hugo:
 +
++- [hugo-gallery](https://github.com/icecreammatt/hugo-gallery) lets you create an image gallery for Hugo sites.
++- [flickr-hugo-embed](https://github.com/nikhilm/flickr-hugo-embed) prints shortcodes to embed a set of images from an album on Flickr into Hugo.
++- [hugo-openapispec-shortcode](https://github.com/tenfourty/hugo-openapispec-shortcode) A shortcode that allows you to include [Open API Spec](https://openapis.org) (formerly known as Swagger Spec) in a page.
++- [HugoPhotoSwipe](https://github.com/GjjvdBurg/HugoPhotoSwipe) makes it easy to create image galleries using PhotoSwipe.
++- [Hugo SFTP Upload](https://github.com/thomasmey/HugoSftpUpload) Syncs the local build of your Hugo website with your remote webserver via SFTP.
++- [Emacs Easy Hugo](https://github.com/masasam/emacs-easy-hugo) Emacs package for writing blog posts in markdown or org-mode and building your site with Hugo.
++- [JAMStack Themes](https://jamstackthemes.dev/ssg/hugo/). JAMStack themes is a collection of site themes filterable by static site generator and supported CMS to help build CMS-connected sites using Hugo (linking to Hugo-specific themes).
++- [plausible-hugo](https://github.com/divinerites/plausible-hugo). Easy Hugo integration for Plausible Analytics, a simple, open-source, lightweight and privacy-friendly web analytics alternative to Google Analytics.
index e28e144c10eafd6fb5788c82074f0189411193b3,0000000000000000000000000000000000000000..97ddeaf01f3d2fc106ae17a418cd039206e29275
mode 100644,000000..100644
--- /dev/null
@@@ -1,35 -1,0 +1,35 @@@
- lastmod: 2017-02-26
 +---
 +title: Search for your Hugo Website
 +linktitle: Search
 +description: See some of the open-source and commercial search options for your newly created Hugo website.
 +date: 2017-02-01
 +publishdate: 2017-02-01
- draft: false
 +categories: [developer tools]
 +keywords: [search,tools]
 +menu:
 +  docs:
 +    parent: "tools"
 +    weight: 60
 +weight: 60
 +sections_weight: 60
- * [hugo-lunr](https://www.npmjs.com/package/hugo-lunr). A simple way to add site search to your static Hugo site using [lunr.js](https://lunrjs.com/). Hugo-lunr will create an index file of any html and markdown documents in your Hugo project.
 +aliases: []
 +toc: true
 +---
 +
 +A static website with a dynamic search function? Yes, Hugo provides an alternative to embeddable scripts from Google or other search engines for static websites. Hugo allows you to provide your visitors with a custom search function by indexing your content files directly.
 +
 +* [GitHub Gist for Hugo Workflow](https://gist.github.com/sebz/efddfc8fdcb6b480f567). This gist contains a simple workflow to create a search index for your static website. It uses a simple Grunt script to index all your content files and [lunr.js](https://lunrjs.com/) to serve the search results.
 +
- * [Github Gist for Fuse.js integration](https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae). This gist demonstrates how to leverage Hugo's existing build time processing to generate a searchable JSON index used by [Fuse.js](https://fusejs.io/) on the client side. Although this gist uses Fuse.js for fuzzy matching, any client side search tool capable of reading JSON indexes will work. Does not require npm, grunt or other build-time tools except Hugo!
++* [hugo-lunr](https://www.npmjs.com/package/hugo-lunr). A simple way to add site search to your static Hugo site using [lunr.js](https://lunrjs.com/). Hugo-lunr will create an index file of any HTML and Markdown documents in your Hugo project.
 +* [hugo-lunr-zh](https://www.npmjs.com/package/hugo-lunr-zh). A bit like Hugo-lunr, but Hugo-lunr-zh can help you separate the Chinese keywords.
++* [GitHub Gist for Fuse.js integration](https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae). This gist demonstrates how to leverage Hugo's existing build time processing to generate a searchable JSON index used by [Fuse.js](https://fusejs.io/) on the client-side. Although this gist uses Fuse.js for fuzzy matching, any client-side search tool capable of reading JSON indexes will work. Does not require npm, grunt or other build-time tools except Hugo!
 +* [hugo-search-index](https://www.npmjs.com/package/hugo-search-index). A library containing Gulp tasks and a prebuilt browser script that implements search. Gulp generates a search index from project markdown files.
 +* [hugofastsearch](https://gist.github.com/cmod/5410eae147e4318164258742dd053993). A usability and speed update to "GitHub Gist for Fuse.js integration" — global, keyboard-optimized search.
++* [JS & Fuse.js tutorial](https://makewithhugo.com/add-search-to-a-hugo-site/) A simple client-side search solution, using FuseJS (does not require jQuery).
++* [Pagefind](https://github.com/cloudcannon/pagefind). A fully static search library that aims to perform well on large sites, while using as little of your users' bandwidth as possible.
 +
 +## Commercial Search Services
 +
 +* [Algolia](https://www.algolia.com/)'s Search API makes it easy to deliver a great search experience in your apps and websites. Algolia Search provides hosted full-text, numerical, faceted, and geolocalized search.
 +* [Bonsai](https://www.bonsai.io) is a fully-managed hosted Elasticsearch service that is fast, reliable, and simple to set up. Easily ingest your docs from Hugo into Elasticsearch following [this guide from the docs](https://docs.bonsai.io/docs/hugo).
 +* [ExpertRec](https://www.expertrec.com/) is a hosted search-as-a-service solution that is fast and scalable. Set-up and integration is extremely easy and takes only a few minutes. The search settings can be modified without coding using a dashboard.
index 1ec56475758d270fa01be7c65225e3ceeec60902,0000000000000000000000000000000000000000..ea31ef84b62876cf863755fb47c99a0c5cb96080
mode 100644,000000..100644
--- /dev/null
@@@ -1,96 -1,0 +1,94 @@@
- inefficient templates.  Hugo's *template metrics* feature is extremely helpful
 +---
 +title: Build Performance
 +linktitle: Build Performance
 +description: An overview of features used for diagnosing and improving performance issues in site builds.
 +date: 2017-03-12
 +publishdate: 2017-03-12
 +keywords: [performance, build]
 +categories: [troubleshooting]
 +menu:
 +  docs:
 +    parent: "troubleshooting"
 +weight: 3
 +slug:
 +aliases: []
 +toc: true
 +---
 +
 +## Template Metrics
 +
 +Hugo is a very fast static site generator, but it is possible to write
- | Metric Name         | Description |
- |---------------------|-------------|
- | cumulative duration | The cumulative time spent executing a given template. |
- | average duration    | The average time spent executing a given template. |
++inefficient templates. Hugo's _template metrics_ feature is extremely helpful
 +in pinpointing which templates are executed most often and how long those
 +executions take **in terms of CPU time**.
 +
- | count               | The number of times a template was executed. |
- | template            | The template name. |
++| Metric Name         | Description                                                    |
++| ------------------- | -------------------------------------------------------------- |
++| cumulative duration | The cumulative time spent executing a given template.          |
++| average duration    | The average time spent executing a given template.             |
 +| maximum duration    | The maximum time a single execution took for a given template. |
- ```
++| count               | The number of times a template was executed.                   |
++| template            | The template name.                                             |
 +
++```txt
 +▶ hugo --templateMetrics
 +Started building sites ...
 +
 +Built site for language en:
 +0 draft content
 +0 future content
 +0 expired content
 +2 regular pages created
 +22 other pages created
 +0 non-page files copied
 +0 paginator pages created
 +4 tags created
 +3 categories created
 +total in 18 ms
 +
 +Template Metrics:
 +
 +     cumulative       average       maximum
 +       duration      duration      duration  count  template
 +     ----------      --------      --------  -----  --------
 +     6.419663ms     583.605µs     994.374µs     11  _internal/_default/rss.xml
 +     4.718511ms    1.572837ms    3.880742ms      3  indexes/category.html
 +     4.642666ms    2.321333ms    3.282842ms      2  posts/single.html
 +     4.364445ms     396.767µs    2.451372ms     11  partials/header.html
 +     2.346069ms     586.517µs     903.343µs      4  indexes/tag.html
 +     2.330919ms     211.901µs    2.281342ms     11  partials/header.includes.html
 +     1.238976ms     103.248µs     446.084µs     12  posts/li.html
 +       972.16µs      972.16µs      972.16µs      1  _internal/_default/sitemap.xml
 +      953.597µs     953.597µs     953.597µs      1  index.html
 +      822.263µs     822.263µs     822.263µs      1  indexes/post.html
 +      567.498µs       51.59µs     112.205µs     11  partials/navbar.html
 +       348.22µs      31.656µs      88.249µs     11  partials/meta.html
 +      346.782µs     173.391µs     276.176µs      2  posts/summary.html
 +      235.184µs       21.38µs     124.383µs     11  partials/footer.copyright.html
 +      132.003µs          12µs     117.999µs     11  partials/menu.html
 +       72.547µs       6.595µs      63.764µs     11  partials/footer.html
 +```
 +
 +{{% note %}}
 +**A Note About Parallelism**
 +
 +Hugo builds pages in parallel where multiple pages are generated
 +simultaneously. Because of this parallelism, the sum of "cumulative duration"
 +values is usually greater than the actual time it takes to build a site.
 +{{% /note %}}
 +
- during a site build.  Depending on the content within the `partial` template and
 +## Cached Partials
 +
 +Some `partial` templates such as sidebars or menus are executed many times
- of executions.  The [`partialCached`][partialCached] template function provides
++during a site build. Depending on the content within the `partial` template and
 +the desired output, the template may benefit from caching to reduce the number
- parameters to `partialCached` beyond the initial context.  See the
++of executions. The [`partialCached`][partialcached] template function provides
 +caching capabilities for `partial` templates.
 +
 +{{% tip %}}
 +Note that you can create cached variants of each `partial` by passing additional
++parameters to `partialCached` beyond the initial context. See the
 +`partialCached` documentation for more details.
 +{{% /tip %}}
 +
 +[partialCached]:{{< ref "/functions/partialCached.md" >}}
index c4246caf1887e847149a466b0c156d883ac74236,0000000000000000000000000000000000000000..998f9bbbe807d9af719acb2167b92b69f7b6e0a2
mode 100644,000000..100644
--- /dev/null
@@@ -1,71 -1,0 +1,62 @@@
- Is your markdown file [in draft mode](https://gohugo.io/content-management/front-matter/#front-matter-variables)? When testing, run `hugo server` with the `-D` or `--buildDrafts` [switch](https://gohugo.io/getting-started/usage/#draft-future-and-expired-content).
 +---
 +title: Frequently Asked Questions
 +linktitle: FAQ
 +description: Solutions to some common Hugo problems.
 +date: 2018-02-10
 +categories: [troubleshooting]
 +menu:
 +  docs:
 +    parent: "troubleshooting"
 +keywords: [faqs]
 +weight: 2
 +toc: true
 +aliases: [/faq/]
 +---
 +
 +{{% note %}}
 +**Note:** The answers/solutions presented below are short, and may not be enough to solve your problem. Visit [Hugo Discourse](https://discourse.gohugo.io/) and use the search. It that does not help, start a new topic and ask your questions.
 +{{% /note %}}
 +
 +## I can't see my content!
 +
- Is your markdown file part of a [leaf bundle](/content-management/page-bundles/)? If there is an `index.md` file in the same or any parent directory then other markdown files will not be rendered as individual pages.
++Is your Markdown file [in draft mode](https://gohugo.io/content-management/front-matter/#front-matter-variables)? When testing, run `hugo server` with the `-D` or `--buildDrafts` [switch](https://gohugo.io/getting-started/usage/#draft-future-and-expired-content).
 +
- * If your site is hosted on a service similar to [Netlify](https://www.netlify.com/) you can use a service such as [ifttt](https://ifttt.com/date_and_time) to schedule the updates.
++Is your Markdown file part of a [leaf bundle](/content-management/page-bundles/)? If there is an `index.md` file in the same or any parent directory then other Markdown files will not be rendered as individual pages.
 +
 +## Can I set configuration variables via OS environment?
 +
 +Yes you can! See [Configure with Environment Variables](/getting-started/configuration/#configure-with-environment-variables).
 +
 +## How do I schedule posts?
 +
 +1. Set `publishDate` in the page [Front Matter](/content-management/front-matter/) to a datetime in the future. If you want the creation and publication datetime to be the same, it's also sufficient to only set `date`[^date-hierarchy].
 +2. Build and publish at intervals.
 +
 +How to automate the "publish at intervals" part depends on your situation:
 +
 +* If you deploy from your own PC/server, you can automate with [Cron](https://en.wikipedia.org/wiki/Cron) or similar.
- If you process `SCSS` or `SASS` to `CSS` in your Hugo project with `libsass` as the transpiler or if you convert images to the `webp` format, you need the Hugo `extended` version, or else you may see an error message similar to the below:
++* If your site is hosted on a service similar to [Netlify](https://www.netlify.com/) you can:
++  * Use a service such as [ifttt](https://ifttt.com/date_and_time) to schedule the updates
++  * Set up a deploy hook which you can run with a cron service to deploy your site at intervals, such as [cron-job.org](https://cron-job.org/) (both Netlify and Cloudflare Pages support deploy hooks)
 +
 +Also see this Twitter thread:
 +
 +{{< tweet user="ChrisShort" id="962380712027590657" >}}
 +
 +[^date-hierarchy]: See [Configure Dates](https://gohugo.io/getting-started/configuration/#configure-dates) for the order in which the different date variables are complemented by each other when not explicitly set.
 +
 +## Can I use the latest Hugo version on Netlify?
 +
 +Yes you can! Read [this](/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify).
 +
 +## I get "... this feature is not available in your current Hugo version"
 +
- ## Do I need to install Git to create, deploy, and maintain a website with Hugo?
- >Technically, no.
- >
- >Practically, yes.
- * The primary installation method documented by most (perhaps all) themes is via Git or the Hugo Modules feature.
- * The Hugo Modules feature requires Go, and Go “gets” with Git.
- * A Git repository is required by CI/CD hosting (Bitbucket, Cloudflare, GitHub Pages, GitLab Pages, Netlify, et. al.).
- * The canonical “last modified” date for content is its Git committer date; using anything else is error-prone.
++If you process `SCSS` or `Sass` to `CSS` in your Hugo project with `libsass` as the transpiler or if you convert images to the `webp` format, you need the Hugo `extended` version, or else you may see an error message similar to the below:
 +
 +```bash
 +error: failed to transform resource: TOCSS: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
 +```
 +
 +We release two set of binaries for technical reasons. The extended version is not what you get by default for some installation methods. On the [release page](https://github.com/gohugoio/hugo/releases), look for archives with `extended` in the name. To build `hugo-extended`, use `go install --tags extended`
 +
 +To confirm, run `hugo version` and look for the word `extended`.
index d8f3daece141ff3f22115e7e8971aed5330e45cc,0000000000000000000000000000000000000000..4e6c0632f06b33baaf7723adc68154fb7454ae39
mode 100644,000000..100644
--- /dev/null
@@@ -1,54 -1,0 +1,54 @@@
- : is a either TranslationBaseName or name of containing folder if file is a leaf bundle.
 +---
 +title: File Variables
 +linktitle:
 +description: "You can access filesystem-related data for a content file in the `.File` variable."
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [variables and params]
 +keywords: [files]
 +draft: false
 +menu:
 +  docs:
 +    parent: "variables"
 +    weight: 40
 +weight: 40
 +sections_weight: 40
 +aliases: [/variables/file-variables/]
 +toc: false
 +---
 +
 +{{% note "Rendering Local Files" %}}
 +For information on creating shortcodes and templates that tap into Hugo's file-related feature set, see [Local File Templates](/templates/files/).
 +{{% /note %}}
 +
 +The `.File` object contains the following fields:
 +
 +.File.Path
 +: the original relative path of the page, relative to the content dir (e.g., `posts/foo.en.md`)
 +
 +.File.LogicalName
 +: the name of the content file that represents a page (e.g., `foo.en.md`)
 +
 +.File.TranslationBaseName
 +: the filename without extension or optional language identifier (e.g., `foo`)
 +
 +.File.ContentBaseName
++: is either a TranslationBaseName or name of containing folder if file is a leaf bundle.
 +
 +.File.BaseFileName
 +: the filename without extension (e.g., `foo.en`)
 +
 +.File.Ext
 +: the file extension of the content file (e.g., `md`).
 +
 +.File.Lang
 +: the language associated with the given file if Hugo's [Multilingual features][multilingual] are enabled (e.g., `en`)
 +
 +.File.Dir
 +: given the path `content/posts/dir1/dir2/`, the relative directory path of the content file will be returned (e.g., `posts/dir1/dir2/`). Note that the path separator (`\` or `/`) could be dependent on the operating system.
 +
 +.File.UniqueID
 +: the MD5-checksum of the content file's path.
 +
 +[Multilingual]: /content-management/multilingual/
index 58a285fd97162299caaec3969e7325b23af96cc1,0000000000000000000000000000000000000000..24878e350de090ac3142afe2a34e3990c4c8360e
mode 100644,000000..100644
--- /dev/null
@@@ -1,58 -1,0 +1,58 @@@
- If the `.GitInfo` feature is enabled, `.Lastmod` (on `Page`) is fetched from Git i.e. `.GitInfo.AuthorDate`. This behaviour can be changed by adding your own [front matter configuration for dates](/getting-started/configuration/#configure-front-matter).
 +---
 +title: Git Info Variables
 +linktitle: Git Variables
 +description: Get the last Git revision information for every content file.
 +date: 2017-03-12
 +publishdate: 2017-03-12
 +lastmod: 2017-03-12
 +categories: [variables and params]
 +keywords: [git]
 +draft: false
 +menu:
 +  docs:
 +    parent: "variables"
 +    weight: 70
 +weight: 70
 +sections_weight: 70
 +aliases: [/extras/gitinfo/]
 +toc: false
 +wip: false
 +---
 +
 +{{% note "`.GitInfo` Performance Considerations"  %}}
 +Hugo's Git integrations should be fairly performant but *can* increase your build time. This will depend on the size of your Git history.
 +{{% /note %}}
 +
 +## `.GitInfo` Prerequisites
 +
 +1. The Hugo site must be in a Git-enabled directory.
 +2. The Git executable must be installed and in your system `PATH`.
 +3. The `.GitInfo` feature must be enabled in your Hugo project by passing `--enableGitInfo` flag on the command line or by setting `enableGitInfo` to `true` in your [site's configuration file][configuration].
 +
 +## The `.GitInfo` Object
 +
 +The `GitInfo` object contains the following fields:
 +
 +.AbbreviatedHash
 +: the abbreviated commit hash (e.g., `866cbcc`)
 +
 +.AuthorName
 +: the author's name, respecting [`.mailmap`](https://git-scm.com/docs/gitmailmap)
 +
 +.AuthorEmail
 +: the author's email address, respecting [`.mailmap`](https://git-scm.com/docs/gitmailmap)
 +
 +.AuthorDate
 +: the author date
 +
 +.Hash
 +: the commit hash (e.g., `866cbccdab588b9908887ffd3b4f2667e94090c3`)
 +
 +.Subject
 +: commit message subject (e.g., `tpl: Add custom index function`)
 +
 +## `.Lastmod`
 +
++If the `.GitInfo` feature is enabled, `.Lastmod` (on `Page`) is fetched from Git i.e. `.GitInfo.AuthorDate`. This behavior can be changed by adding your own [front matter configuration for dates](/getting-started/configuration/#configure-front-matter).
 +
 +[configuration]: /getting-started/configuration/
index 9b8fe4d49d4baa6ea960e4bdf6d40f5240a3f575,0000000000000000000000000000000000000000..a59560729603a210735ffd17dc9fe5adfaccd23c
mode 100644,000000..100644
--- /dev/null
@@@ -1,128 -1,0 +1,127 @@@
- .PageRef {{< new-in "0.86.0" >}}
 +---
 +title: Menu Entry Properties
 +linktitle: Menu Entry Properties
 +description: A menu entry in a menu-template has specific variables and functions to make menu management easier.
 +date: 2017-03-12
 +publishdate: 2017-03-12
 +lastmod: 2017-03-12
 +categories: [variables and params]
 +keywords: [menus]
 +draft: false
 +menu:
 +  docs:
 +    title: "variables defined by a menu entry"
 +    parent: "variables"
 +    weight: 50
 +weight: 50
 +sections_weight: 50
 +aliases: [/variables/menu/]
 +toc: false
 +---
 +
 +A **menu entry** has the following properties available that can be used in a
 +[menu template][menu-template].
 +
 +## Menu Entry Variables
 +
 +.Menu
 +: _string_ <br />
 +Name of the **menu** that contains this **menu entry**.
 +
 +.URL
 +: _string_ <br />
 +URL that the menu entry points to. The `url` key, if set for the menu entry,
 +sets this value. If that key is not set, and if the menu entry is set in a page
 +front-matter, this value defaults to the page's `.RelPermalink`.
 +
 +.Page
 +: _\*Page_ <br />
 +Reference to the [page object][page-object] associated with the menu entry. This
 +will be non-nil if the menu entry is set via a page's front-matter and not via
 +the site config.
 +
- Value of the `weight` key if set for the menu entry. By default the entries in 
- a menu are sorted ascending by their `weight`. If that key is not set, and if 
- the menu entry is set in a page front-matter, this value defaults to the page's 
++.PageRef
 +: _string_ <br /> Can be set if defined in site config and the menu entry refers to a Page. [site.GetPage](/functions/getpage/) will be used to do the page lookup. If this is set, you don't need to set the `URL`.
 +
 +.Name
 +: _string_ <br />
 +Name of the menu entry. The `name` key, if set for the menu entry, sets
 +this value. If that key is not set, and if the menu entry is set in a page
 +front-matter, this value defaults to the page's `.LinkTitle`.
 +
 +.Identifier
 +: _string_ <br />
 +Value of the `identifier` key if set for the menu entry. This value must be
 +unique for each menu entry. **It is necessary to set a unique identifier
 +manually if two or more menu entries have the same `.Name`.**
 +
 +.Pre
 +: _template.HTML_ <br />
 +Value of the `pre` key if set for the menu entry. This value typically contains
 +a string representing HTML.
 +
 +.Post
 +: _template.HTML_ <br />
 +Value of the `post` key if set for the menu entry. This value typically contains
 +a string representing HTML.
 +
 +.Weight
 +: _int_ <br />
++Value of the `weight` key if set for the menu entry. By default the entries in
++a menu are sorted ascending by their `weight`. If that key is not set, and if
++the menu entry is set in a page front-matter, this value defaults to the page's
 +`.Weight`.
 +
 +.Parent
 +: _string_ <br />
 +Name (or Identifier if present) of this menu entry's parent **menu entry**. The
 +`parent` key, if set for the menu entry, sets this value. If this key is set,
 +this menu entry nests under that parent entry, else it nests directly under the
 +`.Menu`.
 +
 +.Children
 +: _Menu_ <br />
 +This value is auto-populated by Hugo. It is a collection of children menu
 +entries, if any, under the current menu entry.
 +
 +## Menu Entry Functions
 +
 +Menus also have the following functions available:
 +
 +.HasChildren
 +: _boolean_ <br />
 +Returns `true` if `.Children` is non-nil.
 +
 +.KeyName
 +: _string_ <br />
 +Returns the `.Identifier` if present, else returns the `.Name`.
 +
 +.IsEqual
 +: _boolean_ <br />
 +Returns `true` if the two compared menu entries represent the same menu entry.
 +
 +.IsSameResource
 +: _boolean_ <br />
 +Returns `true` if the two compared menu entries have the same `.URL`.
 +
 +.Title
 +: _string_ <br />
 +Link title, meant to be used in the `title` attribute of a menu entry's
 +`<a>`-tags.  Returns the menu entry's `title` key if set. Else, if the menu
 +entry was created through a page's front-matter, it returns the page's
 +`.LinkTitle`. Else, it just returns an empty string.
 +
 +## Other Menu-related Functions
 +
 +Additionally, here are some relevant methods available to menus on a page:
 +
 +.IsMenuCurrent
 +: _(menu string, menuEntry *MenuEntry ) boolean_ <br />
 +See [`.IsMenuCurrent` method](/functions/ismenucurrent/).
 +
 +.HasMenuCurrent
 +: _(menu string, menuEntry *MenuEntry) boolean_ <br />
 +See [`.HasMenuCurrent` method](/functions/hasmenucurrent/).
 +
 +[menu-template]: /templates/menu-templates/
 +[page-object]: /variables/page/
index df7e3cb7101ee644755a3abe1c5577973b894049,0000000000000000000000000000000000000000..78100a6af1ca791e8041c23f5f49ade5004ea59d
mode 100644,000000..100644
--- /dev/null
@@@ -1,299 -1,0 +1,298 @@@
- lastmod: 2017-02-01
 +---
 +title: Page Variables
 +linktitle:
 +description: Page-level variables are defined in a content file's front matter, derived from the content's file location, or extracted from the content body itself.
 +date: 2017-02-01
 +publishdate: 2017-02-01
-   the context of regular content pages. See [`.Pages`](#pages).
 +categories: [variables and params]
 +keywords: [pages]
 +draft: false
 +menu:
 +  docs:
 +    title: "variables defined by a page"
 +    parent: "variables"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
 +aliases: []
 +toc: true
 +---
 +
 +The following is a list of page-level variables. Many of these will be defined in the front matter, derived from file location, or extracted from the content itself.
 +
 +{{% note "`.Scratch`" %}}
 +See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
 +{{% /note %}}
 +
 +## Page Variables
 +
 +.AlternativeOutputFormats
 +: contains all alternative formats for a given page; this variable is especially useful `link rel` list in your site's `<head>`. (See [Output Formats](/templates/output-formats/).)
 +
 +.Aliases
 +: aliases of this page
 +
 +.BundleType
 +: the [bundle] type: `leaf`, `branch`, or an empty string if the page is not a bundle.
 +
 +.Content
 +: the content itself, defined below the front matter.
 +
 +.Data
 +: the data specific to this type of page.
 +
 +.Date
 +: the date associated with the page; `.Date` pulls from the `date` field in a content's front matter. See also `.ExpiryDate`, `.PublishDate`, and `.Lastmod`.
 +
 +.Description
 +: the description for the page.
 +
 +.Draft
 +: a boolean, `true` if the content is marked as a draft in the front matter.
 +
 +.ExpiryDate
 +: the date on which the content is scheduled to expire; `.ExpiryDate` pulls from the `expirydate` field in a content's front matter. See also `.PublishDate`, `.Date`, and `.Lastmod`.
 +
 +.File
 +: filesystem-related data for this content file. See also [File Variables][].
 +
 +.FuzzyWordCount
 +: the approximate number of words in the content.
 +
 +.IsHome
 +: `true` in the context of the [homepage](/templates/homepage/).
 +
 +.IsNode
 +: always `false` for regular content pages.
 +
 +.IsPage
 +: always `true` for regular content pages.
 +
 +.IsSection
 +: `true` if [`.Kind`](/templates/section-templates/#page-kinds) is `section`.
 +
 +.IsTranslated
 +: `true` if there are translations to display.
 +
 +.Keywords
 +: the meta keywords for the content.
 +
 +.Kind
 +: the page's *kind*. Possible return values are `page`, `home`, `section`, `taxonomy`, or `term`. Note that there are also `RSS`, `sitemap`, `robotsTXT`, and `404` kinds, but these are only available during the rendering of each of these respective page's kind and therefore *not* available in any of the `Pages` collections.
 +
 +.Language
 +: a language object that points to the language's definition in the site `config`. `.Language.Lang` gives you the language code.
 +
 +.Lastmod
 +: the date the content was last modified. `.Lastmod` pulls from the `lastmod` field in a content's front matter.
 +
 + - If `lastmod` is not set, and `.GitInfo` feature is disabled, the front matter `date` field will be used.
 + - If `lastmod` is not set, and `.GitInfo` feature is enabled, `.GitInfo.AuthorDate` will be used instead.
 +
 +See also `.ExpiryDate`, `.Date`, `.PublishDate`, and [`.GitInfo`][gitinfo].
 +
 +.LinkTitle
 +: access when creating links to the content. If set, Hugo will use the `linktitle` from the front matter before `title`.
 +
 +.Next
 +: Points up to the next [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight--date--linktitle--filepath)). Example: `{{with .Next}}{{.Permalink}}{{end}}`. Calling `.Next` from the first page returns `nil`.
 +
 +.NextInSection
 +: Points up to the next [regular page](/variables/site/#site-pages) below the same top level section (e.g. in `/blog`)). Pages are sorted by Hugo's [default sort](/templates/lists#default-weight--date--linktitle--filepath). Example: `{{with .NextInSection}}{{.Permalink}}{{end}}`. Calling `.NextInSection` from the first page returns `nil`.
 +
 +.OutputFormats
 +: contains all formats, including the current format, for a given page. Can be combined the with [`.Get` function](/functions/get/) to grab a specific format. (See [Output Formats](/templates/output-formats/).)
 +
 +.Pages
 +: a collection of associated pages. This value will be `nil` within
- : the Page content stripped of HTML tags and presented as a string.
++  the context of regular content pages. See [`.Pages`]({{< relref "page.md#pages" >}}).
 +
 +.Permalink
 +: the Permanent link for this page; see [Permalinks](/content-management/urls/)
 +
 +.Plain
- : the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://golang.org/pkg/strings/#Fields).
++: the Page content stripped of HTML tags and presented as a string. You may need to pipe the result through the [`htmlUnescape`](/functions/htmlunescape/) function when rendering this value with the HTML [output format](/templates/output-formats#output-format-definitions).
 +
 +.PlainWords
- ```
++: the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://pkg.go.dev/strings#Fields).
 +
 +.Prev
 +: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight--date--linktitle--filepath)). Example: `{{if .Prev}}{{.Prev.Permalink}}{{end}}`.  Calling `.Prev` from the last page returns `nil`.
 +
 +.PrevInSection
 +: Points down to the previous [regular page](/variables/site/#site-pages) below the same top level section (e.g. `/blog`). Pages are sorted by Hugo's [default sort](/templates/lists#default-weight--date--linktitle--filepath). Example: `{{if .PrevInSection}}{{.PrevInSection.Permalink}}{{end}}`.  Calling `.PrevInSection` from the last page returns `nil`.
 +
 +.PublishDate
 +: the date on which the content was or will be published; `.Publishdate` pulls from the `publishdate` field in a content's front matter. See also `.ExpiryDate`, `.Date`, and `.Lastmod`.
 +
 +.RawContent
 +: raw markdown content without the front matter. Useful with [remarkjs.com](
 +https://remarkjs.com)
 +
 +.ReadingTime
 +: the estimated time, in minutes, it takes to read the content.
 +
 +.Resources
 +: resources such as images and CSS that are associated with this page
 +
 +.Ref
 +: returns the permalink for a given reference (e.g., `.Ref "sample.md"`).  `.Ref` does *not* handle in-page fragments correctly. See [Cross References](/content-management/cross-references/).
 +
 +.RelPermalink
 +: the relative permanent link for this page.
 +
 +.RelRef
 +: returns the relative permalink for a given reference (e.g., `RelRef
 +"sample.md"`). `.RelRef` does *not* handle in-page fragments correctly. See [Cross References](/content-management/cross-references/).
 +
 +.Site
 +: see [Site Variables](/variables/site/).
 +
 +.Sites
 +: returns all sites (languages). A typical use case would be to link back to the main language: `<a href="{{ .Sites.First.Home.RelPermalink }}">...</a>`.
 +
 +.Sites.First
 +: returns the site for the first language. If this is not a multilingual setup, it will return itself.
 +
 +.Summary
 +: a generated summary of the content for easily showing a snippet in a summary view. The breakpoint can be set manually by inserting <code>&lt;!&#x2d;&#x2d;more&#x2d;&#x2d;&gt;</code> at the appropriate place in the content page, or the summary can be written independent of the page text.  See [Content Summaries](/content-management/summaries/) for more details.
 +
 +.TableOfContents
 +: the rendered [table of contents](/content-management/toc/) for the page.
 +
 +.Title
 +: the title for this page.
 +
 +.Translations
 +: a list of translated versions of the current page. See [Multilingual Mode](/content-management/multilingual/) for more information.
 +
 +.TranslationKey
 +: the key used to map language translations of the current page. See [Multilingual Mode](/content-management/multilingual/) for more information.
 +
 +.Truncated
 +: a boolean, `true` if the `.Summary` is truncated. Useful for showing a "Read more..." link only when necessary.  See [Summaries](/content-management/summaries/) for more information.
 +
 +.Type
 +: the [content type](/content-management/types/) of the content (e.g., `posts`).
 +
 +.Weight
 +: assigned weight (in the front matter) to this content, used in sorting.
 +
 +.WordCount
 +: the number of words in the content.
 +
 +## Section Variables and Methods
 +
 +Also see [Sections](/content-management/sections/).
 +
 +{{< readfile file="/content/en/readfiles/sectionvars.md" markdown="true" >}}
 +
 +## The `.Pages` Variable {#pages}
 +
 +`.Pages` is an alias to `.Data.Pages`. It is conventional to use the
 +aliased form `.Pages`.
 +
 +### `.Pages` compared to `.Site.Pages`
 +
 +{{< getcontent path="readfiles/pages-vs-site-pages.md" >}}
 +
 +## Page-level Params
 +
 +Any other value defined in the front matter in a content file, including taxonomies, will be made available as part of the `.Params` variable.
 +
- ```
++```yml
 +---
 +title: My First Post
 +date: 2017-02-20T15:26:23-06:00
 +categories: [one]
 +tags: [two,three,four]
 +```
 +
 +With the above front matter, the `tags` and `categories` taxonomies are accessible via the following:
 +
 +* `.Params.tags`
 +* `.Params.categories`
 +
 +{{% note "Casing of Params" %}}
 +Page-level `.Params` are *only* accessible in lowercase.
 +{{% /note %}}
 +
 +The `.Params` variable is particularly useful for the introduction of user-defined front matter fields in content files. For example, a Hugo website on book reviews could have the following front matter in `/content/review/book01.md`:
 +
- ```
++```yml
 +---
 +...
 +affiliatelink: "http://www.my-book-link.here"
 +recommendedby: "My Mother"
 +...
 +---
 +```
 +
 +These fields would then be accessible to the `/themes/yourtheme/layouts/review/single.html` template through `.Params.affiliatelink` and `.Params.recommendedby`, respectively.
 +
 +Two common situations where this type of front matter field could be introduced is as a value of a certain attribute like `href=""` or by itself to be displayed as text to the website's visitors.
 +
 +{{< code file="/themes/yourtheme/layouts/review/single.html" >}}
 +<h3><a href={{ printf "%s" $.Params.affiliatelink }}>Buy this book</a></h3>
 +<p>It was recommended by {{ .Params.recommendedby }}.</p>
 +{{< /code >}}
 +
 +This template would render as follows, assuming you've set [`uglyURLs`](/content-management/urls/) to `false` in your [site `config`](/getting-started/configuration/):
 +
 +{{< output file="yourbaseurl/review/book01/index.html" >}}
 +<h3><a href="http://www.my-book-link.here">Buy this book</a></h3>
 +<p>It was recommended by my Mother.</p>
 +{{< /output >}}
 +
 +{{% note %}}
 +See [Archetypes](/content-management/archetypes/) for consistency of `Params` across pieces of content.
 +{{% /note %}}
 +
 +### The `.Param` Method
 +
 +In Hugo, you can declare params in individual pages and globally for your entire website. A common use case is to have a general value for the site param and a more specific value for some of the pages (i.e., a header image):
 +
- ```
++```go-html-template
 +{{ $.Param "header_image" }}
 +```
 +
 +The `.Param` method provides a way to resolve a single value according to it's definition in a page parameter (i.e. in the content's front matter) or a site parameter (i.e., in your `config`).
 +
 +### Access Nested Fields in Front Matter
 +
 +When front matter contains nested fields like the following:
 +
- ```
++```yml
 +---
 +author:
 +  given_name: John
 +  family_name: Feminella
 +  display_name: John Feminella
 +---
 +```
 +`.Param` can access these fields by concatenating the field names together with a dot:
 +
- ```
++```go-html-template
 +{{ $.Param "author.display_name" }}
 +```
 +
 +If your front matter contains a top-level key that is ambiguous with a nested key, as in the following case:
 +
- ```
++```yml
 +---
 +favorites.flavor: vanilla
 +favorites:
 +  flavor: chocolate
 +---
 +```
 +
 +The top-level key will be preferred. Therefore, the following method, when applied to the previous example, will print `vanilla` and not `chocolate`:
 +
++```txt
 +{{ $.Param "favorites.flavor" }}
 +=> vanilla
 +```
 +
 +[gitinfo]: /variables/git/
 +[File Variables]: /variables/files/
 +[bundle]: {{< relref "content-management/page-bundles" >}}
index 79d39a1582aa5701b4e12ee7c70b235307671956,0000000000000000000000000000000000000000..61036dd74f7c5e538221b1efbee0df4accec3032
mode 100644,000000..100644
--- /dev/null
@@@ -1,30 -1,0 +1,30 @@@
- `.Next` points **up** to the next page relative to the page sent in as the argument. Example: `{{with .Site.RegularPages.Next . }}{{.RelPermalink}}{{end}}`. Calling `.Next` with the first page in the collection returns `nil`. 
 +---
 +title: Pages Methods
 +linktitle:
 +description: Pages is the core page collection in Hugo and has many useful methods.
 +date: 2019-10-20
 +categories: [variables and params]
 +keywords: [pages]
 +draft: false
 +menu:
 +  docs:
 +    title: "methods defined on a page collection"
 +    parent: "variables"
 +    weight: 21
 +weight: 21
 +sections_weight: 20
 +aliases: [/pages]
 +toc: true
 +---
 +
 +Also see [List templates](/templates/lists) for an overview of sort methods.
 +
 +## .Next PAGE
 +
 +`.Next` and `.Prev` on `Pages` work similar to the methods with the same names on `.Page`, but are more flexible (and slightly slower) as they can be used on any page collection.
 +
- `.Prev` points **down** to the previous page relative to the page sent in as the argument. Example: `{{with .Site.RegularPages.Prev . }}{{.RelPermalink}}{{end}}`. Calling `.Prev` with the last page in the collection returns `nil`. 
++`.Next` points **up** to the next page relative to the page sent in as the argument. Example: `{{with .Site.RegularPages.Next . }}{{.RelPermalink}}{{end}}`. Calling `.Next` with the first page in the collection returns `nil`.
 +
 +## .Prev PAGE
 +
++`.Prev` points **down** to the previous page relative to the page sent in as the argument. Example: `{{with .Site.RegularPages.Prev . }}{{.RelPermalink}}{{end}}`. Calling `.Prev` with the last page in the collection returns `nil`.
index 37ae30629e4d05afd6e73546361ed4ba08b08ce6,0000000000000000000000000000000000000000..a7c9e475b83d53a8b292cd50aa4146104d3a79a8
mode 100644,000000..100644
--- /dev/null
@@@ -1,52 -1,0 +1,47 @@@
- lastmod: 2017-03-12
 +---
 +title: Shortcode Variables
 +linktitle: Shortcode Variables
 +description: Shortcodes can access page variables and also have their own specific built-in variables.
 +date: 2017-03-12
 +publishdate: 2017-03-12
- draft: false
 +categories: [variables and params]
 +keywords: [shortcodes]
 +menu:
 +  docs:
 +    parent: "variables"
 +    weight: 20
 +weight: 20
 +sections_weight: 20
 +aliases: []
 +toc: false
 +---
 +
 +[Shortcodes][shortcodes] have access to parameters delimited in the shortcode declaration via [`.Get`][getfunction], page- and site-level variables, and also the following shortcode-specific fields:
 +
 +.Name
 +: Shortcode name.
 +
 +.Ordinal
 +: Zero-based ordinal in relation to its parent. If the parent is the page itself, this ordinal will represent the position of this shortcode in the page content.
 +
 +.Page
 +: The owning ´Page`.
 +
 +.Parent
 +: provides access to the parent shortcode context in nested shortcodes. This can be very useful for inheritance of common shortcode parameters from the root.
 +
 +.Position
 +: Contains [filename and position](https://godoc.org/github.com/gohugoio/hugo/common/text#Position) for the shortcode in a page. Note that this can be relatively expensive to calculate, and is meant for error reporting. See [Error Handling in Shortcodes](/templates/shortcode-templates/#error-handling-in-shortcodes).
 +
 +.IsNamedParams
 +: boolean that returns `true` when the shortcode in question uses [named rather than positional parameters][shortcodes]
 +
 +.Inner
 +: represents the content between the opening and closing shortcode tags when a [closing shortcode][markdownshortcode] is used
 +
 +[getfunction]: /functions/get/
 +[markdownshortcode]: /content-management/shortcodes/#shortcodes-with-markdown
 +[shortcodes]: /templates/shortcode-templates/
 +
 +.InnerDeindent {{< new-in "0.100.0" >}}
 +: Gets the `.Inner` with any indentation removed. This is what's used in the built-in `{{</* highlight */>}}` shortcode.
index bdfeb65275d40b942d7c3ca8db8d8722fb9e7462,0000000000000000000000000000000000000000..11f37b369ac56051f3cf202e38a24325709ac051
mode 100644,000000..100644
--- /dev/null
@@@ -1,135 -1,0 +1,132 @@@
- All the methods below, e.g. `.Site.RegularPages` can also be reached via the global [`site`](/functions/site/) function, e.g. `site.RegularPages`, which can be handy in partials where the `Page` object isn't easily available. {{< new-in "0.53" >}}.
 +---
 +title: Site Variables
 +linktitle: Site Variables
 +description: Many, but not all, site-wide variables are defined in your site's configuration. However, Hugo provides a number of built-in variables for convenient access to global values in your templates.
 +date: 2017-02-01
 +publishdate: 2017-02-01
 +lastmod: 2017-02-01
 +categories: [variables and params]
 +keywords: [global,site]
 +draft: false
 +menu:
 +  docs:
 +    parent: "variables"
 +    weight: 10
 +weight: 10
 +sections_weight: 10
 +aliases: [/variables/site-variables/]
 +toc: true
 +---
 +
 +The following is a list of site-level (aka "global") variables. Many of these variables are defined in your site's [configuration file][config], whereas others are built into Hugo's core for convenient usage in your templates.
 +
 +## Get the Site object from a partial
 +
- : all of the menus in the site.
++All the methods below, e.g. `.Site.RegularPages` can also be reached via the global [`site`](/functions/site/) function, e.g. `site.RegularPages`, which can be handy in partials where the `Page` object isn't easily available.
 +
 +## Site Variables List
 +
 +.Site.AllPages
 +: array of all pages, regardless of their translation.
 +
 +.Site.Author
 +: a map of the authors as defined in the site configuration.
 +
 +.Site.BaseURL
 +: the base URL for the site as defined in the site configuration.
 +
 +.Site.BuildDrafts
 +: a boolean (default: `false`) to indicate whether to build drafts as defined in the site configuration.
 +
 +.Site.Copyright
 +: a string representing the copyright of your website as defined in the site configuration.
 +
 +.Site.Data
 +: custom data, see [Data Templates](/templates/data-templates/).
 +
 +.Site.DisqusShortname
 +: a string representing the shortname of the Disqus shortcode as defined in the site configuration.
 +
 +.Site.GoogleAnalytics
 +: a string representing your tracking code for Google Analytics as defined in the site configuration.
 +
 +.Site.Home
 +: reference to the homepage's [page object](https://gohugo.io/variables/page/)
 +
 +.Site.IsMultiLingual
 +: whether there are more than one language in this site. See [Multilingual](/content-management/multilingual/) for more information.
 +
 +.Site.IsServer
 +: a boolean to indicate if the site is being served with Hugo's built-in server. See [`hugo server`](/commands/hugo_server/) for more information.
 +
 +.Site.Language.Lang
 +: the language code of the current locale (e.g., `en`).
 +
 +.Site.Language.LanguageName
 +: the full language name (e.g. `English`).
 +
 +.Site.Language.Weight
 +: the weight that defines the order in the `.Site.Languages` list.
 +
 +.Site.Language
 +: indicates the language currently being used to render the website. This object's attributes are set in site configurations' language definition.
 +
 +.Site.LanguageCode
 +: a string representing the language tag as defined in the site configuration.
 +
 +.Site.LanguagePrefix
 +: this can be used to prefix URLs to point to the correct language. It will even work when only one defined language. See also the functions [absLangURL](/functions/abslangurl/) and [relLangURL](/functions/rellangurl).
 +
 +.Site.Languages
 +: an ordered list (ordered by defined weight) of languages.
 +
 +.Site.LastChange
 +: a string representing the date/time of the most recent change to your site. This string is based on the [`date` variable in the front matter](/content-management/front-matter) of your content pages.
 +
 +.Site.Menus
- : array of all content ordered by Date with the newest first. This array contains only the pages in the current language. See [`.Site.Pages`](#site-pages).
++: all the menus in the site.
 +
 +.Site.Pages
- : a shortcut to the *regular* page collection. `.Site.RegularPages` is equivalent to `where .Site.Pages "Kind" "page"`. See [`.Site.Pages`](#site-pages).
++: array of all content ordered by Date with the newest first. This array contains only the pages in the current language. See [`.Site.Pages`]({{< relref "site.md#site-pages" >}}).
 +
 +.Site.RegularPages
++: a shortcut to the *regular* page collection. `.Site.RegularPages` is equivalent to `where .Site.Pages "Kind" "page"`. See [`.Site.Pages`]({{< relref "site.md#site-pages" >}}).
 +
 +.Site.Sections
 +: top-level directories of the site.
 +
 +.Site.Taxonomies
 +: the [taxonomies](/taxonomies/usage/) for the entire site. Also see section [Use `.Site.Taxonomies` Outside of Taxonomy Templates](/variables/taxonomy/#use-sitetaxonomies-outside-of-taxonomy-templates).
 +
 +.Site.Title
 +: a string representing the title of the site.
 +
 +## The `.Site.Params` Variable
 +
 +`.Site.Params` is a container holding the values from the `params` section of your site configuration.
 +
 +### Example: `.Site.Params`
 +
 +The following `config.[yaml|toml|json]` defines a site-wide param for `description`:
 +
 +{{< code-toggle file="config" >}}
 +baseURL = "https://yoursite.example.com/"
 +
 +[params]
 +  description = "Tesla's Awesome Hugo Site"
 +  author = "Nikola Tesla"
 +{{</ code-toggle >}}
 +
 +You can use `.Site.Params` in a [partial template](/templates/partials/) to call the default site description:
 +
 +{{< code file="layouts/partials/head.html" >}}
 +<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
 +{{< /code >}}
 +
 +## The `.Site.Pages` Variable {#site-pages}
 +
 +### `.Site.Pages` compared to `.Pages`
 +
 +{{< getcontent path="readfiles/pages-vs-site-pages.md" >}}
 +
 +[config]: /getting-started/configuration/
index dd926f2b32db118c035fbe2a41aec87155a380ea,0000000000000000000000000000000000000000..24700182afa64d935e3c3af68284cf0c4854649b
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,31 @@@
- lastmod: 2017-03-12
 +---
 +title: Sitemap Variables
 +linktitle: Sitemap Variables
 +description:
 +date: 2017-03-12
 +publishdate: 2017-03-12
- [pagevars]: /variables/page/
 +categories: [variables and params]
 +keywords: [sitemap]
 +draft: false
 +menu:
 +  docs:
 +    parent: "variables"
 +    weight: 80
 +weight: 80
 +sections_weight: 80
 +aliases: []
 +toc: false
 +---
 +
 +A sitemap is a `Page` and therefore has all the [page variables][pagevars] available to use sitemap templates. They also have the following sitemap-specific variables available to them:
 +
 +.Sitemap.ChangeFreq
 +: the page change frequency
 +
 +.Sitemap.Priority
 +: the priority of the page
 +
 +.Sitemap.Filename
 +: the sitemap filename
 +
++[pagevars]: /variables/page/
index 8c088dc5708513487cc5c224e26e61f8195a7159,0000000000000000000000000000000000000000..2f4b198c1d592941ceda5fc8ea70aa7db0712bd2
mode 100644,000000..100644
--- /dev/null
@@@ -1,21 -1,0 +1,20 @@@
- linktitle: 内容管理概览
 +---
 +title: 内容管理
-     parent: "content-management"
++linkTitle: 内容管理概览
 +description: Hugo 可以管理大型的静态网站,支持骨架、内容类型、菜单、引用、概要等等。
 +date: 2018-04-23
 +publishdate: 2018-04-23
 +lastmod: 2018-04-23
 +menu:
 +  docs:
- draft: false
++    parent: content-management
 +    weight: 1
 +keywords: [source, organization]
 +categories: [content management]
 +weight: 01    #rem
 +aliases: [/content/,/content/organization]
 +toc: false
 +isCJKLanguage: true
 +---
 +
 +一个实用的静态网站生成器,需要超越“文件头” (front matter) 和模板的等基本功能,才能兼备可伸缩性和可管理性,满足用户所需。Hugo 不仅是给开发者设计的,也同样适用于内容管理员和写作人员。
index eac45d20ac81bc9ce3c441d114e5226999662c9d,0000000000000000000000000000000000000000..37b66928f232849ab76e1248a8487c3629ad7e65
mode 100644,000000..100644
--- /dev/null
@@@ -1,731 -1,0 +1,731 @@@
-       title = "Hugo: A Modern WebSite Engine That Just Works"
 +[[article]]
 +      title = "A visit to the Workshop: Hugo/Unix/Vim integration"
 +      url = "https://blog.afoolishmanifesto.com/posts/hugo-unix-vim-integration/"
 +      author = "fREW Schmidt"
 +      date = "2017-07-22"
 +
 +[[article]]
 +      title = "Hugo Easy Gallery - Automagical PhotoSwipe image gallery with a one-line shortcode"
 +      url = "https://www.liwen.id.au/heg/"
 +      author = "Li-Wen Yip"
 +      date = "2017-03-25"
 +
 +[[article]]
 +      title = "Automagical Image Gallery in Hugo with PhotoSwipe and jQuery"
 +      url = "https://www.liwen.id.au/photoswipe/"
 +      author = "Li-Wen Yip"
 +      date = "2017-03-04"
 +
 +[[article]]
 +      title = "Adding Isso Comments to Hugo"
 +      url = "https://stiobhart.net/2017-02-24-isso-comments/"
 +      author = "Stíobhart Matulevicz"
 +      date = "2017-02-24"
 +
 +[[article]]
 +      title = "Hugo Tutorial: How to Build & Host a (Very Fast) Static E-Commerce Site"
 +      url = "https://snipcart.com/blog/hugo-tutorial-static-site-ecommerce"
 +      author = "Snipcart"
 +      date = "2017-02-23"
 +
 +[[article]]
 +      title = "How to Password Protect a Hugo Site"
 +      url = "https://www.aerobatic.com/blog/password-protect-a-hugo-site/"
 +      author = "Aerobatic"
 +      date = "2017-02-19"
 +
 +[[article]]
 +      title = "Switching from WordPress to Hugo"
 +      url = "http://schnuddelhuddel.de/switching-from-wordpress-to-hugo/"
 +      author = "Mario Martelli"
 +      date = "2017-02-19"
 +
 +[[article]]
 +      title = "Zero to HTTP/2 with AWS and Hugo"
 +      url = "https://habd.as/zero-to-http-2-aws-hugo/"
 +      author = "Josh Habdas"
 +      date = "2017-02-16"
 +
 +[[article]]
 +      title = "Deploy a Hugo site to Aerobatic with CircleCI"
 +      url = "https://www.aerobatic.com/blog/hugo-github-circleci/"
 +      author = "Aerobatic"
 +      date = "2017-02-14"
 +
 +[[article]]
 +      title = "NPM scripts for building and deploying Hugo site"
 +      url = "https://www.aerobatic.com/blog/hugo-npm-buildtool-setup/"
 +      author = "Aerobatic"
 +      date = "2017-02-12"
 +
 +[[article]]
 +      title = "Getting started with Hugo and the plain-blog theme, on NearlyFreeSpeech.Net"
 +      url = "https://www.penwatch.net/cms/get_started_plain_blog/"
 +      author = "Li-aung “Lewis” Yip"
 +      date = "2017-02-12"
 +
 +[[article]]
 +      title = "Choose Hugo over Jekyll"
 +      url = "https://habd.as/choose-hugo-over-jekyll/"
 +      author = "Josh Habdas"
 +      date = "2017-02-10"
 +
 +[[article]]
 +      title = "Build a Hugo site using Cloud9 IDE and host on App Engine"
 +      url = "https://loyall.ch/lab/2017/01/build-a-static-website-with-cloud9-hugo-and-app-engine/"
 +      author = "Pascal Aubort"
 +      date = "2017-02-05"
 +
 +[[article]]
 +      title = "Hugo Continuous Deployment with Bitbucket Pipelines and Aerobatic"
 +      url = "https://www.aerobatic.com/blog/hugo-bitbucket-pipelines/"
 +      author = "Aerobatic"
 +      date = "2017-02-04"
 +
 +[[article]]
 +      title = "How to use Firebase to host a Hugo site"
 +      url = "https://code.selfmadefighter.com/post/static-site-firebase/"
 +      author = "Andrew Cuga"
 +      date= "2017-02-04"
 +
 +[[article]]
 +      title = "A publishing workflow for teams using static site generators"
 +      url = "https://www.keybits.net/post/publishing-workflow-for-teams-using-static-site-generators/"
 +      author = "Tom Atkins"
 +      date = "2017-01-02"
 +
 +[[article]]
 +      title = "How To Dynamically Use Google Fonts In A Hugo Website"
 +      url = "https://stoned.io/web-development/hugo/How-To-Dynamically-Use-Google-Fonts-In-A-Hugo-Website/"
 +      author = "Hash Borgir"
 +      date = "2016-10-27"
 +
 +[[article]]
 +      title = "Embedding Facebook In A Hugo Template"
 +      url = "https://stoned.io/web-development/hugo/Embedding-Facebook-In-A-Hugo-Template/"
 +      author = "Hash Borgir"
 +      date = "2016-10-22"
 +
 +[[article]]
 +      title = "通过 Gitlab-cl 将 Hugo blog 自动部署至 GitHub <small>(Chinese, Continuous integration)</small>"
 +      url = "https://zetaoyang.github.io/post/2016/10/17/gitlab-cl.html"
 +      author = "Zetao Yang"
 +      date = "2016-10-17"
 +
 +[[article]]
 +      title = "A Step-by-Step Guide: Hugo on Netlify"
 +      url = "https://www.netlify.com/blog/2016/09/21/a-step-by-step-guide-hugo-on-netlify/"
 +      author = "Eli Williamson"
 +      date = "2016-09-21"
 +
 +[[article]]
 +      title = "Building our site: From Django & WordPress to a static generator (Part I)"
 +      url = "https://tryolabs.com/blog/2016/09/20/building-our-site-django-wordpress-to-static-part-i/"
 +      author = "Alan Descoins"
 +      date = "2016-09-20"
 +
 +[[article]]
 +      title = "Webseitenmaschine - Statische Websites mit Hugo erzeugen <small>(German, $)</small>"
 +      url = "http://www.heise.de/ct/ausgabe/2016-12-Statische-Websites-mit-Hugo-erzeugen-3211704.html"
 +      author = "Christian Helmbold"
 +      date = "2016-05-27"
 +
 +[[article]]
 +      title = "Cómo hacer sitios web estáticos con Hugo y Go - Platzi <small>(Video tutorial)</small>"
 +      url = "https://www.youtube.com/watch?v=qaXXpdiCHXE"
 +      author = "Verónica López"
 +      date = "2016-04-06"
 +
 +[[article]]
 +      title = "CDNOverview: A CDN comparison site made with Hugo"
 +      url = "https://www.cloakfusion.com/cdnoverview-cdn-comparison-site-made-hugo/"
 +      author = "Thijs de Zoete"
 +      date = "2016-02-23"
 +
 +[[article]]
-       title = "Going with hugo"
++      title = "Hugo: A Modern Website Engine That Just Works"
 +      url = "https://github.com/shekhargulati/52-technologies-in-2016/blob/master/07-hugo/README.md"
 +      author = "Shekhar Gulati"
 +      date = "2016-02-14"
 +
 +[[article]]
 +      title = "Minify Hugo Generated HTML"
 +      url = "http://ratson.name/blog/minify-hugo-generated-html/"
 +      author = "Ratson"
 +      date = "2016-02-02"
 +
 +[[article]]
 +      title = "<span lang='ja'>HugoのデプロイをWerckerからCircle CIに変更した</span> - log"
 +      url = "http://log.deprode.net/logs/2016-01-17/"
 +      author = "Deprode"
 +      date = "2016-01-17"
 +
 +[[article]]
 +      title = "Static site generators: el futuro de las webs estáticas<br>(Hugo, Jekyll, Flask y otros)"
 +      url = "http://sitelabs.es/static-site-generators-futuro-las-webs-estaticas/"
 +      author = "Eneko Sarasola"
 +      date = "2016-01-09"
 +
 +[[article]]
 +      title = "Writing a Lambda Function for Hugo"
 +      url = "https://blog.jolexa.net/post/writing-a-lambda-function-for-hugo/"
 +      author = "Jeremy Olexa"
 +      date = "2016-01-01"
 +
 +[[article]]
 +      title = "Ein Blog mit Hugo erstellen - Tutorial <small>(Deutsch/German)</small>"
 +      url = "http://privat.albicker.org/tags/hugo.html"
 +      author = "Bernhard Albicker"
 +      date = "2015-12-30"
 +
 +[[article]]
 +      title = "How to host Hugo static website generator on AWS Lambda"
 +      url = "http://bezdelev.com/post/hugo-aws-lambda-static-website/"
 +      author = "Ilya Bezdelev"
 +      date = "2015-12-15"
 +
 +[[article]]
 +      title = "Migrating from Pelican to Hugo"
 +      url = "http://www.softinio.com/post/migrating-from-pelican-to-hugo/"
 +      author = "Salar Rahmanian"
 +      date = "2015-11-29"
 +
 +[[article]]
 +      title = "Static Website Generators Reviewed: Jekyll, Middleman, Roots, Hugo"
 +      url = "http://www.smashingmagazine.com/2015/11/static-website-generators-jekyll-middleman-roots-hugo-review/"
 +      author = "Mathias Biilmann Christensen"
 +      date = "2015-11-16"
 +
 +[[article]]
 +      title = "How To Deploy a Hugo Site to Production with Git Hooks on Ubuntu 14.04"
 +      url = "https://www.digitalocean.com/community/tutorials/how-to-deploy-a-hugo-site-to-production-with-git-hooks-on-ubuntu-14-04"
 +      author = "Justin Ellingwood"
 +      date = "2015-11-12"
 +
 +[[article]]
 +      title = "How To Install and Use Hugo, a Static Site Generator, on Ubuntu 14.04"
 +      url = "https://www.digitalocean.com/community/tutorials/how-to-install-and-use-hugo-a-static-site-generator-on-ubuntu-14-04"
 +      author = "Justin Ellingwood"
 +      date = "2015-11-09"
 +
 +[[article]]
 +      title = "Switching from Wordpress to Hugo"
 +      url = "http://justinfx.com/2015/11/08/switching-from-wordpress-to-hugo/"
 +      author = "Justin Israel"
 +      date = "2015-11-08"
 +
 +[[article]]
 +      title = "Hands-on Experience with Hugo as a Static Site Generator"
 +      url = "http://usersnap.com/blog/hands-on-experience-with-hugo-static-site-generator/"
 +      author = "Thomas Peham"
 +      date = "2015-10-15"
 +
 +[[article]]
 +      title = "Statische Webseites mit Hugo erstellen/Vortrag mit Foliensatz (deutsch)"
 +      url = "http://sfd.koelnerlinuxtreffen.de/2015/HaraldWeidner/"
 +      author = "Harald Weidner"
 +      date = "2015-09-19"
 +
 +[[article]]
 +      title = "Moving from WordPress to Hugo"
 +      url = "http://abhipandey.com/2015/09/moving-to-hugo/"
 +      author = "Abhishek Pandey"
 +      date = "2015-09-15"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>通过webhook将Hugo自动部署至GitHub Pages和GitCafe Pages</span> <small>(Automated&nbsp;deployment)</small>"
 +      url = "http://blog.coderzh.com/2015/09/13/use-webhook-automated-deploy-hugo/"
 +      author = "CoderZh"
 +      date = "2015-09-13"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>使用hugo搭建个人博客站点</span> <small>(Using Hugo to build a personal blog site)</small>"
 +      url = "http://blog.coderzh.com/2015/08/29/hugo/"
 +      author = "CoderZh"
 +      date = "2015-08-29"
 +
 +[[article]]
 +      title = "Good-Bye Wordpress, Hello Hugo! <small>(German)</small>"
 +      url = "http://blog.arminhanisch.de/2015/08/blog-migration-zu-hugo/"
 +      author = "Armin Hanisch"
 +      date = "2015-08-18"
 +
 +[[article]]
 +      title = "Générer votre site web statique avec Hugo <small>(Generate your static site with Hugo)<small>"
 +      url = "http://www.linux-pratique.com/?p=191"
 +      author = "Benoît Benedetti"
 +      date = "2015-06-26"
 +
 +[[article]]
 +      title = "<span lang='ja'>Hugo向けの新しいテーマを作った</span> <small>(I created a new theme for Hugo)<small>"
 +      url = "https://yet.unresolved.xyz/blog/2016/10/03/how-to-make-of-hugo-theme/"
 +      author = "Daisuke Tsuji"
 +      date = "2015-06-20"
 +
 +[[article]]
 +      title = "Hugo - Gerando um site com conteúdo estático. (Portuguese Brazil)"
 +      url = "http://blog.ffrizzo.com/posts/hugo/"
 +      author = "Fabiano Frizzo"
 +      date = "2015-06-02"
 +
 +[[article]]
 +      title = "An Introduction to Static Site Generators"
 +      url = "http://davidwalsh.name/introduction-static-site-generators"
 +      author = "Eduardo Bouças"
 +      date = "2015-05-20"
 +
 +[[article]]
 +      title = "Hugo Still Rules"
 +      url = "http://cheekycoder.com/2015/05/hugo-still-rules/"
 +      author = "Cheeky Coder"
 +      date = "2015-05-18"
 +
 +[[article]]
 +      title = "hugo - Static Site Generator"
 +      url = "http://gscacco.github.io/post/hugo/"
 +      author = "G Scaccoio"
 +      date = "2015-05-04"
 +
 +[[article]]
 +      title = "<span lang='ja'>WindowsでHugoを使う</span>"
 +      url = "http://ureta.net/2015/05/hugo-on-windows/"
 +      author = "<span lang='ja'>うれ太郎</span>"
 +      date = "2015-05-01"
 +
 +[[article]]
 +      title = "<span lang='ja'>Hugoのshortcodesを用いてサイトにスライドなどを埋め込む</span>"
 +      url = "http://blog.yucchiy.com/2015/04/29/hugo-shortcode/"
 +      author = "Yucchiy"
 +      date = "2015-04-29"
 +
 +[[article]]
 +      title = "<span lang='ja'>HugoとCircleCIでGitHub PagesにBlogを公開してみたら超簡単だった</span>"
 +      url = "http://hori-ryota.github.io/blog/create-blog-with-hugo-and-circleci/"
 +      author = "Hori Ryota"
 +      date = "2015-04-17"
 +
 +[[article]]
 +      title = "10 Best Static Site Generators"
 +      url = "http://beebom.com/2015/04/best-static-site-generators"
 +      author = "Aniruddha Mysore"
 +      date = "2015-04-06"
 +
 +[[article]]
 +      title = "Goodbye WordPress; Hello Hugo"
 +      url = "http://willwarren.com/2015/04/05/goodbye-wordpress-hello-hugo/"
 +      author = "Will Warren"
 +      date = "2015-04-05"
 +
 +[[article]]
 +      title = "Static Websites with Hugo on Google Cloud Storage"
 +      url = "http://www.moxie.io/post/static-websites-with-hugo-on-google-cloud-storage/"
 +      author = "Moxie Input/Output"
 +      date = "2015-04-02"
 +
 +[[article]]
 +      title = "De nuevo iniciando un blog"
 +      url = "https://alvarolizama.net/"
 +      author = "Alvaro Lizama"
 +      date = "2015-03-29"
 +
 +[[article]]
 +      title = "We moved our blog from Posthaven to Hugo after only three posts. Why?"
 +      url = "http://blog.hypriot.com/post/moved-from-posthaven-to-hugo/"
 +      author = "Hypriot"
 +      date = "2015-03-27"
 +
 +[[article]]
 +      title = "Top Static Site Generators in 2015"
 +      url = "http://superdevresources.com/static-site-generators-2015/"
 +      author = "Kanishk Kunal"
 +      date = "2015-03-12"
 +
 +[[article]]
 +      title = "Moving to Hugo"
 +      url = "http://abiosoft.com/moving-to-hugo/"
 +      author = "Abiola Ibrahim"
 +      date = "2015-03-08"
 +
 +[[article]]
 +      title = "Migrating a blog (yes, this one!) from Wordpress to Hugo"
 +      url = "http://justindunham.net/migrating-from-wordpress-to-hugo/"
 +      author = "Justin Dunham"
 +      date = "2015-02-13"
 +
 +[[article]]
 +      title = "<span lang='ja'>blogをoctopressからHugoに乗り換えたメモ</span>"
 +      url = "http://blog.jigyakkuma.org/2015/02/11/hugo/"
 +      author = "jigyakkuma"
 +      date = "2015-02-11"
 +
 +[[article]]
 +      title = "<span lang='ja'>Hugoでブログをつくった</span>"
 +      url = "http://porgy13.github.io/post/new-hugo-blog/"
 +      author = "porgy13"
 +      date = "2015-02-07"
 +
 +[[article]]
 +      title = "<span lang='ja'>Hugoにブログを移行した</span>"
 +      url = "http://keichi.net/post/first/"
 +      author = "Keichi Takahashi"
 +      date = "2015-02-04"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>Hugo静态网站生成器中文教程</span>"
 +      url = "http://nanshu.wang/post/2015-01-31/"
 +      author = "Nanshu Wang"
 +      date = "2015-01-31"
 +
 +[[article]]
 +      title = "<span lang='ja'>Hugo + Github Pages + Wercker CI = ¥0(無料)<br>でコマンド 1 発(自動化)でサイト<br>・ブログを公開・運営・分析・収益化</span>"
 +      url = "http://qiita.com/yoheimuta/items/8a619cac356bed89a4c9"
 +      author = "Yohei Yoshimuta"
 +      date = "2015-01-31"
 +
 +[[article]]
 +      title = "Running Hugo websites on anynines"
 +      url = "http://blog.anynines.com/running-hugo-websites-on-anynines/"
 +      author = "Julian Weber"
 +      date = "2015-01-30"
 +
 +[[article]]
 +      title = "MiddlemanからHugoへ移行した"
 +      url = "http://re-dzine.net/2015/01/hugo/"
 +      author = "Haruki Konishi"
 +      date = "2015-01-21"
 +
 +[[article]]
 +      title = "WordPress から Hugo に乗り換えました"
 +      url = "http://rakuishi.com/archives/wordpress-to-hugo/"
 +      author = "rakuishi"
 +      date = "2015-01-20"
 +
 +[[article]]
 +      title = "HUGOを使ってサイトを立ち上げる方法"
 +      url = "http://qiita.com/syui/items/869538099551f24acbbf"
 +      author = "Syui"
 +      date = "2015-01-17"
 +
 +[[article]]
 +      title = "<span lang='ja'>Jekyllが許されるのは小学生までだよね</span>"
 +      url = "http://t32k.me/mol/log/hugo/"
 +      author = "Ishimoto Koji"
 +      date = "2015-01-16"
 +
 +[[article]]
 +      title = "Getting started with Hugo"
 +      url = "http://anthonyfok.org/post/getting-started-with-hugo/"
 +      author = "Anthony Fok"
 +      date = "2015-01-12"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>把这个博客静态化了</span> <small>(Migrate to Hugo)</small>"
 +      url = "http://lich-eng.com/2015/01/03/migrate-to-hugo/"
 +      author = "Li Cheng"
 +      date = "2015-01-03"
 +
 +[[article]]
 +      title = "Porting my blog with Hugo"
 +      url = "http://blog.srackham.com/posts/porting-my-blog-with-hugo/"
 +      author = "Stuart Rackham"
 +      date = "2014-12-30"
 +
 +[[article]]
 +      title = "Hugoを使ってみたときのメモ"
 +      url = "http://machortz.github.io/posts/usinghugo/"
 +      author = "Machortz"
 +      date = "2014-12-29"
 +
 +[[article]]
 +      title = "OctopressからHugoへ移行した"
 +      url = "http://deeeet.com/writing/2014/12/25/hugo/"
 +      author = "Taichi Nakashima"
 +      date = "2014-12-25"
 +
 +[[article]]
 +      title = "Migrating to Hugo From Octopress"
 +      url = "http://nathanleclaire.com/blog/2014/12/22/migrating-to-hugo-from-octopress/"
 +      author = "Nathan LeClaire"
 +      date = "2014-12-22"
 +
 +[[article]]
 +      title = "Dynamic Pages with GoHugo.io"
 +      url = "http://cyrillschumacher.com/2014/12/21/dynamic-pages-with-gohugo.io/"
 +      author = "Cyrill Schumacher"
 +      date = "2014-12-21"
 +
 +[[article]]
 +      title = "6 Static Blog Generators That Aren’t Jekyll"
 +      url = "http://www.sitepoint.com/6-static-blog-generators-arent-jekyll/"
 +      author = "David Turnbull"
 +      date = "2014-12-08"
 +
 +[[article]]
 +      title = "Travel Blogging Setup"
 +      url = "http://www.stou.dk/2014/11/travel-blogging-setup/"
 +      author = "Rasmus Stougaard"
 +      date = "2014-11-23"
 +
 +[[article]]
 +      title = "Hosting A Hugo Website Behind Nginx"
 +      url = "http://www.bigbeeconsultants.co.uk/blog/hosting-hugo-website-behind-nginx"
 +      author = "Rick Beton"
 +      date = "2014-11-20"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>使用Hugo搭建免费个人Blog</span> <small>(How to use Hugo)</small>"
 +      url = "http://ulricqin.com/post/how-to-use-hugo/"
 +      author = "Ulric Qin <span lang='zh-CN'>秦晓辉</span>"
 +      date = "2014-11-11"
 +
 +[[article]]
 +      title = "Built in Speed and Built for Speed by Hugo"
 +      url = "http://cheekycoder.com/2014/10/built-for-speed-by-hugo/"
 +      author = "Cheeky Coder"
 +      date = "2014-10-30"
 +
 +[[article]]
 +      title = "Hugo para crear sitios web estáticos"
 +      url = "http://www.webbizarro.com/noticias/1076/hugo-para-crear-sitios-web-estaticos/"
 +      author = "Web Bizarro"
 +      date = "2014-08-19"
 +
 +[[article]]
-       title = "Beautiful sites for Open Source projects"
++      title = "Going with Hugo"
 +      url = "http://www.markuseliasson.se/article/going-with-hugo/"
 +      author = "Markus Eliasson"
 +      date = "2014-08-18"
 +
 +[[article]]
 +      title = "Benchmarking Jekyll, Hugo and Wintersmith"
 +      url = "http://fredrikloch.me/post/2014-08-12-Jekyll-and-its-alternatives-from-a-site-generation-point-of-view/"
 +      author = "Fredrik Loch"
 +      date = "2014-08-12"
 +
 +[[article]]
 +      title = "Goodbye Octopress, Hello Hugo!"
 +      url = "http://andreimihu.com/blog/2014/08/11/goodbye-octopress-hello-hugo/"
 +      author = "Andrei Mihu"
 +      date = "2014-08-11"
 +
 +[[article]]
-       title = "Hugo Is Friggin' Awesome"
++      title = "Beautiful sites for Open Source Projects"
 +      url = "http://beautifulopen.com/2014/08/09/hugo/"
 +      author = "Beautiful Open"
 +      date = "2014-08-09"
 +
 +[[article]]
 +      title = "Hugo: Beyond the Defaults"
 +      url = "http://npf.io/2014/08/hugo-beyond-the-defaults/"
 +      author = "Nate Finch"
 +      date = "2014-08-08"
 +
 +[[article]]
 +      title = "First Impressions of Hugo"
 +      url = "https://peteraba.com/blog/first-impressions-of-hugo/"
 +      author = "Peter Aba"
 +      date = "2014-06-06"
 +
 +[[article]]
 +      title = "New Site Workflow"
 +      url = "http://vurt.co.uk/post/new_website/"
 +      author = "Giles Paterson"
 +      date = "2014-08-05"
 +
 +[[article]]
 +      title = "How I Learned to Stop Worrying and Love the (Static) Web"
 +      url = "http://cognition.ca/post/about-hugo/"
 +      author = "Joshua McKenty"
 +      date = "2014-08-04"
 +
 +[[article]]
 +      title = "Hugo - Static Site Generator"
 +      url = "http://kenwoo.io/blog/hugo---static-site-generator/"
 +      author = "Kenny Woo"
 +      date = "2014-08-03"
 +
 +[[article]]
++      title = "Hugo Is Freakin' Awesome"
 +      url = "http://npf.io/2014/08/hugo-is-awesome/"
 +      author = "Nate Finch"
 +      date = "2014-08-01"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>再次搬家</span> <small>(Move from WordPress to Hugo)</small>"
 +      url = "http://www.chingli.com/misc/move-from-wordpress-to-hugo/"
 +      author = "<span lang='zh-CN'>青砾</span> (chingli)"
 +      date = "2014-07-12"
 +
 +[[article]]
 +      title = "Embedding Gists in Hugo"
 +      url = "http://danmux.com/posts/embedded_gists/"
 +      author = "Dan Mull"
 +      date = "2014-07-05"
 +
 +[[article]]
 +      title = "An Introduction To Hugo"
 +      url = "http://www.cirrushosting.com/web-hosting-blog/an-introduction-to-hugo/"
 +      author = "Dan Silber"
 +      date = "2014-07-01"
 +
 +[[article]]
 +      title = "Moving to Hugo"
 +      url = "http://danmux.com/posts/hugo_based_blog/"
 +      author = "Dan Mull"
 +      date = "2014-05-29"
 +
 +[[article]]
 +      title = "<span lang='zh-CN'>开源之静态站点生成器排行榜</span><br><small>(Leaderboard of open-source static website generators)</small>"
 +      url = "http://code.csdn.net/news/2819909"
 +      author = "CSDN.net"
 +      date = "2014-05-23"
 +
 +[[article]]
 +      title = "Finally, a satisfying and effective blog setup"
 +      url = "http://michaelwhatcott.com/now-powered-by-hugo/"
 +      author = "Michael Whatcott"
 +      date = "2014-05-20"
 +
 +[[article]]
 +      title = "Hugo from scratch"
 +      url = "http://zackofalltrades.com/notes/2014/05/hugo-from-scratch/"
 +      author = "Zack Williams"
 +      date = "2014-05-18"
 +
 +[[article]]
 +      title = "Why I switched away from Jekyll"
 +      url = "http://www.jakejanuzelli.com/why-I-switched-away-from-jekyll/"
 +      author = "Jake Januzelli"
 +      date = "2014-05-10"
 +
 +[[article]]
 +      title = "Welcome our new blog"
 +      url = "http://blog.ninya.io/posts/welcome-our-new-blog/"
 +      author = "Ninya.io"
 +      date = "2014-04-11"
 +
 +[[article]]
 +      title = "Mission Not Accomplished"
 +      url = "http://johnsto.co.uk/blog/mission-not-accomplished/"
 +      author = "Dave Johnston"
 +      date = "2014-04-03"
 +
 +[[article]]
 +      title = "Hugo - A Static Site Builder in Go"
 +      url = "http://deepfriedcode.com/post/hugo/"
 +      author = "Deep Fried Code"
 +      date = "2014-03-30"
 +
 +[[article]]
 +      title = "Adventures in Angular Podcast"
 +      url = "http://devchat.tv/adventures-in-angular/003-aia-gdes"
 +      author = "Matias Niemela"
 +      date = "2014-03-28"
 +
 +[[article]]
 +      title = "Hugo"
 +      url = "http://bra.am/post/hugo/"
 +      author = "bra.am"
 +      date = "2014-03-23"
 +
 +[[article]]
 +      title = "Converting Blogger To Markdown"
 +      url = "http://trishagee.github.io/project/atom-to-hugo/"
 +      author = "Trisha Gee"
 +      date = "2014-03-20"
 +
 +[[article]]
 +      title = "Moving to Hugo Static Web Pages"
 +      url = "http://tepid.org/tech/hugo-web/"
 +      author = "Tobias Weingartner"
 +      date = "2014-03-16"
 +
 +[[article]]
 +      title = "New Blog Engine: Hugo"
 +      url = "https://blog.afoolishmanifesto.com/posts/hugo/"
 +      author = "fREW Schmidt"
 +      date = "2014-03-15"
 +
 +[[article]]
 +      title = "Hugo + gulp.js = Huggle"
 +      url = "http://ktmud.github.io/huggle/en/intro/)"
 +      author = "Jesse Yang <span lang='zh-CN'>杨建超</span>"
 +      date = "2014-03-08"
 +
 +[[article]]
 +      title = "Powered by Hugo"
 +      url = "http://kieranhealy.org/blog/archives/2014/02/24/powered-by-hugo/"
 +      author = "Kieran Healy"
 +      date = "2014-02-24"
 +
 +[[article]]
 +      title = "<span lang='ja'>静的サイトを素早く構築するために<br>GoLangで作られたジェネレータHugo</span>"
 +      url = "http://hamasyou.com/blog/2014/02/21/hugo/"
 +      author = "<div lang='ja' style='line-height: 1.1;'>Shogo Hamada<br>濱田章吾</div>"
 +      date = "2014-02-21"
 +
 +[[article]]
 +      title = "Latest Roundup of Useful Tools For Developers"
 +      url = "http://codegeekz.com/latest-roundup-of-useful-tools-for-developers/"
 +      author = "CodeGeekz"
 +      date = "2014-02-13"
 +
 +[[article]]
 +      title = "Hugo: Static Site Generator written in Go"
 +      url = "http://www.braveterry.com/2014/02/06/hugo-static-site-generator-written-in-go/"
 +      author = "Brave Terry"
 +      date = "2014-02-06"
 +
 +[[article]]
 +      title = "10 Useful HTML5 Tools for Web Designers and Developers"
 +      url = "http://designdizzy.com/10-useful-html5-tools-for-web-designers-and-developers/"
 +      author = "Design Dizzy"
 +      date = "2014-02-04"
 +
 +[[article]]
 +      title = "Hugo – Fast, Flexible Static Site Generator"
 +      url = "http://cube3x.com/hugo-fast-flexible-static-site-generator/"
 +      author = "Joby Joseph"
 +      date = "2014-01-18"
 +
 +[[article]]
 +      title = "Hugo: A new way to build static website"
 +      url = "http://www.w3update.com/opensource/hugo-a-new-way-to-build-static-website.html"
 +      author = "w3update"
 +      date = "2014-01-17"
 +
 +[[article]]
 +      title = "Xaprb now uses Hugo"
 +      url = "http://xaprb.com/blog/2014/01/15/using-hugo/"
 +      author = "Baron Schwartz"
 +      date = "2014-01-15"
 +
 +[[article]]
 +      title = "New jQuery Plugins And Resources That Web Designers Need"
 +      url = "http://www.designyourway.net/blog/resources/new-jquery-plugins-and-resources-that-web-designers-need/"
 +      author = "Design Your Way"
 +      date = "2014-01-01"
 +
 +[[article]]
 +      title = "On Blog Construction"
 +      url = "http://alexla.sh/post/on-blog-construction/"
 +      author = "Alexander Lash"
 +      date = "2013-12-27"
 +
 +[[article]]
 +      title = "Hugo"
 +      url = "http://onethingwell.org/post/69070926608/hugo"
 +      author = "One Thing Well"
 +      date = "2013-12-05"
 +
 +[[article]]
 +      title = "In Praise Of Hugo"
 +      url = "http://sound-guru.com/blog/post/hello-world/"
 +      author = "sound-guru.com"
 +      date = "2013-10-19"
 +
 +[[article]]
 +      title = "Hosting a blog on S3 and Cloudfront"
 +      url = "http://www.danesparza.net/2013/07/hosting-a-blog-on-s3-and-cloudfront/"
 +      author = "Dan Esparza"
 +      date = "2013-07-24"
diff --cc docs/go.mod
index f80bd4941658d70ab6423bfe6099c3c8ab5cf6da,0000000000000000000000000000000000000000..ba67e8db6d62151b9c9425053a754eee5a1bcb54
mode 100644,000000..100644
--- /dev/null
@@@ -1,5 -1,0 +1,5 @@@
- require github.com/gohugoio/gohugoioTheme v0.0.0-20220912070954-88dcaf003b4d // indirect
 +module github.com/gohugoio/hugoDocs
 +
 +go 1.16
 +
++require github.com/gohugoio/gohugoioTheme v0.0.0-20221116211530-5ae8dcdd68d6 // indirect
diff --cc docs/go.sum
index 91fe568874e96ac3e4d1611dda6859adaf115965,0000000000000000000000000000000000000000..c6f539c807eed90c77e67a4d73a0047e902973a3
mode 100644,000000..100644
--- /dev/null
@@@ -1,39 -1,0 +1,43 @@@
 +github.com/gohugoio/gohugoioTheme v0.0.0-20190808163145-07b3c0f73b02/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20191014144142-1f3a01deed7b h1:PWNjl46fvtz54PKO0BdiXOF6/4L/uCP0F3gtcCxGrJs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20191014144142-1f3a01deed7b/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20191021162625-2e7250ca437d h1:D3DcaYkuJbotdWNNAQpQl37txX4HQ6R5uMHoxVmTw0w=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20191021162625-2e7250ca437d/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200123151337-9475fd449324 h1:UZwHDYtGY0uOKIvcm2LWd+xfFxD3X5L222LIJdI5RE4=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200123151337-9475fd449324/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200123204146-589b4c309025 h1:ScYFARz+bHX1rEr1donVknhRdxGY/cwqK1hHvWEfrlc=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200123204146-589b4c309025/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200123205007-5d6620a0db26 h1:acXfduibbWxji9tW0WkLHbjcXFsnd5uIwXe0WfwOazg=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200123205007-5d6620a0db26/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051 h1:cS14MnUGS6xwWYfPNshimm8HdMCZiYBxWkCD0VnvgVw=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200327225449-368f4cbef8d7 h1:cZ+ahAjSetbFv3aDJ9ipDbKyqaVlmkbSZ5cULgBTh+w=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200327225449-368f4cbef8d7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200327231942-7f80b3d02bfa h1:kG+O/wT9UXomzp5eQiUuFVZ0l7YylAW6EVPLyjMxi/c=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200327231942-7f80b3d02bfa/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee h1:PJZhCwnuVLyafDWNPSHk9iJvk6gEIvPRnycy7Pq3peA=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200518164958-62cbad03c40f h1:Ge3JACszSUyJW2Az9cJzWdo4PUqdijJA1RxoQSVMBSI=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200518164958-62cbad03c40f/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200518165806-0095b7b902a7 h1:Sy0hlWyZmFtdSY0Cobvw1ZYm3G1aR5+4DuFNRbMkh48=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200518165806-0095b7b902a7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200711112515-b0dfe471654f h1:BWJyycs4HD7tUbaU8RIGeMay84bIBWRVVLE3yajPas4=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20200711112515-b0dfe471654f/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20210301124928-2c15837dfec3 h1:ShqzOFeeg54FPSuS6q8HSeTVgj2xNZRe/YS0jNbi21g=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20210301124928-2c15837dfec3/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20210409065807-6383d8cbaf65 h1:EJzierSWKqwsrUXU6MaFe0J97c0e5pzl5dBNRRrV2Nc=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20210409065807-6383d8cbaf65/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20210409071416-c88da48134b7 h1:uRCgPslaBgLYy4ANXBoPbBQVM8aNiHoxIZTKUXpkuUA=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20210409071416-c88da48134b7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20211211125852-b85e21c1f3d6 h1:lAgdWrn8VEg0PrNCPX4DflCg2msDKpSYV6E8RTNV3N0=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20211211125852-b85e21c1f3d6/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20220228085601-7cfbda06d135 h1:6hVzfE9YhSsZP5t6jWjvVp7MoPm7Y5fEhH/ls4ahhKk=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20220228085601-7cfbda06d135/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20220905093719-cb8b64046950 h1:Ovlh3nuy/aNptYZHmIra2MP+ZUEqiihY0HxvhdaMqGg=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20220905093719-cb8b64046950/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20220912070954-88dcaf003b4d h1:UYJL6RmEepprvlgHvDnFCWtPOvjmqzFCQ90cRDRBO7U=
 +github.com/gohugoio/gohugoioTheme v0.0.0-20220912070954-88dcaf003b4d/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
++github.com/gohugoio/gohugoioTheme v0.0.0-20220914071648-0ef1c51685bf h1:A8Ksnvp8reNt2Ap0mUK7gFkJkCjt9R60yopGsezcOBA=
++github.com/gohugoio/gohugoioTheme v0.0.0-20220914071648-0ef1c51685bf/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
++github.com/gohugoio/gohugoioTheme v0.0.0-20221116211530-5ae8dcdd68d6 h1:eG53kL1LkQuKmrDdzbvvx6d60qM07zp2Wjo/tYxkDOY=
++github.com/gohugoio/gohugoioTheme v0.0.0-20221116211530-5ae8dcdd68d6/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7568539e43d30655fa39252628099f648c62b489
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,39 @@@
++<div class="relative {{ .classes }} weight-{{ .context.Weight }}">
++
++  <div class="bg-white mb2 pa3 pa4-l gray">
++    {{ if eq .context.Section "news" }}
++      <date class="f6 db" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
++        {{ .context.Date.Format "January 2, 2006" }}
++      </date>
++    {{ end }}
++
++    <h1 class="near-black f3">
++      <a href="{{ .context.RelPermalink }}" class="link primary-color dim">
++      {{- if eq .context.Section "functions" -}}
++        {{ .context.LinkTitle }}
++      {{- else -}}
++        {{ .context.Title }}
++      {{- end -}}
++      </a>
++    </h1>
++
++    <div class="lh-copy links">
++      {{ if eq .context.Section "commands" }}
++        {{ replaceRE `(?s).*?##\s.*?\n\n(.*?)\n.*` "$1" .context.RawContent  }}
++      {{ else }}
++        {{ if .context.Params.description  }}
++          {{ .context.Params.description | markdownify }}
++        {{ else }}
++          {{ .context.Summary  }}
++        {{ end }}
++      {{ end }}
++
++        <a href="{{ .context.RelPermalink }}" class="f6 mt2 db link primary-color dim">
++          Read More &raquo;
++        </a>
++
++    </div>
++
++
++  </div>
++</div>
index 6b627636459c9f64358174747c43bca84d42dcbc,0000000000000000000000000000000000000000..f3a152a4ffa2dca1cfba034ddb443717269db130
mode 100644,000000..100644
--- /dev/null
@@@ -1,35 -1,0 +1,35 @@@
- HUGO_VERSION = "0.102.3"
 +[build]
 +publish = "public"
 +command = "hugo --gc --minify"
 +
 +[context.production.environment]
- HUGO_VERSION = "0.102.3"
++HUGO_VERSION = "0.105.0"
 +HUGO_ENV = "production"
 +HUGO_ENABLEGITINFO = "true"
 +
 +[context.split1]
 +command = "hugo --gc --minify --enableGitInfo"
 +
 +[context.split1.environment]
- HUGO_VERSION = "0.102.3"
++HUGO_VERSION = "0.105.0"
 +HUGO_ENV = "production"
 +
 +[context.deploy-preview]
 +command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
 +
 +[context.deploy-preview.environment]
- HUGO_VERSION = "0.102.3"
++HUGO_VERSION = "0.105.0"
 +
 +[context.branch-deploy]
 +command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
 +
 +[context.branch-deploy.environment]
++HUGO_VERSION = "0.105.0"
 +
 +[context.next.environment]
 +HUGO_ENABLEGITINFO = "true"
 +
 +[[redirects]]
 +from = "/npmjs/*"
 +to = "/npmjs/"
 +status = 200
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..545cfb2d2b1df86653e8b949d77bfcab2ed98bab
new file mode 100644 (file)
Binary files differ
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..417ac696c6ad8a603de30acff23c24b694f88ca4
new file mode 100644 (file)
Binary files differ
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e090035831b56cb58421b84f3190399a657c71a9
new file mode 100644 (file)
Binary files differ
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6cd39424e7ae553a717f08ac10bcd441c7e19411
new file mode 100644 (file)
Binary files differ
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..07dffbae6f92145a67fe6948af7c604f0f71988d
new file mode 100644 (file)
Binary files differ