Skip to content

Commit

Permalink
Add "last_changed" property to page metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenglish committed Sep 12, 2020
1 parent 870ad06 commit 65616ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/opencontrol/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ exports.page = { // markdown frontmatter metadata - advisory
author: { type: 'string' },
date: { type: 'string', format: 'date' },
version: { type: 'string', format: 'semver' },
last_changed: { type: 'string', format: 'date' },

// Component properties:
component: { type: 'string' }, // => component.name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"eslint": "^5.15.2",
"jsdoc": "^3.5.5",
"jsdoc": "^3.6.5",
"less": "^3.9.0",
"mocha": "^6.0.2",
"supertest": "^4.0.2"
Expand Down
1 change: 1 addition & 0 deletions views/pgbody/page.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
+identification-item('Date', page.data.date)
+identification-item('Version', page.data.version)
+identification-item('Author', page.data.author)
+identification-item('Last changed', page.data.last_changed)

!= page.html

0 comments on commit 65616ed

Please sign in to comment.