refactor(footer): add footer/include.html
To include HTML code for style and script
This commit is contained in:
parent
841508f491
commit
845834baa6
@ -9,8 +9,6 @@
|
|||||||
</main>
|
</main>
|
||||||
{{- block "right-sidebar" . -}}{{ end }}
|
{{- block "right-sidebar" . -}}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "footer/script.html" . }}
|
{{ partial "footer/include.html" . }}
|
||||||
{{ partial "footer/style.html" . }}
|
|
||||||
{{ partial "footer/custom.html" . }}
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.5/dist/vibrant.min.js"
|
<script src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.5/dist/vibrant.min.js"
|
||||||
integrity="sha256-5NovOZc4iwiAWTYIFiIM7DxKUXKWvpVEuMEPLzcm5/g=" crossorigin="anonymous"></script>
|
integrity="sha256-5NovOZc4iwiAWTYIFiIM7DxKUXKWvpVEuMEPLzcm5/g=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
{{ $opts := dict "minify" hugo.IsProduction }}
|
{{- $opts := dict "minify" hugo.IsProduction -}}
|
||||||
{{ $script := resources.Get "ts/main.ts" | js.Build $opts }}
|
{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}}
|
||||||
|
|
||||||
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
3
layouts/partials/footer/include.html
Normal file
3
layouts/partials/footer/include.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{ partialCached "footer/components/script.html" . }}
|
||||||
|
{{ partialCached "footer/components/custom-font.html" . }}
|
||||||
|
{{ partial "footer/custom.html" . }}
|
Loading…
Reference in New Issue
Block a user