🔥 Chore: remove data store in id partials function

This commit is contained in:
Cell
2024-04-22 11:23:25 +08:00
parent 7ec41cdb00
commit 300bbe9a44
2 changed files with 0 additions and 4 deletions
-1
View File
@@ -3,7 +3,6 @@ import Util from './util';
class FixIt {
constructor() {
this.config = window.config;
this.data = this.config.data || [];
this.isDark = document.body.dataset.theme === 'dark';
this.util = new Util();
this.newScrollTop = this.util.getScrollTop();
-3
View File
@@ -8,7 +8,4 @@
{{- $id = printf "id-%d" $count -}}
{{- $count | add 1 | $.Scratch.SetInMap "this" "count" -}}
{{- end -}}
{{- with .Content -}}
{{- dict $id . | dict "data" | dict "config" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
{{- end -}}
{{- return $id -}}