Use Org Code markup for kbd tag
tags: formatting
Description/Summary
Here the Org code markup is explicitly specified to be used for <kbd> tag generation by setting EXPORT_HUGO_USE_CODE_FOR_KBD property to t. So ~C-h f~ will show up as <kbd>C-h f</kbd>. Example: Few of Emacs help keybindings: C-h f, C-h v
Content
Here the Org code markup is explicitly specified to be used for
<kbd>
tag generation by setting EXPORT_HUGO_USE_CODE_FOR_KBD
property to t
. So ~C-h f~
will show up as <kbd>C-h f</kbd>
.
Example:
- Few of Emacs help keybindings: C-h f, C-h v
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Use Org Code markup for kbd tag" | |
Title | "Use Org Code markup for kbd tag" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/kbd-tag-yes/" | |
RelPermalink | "/posts/kbd-tag-yes/" | |
Data |
| |
NextPage | Source blocks with highlight shortcode | |
PrevPage | Use Org Code markup for kbd tag (default behavior) | |
NextInSection | Source blocks with highlight shortcode | |
PrevInSection | Use Org Code markup for kbd tag (default behavior) |
Page Params (Debug)
maps.Params{"date":time.Date(2017, time.July, 31, 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, 31, 0, 0, 0, 0, time.UTC), "tags":[]string{"formatting"}, "title":"Use Org Code markup for kbd tag"} (type:maps.Params) |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "6f5be4cc4aa8643abf12e1d4c3b7ee81" |
BaseFileName | "kbd-tag-yes" |
TranslationBaseName | "kbd-tag-yes" |
Lang | "en" |
Section | "posts" |
LogicalName | "kbd-tag-yes.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/kbd-tag-yes.md" |