mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-08 17:15:56 +01:00
Add local version of postcard lib
This commit is contained in:
parent
85f185744b
commit
e97bba5d38
4 changed files with 11 additions and 3 deletions
|
@ -33,8 +33,9 @@ disableRSS = false
|
||||||
|
|
||||||
# Metadata mostly used in document's head
|
# Metadata mostly used in document's head
|
||||||
description = "JP Hastings-Spital: Software Engineer"
|
description = "JP Hastings-Spital: Software Engineer"
|
||||||
keywords = "homepage, blog, science, software, miriscient, programming"
|
keywords = "homepage, blog, science, software, miriscient, programming"
|
||||||
images = [""]
|
images = [""]
|
||||||
|
customJS = ["/js/postcards-html.js"]
|
||||||
|
|
||||||
justifyContent = true
|
justifyContent = true
|
||||||
contentTypeName = "posts"
|
contentTypeName = "posts"
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
<postcard-display class="{{ default "center" (.Get "class") }}" src="{{ .Get "src" }}"{{with .Get "show"}} show="{{ . }}"{{end}}></postcard-display>
|
<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
3
retrieve-deps.sh
Normal 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"
|
5
static/js/postcards-html.js
Normal file
5
static/js/postcards-html.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue