From ee008f4b814d55e0f53ea4bda2e9d20b4400896b Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Fri, 24 Feb 2017 00:52:40 -0600 Subject: [PATCH] Update function front matter across all files --- content/about-hugo/benefits-of-static.md | 2 ++ content/about-hugo/license.md | 2 +- content/content-management/archetypes.md | 10 +++---- content/content-management/comments.md | 4 +-- .../content-management/content-summaries.md | 2 +- .../content-management/multilingual-mode.md | 2 +- content/content-management/shortcodes.md | 6 ++-- content/content-management/taxonomies.md | 4 +-- .../add-your-site-to-the-showcase.md | 2 +- .../contribute-to-the-hugo-docs.md | 14 ++++------ .../developer-tools/syntax-highlighting.md | 2 +- content/functions/GetPage.md | 8 ++++-- content/functions/_index.md | 1 - content/functions/absLangURL.md | 8 ++++-- content/functions/absURL.md | 8 ++++-- content/functions/after.md | 8 ++++-- content/functions/apply.md | 8 ++++-- content/functions/base64Decode.md | 8 ++++-- content/functions/base64Encode.md | 8 ++++-- content/functions/chomp.md | 8 ++++-- content/functions/count.md | 8 ++++-- content/functions/countrunes.md | 8 ++++-- content/functions/countwords.md | 8 ++++-- content/functions/dateformat.md | 8 ++++-- content/functions/default.md | 17 +++++++---- content/functions/delimit.md | 21 ++++++++------ content/functions/dict.md | 7 ++++- content/functions/echoparam.md | 7 ++++- content/functions/emojify.md | 8 ++++-- content/functions/findRe.md | 8 ++++-- content/functions/first.md | 8 ++++-- content/functions/get.md | 8 ++++-- content/functions/getenv.md | 8 ++++-- content/functions/hasPrefix.md | 8 ++++-- content/functions/haschildren.md | 7 ++++- content/functions/hasmenucurrent.md | 7 ++++- content/functions/highlight.md | 8 ++++-- content/functions/htmlEscape.md | 8 ++++-- content/functions/htmlUnescape.md | 8 ++++-- content/functions/humanize.md | 8 ++++-- content/functions/i18n.md | 8 ++++-- content/functions/imageConfig.md | 8 ++++-- content/functions/in.md | 8 ++++-- content/functions/index-function.md | 8 ++++-- content/functions/int.md | 8 ++++-- content/functions/intersect.md | 8 ++++-- content/functions/ismenucurrent.md | 7 ++++- content/functions/isset.md | 8 ++++-- content/functions/jsonify.md | 8 ++++-- content/functions/last.md | 8 ++++-- content/functions/lower.md | 8 ++++-- content/functions/markdownify.md | 8 ++++-- content/functions/math.md | 8 ++++-- content/functions/md5.md | 6 +++- content/functions/param.md | 8 ++++-- content/functions/partialCached.md | 8 ++++-- content/functions/plainify.md | 8 ++++-- content/functions/pluralize.md | 8 ++++-- content/functions/printf.md | 8 ++++-- content/functions/querify.md | 8 ++++-- content/functions/range.md | 8 ++++-- content/functions/readDir.md | 8 ++++-- content/functions/readFile.md | 8 ++++-- content/functions/rel.md | 8 ++++-- content/functions/relLangURL.md | 8 ++++-- content/functions/relURL.md | 8 ++++-- content/functions/relref.md | 8 ++++-- content/functions/render.md | 8 ++++-- content/functions/replace.md | 8 ++++-- content/functions/safeCSS.md | 8 ++++-- content/functions/safeHTML.md | 8 ++++-- content/functions/safeHTMLAttr.md | 8 ++++-- content/functions/safeJS.md | 8 ++++-- content/functions/safeURL.md | 8 ++++-- content/functions/scratch.md | 8 ++++-- content/functions/seq.md | 8 ++++-- content/functions/sha1.md | 8 ++++-- content/functions/sha256.md | 8 ++++-- content/functions/shuffle.md | 8 ++++-- content/functions/singularize.md | 8 ++++-- content/functions/slice.md | 8 ++++-- content/functions/slicestr.md | 8 ++++-- content/functions/sort.md | 8 ++++-- content/functions/split.md | 8 ++++-- content/functions/string.md | 8 ++++-- content/functions/substr.md | 8 ++++-- content/functions/the-dot.md | 8 ++++-- content/functions/time.md | 8 ++++-- content/functions/title.md | 8 ++++-- content/functions/trim.md | 8 ++++-- content/functions/truncate.md | 15 ++++++++-- content/functions/unix.md | 8 ++++-- content/functions/upper.md | 8 ++++-- content/functions/urlize.md | 8 ++++-- content/functions/where.md | 8 ++++-- content/functions/with.md | 14 +++++----- content/getting-started/basic-usage.md | 2 +- content/getting-started/configuration.md | 10 +++---- content/getting-started/install-hugo.md | 8 +++--- content/getting-started/quick-start.md | 28 +++++++++---------- .../deployment-with-rsync.md | 2 +- .../deployment-with-wercker.md | 20 ++++++------- .../hosting-on-github.md | 2 +- .../hosting-on-gitlab.md | 2 +- content/templates/custom-404-page.md | 2 +- content/templates/go-template-primer.md | 18 ++++++------ content/templates/local-file-templates.md | 2 +- content/templates/partial-templates.md | 12 ++++---- content/templates/section-templates.md | 10 +++---- content/templates/shortcode-templates.md | 14 +++++----- content/templates/single-page-templates.md | 10 +++---- content/templates/template-debugging.md | 6 ++-- content/themes/installing-and-using-themes.md | 2 +- .../variables-and-params/page-variables.md | 2 +- .../variables-and-params/site-variables.md | 2 +- 115 files changed, 623 insertions(+), 282 deletions(-) diff --git a/content/about-hugo/benefits-of-static.md b/content/about-hugo/benefits-of-static.md index afe92db6a..46b8be366 100644 --- a/content/about-hugo/benefits-of-static.md +++ b/content/about-hugo/benefits-of-static.md @@ -28,9 +28,11 @@ Not running a website generator on your HTTP server has many benefits. The most * ["Static Site Generators", O-Reilly][] * [StaticGen: Top Open-Source Static Site Generators (GitHub Stars)][] * ["Top 10 Static Website Generators," Netlify blog][] +* ["Hugo vs. Wordpress page load speed comparison: Hugo leaves WordPress in its dust", GettingThingsTech][hugovwordpress] ["An Introduction to Static Site Generators", David Walsh]: https://davidwalsh.name/introduction-static-site-generators ["Static Site Generators", O-Reilly]: /documents/oreilly-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/ diff --git a/content/about-hugo/license.md b/content/about-hugo/license.md index efb11bb9a..bfe695bb1 100644 --- a/content/about-hugo/license.md +++ b/content/about-hugo/license.md @@ -144,7 +144,7 @@ _END OF TERMS AND CONDITIONS_ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets `[]` replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same “printed page” as the copyright notice for easier identification within third-party archives. -{{% input "apache-notice.txt" %}} +{{% input file="apache-notice.txt" %}} ``` Copyright [yyyy] [name of copyright owner] diff --git a/content/content-management/archetypes.md b/content/content-management/archetypes.md index b330a684e..cd2eb98e4 100644 --- a/content/content-management/archetypes.md +++ b/content/content-management/archetypes.md @@ -26,7 +26,7 @@ hugo new [content-section/file-name.md] We can use this pattern to create a new `.md` file in the `posts` section of the [example site][]: -{{% input "archetype-example.sh" %}} +{{% input file="archetype-example.sh" %}} ```bash hugo new posts/my-first-post.md ``` @@ -82,7 +82,7 @@ Default archetypes are convenient if your content's front matter stays consisten The [example site][] includes `tags` and `categories` as [taxonomies][]. If we assume that all content files will require these two key-values, we can create a `default.md` archetype that *extends* Hugo's base archetype. In this example, we are including "golang" and "hugo" as tags and "web development" as a category. -{{% input "archetypes/default.md" %}} +{{% input file="archetypes/default.md" %}} ```toml +++ tags = ["golang", "hugo"] @@ -99,7 +99,7 @@ If you get an `EOF error` when using `hugo new`, add a carriage return after the With an `archetypes/default.md` in place, we can use the CLI to create a new post in the `posts` content section: -{{% input "new-post-from-default.sh" %}} +{{% input file="new-post-from-default.sh" %}} ```bash $ hugo new posts/my-new-post.md ``` @@ -136,7 +136,7 @@ Suppose the example site's `posts` section requires more sophisticated front mat ### Creating a Custom Archetype -{{% input "archetypes/posts.md"%}} +{{% input file="archetypes/posts.md"%}} ```toml +++ description = "" @@ -150,7 +150,7 @@ categories = "" With an `archetypes/posts.md` in place, we can use the CLI to create a new posts with custom `posts` metadata in the `posts` content section: -{{% input "new-post-from-custom.sh" %}} +{{% input file="new-post-from-custom.sh" %}} ```bash $ hugo new posts/post-from-custom.md ``` diff --git a/content/content-management/comments.md b/content/content-management/comments.md index 831ef9008..962b378c1 100644 --- a/content/content-management/comments.md +++ b/content/content-management/comments.md @@ -56,7 +56,7 @@ You also have the option to set the following in the front matter for a given pi 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. In order to prevent this, a slightly tweaked partial template is required. So, rather than using the built-in `"_internal/disqus.html"` template referenced above, create a template in `layouts/partials` that looks like the following: -{{% input "layouts/partials/disqus.html" %}} +{{% input file="layouts/partials/disqus.html" %}} ```html