diff --git a/.prettierignore b/.prettierignore index 7c439ec..d0e19f2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,10 +1,9 @@ -*.html .drone.yml search*.js _normalize.css list.json.json -.lighthouseci/ -themes/ -static/js/ -src/favicon/ +/.lighthouseci/ +/themes/ +/static/js/ +/src/favicon/ LICENSE diff --git a/exampleSite/content/posts/advanced/includes.md b/exampleSite/content/posts/advanced/includes.md index f5642f0..2fab9ea 100644 --- a/exampleSite/content/posts/advanced/includes.md +++ b/exampleSite/content/posts/advanced/includes.md @@ -14,11 +14,15 @@ Include shortcode can include files of different types. By specifying a language {{< toc >}} +## Usage + + ```tpl {{* include file="relative/path/from/hugo/root" language="go" markdown=[false|true] */>}} ``` + -Attributes: +### Attributes | Name | Usage | default | | -------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------- | @@ -38,9 +42,11 @@ If no other options are specified, files will be rendered as Markdown using the If you include markdown files that should not get a menu entry, place them outside the content folder or exclude them otherwise. {{< /hint >}} + ```tpl {{* include file="/static/_includes/example.md.part" */>}} ``` + @@ -52,9 +58,11 @@ If you include markdown files that should not get a menu entry, place them outsi This method can be used to include source code files and keep them automatically up to date. + ```tpl {{* include file="config.yaml" language="yaml" options="linenos=table,hl_lines=5-6,linenostart=100" */>}} ``` + **Code Include:** @@ -70,9 +78,11 @@ This method can be used to include source code files and keep them automatically HTML content will be filtered by the `safeHTML` filter and added to the rendered page output. + ```tpl {{* include file="/static/_includes/example.html.part" */>}} ``` + {{< include file="/static/_includes/example.html.part" type="html" >}} diff --git a/layouts/404.html b/layouts/404.html index 2f260c9..1035977 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,39 +1,39 @@ - -
+ {{ partial "head/meta" . }}