diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/default/includes.html | 4 | ||||
-rw-r--r-- | tpl/vintage/includes.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tpl/default/includes.html b/tpl/default/includes.html index 6c30d1bf..428b8ee2 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html | |||
@@ -22,12 +22,12 @@ | |||
22 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> | 22 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> |
23 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} | 23 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} |
24 | <meta property="og:description" content="{function="substr(strip_tags($ogDescription), 0, 300)"}" /> | 24 | <meta property="og:description" content="{function="substr(strip_tags($ogDescription), 0, 300)"}" /> |
25 | {if="$link.thumbnail"} | 25 | {if="!empty($link.thumbnail)"} |
26 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> | 26 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> |
27 | {/if} | 27 | {/if} |
28 | {if="!$hide_timestamps || $is_logged_in"} | 28 | {if="!$hide_timestamps || $is_logged_in"} |
29 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> | 29 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> |
30 | {if="$link.updated"} | 30 | {if="!empty($link.updated)"} |
31 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> | 31 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> |
32 | {/if} | 32 | {/if} |
33 | {/if} | 33 | {/if} |
diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 2efb6b10..1c4ff79c 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html | |||
@@ -19,12 +19,12 @@ | |||
19 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> | 19 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> |
20 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} | 20 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} |
21 | <meta property="og:description" content="{function="mb_substr(strip_tags($ogDescription), 0, 300)"}" /> | 21 | <meta property="og:description" content="{function="mb_substr(strip_tags($ogDescription), 0, 300)"}" /> |
22 | {if="$link.thumbnail"} | 22 | {if="!empty($link.thumbnail)"} |
23 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> | 23 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> |
24 | {/if} | 24 | {/if} |
25 | {if="!$hide_timestamps || $is_logged_in"} | 25 | {if="!$hide_timestamps || $is_logged_in"} |
26 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> | 26 | <meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" /> |
27 | {if="$link.updated"} | 27 | {if="!empty($link.updated)"} |
28 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> | 28 | <meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" /> |
29 | {/if} | 29 | {/if} |
30 | {/if} | 30 | {/if} |