mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
90ad804505
392668f4fUpdate theme65d82c845fix versions in GitHub Pages docs (#1815)4e078a306Create hosting-on-azure-static-web-apps.md (#1738)e24e25052fix requirement typo (#1814)0790eb173fix broken link (#1813)f4a1b38c7📄 Add more clarity on merging of config files (#1493)2e82efff0Install on Windows: Correct + augment (#1520)4bffd076eUpdate frontends to add CloudCannon's CMS (#1509)17eea3133Update index.md to add resource (#1508)5a5ac1d2fAdd documentation for babel sourceMap (#1492)899b7117cUpdate menu-templates.md284dc4266Include flexible translation in i18n.mdf03421274docs: Escaping Hugo/GO template code4f0755683Improve the documentation of imageConfig and the image resource89aa723ccClarify leaf bundle explanation and related FAQ0c6b32bb9Update starter-kits.mda68151b1bUpdate starter-kits.md91b145384Update starter-kits.mdc8104b422Update hosting-on-21yunbox.md51ee7603bUpdate hosting-on-21yunbox.mdd88314499docs(en): add hosting on 21YunBoxaab04f269Update shortcode-templates.md to correct an error.ed48563aaMisc improvements87dd24e1dFix merge failure0bcc6dca8js.Build: Update docs to not allow boolean inputs for sourceMape50a28fbcjs.Build: Add SourceMap flag into js.Build opts which can turn on sourcemap9695093a1Fix Arch Linux installation command3de773d7aPlease remove hugo-elasticsearch plugin.6510f0a5arelease: Add some more ignore expressions to release notes configdc90b7517typoe > typo (!)3427c7436Add hugoreleaser config5a1f2d0ddImproves formatting of resources, assets sections (#1804)03ba56fddRemove Flesland Flis from Showcases9f61dac7aUpdate slice.md533e4e0cdUpdate theme85e50325cSimplify writing9b30e81b9Typo fix and remove passive form8974b6c53dynamic-menu-configuration1c5467329netlify: Hugo 0.102.3610a937b0Remove Over from Showcase99f5585bcnetlify: Hugo v0.102.29f230ac1fnetlify: Hugo v0.102.1a6fc3f864netlify: Bump to Hugo v0.102.03e9bc1a62Merge branch 'tempv0.102.0'c08d6d898Update en/templates/404.md with Firebase Hosting (#1796)322b75f40Update configuration.md2fa6f0b94404 template example: remove slash relURL arg1195f168aRemove broken link (#1767)e0838e574Update RenderString.mdbee6adf71Update page-resources.md24e142f22Remove duplicate word from cascade description879fc3983docs: Update the description of PostCSS config2ffe539e3fix: Use `=` instead of `:=` for variable reassignments (#1771)7496b8f87update 404 error for digitalocean docsc85caca4aMerge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'c3888b63adocs: Regen docshelper8a5942555Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'282007217common: Add hugo.GoVersion00b4b46daresources/page: Add :slugorfilename attribute git-subtree-dir: docs git-subtree-split:392668f4f4
1.2 KiB
1.2 KiB
title, description, date, categories, menu, keywords, signature
| title | description | date | categories | menu | keywords | signature | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| .RenderString | Renders markup to HTML. | 2019-12-18 |
|
|
|
|
{{< new-in "0.62.0" >}}
.RenderString is a method on Page that renders some markup to HTML using the content renderer defined for that page (if not set in the options).
The method takes an optional map argument with these options:
- display ("inline")
inlineorblock. Ifinline(default), surrounding<p></p>on short snippets will be trimmed.- markup (defaults to the Page's markup)
- See identifiers in List of content formats.
Some examples:
{{ $optBlock := dict "display" "block" }}
{{ $optOrg := dict "markup" "org" }}
{{ "**Bold Markdown**" | $p.RenderString }}
{{ "**Bold Block Markdown**" | $p.RenderString $optBlock }}
{{ "/italic org mode/" | $p.RenderString $optOrg }}
Note that this method is more powerful than the similar markdownify function as it also supports Render Hooks and it has options to render other markup formats.