kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add support for serving TW5 with lazily loaded images
rodzic
02ba92c6b5
commit
fa59382215
|
@ -0,0 +1,6 @@
|
|||
title: $:/core/save/lazy-images
|
||||
|
||||
\define saveTiddlerFilter()
|
||||
[is[tiddler]] -[type[text/css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]]
|
||||
\end
|
||||
{{$:/core/templates/tiddlywiki5.html}}
|
|
@ -0,0 +1,11 @@
|
|||
@echo off
|
||||
|
||||
rem serve TiddlyWiki5 over HTTP with lazily loaded images
|
||||
|
||||
rem Optional parameter is the username for signing edits
|
||||
|
||||
node .\tiddlywiki.js ^
|
||||
editions\clientserver ^
|
||||
--verbose ^
|
||||
--server 8080 $:/core/save/lazy-images text/plain text/html %1 %2^
|
||||
|| exit 1
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# serve TiddlyWiki5 over HTTP with lazily loaded images
|
||||
|
||||
# Optional parameter is the username for signing edits
|
||||
|
||||
node ./tiddlywiki.js \
|
||||
editions/clientserver \
|
||||
--verbose \
|
||||
--server 8080 $:/core/save/lazy-images text/plain text/html $1 $2\
|
||||
|| exit 1
|
Ładowanie…
Reference in New Issue