aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_index.html
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 08:47:01 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 08:47:01 +0800
commit31e638d283664c1e04d189edd732f5d9ae4fbeea (patch)
treeb63dbf4f6f6f5c85b8b9b77b2643678ed4dfd2a8 /templates/repo_index.html
parentreop_index.html, style.css: padding-wrapper (diff)
downloadforge-31e638d283664c1e04d189edd732f5d9ae4fbeea.tar.gz
forge-31e638d283664c1e04d189edd732f5d9ae4fbeea.tar.zst
forge-31e638d283664c1e04d189edd732f5d9ae4fbeea.zip
repo_index: Use the first line of the commit message
Diffstat (limited to '')
-rw-r--r--templates/repo_index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo_index.html b/templates/repo_index.html
index 776b84e..866a020 100644
--- a/templates/repo_index.html
+++ b/templates/repo_index.html
@@ -20,7 +20,7 @@
{{- range .commits }}
<tr>
<td class="commit-id">{{ slice .Hash.String 0 8 }}</td>
-<td class="commit-title">{{ .Message }}</td>
+<td class="commit-title">{{ .Message | first_line }}</td>
<td class="commit-author">
<a class="email-name" href="mailto:{{ .Author.Email }}">{{ .Author.Name }}</a>
</td>