mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
Fix bday date, improve html minify script
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
e2fe10db17
commit
3e1776adf8
3 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue