File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 88 {{ page .updated .format (site .dateFormat ) }}
99 </small >
1010 {% endif %}
11+
12+ <small >(v{{ VERSION }} )</small >
1113</div >
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const CONFIG = require ( '../_config' ) ;
4+ const JSON5 = require ( 'json5' ) ;
5+ const PKG = require ( '../package.json' ) ;
46const _ = require ( 'lodash' ) ;
57const fm = require ( 'front-matter' ) ;
68const fs = require ( 'fs' ) ;
79const globby = require ( 'globby' ) ;
810const moment = require ( 'moment' ) ;
911const path = require ( 'path' ) ;
10- const JSON5 = require ( 'json5' ) ;
1112
1213// Fetch data from {CONFIG.docsDir}/_data
1314function _getDataContext ( ) {
@@ -66,6 +67,7 @@ function forFile (relPath) {
6667 site : CONFIG . site ,
6768 data : _getDataContext ( ) ,
6869 page : _getPageContext ( relPath ) ,
70+ VERSION : PKG . version ,
6971 } ;
7072} //forFile
7173
You can’t perform that action at this time.
0 commit comments