Add local version of postcard lib

This commit is contained in:
JP Hastings-Spital 2022-10-29 13:08:41 +01:00
parent 85f185744b
commit e97bba5d38
4 changed files with 11 additions and 3 deletions

View file

@ -33,8 +33,9 @@ disableRSS = false
# Metadata mostly used in document's head
description = "JP Hastings-Spital: Software Engineer"
keywords = "homepage, blog, science, software, miriscient, programming"
images = [""]
keywords = "homepage, blog, science, software, miriscient, programming"
images = [""]
customJS = ["/js/postcards-html.js"]
justifyContent = true
contentTypeName = "posts"

View file

@ -1,2 +1 @@
<postcard-display class="{{ default "center" (.Get "class") }}" src="{{ .Get "src" }}"{{with .Get "show"}} show="{{ . }}"{{end}}></postcard-display>
<script type="module" src="https://unpkg.com/@dotpostcard/postcards-html?module"></script>

3
retrieve-deps.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
mkdir -p static/js/
curl -L -o static/js/postcards-html.js "https://unpkg.com/@dotpostcard/postcards-html?module"

File diff suppressed because one or more lines are too long