🏗️ Finish post copy right widget coding.

This commit is contained in:
凡梦星尘
2022-06-03 22:37:33 +08:00
parent 5d1b38416e
commit fa5195c8a2
19 changed files with 408 additions and 171 deletions

View File

@@ -6,8 +6,6 @@
{{- .Scratch.Set "pluginCDN" $pluginCDN -}}
{{ $posts := len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{- .Scratch.Set "posts" $posts -}}
{{/* TODO IsHome */}}
{{- .Scratch.Set "IsHome" .IsHome }}
<!DOCTYPE html>
<html lang="{{ $lang }}">

View File

@@ -1,4 +1,4 @@
{{- define "main_class" }}page{{- end }}
{{- define "main" }}
{{ partial "post_content.html" . }}
{{ partial "post_content.html" (dict "ctx" . "IsHome" false) }}
{{- end }}