Skip to content

Commit 3d2fcbc

Browse files
committed
Refactor webpack project and enable tree shaking
1 parent 74e0b08 commit 3d2fcbc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1062
-1150
lines changed

_includes/footer.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
<div class="foot-header"></div>
33
<div class="foot-container">
44
<div class="copyright" style="display: flex; flex-direction: column; align-items: start;">
5-
<p class="no-justify">Based on
6-
<a target="_blank" href="https://material.io/">material design</a>
5+
<p class="no-justify">Built with
6+
<a target="_blank" href="https://m3.material.io">Material Design</a>
77
and
8-
<a target="_blank" href="https://jekyllrb.com/">jekyll</a>, open source in
9-
<a target="_blank" href="https://github.com/apqx/apqx.github.io">github</a>, here is <a target="_blank" href="/sitemap.xml">sitemap</a>.
8+
<a target="_blank" href="https://jekyllrb.com">Jekyll</a>, open source on
9+
<a target="_blank" href="https://github.com/apqx/apqx.github.io">GitHub</a>, and a <a target="_blank" href="/sitemap.xml">sitemap</a> is available.
1010
</p>
1111
</div>
1212
</div>
1313
</footer>
1414
<script>
1515
// 默认先隐藏footer,渐进动画显示
16+
// 用JS隐藏的原因是避免未启用JS的浏览器不显示页脚
1617
const footerE = document.querySelector("footer")
1718
footerE.classList.add("card-fade-in")
1819
</script>

_includes/head.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
<link rel="stylesheet" href="{{ resUrlPrefix }}blog-post-v{{ version }}.css"/>
5454
{% endif -%}
5555
{% endif -%}
56-
{% if page.categories contains "search" -%}
57-
<link href="{{ pagefindUrlPrefix }}pagefind/pagefind-modular-ui.css" rel="stylesheet">
58-
<script src="{{ pagefindUrlPrefix }}pagefind/pagefind-modular-ui.js"></script>
59-
{% endif -%}
6056
{% if page.preloadImageWebp != null -%}
6157
<link rel="preload" href="{{ page.preloadImageWebp }}" as="image" type="image/webp" />
6258
{% endif -%}

_includes/header.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
<button class="mdc-top-app-bar__navigation-icon mdc-icon-button" id="topbar_btn_menu">
88
<i class="material-symbols-rounded-thin mdc-icon-button__icon">menu</i>
99
</button>
10-
{% comment %}
11-
{% if page.topbar-title != null -%}
12-
<span class="mdc-top-app-bar__title" style="font-family: LibreBaskerville; font-style: normal;">{{ page.topbar-title }}</span>
13-
{% endif -%}
14-
{% endcomment %}
1510
<span class="mdc-top-app-bar__title"><a href=""></a></span>
1611
</section>
1712
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" role="toolbar">

npm/dist/blog-404-v2.0.0.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"use strict";(self.webpackChunkblog=self.webpackChunkblog||[]).push([[764],{764:(e,s,b)=>{b.r(s)}}]);
1+
"use strict";(self.webpackChunkblog=self.webpackChunkblog||[]).push([[484],{4484:()=>{}}]);
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"use strict";(self.webpackChunkblog=self.webpackChunkblog||[]).push([[790],{790:(e,s,b)=>{b.r(s)}}]);
1+
"use strict";(self.webpackChunkblog=self.webpackChunkblog||[]).push([[549],{5549:()=>{}}]);

npm/dist/blog-880-v2.0.0.css

Lines changed: 0 additions & 91 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)