This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/_layout/metadata.twig

21 lines
839 B
Twig
Raw Normal View History

2016-12-18 22:22:41 +00:00
{% set title = title|default(config('general.name')) %}
{% set description = description|default(config('general.description')) %}
<title>{{ title }}</title>
<meta name="twitter:title" content="{{ title }}">
<meta property="og:title" content="{{ title }}">
<meta name="description" content="{{ description }}">
<meta name="twitter:description" content="{{ description }}">
<meta property="og:description" content="{{ description }}">
<meta name="twitter:card" content="summary">
<meta property="og:type" content="object">
<meta property="og:site_name" content="{{ config('general.name') }}">
{% if icon is defined %}
<meta name="twitter:image:src" content="{{ icon }}">
<meta property="og:image" content="{{ icon }}">
{% endif %}