]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/default/includes.html
RSS/ATOM feeds: process through Slim controller
[github/shaarli/Shaarli.git] / tpl / default / includes.html
CommitLineData
402b0346
A
1<title>{$pagetitle}</title>
2<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3<meta name="format-detection" content="telephone=no" />
4<meta name="viewport" content="width=device-width, initial-scale=1">
f6b3295d 5<meta name="referrer" content="same-origin">
7b2ba6ef
A
6<link rel="alternate" type="application/atom+xml" href="{$feedurl}feed-atom?{$searchcrits}#" title="ATOM Feed" />
7<link rel="alternate" type="application/rss+xml" href="{$feedurl}feed-rss?{$searchcrits}#" title="RSS Feed" />
402b0346 8<link href="img/favicon.png" rel="shortcut icon" type="image/png" />
9d245de6 9<link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
7e9bd977 10<link type="text/css" rel="stylesheet" href="css/shaarli.min.css?v={$version_hash}" />
cf92b4dd
A
11{if="$formatter==='markdown'"}
12 <link type="text/css" rel="stylesheet" href="css/markdown.min.css?v={$version_hash}" />
13{/if}
402b0346 14{loop="$plugins_includes.css_files"}
bfe4f536 15 <link type="text/css" rel="stylesheet" href="{$value}?v={$version_hash}#"/>
402b0346 16{/loop}
d811e4fd
MS
17{if="is_file('data/user.css')"}
18 <link type="text/css" rel="stylesheet" href="data/user.css#" />
19{/if}
bee33239 20<link rel="search" type="application/opensearchdescription+xml" href="./?do=opensearch#" title="Shaarli search - {$shaarlititle}"/>
a120fb29
A
21{if="! empty($links) && count($links) === 1"}
22 {$link=reset($links)}
23 <meta property="og:title" content="{$link.title}" />
24 <meta property="og:type" content="article" />
25 <meta property="og:url" content="{$index_url}?{$link.shorturl}" />
26 {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description}
49106a5d 27 <meta property="og:description" content="{function="substr(strip_tags($ogDescription), 0, 300)"}" />
e0e24335 28 {if="!empty($link.thumbnail)"}
a120fb29
A
29 <meta property="og:image" content="{$index_url}{$link.thumbnail}" />
30 {/if}
31 {if="!$hide_timestamps || $is_logged_in"}
32 <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" />
d9bfcead 33 {if="!empty($link.updated)"}
a120fb29
A
34 <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" />
35 {/if}
36 {/if}
37 {loop="link.taglist"}
38 <meta property="article:tag" content="{$value}" />
39 {/loop}
40{/if}