fixed 打包压缩静态文件

This commit is contained in:
Vaica committed 2026-01-22 21:39:19 +08:00
1 parent e1670f37b5
commit 5f98989670
25 files changed
+3212 -3186

No files matched your search

+43 -7
View File
@@ -2,6 +2,40 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{{ .Title }}</title>
<!-- SEO & Meta Tags -->
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description | default .Summary | plainify | truncate 160 }}{{ end }}" />
<link rel="canonical" href="{{ .Permalink }}" />
{{- $keywords := slice "大学" "教程" "blog" "优世界" "优设计" "博客" "大学生博客" "生活" "文案" -}}
{{- if .Params.tags -}}
{{- $keywords = .Params.tags -}}
{{- end -}}
{{- if .Params.keywords -}}
{{- $keywords = .Params.keywords -}}
{{- end -}}
<meta name="keywords" content="{{ delimit $keywords "," }}" />
<!-- Open Graph -->
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description | default .Summary | plainify | truncate 160 }}{{ end }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
{{- $image := .Site.Params.authorImage -}}
{{- if .Params.cover -}}
{{- $image = .Params.cover -}}
{{- end -}}
{{- if $image -}}
<meta property="og:image" content="{{ $image | absURL }}" />
<meta name="twitter:image" content="{{ $image | absURL }}" />
{{- end -}}
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description | default .Summary | plainify | truncate 160 }}{{ end }}" />
<!-- RSS Feed -->
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="/rss.xml">
<!-- Favicon -->
@@ -22,12 +56,15 @@
})();
</script>
<!-- Stylesheets -->
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/remixicon.css">
<link rel="stylesheet" href="/css/uikit.min.css">
<link rel="stylesheet" href="/css/nprogress.min.css">
<link rel="stylesheet" href="/css/Artalk.css">
<link rel='stylesheet' href='/css/main.css'>
{{ $normalize := resources.Get "css/normalize.css" }}
{{ $remixicon := resources.Get "css/remixicon.css" }}
{{ $uikit := resources.Get "css/uikit.min.css" }}
{{ $nprogress := resources.Get "css/nprogress.min.css" }}
{{ $artalk := resources.Get "css/Artalk.css" }}
{{ $main := resources.Get "css/main.css" }}
{{ $style := slice $normalize $remixicon $uikit $nprogress $artalk $main | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<style>
@media only screen and (max-width: 768px) {
.items {
@@ -140,6 +177,5 @@
<link rel="stylesheet" href="/css/mywaline.css" />
{{ end }}
<script>console.log("\n %c Amigo Theme %c https://usj.cc \n", "color: #fadfa3; background: #030307; padding:3px; font-size:12px;", "color: #ffffff;background: #16171a; padding: 3px; font-size: 12px;");</script>
<meta name="keywords" content="大学,教程,blog,优世界,优设计,博客,大学生博客,生活,文案," />
<meta name="template" content="Amigo" />
</head>