add twitter [etc] card previews
This commit is contained in:
parent
8865b951fa
commit
5ad4e3dc30
9 changed files with 115 additions and 57 deletions
9
Makefile
9
Makefile
|
@ -33,7 +33,7 @@ build: $(BUILDDIR)/index.html $(BSTATIC)
|
|||
$(BUILDDIR)/index.html: $(DATADIR)/index.yaml $(MAKEPAGES)
|
||||
echo "[index] "$@
|
||||
mkdir -p $(dir $@)
|
||||
$(MAKEPAGES) $(MPFLAGS) index $< -o $@
|
||||
$(MAKEPAGES) $(MPFLAGS) index -R $(ROOT) $< -o $@
|
||||
|
||||
|
||||
$(BUILDDIR)/%: %
|
||||
|
@ -145,17 +145,18 @@ endef
|
|||
define gallery
|
||||
echo "[gallery] "$@
|
||||
mkdir -p "$(dir $@)"
|
||||
$(MAKEPAGES) $(MPFLAGS) gallery -i "$(1)" -p "$(2)" $(3) -o "$@" \
|
||||
$(MAKEPAGES) $(MPFLAGS) gallery -i "$(1)" -R $(ROOT) -p "$(2)" $(3) -o "$@" \
|
||||
$(filter $(DATADIR)/%/$(INFONAME),$^)
|
||||
endef
|
||||
|
||||
# args:
|
||||
# 1. data dir
|
||||
# 2. other flags
|
||||
# 2. gallery prefix
|
||||
# 3. other flags
|
||||
define single
|
||||
echo "[single] "$@
|
||||
mkdir -p "$(dir $@)"
|
||||
$(MAKEPAGES) $(MPFLAGS) single -D "$(1)" $< -o "$@" $(2)
|
||||
$(MAKEPAGES) $(MPFLAGS) single -R $(ROOT) -D "$(1)" -p "$(2)" $< -o "$@" $(3)
|
||||
endef
|
||||
|
||||
# args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue