diff options
Diffstat (limited to 'tpl/default/includes.html')
-rw-r--r-- | tpl/default/includes.html | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/tpl/default/includes.html b/tpl/default/includes.html index b2bfec30..6c30d1bf 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html | |||
@@ -2,20 +2,36 @@ | |||
2 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 2 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
3 | <meta name="format-detection" content="telephone=no" /> | 3 | <meta name="format-detection" content="telephone=no" /> |
4 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 4 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
5 | <meta name="referrer" content="same-origin"> | ||
5 | <link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" /> | 6 | <link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" /> |
6 | <link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" /> | 7 | <link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" /> |
7 | <link href="img/favicon.png" rel="shortcut icon" type="image/png" /> | 8 | <link href="img/favicon.png" rel="shortcut icon" type="image/png" /> |
8 | <link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" /> | 9 | <link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" /> |
9 | <link type="text/css" rel="stylesheet" href="css/pure.min.css?v={$version_hash}" /> | 10 | <link type="text/css" rel="stylesheet" href="css/shaarli.min.css?v={$version_hash}" /> |
10 | <link type="text/css" rel="stylesheet" href="css/grids-responsive.min.css?v={$version_hash}"> | ||
11 | <link type="text/css" rel="stylesheet" href="css/pure-extras.css?v={$version_hash}"> | ||
12 | <link type="text/css" rel="stylesheet" href="css/font-awesome.min.css?v={$version_hash}" /> | ||
13 | <link type="text/css" rel="stylesheet" href="inc/awesomplete.css?v={$version_hash}#" /> | ||
14 | <link type="text/css" rel="stylesheet" href="css/shaarli.css?v={$version_hash}" /> | ||
15 | {if="is_file('data/user.css')"} | ||
16 | <link type="text/css" rel="stylesheet" href="data/user.css#" /> | ||
17 | {/if} | ||
18 | {loop="$plugins_includes.css_files"} | 11 | {loop="$plugins_includes.css_files"} |
19 | <link type="text/css" rel="stylesheet" href="{$value}?v={$version_hash}#"/> | 12 | <link type="text/css" rel="stylesheet" href="{$value}?v={$version_hash}#"/> |
20 | {/loop} | 13 | {/loop} |
14 | {if="is_file('data/user.css')"} | ||
15 | <link type="text/css" rel="stylesheet" href="data/user.css#" /> | ||
16 | {/if} | ||
21 | <link rel="search" type="application/opensearchdescription+xml" href="?do=opensearch#" title="Shaarli search - {$shaarlititle}"/> | 17 | <link rel="search" type="application/opensearchdescription+xml" href="?do=opensearch#" title="Shaarli search - {$shaarlititle}"/> |
18 | {if="! empty($links) && count($links) === 1"} | ||
19 | {$link=reset($links)} | ||
20 | <meta property="og:title" content="{$link.title}" /> | ||
21 | <meta property="og:type" content="article" /> | ||
22 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> | ||
23 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} | ||
24 | <meta property="og:description" content="{function="substr(strip_tags($ogDescription), 0, 300)"}" /> | ||
25 | {if="$link.thumbnail"} | ||
26 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> | ||
27 | {/if} | ||
28 | {if="!$hide_timestamps || $is_logged_in"} | ||
29 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> | ||
30 | {if="$link.updated"} | ||
31 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> | ||
32 | {/if} | ||
33 | {/if} | ||
34 | {loop="link.taglist"} | ||
35 | <meta property="article:tag" content="{$value}" /> | ||
36 | {/loop} | ||
37 | {/if} | ||