Flat-URL

The Flat-URL header influences the URL for a node.

This header can be set to two possible values:

The default value is false.

By default, the node file path has a direct relationship to its URL in the generated web site. For example, the nodes/headers/title node on this documentation site ends up with a URL of /headers/title/.

However, when Flat-URL is set to true on a node, the URL of the generated page is modified. Instead of having a direct correspondence to the node file hierarchy, the node is moved directly up to the top of the URL hierarchy. For example, this page was generated from the nodes/headers/flat-url/index node, but since Flat-URL is set to true on this node, the resulting URL is /flat-url/. Notice how the /headers/ portion of the URL has disappeared? (The index portion isn't part of the URL because it is an index page.)

The usual node header inheritance rules apply, so once Flat-URL is set to true on a node, all child nodes will inherit that setting as well, unless the header is deleted.

Examples

Node URL Flat-URL
nodes/headers/flat-url/index /flat-url/ true
nodes/headers/flat-url/true /true/ true
nodes/headers/flat-url/false /flat-url/false/ false
nodes/headers/title /headers/title/ false
nodes/headers/index /headers/ false
nodes/index / false

Tags: headers

This page was generated by Uriel with the following settings:

Page Details

Resource Path Project File
Node headers/flat-url/index nodes/headers/flat-url/index
Template default.html templates/default.html
URL /flat-url/ public/flat-url/index.html

Node Headers

Header (Lowercase) Value
flat-url true
title Flat-URL
+-tags *
breadcrumb-separator »
canonical-url https://documentation.uriel.foo
rss-description Uriel Documentation
rss-image-height 32
rss-image-url /favicon-32x32.png
rss-image-width 32
rss-max-entries 50
rss-title Uriel Documentation
rss-url /rss.xml
sitemap-max-entries 10000
sitemap-url /sitemap.xml
tag-node tag
tags headers
template default.html

Node Timestamps

Type Value
Created
Modified 2026-06-05T21:16:16-04:00

Node Methods

Method Value
get_parent_node() headers/index
get_path() headers/flat-url/index
get_node_type() file
get_url() /flat-url/
get_canonical_url() https://documentation.uriel.foo/flat-url/
get_name() flat-url
get_display_name() Flat Url
get_title() Flat-URL
get_escaped_title() Flat-URL
get_link() <a href="/flat-url/">Flat-URL</a>
get_canonical_link() <a href="https://documentation.uriel.foo/flat-url/">Flat-URL</a>
get_link_prefix() <p>
get_link_suffix() </p>
get_tags() ['headers']
get_dest_dir() ./public/flat-url
get_dest_file() ./public/flat-url/index.html
get_breadcrumb_separator() &raquo;