switch default pages to index.html

This commit is contained in:
Trevor Bentley
2023-01-15 03:21:22 +01:00
parent 490b6ad008
commit 88b7524b4a
7 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -442,8 +442,8 @@ error = "404.html"
###############################################################################
[gitsy_outputs]
path = "rendered/"
repo_list = "repos.html"
repo_summary = "%REPO%/summary.html"
repo_list = "index.html"
repo_summary = "%REPO%/index.html"
history = "%REPO%/history%PAGE%.html"
commit = "%REPO%/commit/%ID%.html"
branches = "%REPO%/branches%PAGE%.html"
+2 -2
View File
@@ -198,8 +198,8 @@ macro_rules! output_path_fn {
#[rustfmt::skip]
impl GitsySettingsOutputs {
output_path_fn!(repo_list, GitObject, full_hash, false, "repos.html");
output_path_fn!(repo_summary, GitObject, full_hash, false, "%REPO%/summary.html");
output_path_fn!(repo_list, GitObject, full_hash, false, "index.html");
output_path_fn!(repo_summary, GitObject, full_hash, false, "%REPO%/index.html");
output_path_fn!(history, GitObject, full_hash, false, "%REPO%/history%PAGE%.html");
output_path_fn!(commit, GitObject, full_hash, false, "%REPO%/commit/%ID%.html");
output_path_fn!(branches, GitObject, full_hash, false, "%REPO%/branches%PAGE%.html");
+1 -1
View File
@@ -40,7 +40,7 @@
{% if repo_url -%}
<table class='tabs'>
<tr>
<td class="tab {% block tab_summary_selected -%}{% endblock -%} "><a href='{{ repo_url | safe }}/summary.html' class="tab">summary</a></td>
<td class="tab {% block tab_summary_selected -%}{% endblock -%} "><a href='{{ repo_url | safe }}/index.html' class="tab">summary</a></td>
<td class="tab {% block tab_history_selected -%}{% endblock -%} "><a href='{{ repo_url | safe }}/history.html' class="tab">history</a></td>
<td class="tab {% block tab_branches_selected -%}{% endblock -%}"><a href='{{ repo_url | safe }}/branches.html' class="tab">branches</a></td>
<td class="tab {% block tab_tags_selected -%}{% endblock -%} "><a href='{{ repo_url | safe }}/tags.html' class="tab">tags</a></td>
+1 -1
View File
@@ -3,7 +3,7 @@
{% block tab_files_selected -%}selected{% endblock -%}
{% block subheader -%}
<div class="breadcrumbs"><span class="site-title"><a href="{{ root_url | safe }}/repos.html">{{site_name | default(value="Itsy-Gitsy") }}</a></span>{% if name -%}&nbsp;&gt;&gt;&nbsp;<span class="site-title">{{ name }}</span>{% endif -%}&nbsp;&gt;&gt;&nbsp;<span class="repo-name">{{ dir.path }}</span></div>
<div class="breadcrumbs"><span class="site-title"><a href="{{ root_url | safe }}/index.html">{{site_name | default(value="Itsy-Gitsy") }}</a></span>{% if name -%}&nbsp;&gt;&gt;&nbsp;<span class="site-title">{{ name }}</span>{% endif -%}&nbsp;&gt;&gt;&nbsp;<span class="repo-name">{{ dir.path }}</span></div>
{% endblock -%}
{% block content %}
+1 -1
View File
@@ -7,7 +7,7 @@
{% block tab_files_selected -%}selected{% endblock -%}
{% block subheader -%}
<div class="breadcrumbs"><span class="site-title"><a href="{{ root_url | safe }}/repos.html">{{site_name | default(value="Itsy-Gitsy") }}</a></span>{% if name -%}&nbsp;&gt;&gt;&nbsp;<span class="site-title">{{ name }}</span>{% endif -%}&nbsp;&gt;&gt;&nbsp;<span class="repo-name">{{ file.path }}</span></div>
<div class="breadcrumbs"><span class="site-title"><a href="{{ root_url | safe }}/index.html">{{site_name | default(value="Itsy-Gitsy") }}</a></span>{% if name -%}&nbsp;&gt;&gt;&nbsp;<span class="site-title">{{ name }}</span>{% endif -%}&nbsp;&gt;&gt;&nbsp;<span class="repo-name">{{ file.path }}</span></div>
{% endblock -%}
{% block content %}
+1 -1
View File
@@ -16,7 +16,7 @@
</tr>
{% for repo in repos | sort(attribute="last_ts_utc") | reverse -%}
<tr>
<td class="repo"><a href="{{repo.name}}/summary.html">{{ repo.name }}</a></td>
<td class="repo"><a href="{{repo.name}}/index.html">{{ repo.name }}</a></td>
<td class="description nosmall">{{repo.metadata.description}}</td>
<td class="website">{% if repo.metadata.website -%}<a href="{{repo.metadata.website}}">link</a>{% endif -%}</td>
<td class="date">{{ts_to_date(ts=repo.history[0].ts_utc, tz=repo.history[0].ts_offset)}}</td>
+1 -1
View File
@@ -1 +1 @@
<div class="breadcrumbs"><span class="site-title"><a href="{{ root_url | safe }}/repos.html">{{site_name | default(value="Itsy-Gitsy") }}</a></span>{% if name -%}&nbsp;&gt;&gt;&nbsp;<span class="repo-name">{{ name }}</span>{% endif -%}</div>
<div class="breadcrumbs"><span class="site-title"><a href="{{ root_url | safe }}/index.html">{{site_name | default(value="Itsy-Gitsy") }}</a></span>{% if name -%}&nbsp;&gt;&gt;&nbsp;<span class="repo-name">{{ name }}</span>{% endif -%}</div>