Skip to content

Commit

Permalink
Fixes empty variables error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvn committed Jan 12, 2019
1 parent 5e8dcd0 commit ef07351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions material/includes.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
{$link=reset($links)}
<meta property="og:title" content="{$link.title}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{$index_url}?{$link.shorturl}" />
<meta property="og:url" content="{if="!empty($index_url)"}{$index_url}{/if}?{$link.shorturl}" />
{$ogDescription=isset($link.description_src) ? $link.description_src : $link.description}
<meta property="og:description" content="{function="strip_tags(substr($ogDescription, 0, 300))"}" />
{if="$link.thumbnail"}
<meta property="og:image" content="{$index_url}{$link.thumbnail}" />
<meta property="og:image" content="{if="!empty($index_url)"}{$index_url}{/if}{$link.thumbnail}" />
{/if}
{if="!$hide_timestamps || $is_logged_in"}
<meta property="article:published_time" content="{$link.created->format(DateTime::ATOM)}" />
{if="$link.updated"}
{if="!empty($link.updated)"}
<meta property="article:modified_time" content="{$link.updated->format(DateTime::ATOM)}" />
{/if}
{/if}
Expand Down

0 comments on commit ef07351

Please sign in to comment.