Removed duplicated code
Was refactoring it out then realized that all pages extend index.html Therefore the variable was already in the available context on all pages
This commit is contained in:
parent
c50ccf9fb1
commit
d5c3dbb4c6
3 changed files with 1 additions and 11 deletions
|
@ -29,6 +29,7 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
<main>
|
<main>
|
||||||
|
{# Create variable to allow appending index.html at end of links if set in config #}
|
||||||
{% if not config.extra.easydocs_uglyurls -%}
|
{% if not config.extra.easydocs_uglyurls -%}
|
||||||
{% set _ugly_url = "" -%}
|
{% set _ugly_url = "" -%}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
<h2>Table of Contents</h2>
|
<h2>Table of Contents</h2>
|
||||||
{% if not config.extra.easydocs_uglyurls -%}
|
|
||||||
{% set _ugly_url = "" -%}
|
|
||||||
{% else %}
|
|
||||||
{% set _ugly_url = "index.html" -%}
|
|
||||||
{% endif -%}
|
|
||||||
{% if section.subsections -%}
|
{% if section.subsections -%}
|
||||||
<ul>
|
<ul>
|
||||||
{% for subsec in section.subsections -%}
|
{% for subsec in section.subsections -%}
|
||||||
|
|
|
@ -3,12 +3,6 @@
|
||||||
{% block title %} {{ config.title }} | {{ section.title }} {% endblock title %}
|
{% block title %} {{ config.title }} | {{ section.title }} {% endblock title %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if not config.extra.easydocs_uglyurls -%}
|
|
||||||
{% set _ugly_url = "" -%}
|
|
||||||
{% else %}
|
|
||||||
{% set _ugly_url = "index.html" -%}
|
|
||||||
{% endif -%}
|
|
||||||
|
|
||||||
{% if section.word_count > 0 -%}
|
{% if section.word_count > 0 -%}
|
||||||
{{ section.content | safe }}
|
{{ section.content | safe }}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
|
|
Loading…
Reference in a new issue