diff options
author | uPagge <git@upagge.ru> | 2021-03-03 22:30:26 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-03-03 22:30:26 +0300 |
commit | df370f4ae3be096d4c4a27f9f9074e026c132d3d (patch) | |
tree | 85230fa9f173a21fad3d5a4d231f3269abe1b708 /layouts/partials | |
parent | b6e7e9c46be0ef8d9c722ff873a1cbe1a6240604 (diff) |
typeit del
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/assets.html | 8 | ||||
-rw-r--r-- | layouts/partials/header.html | 20 | ||||
-rw-r--r-- | layouts/partials/home/profile.html | 8 |
3 files changed, 7 insertions, 29 deletions
diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 7bbca5f..53729a1 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -57,14 +57,6 @@ {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} -{{- /* TypeIt */ -}} -{{- with (.Scratch.Get "this").typeitMap -}} - {{- $typeit := $.Site.Params.typeit -}} - {{- $source := $cdn.typeitJS | default "lib/typeit/typeit.min.js" -}} - {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" $.Scratch "Data" | partial "scratch/script.html" -}} - {{- $config = dict "speed" $typeit.speed "cursorSpeed" $typeit.cursorSpeed "cursorChar" $typeit.cursorChar "duration" $typeit.duration "data" . | dict "typeit" | merge $config -}} -{{- end -}} - {{- /* KaTeX */ -}} {{- $math := $params.math -}} {{- if eq $math true -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3c14801..4087190 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,13 +16,9 @@ {{- with .pre -}} <span class="header-title-pre">{{ . | safeHTML }}</span> {{- end -}} - {{- if .typeit -}} - {{- $id := dict "Content" .name "Scratch" $.Scratch | partial "function/id.html" -}} - <span id="{{ $id }}" class="typeit"></span> - {{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} - {{- else -}} - {{- .name -}} - {{- end -}} + + {{- .name -}} + {{- with .post -}} <span class="header-title-post">{{ . | safeHTML }}</span> {{- end -}} @@ -107,13 +103,9 @@ {{- with .pre -}} <span class="header-title-pre">{{ . | safeHTML }}</span> {{- end -}} - {{- if .typeit -}} - {{- $id := dict "Content" .name "Scratch" $.Scratch | partial "function/id.html" -}} - <span id="{{ $id }}" class="typeit"></span> - {{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} - {{- else -}} - {{- .name -}} - {{- end -}} + + {{- .name -}} + {{- with .post -}} <span class="header-title-post">{{ . | safeHTML }}</span> {{- end -}} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 8b1c49e..de234bc 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -31,13 +31,7 @@ {{- with $profile.subtitle -}} <div class="home-subtitle"> - {{- if $profile.typeit -}} - {{- $id := dict "Content" . "Scratch" $.Scratch | partial "function/id.html" -}} - <div id="{{ $id }}" class="typeit"></div> - {{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} - {{- else -}} - {{- . | safeHTML -}} - {{- end -}} + {{- . | safeHTML -}} </div> {{- end -}} |