|
Revision 1783
(checked in by miyagawa, 3 years ago)
|
Publish::Gmail: pass encoding to templates
|
| Line | |
|---|
| 1 |
[% USE util = Plagger.Util -%] |
|---|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|---|
| 3 |
<html> |
|---|
| 4 |
<head> |
|---|
| 5 |
<meta http-equiv="Content-Type" content="text/html;charset=[% encoding %]" /> |
|---|
| 6 |
</head> |
|---|
| 7 |
<body> |
|---|
| 8 |
[% FOREACH entry = feed.entries -%] |
|---|
| 9 |
<div> |
|---|
| 10 |
<div> |
|---|
| 11 |
[% IF entry.icon %]<a href="[% entry.permalink | html %]"><img [% util.dumbnail(entry.icon, width=150, height=60) %] style="border:0" align="right" src="[% entry.icon.url | html %]" alt="[% (entry.icon.title || entry.title) | html %]" /></a> |
|---|
| 12 |
[% ELSIF feed.image %]<a href="[% feed.link | html %]"><img [% util.dumbnail(feed.image, width=150, height=60) %] style="border:0" align="right" src="[% feed.image.url | html %]" alt="[% feed.title | html %]" /></a> |
|---|
| 13 |
[% END -%] |
|---|
| 14 |
<strong style="font-weight:bold;font-size:1.2em">[% entry.title %]</strong><br /> |
|---|
| 15 |
Link: <a href="[% entry.permalink | html %]">[% entry.permalink | html %]</a><br /> |
|---|
| 16 |
[% IF entry.author %]by [% entry.author | html %][% END %][% IF entry.tags.size %] on [% entry.tags.join(',') %][% END %]</div> |
|---|
| 17 |
[% IF entry.body -%] |
|---|
| 18 |
[% IF entry.body.match('(?i)^<p[ >]') %][% entry.body %][% ELSE %]<div style="padding: 1em 0">[% entry.body %]</div>[% END %] |
|---|
| 19 |
[% ELSE %]<br />[% END %] |
|---|
| 20 |
<div style="font-size:0.8em">[% IF entry.date %]Posted on [% entry.date.format('Mail') %][% END %] | <a href="[% entry.permalink | html %]">permalink</a> | <a href="[% feed.link | html %]">[% feed.title | html %]</a>[% FOREACH widget = entry.widgets %] | [% widget.html(entry) %][% END %]<br clear="all" /></div> |
|---|
| 21 |
</div> |
|---|
| 22 |
[% UNLESS loop.last %]<hr />[% END %] |
|---|
| 23 |
[%- END %] |
|---|
| 24 |
</body> |
|---|
| 25 |
</html> |
|---|