Better default CSS/class for non-image attachments
This commit is contained in:
parent
58797c1b3a
commit
63e8608c9b
15
fedi2html
15
fedi2html
|
@ -34,20 +34,19 @@ fi
|
|||
|
||||
if test -z "$ATTACH_TEMPLATE"; then
|
||||
ATTACH_TEMPLATE='
|
||||
<a href="$ATTACH_URL">
|
||||
<div class="attachment">
|
||||
<strong>$ATTACH_NAME</strong>
|
||||
$ATTACH_DESC
|
||||
</div>
|
||||
</a>'
|
||||
<div class="attachment">
|
||||
<a href="$ATTACH_URL"><strong>$ATTACH_NAME</strong></a>
|
||||
$ATTACH_DESC
|
||||
</div>
|
||||
'
|
||||
fi
|
||||
|
||||
|
||||
if test -z "$ATTACH_IMAGE_TEMPLATE"; then
|
||||
ATTACH_IMAGE_TEMPLATE='
|
||||
<figure>
|
||||
<figure class="attachment">
|
||||
<a href="$ATTACH_URL">
|
||||
<img class="attachment" src="$ATTACH_URL" alt="$ATTACH_DESC" title="$ATTACH_DESC">
|
||||
<img src="$ATTACH_URL" alt="$ATTACH_DESC" title="$ATTACH_DESC">
|
||||
</a>
|
||||
<figcaption>
|
||||
<a href="$ATTACH_URL"><b>$ATTACH_NAME</b></a><br>
|
||||
|
|
Ŝarĝante…
Reference in New Issue