summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/_head.md6
-rw-r--r--templates/commit.md9
-rw-r--r--templates/log.md10
-rw-r--r--templates/overview.md19
-rw-r--r--templates/tree.md10
5 files changed, 54 insertions, 0 deletions
diff --git a/templates/_head.md b/templates/_head.md
new file mode 100644
index 0000000..90c29a2
--- /dev/null
+++ b/templates/_head.md
@@ -0,0 +1,6 @@
+---
+title: "{{ title }}"
+layout: git
+---
+
+# {{ title }}
diff --git a/templates/commit.md b/templates/commit.md
new file mode 100644
index 0000000..4ea5594
--- /dev/null
+++ b/templates/commit.md
@@ -0,0 +1,9 @@
+{% include '_head.md' %}
+
+**Commit**: {{ commit.hexsha }}
+**Author**: {{ commit.author }} <{{ redacted_email }}>
+**Date**: {{ commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }}
+
+```
+{{ commit.message }}
+```
diff --git a/templates/log.md b/templates/log.md
new file mode 100644
index 0000000..1949cf2
--- /dev/null
+++ b/templates/log.md
@@ -0,0 +1,10 @@
+{% include '_head.md' %}
+
+{% if commits %}
+| Message | Branches/Tags | Date |
+|---------|---------------|------|
+{%- for commit in commits %}
+| [{{ commit.summary }}](/{{ content_subdir}}/{{ commit.hexsha }}/) | {% if commit.refs %}{{ commit.refs | join(', ') }}{% endif %} | {{ commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %}
+{% else %}
+No commits found.
+{% endif %}
diff --git a/templates/overview.md b/templates/overview.md
new file mode 100644
index 0000000..5b93863
--- /dev/null
+++ b/templates/overview.md
@@ -0,0 +1,19 @@
+{% include '_head.md' %}
+
+{% if branches %}
+| Branch | Commit | Date |
+|--------|--------|------|
+{%- for branch in branches %}
+| {{ branch.name }} | [{{ branch.commit.summary }}](/{{ content_subdir }}/{{ branch.commit.hexsha }}) | {{ branch.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %}
+{% else %}
+No branches found.
+{% endif %}
+
+{% if tags %}
+| Tag | Commit | Date |
+|-----|--------|------|
+{%- for tag in tags %}
+| {{ tag.name }} | [{{ tag.commit.summary }}](/{{ content_subdir }}/{{ tag.commit.hexsha }}) | {{ tag.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %}
+{% else %}
+No tags found.
+{% endif %}
diff --git a/templates/tree.md b/templates/tree.md
new file mode 100644
index 0000000..654c9d0
--- /dev/null
+++ b/templates/tree.md
@@ -0,0 +1,10 @@
+{% include '_head.md' %}
+
+{% if entries %}
+| Name | Last modified |
+|------|---------------|
+{%- for entry in entries %}
+| {{ entry.name }} | {% if entry.modified %} {{ entry.modified.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} |{% endfor %}
+{% else %}
+No files.
+{% endif %}