feat: add data/external.yaml (#140)

* feat: add data/external.yaml

Manage all external resources URL in one file

* style: format data/external

* style(helper/external): error message

* remove whitespace
This commit is contained in:
Jimmy Cai
2021-02-12 13:21:43 +01:00
committed by GitHub
parent 326c052a24
commit 8b17b8a4ee
5 changed files with 72 additions and 19 deletions
@@ -1,5 +1,4 @@
<script src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.5/dist/vibrant.min.js"
integrity="sha256-5NovOZc4iwiAWTYIFiIM7DxKUXKWvpVEuMEPLzcm5/g=" crossorigin="anonymous"></script>
{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}
{{- $opts := dict "minify" hugo.IsProduction -}}
{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}}