X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e36f6b6a99c0472d3ca79762305d690c494d483c..0b4981588e6e7e5c49219fa534482f789dc14dad:/templates/aggregatepost.tmpl diff --git a/templates/aggregatepost.tmpl b/templates/aggregatepost.tmpl index 5b0f2f49e..0d2c2d94e 100644 --- a/templates/aggregatepost.tmpl +++ b/templates/aggregatepost.tmpl @@ -1,12 +1,30 @@ <TMPL_VAR CONTENT> -<TMPL_LOOP NAME="TAGS"> -[[tag <TMPL_VAR TAG>]] +<TMPL_IF ENCLOSUREURL> +<TMPL_IF ENCLOSUREIMAGE> +<img src="<TMPL_VAR ENCLOSUREURL ESCAPE=HTML>" width="50%" /> +</TMPL_IF> +<TMPL_IF ENCLOSUREAUDIO> +<audio controls src="<TMPL_VAR ENCLOSUREURL ESCAPE=HTML>" /> +</TMPL_IF> +<TMPL_IF ENCLOSUREVIDEO> +<video controls src="<TMPL_VAR ENCLOSUREURL ESCAPE=HTML>" width="50%" /> +</TMPL_IF> +</TMPL_IF> +<TMPL_LOOP TAGS> +[[!tag <TMPL_VAR TAG>]] </TMPL_LOOP> -<TMPL_IF NAME="TITLE"> -[[meta title="<TMPL_VAR NAME="TITLE" ESCAPE=HTML>"]] +<TMPL_IF TITLE> +[[!meta title="<TMPL_VAR TITLE ESCAPE=HTML>"]] +</TMPL_IF> +<TMPL_IF PERMALINK> +[[!meta permalink="<TMPL_VAR PERMALINK ESCAPE=HTML>"]] +</TMPL_IF> +<TMPL_IF COPYRIGHT> +[[!meta copyright="<TMPL_VAR COPYRIGHT ESCAPE=HTML>"]] </TMPL_IF> -<TMPL_IF NAME="PERMALINK"> -[[meta permalink="<TMPL_VAR NAME="PERMALINK" ESCAPE=HTML>"]] +<TMPL_IF AUTHOR> +[[!meta author="<TMPL_VAR AUTHOR ESCAPE=HTML> (<TMPL_VAR NAME ESCAPE=HTML>)"]] +<TMPL_ELSE> +[[!meta author="<TMPL_VAR NAME ESCAPE=HTML>"]] </TMPL_IF> -[[meta author="<TMPL_VAR NAME="NAME" ESCAPE=HTML>"]] -[[meta authorurl="<TMPL_VAR NAME="URL" ESCAPE=HTML>"]] +[[!meta authorurl="<TMPL_VAR URL ESCAPE=HTML>"]]