Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Espanso Neopolitan Video Template

This is the Espanso template I use to make video pages in my grimoire

Code

#!/bin/bash 

TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")

echo "-- video"
echo "-- title: $|$"
echo "-- url: "
echo ""
echo ""
echo ""
echo "-- metadata"
echo "-- date: $TIMESTAMP"
echo "-- id: `/Users/alan/go/bin/ksuid | cut -c1-8 | tr '[:upper:]' '[:lower:]'`"
echo "-- type: video"
echo "-- status: published"
echo ""