summary: - adds prettier formatter configuration - formats the entire repo using prettier, ignoring minified files (`*.min.css`) and heavy generated html - changes extensions of all `.html` files to `.liquid`, which is more correct and necessary for prettier to work correctly - replaces "%-" and "-%" with just "%" — manual liquid formatting using minus signs is superfluous since we are compressing and minifying the code anyway - adds CI action for running prettier check on PR and pushes to master
19 lines
432 B
Plaintext
19 lines
432 B
Plaintext
{% if site.wechat_qr %}
|
|
<!-- WeChat Modal -->
|
|
|
|
<script>
|
|
var wechatModal = document.getElementById('WeChatMod');
|
|
var wechatBtn = document.getElementById('WeChatBtn');
|
|
|
|
wechatBtn.onclick = function () {
|
|
wechatModal.style.display = 'block';
|
|
};
|
|
|
|
window.onclick = function (event) {
|
|
if (event.target == wechatModal) {
|
|
wechatModal.style.display = 'none';
|
|
}
|
|
};
|
|
</script>
|
|
{% endif %}
|