mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Rename $:/core/templates/canonical-uri-external-image
As per @pmario’s suggestion.
This commit is contained in:
parent
db147e3673
commit
ca34cc437c
@ -1,4 +1,4 @@
|
||||
title: $:/core/templates/canonical-uri
|
||||
title: $:/core/templates/canonical-uri-external-image
|
||||
|
||||
<!--
|
||||
|
@ -31,7 +31,7 @@ For an example see the ''externalimages'' build target of the demo ''tw5.com'' w
|
||||
|
||||
```
|
||||
--savetiddlers [is[image]] images
|
||||
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri text/plain
|
||||
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri-external-image text/plain
|
||||
--setfield [is[image]] text "" text/plain
|
||||
--rendertiddler $:/core/save/all externalimages.html text/plain
|
||||
```
|
||||
@ -49,15 +49,15 @@ The following `--savetiddlers` command can be used to save the images of a wiki
|
||||
Two `--setfield` commands are used: the first sets the ''_canonical_uri'' field to a URI derived from the title of the tiddler, and the second clears the text field.
|
||||
|
||||
```
|
||||
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri text/plain
|
||||
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri-external-image text/plain
|
||||
--setfield [is[image]] text "" text/plain
|
||||
```
|
||||
|
||||
The template tiddler [[$:/core/templates/canonical-uri]] contains:
|
||||
The template tiddler [[$:/core/templates/canonical-uri-external-image]] contains:
|
||||
|
||||
<pre>
|
||||
|
||||
<$view tiddler="$:/core/templates/canonical-uri" field="text" format="text"/>
|
||||
<$view tiddler="$:/core/templates/canonical-uri-external-image" field="text" format="text"/>
|
||||
|
||||
</pre>
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
"--rendertiddler","$:/core/save/all","index.html","text/plain"],
|
||||
"externalimages": [
|
||||
"--savetiddlers","[is[image]] [type[text/html]]","images",
|
||||
"--setfield","[is[image]] [type[text/html]]","_canonical_uri","$:/core/templates/canonical-uri","text/plain",
|
||||
"--setfield","[is[image]] [type[text/html]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
|
||||
"--setfield","[is[image]]","text","","text/plain",
|
||||
"--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
|
||||
"encrypted": [
|
||||
|
Loading…
Reference in New Issue
Block a user