Skip to content

Commit

Permalink
fix: 修复构建失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Oct 21, 2024
1 parent 1cc4ff9 commit 0ca0311
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ disableKinds: [taxonomy, term, RSS]
enableRobotsTXT: true
googleAnalytics: G-DVB8ZD276Q

params:
Params:
description: Project Trans 非正式笔记
twitter: MtFwiki
telegram: MtFwiki

author:
name: Project Trans
url: https://project-trans.org
email: [email protected]

social:
twitter: MtFwiki
telegram: MtFwiki

markup:
goldmark:
renderer:
Expand Down
2 changes: 1 addition & 1 deletion themes/mtfwiki-blog/layouts/partials/head/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
{{- with resources.Get "main.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ .Permalink }}">
{{- end }}
{{- if not .Site.IsServer }}
{{- if not hugo.IsServer }}
{{- partial "head/google-analytics" . }}
{{- end }}
2 changes: 1 addition & 1 deletion themes/mtfwiki-blog/layouts/partials/head/telegram.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{- with .Site.Social.telegram -}}
{{- with .Site.Params.telegram -}}
<meta name="telegram:channel" content="@{{ . }}">
{{- end }}
4 changes: 2 additions & 2 deletions themes/mtfwiki-blog/layouts/partials/head/twitter.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{{- with .Description | default (cond .IsPage .Summary .Site.Params.description) }}
<meta name="twitter:description" content="{{ . }}">
{{- end }}
{{- with .Site.Social.twitter }}
{{- with .Site.Params.twitter }}
<meta name="twitter:site" content="@{{ . }}">
{{- end }}
{{- with .Params.twitter | default .Site.Social.twitter }}
{{- with .Params.twitter | default .Site.Params.twitter }}
<meta name="twitter:creator" content="@{{ . }}">
{{- end }}
{{- with resources.GetMatch "favicon**" }}
Expand Down

0 comments on commit 0ca0311

Please sign in to comment.