You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: userguide/content/en/docs/Adding content/Shortcodes/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ The **blocks/cover** shortcode creates a landing page type of block that fills t
49
49
Note that the relevant shortcode parameters above will have sensible defaults, but is included here for completeness.
50
50
51
51
{{% alert title="Hugo Tip" %}}
52
-
> Using the bracket styled shortcode delimiter, `>}}`, tells Hugo that the inner content is HTML/plain text and needs no further processing. Changing the delimiter to `%}}` means Hugo will treat the content as Markdown. You can use both styles in your pages.
52
+
Using the bracket styled shortcode delimiter, `>}}`, tells Hugo that the inner content is HTML/plain text and needs no further processing. Changing the delimiter to `%}}` means Hugo will treat the content as Markdown. You can use both styles in your pages.
If you've just added the theme as a submodule in a local version of your site and haven't committed it to a repo yet, you must get local copies of the theme's own submodules before serving your site.
23
-
23
+
24
24
git submodule update --init --recursive
25
-
{{% /alert %}}
25
+
{{< /alert >}}
26
26
27
27
1. Ensure you have the tools described in [Prerequisites and installation](/docs/getting-started/#prerequisites-and-installation) installed on your local machine, including `postcss-cli` (you'll need it to generate the site resources the first time you run the server).
28
28
1. Run the `hugo server` command in your site root. By default your site will be available at http://localhost:1313/.
@@ -59,7 +59,7 @@ Then follow the instructions in [Host on Netlify](https://gohugo.io/hosting-and-
59
59
1. Specify `HUGO_VERSION` as the **Key** for the new variable, and `0.53` or later as its **Value**.
60
60
1. Click **Deploy site**.
61
61
62
-
{{% alert title="Note" color="primary" %}}
62
+
{{% alert title="Note" %}}
63
63
Netlify uses your site repo's `package.json` file to install any JavaScript dependencies (like `postcss`) before building your site. If you haven't just copied our example site's version of this file, make sure that you've specified all our [prerequisites](/docs/getting-started/#install-postcss).
64
64
65
65
For example, if you want to use a version of `postcss-cli` later than version 8.0.0, you need to ensure that your `package.json` also specifies `postcss` separately:
@@ -121,12 +121,12 @@ There are several options for publishing your web site using [Amazon Web Service
121
121
122
122
For more information about the Hugo `deploy` command, including command line options, see this [synopsis](https://gohugo.io/commands/hugo_deploy). In particular, you may find the `--maxDeletes int` option or the `--force` option (which forces upload of all files) useful.
123
123
124
-
{{% alert title="Automated deployment with GitHub actions" color="primary" %}}
124
+
{{% alert title="Automated deployment with GitHub actions" %}}
125
125
If the source of your site lives in a GitHub repository, you can use [GitHub Actions](https://docs.github.com/en/actions) to deploy the site to your S3 bucket as soon as you commit changes to your GitHub repo. Setup of this workflow is described in this [blog post](https://capgemini.github.io/development/Using-GitHub-Actions-and-Hugo-Deploy-to-Deploy-to-AWS/).
If you are using [aliases](https://gohugo.io/content-management/urls/#aliases) for URL management, you should have a look at this [blog post](https://blog.cavelab.dev/2021/10/hugo-aliases-to-s3-redirects/). It explains how to turn aliases into proper `301` redirects when using Amazon S3.
0 commit comments