From 59605006eef5fde74928d6a1584a05683e74899d Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sat, 19 Sep 2020 21:39:07 +0800 Subject: [PATCH] remove unneeded file --- banner.js | 19 --------- staticman.yml | 104 -------------------------------------------------- 2 files changed, 123 deletions(-) delete mode 100644 banner.js delete mode 100644 staticman.yml diff --git a/banner.js b/banner.js deleted file mode 100644 index db3974c..0000000 --- a/banner.js +++ /dev/null @@ -1,19 +0,0 @@ -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); -} diff --git a/staticman.yml b/staticman.yml deleted file mode 100644 index a4f161b..0000000 --- a/staticman.yml +++ /dev/null @@ -1,104 +0,0 @@ -# Name of the property. You can have multiple properties with completely -# different config blocks for different sections of your site. -# For example, you can have one property to handle comment submission and -# another one to handle posts. -# To encrypt strings use the following endpoint: -# https://api.staticman.net/v2/encrypt/{TEXT TO BE ENCRYPTED} - -comments: - # (*) REQUIRED - # - # Names of the fields the form is allowed to submit. If a field that is - # not here is part of the request, an error will be thrown. - allowedFields: ["name", "email", "url", "message"] - - # (*) REQUIRED WHEN USING NOTIFICATIONS - # - # When allowedOrigins is defined, only requests sent from one of the domains - # listed will be accepted. The origin is sent as part as the `options` object - # (e.g.