mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
Merge pull request #633 from openclassify/dia
#1929 Site meta description doesn't seen for home
This commit is contained in:
commit
385262f513
@ -4,7 +4,8 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
|
<meta name="generator" content="{{ config_get('streams::distribution.name') }}"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||||
<meta name="description" content="{{ template.get('meta_description', setting_value('streams::description'))|slice(0,160) }}"/>
|
<meta name="description"
|
||||||
|
content="{{ (template.get('meta_description') ?: setting_value('streams::description'))|slice(0,160) }}"/>
|
||||||
<meta name="keywords" content="{{ template.get('meta_keywords') }}" />
|
<meta name="keywords" content="{{ template.get('meta_keywords') }}" />
|
||||||
<!-- Meta Tags -->
|
<!-- Meta Tags -->
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<meta property="og:site_name"
|
<meta property="og:site_name"
|
||||||
content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
|
content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}"/>
|
||||||
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description))|slice(0,160) }}"/>
|
<meta property="og:description" content="{{ template.get('og_description', trans(template.meta_description))|slice(0,160) }}"/>
|
||||||
<meta property="og:title" content="{{ template.get('og_title', trans(template.meta_title))|slice(0,60) }}"/>
|
<meta property="og:title" content="{{ (setting_value('streams::name', config_get('streams::distribution.name'))~" | "~trans(template.meta_title))|slice(0,60) }}"/>
|
||||||
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
|
<meta property="og:url" content="{{ template.get('og_url', url_current()) }}"/>
|
||||||
<meta property="og:image" content="{{ template.get('og_image', trans(template.meta_image)) }}"/>
|
<meta property="og:image" content="{{ template.get('og_image', trans(template.meta_image)) }}"/>
|
||||||
<meta property="og:type" content="website"/>
|
<meta property="og:type" content="website"/>
|
||||||
@ -10,7 +10,7 @@
|
|||||||
<!-- Meta for twitter sharing -->
|
<!-- Meta for twitter sharing -->
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:site" content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}">
|
<meta name="twitter:site" content="{{ template.get('og_site_name', setting_value('streams::name', config_get('streams::distribution.name'))) }}">
|
||||||
<meta name="twitter:title" content="{{ template.get('og_title', trans(template.meta_title))|slice(0,60) }}">
|
<meta name="twitter:title" content="{{ (setting_value('streams::name', config_get('streams::distribution.name'))~" | "~trans(template.meta_title))|slice(0,60) }}">
|
||||||
<meta name="twitter:description" content="{{ template.get('og_description', trans(template.meta_description))|slice(0,160) }}">
|
<meta name="twitter:description" content="{{ template.get('og_description', trans(template.meta_description))|slice(0,160) }}">
|
||||||
<meta name="twitter:image" content="{{ template.get('og_image', trans(template.meta_image)) }}">
|
<meta name="twitter:image" content="{{ template.get('og_image', trans(template.meta_image)) }}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -16,7 +16,6 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
z-index: 1040;
|
|
||||||
-webkit-transform: translateX(-100%);
|
-webkit-transform: translateX(-100%);
|
||||||
-ms-transform: translateX(-100%);
|
-ms-transform: translateX(-100%);
|
||||||
transform: translateX(-100%);
|
transform: translateX(-100%);
|
||||||
@ -39,6 +38,7 @@
|
|||||||
transform: translateX(0%);
|
transform: translateX(0%);
|
||||||
-webkit-transition: 300ms ease;
|
-webkit-transition: 300ms ease;
|
||||||
transition: 300ms ease;
|
transition: 300ms ease;
|
||||||
|
z-index: 1040;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@ -85,5 +85,5 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: #000;
|
background: #000;
|
||||||
opacity: .2;
|
opacity: .2;
|
||||||
z-index: 1;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user