File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 21
21
<meta name =" og:site_name" property =" og:site_name" content =" Orionrobots" />
22
22
<meta property =" og:type" name =" og:type" content =" article" />
23
23
<meta name =" og:title" property =" og:title" content =" {{ title }} | {{ site_title }} - {{ site_tagline }}" />
24
- {% if description %}
25
- <meta name =" og:description" property =" og:description" content =" {{ description }}" />
26
- {% endif %}
24
+ {% capture real_description -%}
25
+ {% if description -%}
26
+ {{ description }}
27
+ {%- else -%}
28
+ {{ content | strip_html | strip_newlines | truncatewords: 50 }}
29
+ {%- endif -%}
30
+ {%- endcapture %}
31
+ <meta name =" og:description" property =" og:description" content =" {{ real_description }}" />
32
+ <meta name =" description" content =" {{ real_description }}" >
33
+
27
34
{% if thumbnail %}
28
35
<meta name =" og:image" property =" og:image" content =" {{ BASE_PATH }}/{% thumbnail_from_path thumbnail %}" />
29
36
<meta name =" twitter:image" content =" {{ BASE_PATH }}/{% thumbnail_from_path thumbnail %}" />
34
41
35
42
<meta name =" viewport" content =" width=device-width, initial-scale=1" >
36
43
<title >{{ title }} | {{ site_title }} - {{ site_tagline }}</title >
37
- {% if description %}<meta name =" description" content =" {{ description }}" >{% endif %}
38
44
<meta name =" author" content =" {{ author | default: "Danny Staple" }}" >
39
45
<meta name =" article:author" property =" article:author" content =" {{ author | default: "Danny Staple" }}" >
40
46
41
-
42
47
<script type =" text/javascript" src =" /dist/bundle.js" ></script >
43
48
{% capture css %}{% include css /bootstrap-style .css %}{% endcapture %}
44
49
<style >{{ css | cssmin }}
You can’t perform that action at this time.
0 commit comments