diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/_head.md | 5 | ||||
| -rw-r--r-- | templates/log.md | 10 | ||||
| -rw-r--r-- | templates/overview.md | 12 |
3 files changed, 19 insertions, 8 deletions
diff --git a/templates/_head.md b/templates/_head.md new file mode 100644 index 0000000..a91e1b6 --- /dev/null +++ b/templates/_head.md @@ -0,0 +1,5 @@ +--- +title: {{ title }} +--- + +# {{ title }} diff --git a/templates/log.md b/templates/log.md new file mode 100644 index 0000000..70f719f --- /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 }} | {% 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 index cc6f990..c1f1d05 100644 --- a/templates/overview.md +++ b/templates/overview.md @@ -1,23 +1,19 @@ ---- -title: {{ title }} ---- - -# {{ title }} +{% include '_head.md' %} {% if branches %} | Branch | Commit | Date | |--------|--------|------| {%- for branch in branches %} -| {{ branch.name }} | {{ branch.commit.summary }} | {{ branch.commit.authored_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +| {{ branch.name }} | {{ branch.commit.summary }} | {{ 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 }} | {{ tag.commit.authored_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +| {{ tag.name }} | {{ tag.commit.summary }} | {{ tag.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} {% else %} No tags found. {% endif %} |