Skip to content

Commit

Permalink
fix: 修复构建失败 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs authored Oct 28, 2024
1 parent 55f4fdc commit 0791b29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ uglyURLs: true

params:
repoURL: https://github.com/project-trans/2345.LGBT
twitter: MtFwiki
twitterCreator: MtFwiki
# contentSecurityPolicy: >-
# default-src 'self';
# img-src 'self' https://*;
# style-src 'self' 'unsafe-inline';
# script-src 'self' static.cloudflareinsights.com;
# connect-src 'self' cloudflareinsights.com;

social:
twitter: MtFwiki
twitterCreator: MtFwiki

module:
hugoVersion:
extended: true
Expand Down
4 changes: 2 additions & 2 deletions themes/2345lgbt/layouts/partials/head/twitter-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
{{- end }}
<meta name="twitter:title" content="{{ .Title }}">
<meta name="twitter:description" content="{{ .Description | default (cond .IsPage .Summary .Site.Params.description) }}">
{{- with .Site.Social.twitter }}
{{- with .Site.Params.twitter }}
<meta name="twitter:site" content="@{{ . }}">
{{- end }}
{{- with .Site.Social.twitterCreator }}
{{- with .Site.Params.twitterCreator }}
<meta name="twitter:creator" content="@{{ . }}">
{{- end }}
2 changes: 1 addition & 1 deletion themes/2345lgbt/layouts/partials/load-style.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{- $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) -}}
{{- $resource := resources.Get . | resources.ToCSS $options | minify | fingerprint -}}
{{- $resource := resources.Get . | css.Sass $options | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $resource.RelPermalink }}" as="stylesheet">

0 comments on commit 0791b29

Please sign in to comment.