Delete old NJK templates that aren't used anymore.

fa53b4e8aab81159b7db667aa0db400bbb1fd6d5

Tucker McKnight <tucker@pangolin.lan> | Fri Jan 02 2026

Delete old NJK templates that aren't used anymore.
templates/branches.njk:1
Before
0
1
2
3
4
5
<ul>
{% for branch in branches %}
  {% if branch.repoName == branchInfo.repoName %}
  <li><a href="{{reposPath}}/{{branch.repoName | slugify}}/branches/{{branch.branchName | slugify}}">{{branch.branchName}}</a>{% if branch.branchName == branchInfo.branchName %} (current){% endif %}</li>
  {% endif %}
{% endfor %}
</ul>
After




⁣
⁣
⁣
⁣
⁣
⁣
templates/files.njk:1
Before
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="row">
  <div class="col">
    <ul class="list-group">
    {% set files = currentBranch.fileList | topLevelFilesOnly('') %}
    {% for file in files %}
      <li class="list-group-item">
        {% if file.isDirectory %}
        <i class="bi bi-folder-fill"></i>
        {% else %}
        <i class="bi bi-file-earmark"></i>
        {% endif %}
        <a href="{{reposPath}}/{{branchInfo.repoName | slugify}}/branches/{{branchInfo.branchName | slugify}}/files/{{file.fullPath | slugify}}.html">{{file.name}}</a>
      </li>
    {% endfor %}
    </ul>
  </div>
</div>
After














⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
templates/index.njk:1
Before
0
1
2
3
<ul>
{% for repo in repos %}
  <li><a href="{{reposPath}}/{{repo.name | slugify}}/branches/{{reposConfig.repos[repo.name].defaultBranch}}">{{repo.name}}</a></li>
{% endfor %}
</ul>
After


⁣
⁣
⁣
⁣
templates/repo.njk:1
Before
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="row">
  <div class="col-md-8 col-sm-12 order-md-1 order-sm-2">
    {{ branch.repoName | getReadMe(branch.branchName) | renderContentIfAvailable("md") | safe }}
  </div>
  <div class="col-md-4 col-sm-12 order-md-2 order-sm-1">
    <div class="row">
      <div class="col">
        <div class="row align-items-center">
          <div class="col-auto">
            <h2 class="fs-6 my-0">Recent patches in {{branch.branchName}}</h2>
          </div>
          {% if rssAvailable %}
            <div class="col-auto">
              <a href="{{reposPath}}/{{ branch.repoName | slugify }}/branches/{{ branch.branchName | slugify }}/patches.xml" class="initialism">RSS<i class="bi bi-rss-fill ms-2" style="color: orange;"></i></a>
            </div>
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</div>
After



















⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣