theme: Fix date in changelog, change order #40

This commit is contained in:
Sören Weber 2021-08-22 13:29:29 +02:00
parent 8142c82cf0
commit f581599bb0
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
3 changed files with 53 additions and 41 deletions

36
.grenrc.js Normal file
View file

@ -0,0 +1,36 @@
module.exports = {
changelogFilename: "CHANGELOG.md",
dataSource: "milestones",
groupBy: {
"Enhancements": [
"feature",
],
"Bug Fixes": [
"bug"
],
"Maintenance": [
"task",
],
"Uncategorised": [
"closed",
],
},
ignoreLabels: [
"discussion",
"documentation",
"duplicate",
"hugo",
"invalid",
"support",
"wontfix",
],
ignoreTagsWith: [
"Relearn",
],
milestoneMatch: "{{tag_name}}",
onlyMilestones: true,
template: {
group: "\n### {{heading}}\n",
release: ({ body, date, release }) => `## ${release} (` + date.replace( /(\d+)\/(\d+)\/(\d+)/, '$3-$2-$1' ) + `)\n${body}`,
},
};

View file

@ -1,24 +0,0 @@
---
dataSource: "milestones"
onlyMilestones: true
milestoneMatch: "{{tag_name}}"
template:
group: "\n### {{heading}}\n"
changelogFilename: "CHANGELOG.md"
ignore-tags-with:
- "Relearn"
ignoreLabels:
- "documentation"
- "duplicate"
- "invalid"
- "support"
- "wontfix"
groupBy:
Bug Fixes:
- "bug"
New features:
- "feature"
Maintenance:
- "task"
Uncategorised:
- "closed"

View file

@ -1,15 +1,8 @@
# Changelog
## 1.2.0 (26/07/2021)
## 1.2.0 (2021-07-26)
### Bug Fixes
- [**bug**] dependency: upgrade jquery to 3.6.0 [#30](https://github.com/McShelby/hugo-theme-relearn/issues/30)
- [**bug**] attachments: support i18n for attachment size [#21](https://github.com/McShelby/hugo-theme-relearn/issues/21)
- [**bug**] notice: support i18n for box labels [#16](https://github.com/McShelby/hugo-theme-relearn/issues/16)
- [**bug**] notice: support multiple blocks in one box [#15](https://github.com/McShelby/hugo-theme-relearn/issues/15)
### New features
### Enhancements
- [**feature**] theme: adjust copy-to-clipboard [#29](https://github.com/McShelby/hugo-theme-relearn/issues/29)
- [**feature**] attachments: adjust style with notice boxes [#28](https://github.com/McShelby/hugo-theme-relearn/issues/28)
@ -22,9 +15,16 @@
- [**feature**] notice: align box colors to common standards [#18](https://github.com/McShelby/hugo-theme-relearn/issues/18)
- [**feature**] notice: use distinct icons for notice box type [#17](https://github.com/McShelby/hugo-theme-relearn/issues/17)
### Bug Fixes
- [**bug**] dependency: upgrade jquery to 3.6.0 [#30](https://github.com/McShelby/hugo-theme-relearn/issues/30)
- [**bug**] attachments: support i18n for attachment size [#21](https://github.com/McShelby/hugo-theme-relearn/issues/21)
- [**bug**] notice: support i18n for box labels [#16](https://github.com/McShelby/hugo-theme-relearn/issues/16)
- [**bug**] notice: support multiple blocks in one box [#15](https://github.com/McShelby/hugo-theme-relearn/issues/15)
---
## 1.1.1 (04/07/2021)
## 1.1.1 (2021-07-04)
### Maintenance
@ -32,7 +32,11 @@
---
## 1.1.0 (02/07/2021)
## 1.1.0 (2021-07-02)
### Enhancements
- [**feature**] mermaid: expose options in config.toml [#4](https://github.com/McShelby/hugo-theme-relearn/issues/4)
### Bug Fixes
@ -42,17 +46,13 @@
- [**bug**] mermaid: code fences not always rendered [#6](https://github.com/McShelby/hugo-theme-relearn/issues/6)
- [**bug**] mermaid: search term on load may bomb chart [#5](https://github.com/McShelby/hugo-theme-relearn/issues/5)
### New features
- [**feature**] mermaid: expose options in config.toml [#4](https://github.com/McShelby/hugo-theme-relearn/issues/4)
### Maintenance
- [**task**] mermaid: update to 8.10.2 [#7](https://github.com/McShelby/hugo-theme-relearn/issues/7)
---
## 1.0.1 (01/07/2021)
## 1.0.1 (2021-07-01)
### Maintenance
@ -60,7 +60,7 @@
---
## 1.0.0 (01/07/2021)
## 1.0.0 (2021-07-01)
### Maintenance