Fix bday date, improve html minify script

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-09-29 04:25:39 +03:00
parent e2fe10db17
commit 3e1776adf8
3 changed files with 6 additions and 6 deletions

View file

@ -128,7 +128,7 @@ const escape_HTML = (str) =>
}[tag] || tag) }[tag] || tag)
); );
const BIRTHDAY = new Date(2020, 9, 17, 0, 0, 0, 0); // Ari-web start: 2020/10/17 const BIRTHDAY = new Date(2020, 9, 16, 0, 0, 0, 0); // Ari-web start: 2020/10/17
/* /*
let dt = new Date(); let dt = new Date();

View file

@ -125,10 +125,10 @@
>https://legacy.blog.ari-web.xyz/blogs/New-blog-design!_-9192801266</a >https://legacy.blog.ari-web.xyz/blogs/New-blog-design!_-9192801266</a
> >
</li> </li>
<!-- <!--
<li>: <a href=""></a></li> <li>: <a href=""></a></li>
--></ul> -->
</ul>
</main> </main>
</body> </body>
</html> </html>

View file

@ -7,10 +7,10 @@ main() {
echo 'Minifying all HTML' echo 'Minifying all HTML'
find . -type f -name "*.html" \ find . -type f -name "*.html" \
-exec html-minifier --collapse-whitespace -o {}.min {} \; \ -exec html-minifier --collapse-whitespace --collapse-inline-tag-whitespace --remove-tag-whitespace -o {}.min {} \; \
-exec rm {} \; \ -exec rm {} \; \
-exec mv {}.min {} \; \ -exec mv {}.min {} \; \
-exec sh -c "echo '<!-- source code @ /git -->' >>\"\$1\"" -- {} \; -exec sh -c "printf '%s' '\n<!-- source code @ /git -->\n' >>\"\$1\"" -- {} \;
else else
echo 'Not minifying HTML in non-CI mode' echo 'Not minifying HTML in non-CI mode'
fi fi