Require-Tags

The Require-Tags header determines whether the Tags header must be set on a node.

The Require-Tags header has two valid values:

The default value is false.

When Require-Tags is set to true on a node, then the Tags header must also be set, or the build will fail.

When Require-Tags is set to false (or not set) on a node, then it has no effect.

When to Use the Require-Tags Header

If you want to ensure that every page in a section of your site has at least one tag defined, you can set the Require-Tags header on a parent node, and it will be inherited by all downstream child nodes in that section.

For instance, if you had a node called articles/index, you could add the following header to force all nodes under the articles section to define at least one tag:

+Require-Tags: true

Using the inheritance rules, if you set the header above in articles/index, then the top-level node would not require any tags to be set, but all child nodes (e.g. each article in that section) would be required to define at least one tag.

If you want to avoid setting the Tags header on a child node where Require-Tags is set to true, you can always delete the Require-Tags header locally:

-Require-Tags: *

Tags: headers

This page was generated by Uriel with the following settings:

Page Details

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

Node Headers

Header (Lowercase) Value
require-tags true
tags headers
title Require-Tags
+-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
template default.html

Node Timestamps

Type Value
Created
Modified 2026-06-15T22:05:47-04:00

Node Methods

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