summary history branches tags files
commit:88b7524b4a0851db96a71018ef28c716b2d0c986
author:Trevor Bentley
committer:Trevor Bentley
date:Sun Jan 15 03:18:08 2023 +0100
parents:490b6ad008a149db10d0f183ecf69a3566a42314
switch default pages to index.html
diff --git a/config.toml b/config.toml
line changes: +2/-2
index 8046dff..9d2d744
--- a/config.toml
+++ b/config.toml
@@ -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"

diff --git a/src/settings.rs b/src/settings.rs
line changes: +2/-2
index de50a6d..648efec
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -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");

diff --git a/templates/base.html b/templates/base.html
line changes: +1/-1
index f729531..2644b21
--- a/templates/base.html
+++ b/templates/base.html
@@ -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>

diff --git a/templates/dir.html b/templates/dir.html
line changes: +1/-1
index 94f51f3..2d69fbb
--- a/templates/dir.html
+++ b/templates/dir.html
@@ -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 %}

diff --git a/templates/file.html b/templates/file.html
line changes: +1/-1
index 2d4e6e5..0ac4511
--- a/templates/file.html
+++ b/templates/file.html
@@ -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 %}

diff --git a/templates/repos.html b/templates/repos.html
line changes: +1/-1
index e70105b..a1cff45
--- a/templates/repos.html
+++ b/templates/repos.html
@@ -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>

diff --git a/templates/subheader.html b/templates/subheader.html
line changes: +1/-1
index b7d0936..9b7f4b5
--- a/templates/subheader.html
+++ b/templates/subheader.html
@@ -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>