.Kind (page): .Type (posts) / .Layout ()
Bundle: leaf
[ 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 a948c6d "Add post with links to test sites with baseURL with subdir" on 2018-04-12.
Markdown source of this page

BaseURLs with subdirs and absURL/relURL

categories: miscellaneous

tags: absURL relURL baseURL subdir canonifyURLs


Description/Summary

Discussion Test Site Description Link Test site with baseURL with subdir – canonifyURLs = false (default) https://hugo-sandbox.netlify.com/subdir-canonify-false/ Test site with baseURL with subdir – canonifyURLs = true https://hugo-sandbox.netlify.com/subdir-canonify-true/


Content

Discussion

Test Site Description Link
Test site with baseURL with subdir – canonifyURLs = false (default) https://hugo-sandbox.netlify.com/subdir-canonify-false/
Test site with baseURL with subdir – canonifyURLs = true https://hugo-sandbox.netlify.com/subdir-canonify-true/

Page (Debug)

Page VariableValue
Name "BaseURLs with subdirs and absURL/relURL"
Title "BaseURLs with subdirs and absURL/relURL"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/baseurl-with-subdir/"
RelPermalink "/posts/baseurl-with-subdir/"
Data
page.Data{} (type:page.Data)
NextPageA Project Foo post
PrevPageCasing of Front-matter Keys (Leaf Bundle)
NextInSectionA Project Foo post
PrevInSectionCasing of Front-matter Keys (Leaf Bundle)

Page Params (Debug)

maps.Params{"author":[]string{"Kaushal Modi"}, "categories":[]string{"miscellaneous"}, "creator":"Emacs 27.0.50 (Org mode 9.1.9 + ox-hugo)", "draft":false, "iscjklanguage":false, "lastmod":time.Date(2018, time.April, 12, 23, 20, 27, 0, time.Location("")), "tags":[]string{"absURL", "relURL", "baseURL", "subdir", "canonifyURLs"}, "title":"BaseURLs with subdirs and absURL/relURL"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "ba901f5a24cb29be5cd931bcf8290a78"
BaseFileName "index"
TranslationBaseName "index"
Lang "en"
Section "posts"
LogicalName "index.md"
Dir "posts/baseurl-with-subdir/"
Ext "md"
Path "posts/baseurl-with-subdir/index.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]