.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Mar 05, 2024 19:24 UTC.


This page was created/modified in commit c504e21 "Leave the front-matter values that would be bigints as strings" on 2018-06-05.
Markdown source of this page

Front-matter values with BigInts

tags: custom-fm bigint toml


Description/Summary

Test that front-matter values that are integers represented as strings, but cannot be stored as 64-bit signed integers are left as strings.

Content

In this test, the small integer “234” (i.e. the one that can be represented as a 64-bit signed integer) is saved as an integer in the TOML front-matter.

But the big integer “10040216507682529280” which would need more than 64-bits to be stored as a signed integer is left as a string in the TOML front-matter.


Page (Debug)

Page VariableValue
Name "Front-matter values with BigInts"
Title "Front-matter values with BigInts"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/front-matter-bigint-value/"
RelPermalink "/posts/front-matter-bigint-value/"
Data
page.Data{} (type:page.Data)
NextPageFront-matter mixed bag
PrevPageHTML Container with class
NextInSectionFront-matter mixed bag
PrevInSectionHTML Container with class

Page Params (Debug)

KeyTypeValue
big_intstring "10040216507682529280"
descriptionstring " Test that front-matter values that are integers represented as\n strings, but cannot be stored as 64-bit signed integers are\n left as strings.\n "
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-06-05 12:11:46 -0400 -0400
small_intint64 234
tags[]string "custom-fm" "bigint" "toml"
titlestring "Front-matter values with BigInts"

File Object (Debug)

FileInfo VariableValue
UniqueID "d5f5ac9a18af0a5438619271758a374b"
BaseFileName "front-matter-bigint-value"
TranslationBaseName "front-matter-bigint-value"
Lang "en"
Section "posts"
LogicalName "front-matter-bigint-value.md"
Dir "posts/"
Ext "md"
Path "posts/front-matter-bigint-value.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]