From 54a7c1a46b40470f22b42c72219c4eac7a87daf2 Mon Sep 17 00:00:00 2001 From: weru <fromweru@gmail.com> Date: Mon, 28 Dec 2020 13:58:50 +0000 Subject: [PATCH] edit example --- exampleSite/content/docs/compose/shortcodes.md | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/exampleSite/content/docs/compose/shortcodes.md b/exampleSite/content/docs/compose/shortcodes.md index 4ca5fe3..1911576 100644 --- a/exampleSite/content/docs/compose/shortcodes.md +++ b/exampleSite/content/docs/compose/shortcodes.md @@ -1,13 +1,14 @@ ---- -title: "Shortcodes" -weight: 5 -description: > - Use hugo shortcodes to quickly compose site pages. ---- ++++ +title = "Shortcodes" +weight = 5 +description = "Use hugo shortcodes to quickly compose your documentation pages." ++++ + +Instead of writing all your site pages from scratch, Hugo lets you define and use [shortcodes](https://gohugo.io/content-management/shortcodes/). Why shortcodes? While markdown is sufficient to produce simple pages, it's insufficient where complex page structures are needed. Thusly, whenever we need special styling, shortcodes compliment the shortcomings of markdown. -This way, you can side step complex html and css boilerplate in your content files. +This way, you can side step complex html and css boilerplate in your content files. Sometimes, the shortcode will wrap content, sometimes it won't. When content is wrapped, a closing shortcode tag is needed. Please see the link I provided above and the markdown files for examples. You'll get the gist pretty quickly. -- Gitblit v1.10.0