Skip to content

Commit

Permalink
pref: optimize package size
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Mar 19, 2020
1 parent c0309ef commit 287bebe
Show file tree
Hide file tree
Showing 48 changed files with 50 additions and 14,792 deletions.
8 changes: 4 additions & 4 deletions module/macro.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
<meta name="keywords" content="${meta_keywords!}"/>
<meta name="description" content="${meta_description!}" />
<@global.head />
<link href="${theme_base!}/source/css/font-awesome.min.css" type="text/css" rel="stylesheet"/>
<link href="//cdn.jsdelivr.net/npm/[email protected]/css/font-awesome.min.css" type="text/css" rel="stylesheet"/>
<link href="${theme_base!}/source/css/blog_basic.min.css?version=88107691fe" rel="stylesheet">
<link href="${theme_base!}/source/css/style.min.css" type="text/css" rel="stylesheet" />

<#if is_post?? || is_sheet??>
<link href="${theme_base!}/source/plugins/prism/css/prism-${settings.code_pretty!'Default'}.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${theme_base!}/source/plugins/prism/js/prism.js"></script>
<link href="//cdn.jsdelivr.net/npm/[email protected]/themes/prism${settings.code_pretty!}.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/[email protected]/prism.min.js"></script>
<style>
table {
border-spacing: 0;
Expand Down Expand Up @@ -79,7 +79,7 @@
<body>
</#macro>
<#macro footer>
<script type="text/javascript" src="${theme_base!}/source/js/jquery.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/[email protected]/jquery.min.js"></script>
<script type="text/javascript">
var url = location.href;
var urlstatus = false;
Expand Down
5 changes: 3 additions & 2 deletions photos.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>图库 - ${blog_title!}</title>
<meta charset="utf-8" />
<@global.head />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="${theme_base!}/source/plugins/gallery/css/main.css" />
<noscript><link rel="stylesheet" href="${theme_base!}/plugins/gallery/css/noscript.css" /></noscript>
Expand Down Expand Up @@ -40,8 +41,8 @@
</ul>
</footer>
</div>
<script src="${theme_base!}/source/plugins/gallery/js/jquery.min.js"></script>
<script src="${theme_base!}/source/plugins/gallery/js/skel.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/skel.min.js"></script>
<script src="${theme_base!}/source/plugins/gallery/js/main.js"></script>
<@global.statistics />
</body>
Expand Down
32 changes: 17 additions & 15 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,22 +122,24 @@ style:
name: code_pretty
label: 文章代码高亮主题
type: select
default: Default
default: ''
options:
- value: Default
label: Default
- value: Coy
label: Coy
- value: Dark
label: Dark
- value: Okaidia
label: Okaidia
- value: Solarized Light
label: Solarized Light
- value: Tomorrow Night
label: Tomorrow Night
- value: Twilight
label: Twilight
- value: ''
label: ''
- value: '-coy'
label: 'Coy'
- value: '-dark'
label: 'Dark'
- value: '-funky'
label: 'Funky'
- value: '-okaidia'
label: 'Okaidia'
- value: '-solarizedlight'
label: 'Solarized Light'
- value: '-tomorrow'
label: 'Tomorrow'
- value: '-twilight'
label: 'Twilight'
custom:
name: custom
label: 自定义样式
Expand Down
4 changes: 0 additions & 4 deletions source/css/font-awesome.min.css

This file was deleted.

Binary file removed source/fonts/FontAwesome.otf
Binary file not shown.
Binary file removed source/fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 0 additions & 2,671 deletions source/fonts/fontawesome-webfont.svg

This file was deleted.

Binary file removed source/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file removed source/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file removed source/fonts/fontawesome-webfont.woff2
Binary file not shown.
Binary file modified source/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 287bebe

Please sign in to comment.