Merge branch 'master' into schema-fix

This commit is contained in:
Dillon
2022-05-03 16:16:33 +08:00
committed by GitHub
21 changed files with 6324 additions and 3213 deletions

View File

@@ -1,5 +1,7 @@
{{- $content := .Content -}}
{{- if ne "" $content -}}
{{- if .Ruby -}}
{{- $content = partial "function/ruby.html" $content -}}
{{- end -}}
@@ -16,4 +18,6 @@
{{- $content = partial "function/escape.html" $content -}}
{{- end -}}
{{- return $content -}}

View File

@@ -175,9 +175,11 @@
</div>
</div>
</header>
{{- if .Site.Params.search.enable -}}
<div class="search-dropdown desktop">
<div id="search-dropdown-desktop"></div>
</div>
<div class="search-dropdown mobile">
<div id="search-dropdown-mobile"></div>
</div>
{{- end -}}

View File

@@ -10,7 +10,7 @@
{{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
</pubDate>
<author>
{{- .params.author | default (T "author") -}}
{{- $params.author | default (T "author") -}}
</author>
<guid>
{{- .Page.Permalink -}}
@@ -33,4 +33,4 @@
{{- $content | replaceRE `<figure[^>]*>.*</figure>` "" | replaceRE `<img[^>]*( /)?>` "" | safeHTML -}}
{{- "]]>" | safeHTML -}}
</description>
</item>
</item>

View File

@@ -17,13 +17,13 @@
{{- end -}}
</span>
</div>
{{- with $params.license | string -}}
<div class="post-info-license">
{{- with $params.license | string -}}
<span>
{{- . | safeHTML -}}
</span>
{{- end -}}
<span>
{{- . | safeHTML -}}
</span>
</div>
{{- end -}}
</div>
<div class="post-info-line">
<div class="post-info-md">