🏗️ Finish the scripts attributes redesign.

This commit is contained in:
凡梦星尘 2022-06-01 14:42:03 +08:00
parent 4fef03ee1f
commit b368bffde3
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@
</div>
</footer>
{{- partial "scripts" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
{{- partial "scripts" . }}
</body>
</html>

View File

@ -25,7 +25,7 @@
<span class="with-love">
<i class="{{ $ft.icon.name }}"></i>
</span>
<span class="author" itemprop="copyrightHolder">{{ default $ft.copyright .Site.Params.author }}</span>
<span class="author" itemprop="copyrightHolder">{{ $ft.copyright | default .Site.Params.author }}</span>
</div>
{{/* TODO
<!--

View File

@ -1,6 +1,6 @@
<!-- Plugin scripts files -->
{{- $jsRes := .Page.Site.Data.resources.js }}
{{- $vendor := .P.vendors.plugins }}
{{- $jsRes := .Site.Data.resources.js }}
{{- $vendor := .Site.Params.vendors.plugins }}
{{- $vendorCDN := .Scratch.Get "pluginCDN" }}
{{- range $js := $jsRes }}
{{- $pluginJS := $vendorCDN }}