mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2025-07-21 13:48:49 -04:00
introducing: minimal mistakes
This commit is contained in:
parent
0c0e191d72
commit
3db2701e10
766 changed files with 41906 additions and 1080 deletions
19
banner.js
Normal file
19
banner.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
const fs = require("fs");
|
||||
const pkg = require("./package.json");
|
||||
const filename = "assets/js/main.min.js";
|
||||
const script = fs.readFileSync(filename);
|
||||
const padStart = str => ("0" + str).slice(-2);
|
||||
const dateObj = new Date();
|
||||
const date = `${dateObj.getFullYear()}-${padStart(
|
||||
dateObj.getMonth() + 1
|
||||
)}-${padStart(dateObj.getDate())}`;
|
||||
const banner = `/*!
|
||||
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author}
|
||||
* Copyright 2013-${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
|
||||
* Licensed under ${pkg.license}
|
||||
*/
|
||||
`;
|
||||
|
||||
if (script.slice(0, 3) != "/**") {
|
||||
fs.writeFileSync(filename, banner + script);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue