welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.

Home Page:https://welpo.github.io/tabi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add template for a custom page on root

SeaDve opened this issue · comments

Feature Request

Summary

Add a template for a custom page on the root.

Motivation

For example, when a user may want to add an about page, they can simply use the template X.html, instead of modifying the theme.

Detailed Description

I currently use a custom template to get around this, and it is implemented like the following:

{% extends "base.html" %}

{% block main_content %}
    {{ macros_page_header::page_header(title=section.title) }}

    <br>

    {{ section.content | safe }}
{% endblock main_content %}

I'm not sure I understand the request.

I recently added (PR #147) an info-page.html template, which looks like this. It's set up like this:

+++
title = "About"
template = "info-page.html"
path = "about"

Notice how I'm specifying an absolute path as well as the template.

Is this what you were requesting? If not, please clarify.

Thanks!

Oh, last time I checked it wasn't there. That's exactly what I was looking for. Closing this. Thankss!