mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 03:59:38 -07:00
transition from javascript to typescript
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
{{ $.Scratch.Add "img" slice }}
|
||||
{{ range . }}
|
||||
{{ $index = sub $index 1}}
|
||||
{{ $.Scratch.Add "img" (dict "index" (string $index) "url" (string .RelPermalink) "height" (string .Height) "width" (string .Width)) }}
|
||||
{{ $.Scratch.Add "img" (dict "index" (string $index) "url" (string .RelPermalink) "imgH" (string .Height) "imgW" (string .Width)) }}
|
||||
{{ end }}
|
||||
<script id="images_array" type="application/json">{{ $.Scratch.Get "img" | jsonify | safeJS }}</script>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
{{- $style = dict "Context" . "ToCSS" $options | merge $style -}}
|
||||
{{- partial "plugin/style.html" $style -}}
|
||||
|
||||
{{ $js := resources.Get "js/theme.js" }}
|
||||
<script type="text/javascript" src="{{ $js.RelPermalink }}" defer></script>
|
||||
{{ $script := resources.Get "ts/main.ts" | js.Build }}
|
||||
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
||||
Reference in New Issue
Block a user