.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Jan 20, 2022 13:08 UTC.


This page was created/modified in commit 669d193 "Copy ox-hugo test site" on 2017-11-02.
Markdown source of this page

ndash and mdash

tags: body


Description/Summary

The strings in these two columns should look the exact same. Character Rendered Actual Rendered Expection 1 Hyphen a - b a - b 2 Ndash a – b a – b 3 Mdash a — b a — b 4 Ellipsis a … b a … b Title sanitization This post has italics, monospace and bold in the title.


Content

The strings in these two columns should look the exact same.

Character Rendered Actual Rendered Expection
1 Hyphen a - b a - b
2 Ndash a – b a – b
3 Mdash a — b a — b
4 Ellipsis a … b a … b

Title sanitization

This post has italics, monospace and bold in the title. This is to test that those markup characters do not end up in the title front matter of the post because HTML does not allow markup in the <title> section.

So the title of this post should read as “ndash and mdash”.


Page (Debug)

Page VariableValue
Name "ndash and mdash"
Title "ndash and mdash"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/ndash-and-mdash/"
RelPermalink "/posts/ndash-and-mdash/"
Data
page.Data{} (type:page.Data)
NextPageDescription meta-data with "quoted text"
PrevPageNested bold and italics
NextInSectionDescription meta-data with "quoted text"
PrevInSectionNested bold and italics

Page Params (Debug)

maps.Params{"date":time.Date(2017, time.July, 22, 0, 0, 0, 0, time.UTC), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "publishdate":time.Date(2017, time.July, 22, 0, 0, 0, 0, time.UTC), "tags":[]string{"body"}, "title":"ndash and mdash"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "6d77d4071c64a383cccc2423e5b4db7b"
BaseFileName "ndash-and-mdash"
TranslationBaseName "ndash-and-mdash"
Lang "en"
Section "posts"
LogicalName "ndash-and-mdash.md"
Dir "posts/"
Ext "md"
Path "posts/ndash-and-mdash.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]