# How to hide section slug in url

**URL:** <https://zola.discourse.group/t/how-to-hide-section-slug-in-url/2472>\
**Category:** Support\
**Created:** [February 5, 2025, 2:40am UTC](https://zola.discourse.group/t/how-to-hide-section-slug-in-url/2472 "2025-02-05T02:40:46Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Colas.Nahaboo](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/colas.nahaboo/32/1610_2.png) [@Colas.Nahaboo](https://zola.discourse.group/u/Colas.Nahaboo)\
**Post date:** [April 27, 2026, 10:12pm UTC](https://zola.discourse.group/t/how-to-hide-section-slug-in-url/2472/9 "2026-04-27T22:12:46Z")

</div>

> [@matthillco](#):
>
> it’s tiresome to have to write this in the front-matter for thousands of files when we already know its slug.

The solution I use is that I create my new page by a simple shell script that generates the frontmatter… and thus can set automagically the path.

You may thus just want to add this feature in the process you use to create new pages.

I guess a lot of people use some sort of script/process to create new pages, e.g:

> [@Command line boilerplate template for posts](https://zola.discourse.group/t/command-line-boilerplate-template-for-posts/2884):
>
> A quick and dirty post template generator I made for myself to save a little time on boilerplate. Quick an dirty inasmuch as there is little input checking and a person could DoS the system by using /dev/zero or similar as an input filename. Currently not at all suitable for a situation where a person cannot implicitly trust users. Shared in case it saves someone time, the code is logically structured but not entirely efficient. The basic usage is: $ cd my\_site/content $ mkdir mynewpost $ c…

> [@Introducing emile - a tiny CLI POSIX tool to make blogging with Zola painless](https://zola.discourse.group/t/introducing-emile-a-tiny-cli-posix-tool-to-make-blogging-with-zola-painless/2873):
>
> Hey everyone! I recently started using Zola for my personal blog, and I decided to build a little POSIX shell utility to simplify the process of writing and managing blog posts. The tool is called emile and can be found on my personal Github: [GitHub - sebcossu/emile: A POSIX utlity for painless blogging with Zola.](https://github.com/sebcossu/emile) - checkout the README file for more info on the current features. Emile is free, opensource and distributed under the GPL license and it helps you to: Create new posts with the ri…

---

_[View the full topic](https://zola.discourse.group/t/how-to-hide-section-slug-in-url/2472)._
