docs template use about_norg page if home instead of redirecting

This commit is contained in:
Paul Wilde 2024-08-28 22:33:14 +01:00
parent 813f9548cd
commit e3ff54e8af
4 changed files with 9 additions and 7 deletions

View file

@ -1,4 +1,4 @@
+++ +++
title = "Norg" title = "About Norg"
redirect_to = "introduction/about-norg" #redirect_to = "introduction/about-norg"
+++ +++

View file

@ -12,6 +12,5 @@ Please use the menu or search function to find the information you require.
Norg is short for "Nice Borg" - a way to nicely handle borg based backups. Norg is short for "Nice Borg" - a way to nicely handle borg based backups.
Also, I'm a Star Trek fan so obviously I wanted to keep something in line with the Also, I'm a Star Trek fan so obviously I wanted to keep something in line with the
[Borg pseudo-species](https://memory-alpha.fandom.com/wiki/Borg) as the borg backup utility does. [Borg pseudo-species](https://memory-alpha.fandom.com/wiki/Borg) as the borg backup utility does. Sometimes I feel my code has elements of inexperience but loads of potential... which reminded me of [Nog](https://memory-alpha.fandom.com/wiki/Nog).
Also, sometimes I feel my code has elements of inexperience but loads of potential... which reminded me of [Nog](https://memory-alpha.fandom.com/wiki/Nog).
So, simply put, Norg could also be a portmanteau of "Borg" and "Nog". So, simply put, Norg could also be a portmanteau of "Borg" and "Nog".

@ -1 +1 @@
Subproject commit ef89abc7faf20d2fc0ae8076387dbf84fea7e2c6 Subproject commit 50028724e819d89f2d00c8e06cd7b0f091383d3d

View file

@ -137,7 +137,10 @@
<div id="wrap"> <div id="wrap">
<h1>{% block article_title -%}{% endblock article_title -%}</h1> <h1>{% block article_title -%}{% endblock article_title -%}</h1>
{% block content -%} {% block content -%}
{%- if section.word_count -%} {%- if current_path == "/" -%}
{% set p = get_page(path="introduction/about_norg.md") %}
{{ p.content | safe }}
{%- elif section.word_count -%}
{{ section.content | safe }} {{ section.content | safe }}
{%- else -%} {%- else -%}
{%- include "sec_toc_2_level.html" -%} {%- include "sec_toc_2_level.html" -%}