diff --git a/config/_default/markup.toml b/config/_default/markup.toml index f237f3526..b4a8e059a 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -1,5 +1,25 @@ defaultMarkdownHandler = "goldmark" +[goldmark] +[goldmark.extensions] +definitionList = true +footnote = true +linkify = true +strikethrough = true +table = true +taskList = true +typographer = true +[goldmark.parser] +autoHeadingID = true +autoHeadingIDType = "github" +[goldmark.parser.attribute] +block = true +title = true +[goldmark.renderer] +hardWraps = false +unsafe = false +xhtml = false + [highlight] style = "trac" lineNumbersInTable = true diff --git a/content/en/myshowcase/bio.md b/content/en/myshowcase/bio.md new file mode 100644 index 000000000..7d1b30895 --- /dev/null +++ b/content/en/myshowcase/bio.md @@ -0,0 +1,8 @@ + +Add some **general info** about Myshowcase here. + +The site is built by: + +* [Person 1](https://example.com) +* [Person 1](https://example.com) + diff --git a/content/en/myshowcase/featured.png b/content/en/myshowcase/featured.png new file mode 100644 index 000000000..4f390132e Binary files /dev/null and b/content/en/myshowcase/featured.png differ diff --git a/content/en/myshowcase/index.md b/content/en/myshowcase/index.md new file mode 100644 index 000000000..08ea1e55f --- /dev/null +++ b/content/en/myshowcase/index.md @@ -0,0 +1,37 @@ +--- + +title: Myshowcase +date: 2021-01-14 + +description: "A short description of this page." + +# The URL to the site on the internet. +siteURL: https://gohugo.io/ + +# Link to the site's Hugo source code if public and you can/want to share. +# Remove or leave blank if not needed/wanted. +siteSource: https://github.com/gohugoio/hugoDocs + +# Add credit to the article author. Leave blank or remove if not needed/wanted. +byline: "[bep](https://github.com/bep), Hugo Lead" + +--- + +To complete this showcase: + +1. Write the story about your site in this file. +2. Add a summary to the `bio.md` file in this folder. +3. Replace the `featured-template.png` with a screenshot of your site. You can rename it, but it must contain the word `featured`. +4. Create a new pull request in https://github.com/gohugoio/hugoDocs/pulls + +The content of this bundle explained: + +index.md +: The main content file. Fill in required front matter metadata and write your story. I does not have to be a novel. It can even be self-promotional, but it should include Hugo in some form. + +bio.md +: A short summary of the website. Site credits (who built it) fits nicely here. + +featured.png +: A reasonably sized screenshot of your website. It can be named anything, but the name must start with "featured". The sample image is `1500x750` (2:1 aspect ratio). + diff --git a/content/en/news/0.81.0-relnotes/featured.jpg b/content/en/news/0.81.0-relnotes/featured.jpg new file mode 100644 index 000000000..e1488c5c2 Binary files /dev/null and b/content/en/news/0.81.0-relnotes/featured.jpg differ diff --git a/content/en/news/0.81.0-relnotes/index.md b/content/en/news/0.81.0-relnotes/index.md index 0a023cc90..fe3d181f6 100644 --- a/content/en/news/0.81.0-relnotes/index.md +++ b/content/en/news/0.81.0-relnotes/index.md @@ -1,19 +1,19 @@ --- date: 2021-02-19 -title: "0.81.0" -description: "0.81.0" +title: "Hugo 0.81.0: The Smorgasbord Edition" +description: "Attribute lists (e.g. CSS classes) for Markdown blocks, newlines in template actions/blocks, native Apple M1 ARM64 binary, it's faster, and more …" categories: ["Releases"] --- - **Hugo 0.81.0** is the first release in this decade, it is the fastest to date, and it's packed with useful new features. +**Hugo 0.81.0** is the first release in this decade, it is the fastest to date, and it's packed with useful new features. ## Newlines in Template Actions and Commands You can now have newlines within template actions and pipelines. This means that you can now do this and similar: ```go-html-template -FIX dict +{{ dict "country" "Norway" "population" "5 millions" "language" "Norwegian" @@ -23,7 +23,7 @@ FIX dict "largest_city" "Oslo" "currency" "Norwegian krone" "dialing_code" "+47" -FIX +}} ``` Note that the above construction will fail in Hugo versions < `0.81.0`. @@ -40,13 +40,11 @@ Hugo already supports adding attribute lists (e.g CSS classes) after titles. We See [Configure Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark). - ## Performance This release is the fastest Hugo to date, see details in the benchmarks below. This is [especially true](https://gohugo.io/news/hugo-macos-intel-vs-arm/) if you use the new ARM64 MacOS binary (only works on [Apple M1](https://en.wikipedia.org/wiki/Apple_M1) devices). -
- Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0 +### Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0 ``` name old time/op new time/op delta @@ -103,7 +101,8 @@ SiteNew/Regular_Many_HTML_templates-16 129k ± 0% 129k ± 0% +0.35 SiteNew/Regular_Page_collections-16 199k ± 0% 200k ± 0% +0.55% (p=0.029 n=4+4) SiteNew/Regular_List_terms-16 53.5k ± 0% 53.4k ± 0% -0.18% (p=0.029 n=4+4) ``` -
+ + ## Native Arm Binary for Apple M1 diff --git a/netlify.toml b/netlify.toml index 21649e987..e36b878d4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.80.0" +HUGO_VERSION = "0.81.0" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.80.0" +HUGO_VERSION = "0.81.0" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.80.0" +HUGO_VERSION = "0.81.0" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.80.0" +HUGO_VERSION = "0.81.0" [context.next.environment] HUGO_ENABLEGITINFO = "true" diff --git a/resources/_gen/images/news/0.81.0-relnotes/featured_hu58c8ecd7359167d9f1e2a412ca212ed7_345282_480x0_resize_q75_catmullrom.jpg b/resources/_gen/images/news/0.81.0-relnotes/featured_hu58c8ecd7359167d9f1e2a412ca212ed7_345282_480x0_resize_q75_catmullrom.jpg new file mode 100644 index 000000000..c7fd859b5 Binary files /dev/null and b/resources/_gen/images/news/0.81.0-relnotes/featured_hu58c8ecd7359167d9f1e2a412ca212ed7_345282_480x0_resize_q75_catmullrom.jpg differ diff --git a/resources/_gen/images/news/0.81.0-relnotes/featured_hu58c8ecd7359167d9f1e2a412ca212ed7_345282_640x0_resize_q75_catmullrom.jpg b/resources/_gen/images/news/0.81.0-relnotes/featured_hu58c8ecd7359167d9f1e2a412ca212ed7_345282_640x0_resize_q75_catmullrom.jpg new file mode 100644 index 000000000..b27744138 Binary files /dev/null and b/resources/_gen/images/news/0.81.0-relnotes/featured_hu58c8ecd7359167d9f1e2a412ca212ed7_345282_640x0_resize_q75_catmullrom.jpg differ diff --git a/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_1024x512_fill_catmullrom_top_2.png b/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_1024x512_fill_catmullrom_top_2.png new file mode 100644 index 000000000..bdeaa76b7 Binary files /dev/null and b/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_1024x512_fill_catmullrom_top_2.png differ diff --git a/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_640x0_resize_catmullrom_2.png b/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_640x0_resize_catmullrom_2.png new file mode 100644 index 000000000..160cb8e85 Binary files /dev/null and b/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_640x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_6ac8836c681722befb6d26281fada45c.png b/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_6ac8836c681722befb6d26281fada45c.png new file mode 100644 index 000000000..d21be2bc5 Binary files /dev/null and b/resources/_gen/images/showcase/godot-tutorials/featured_hu9debe7d7e6d1a72f19d3b8209a030483_72068_6ac8836c681722befb6d26281fada45c.png differ diff --git a/resources/_gen/images/showcase/small-multiples/featured-small-multiples_hu51052576363ab8df1ffb3da1ac00318f_374273_1024x512_fill_catmullrom_top_2.png b/resources/_gen/images/showcase/small-multiples/featured-small-multiples_hu51052576363ab8df1ffb3da1ac00318f_374273_1024x512_fill_catmullrom_top_2.png new file mode 100644 index 000000000..7c05ce71f Binary files /dev/null and b/resources/_gen/images/showcase/small-multiples/featured-small-multiples_hu51052576363ab8df1ffb3da1ac00318f_374273_1024x512_fill_catmullrom_top_2.png differ diff --git a/resources/_gen/images/showcase/small-multiples/featured-small-multiples_hu51052576363ab8df1ffb3da1ac00318f_374273_fc66c17bb032c615e348fb3209afc702.png b/resources/_gen/images/showcase/small-multiples/featured-small-multiples_hu51052576363ab8df1ffb3da1ac00318f_374273_fc66c17bb032c615e348fb3209afc702.png new file mode 100644 index 000000000..269a1343f Binary files /dev/null and b/resources/_gen/images/showcase/small-multiples/featured-small-multiples_hu51052576363ab8df1ffb3da1ac00318f_374273_fc66c17bb032c615e348fb3209afc702.png differ