|
6 | 6 | <meta name="theme-color" content="#1e1830"> |
7 | 7 | <meta name="keywords" content="node-based, compositor, compositing, computer graphics, cgi, open source, vfx, software"> |
8 | 8 | <title>{{ page.title }}</title> |
9 | | - <!-- OpenGraph Card --> |
| 9 | + <!-- OpenGraph & Twitter Card Tags --> |
10 | 10 | <meta property="og:type" content="website"> |
11 | 11 | <meta property="og:title" content="{{page.title}}"> |
12 | | - <meta property="og:image" content=""> |
13 | 12 | <meta property="og:image:width" content="1920"> |
14 | 13 | <meta property="og:image:height" content="1080"> |
| 14 | + {% if page.postimg %} |
| 15 | + <meta property="og:image" content="{{ site.url | append: "/" }}{{ page.postimg }}" /> |
| 16 | + <meta name="twitter:image" content="{{ site.url | append: "/"}}{{ page.postimg }}" /> |
| 17 | + {% else %} |
| 18 | + <meta property="og:image" content="{{ "/img/social-preview.jpg" | prepend: site.url }}" /> |
| 19 | + <meta name="twitter:image" content="{{ "/img/social-preview.jpg" | prepend: site.url }}" /> |
| 20 | + {% endif %} |
15 | 21 | <meta name="og:description" content="{% if page.description %} |
16 | 22 | {{ page.description | strip_html | strip_newlines | truncate: 160 }} |
17 | 23 | {% else %} |
18 | 24 | {{ site.description }} |
19 | 25 | {% endif %}"> |
20 | 26 | <meta property="og:locale" content="en_US" /> |
21 | | - <!-- Twitter Card --> |
22 | 27 | <meta name="twitter:card" content="summary_large_image"> |
23 | 28 | <meta name="twitter:domain" content="natrongithub.github.io"> |
24 | 29 | <meta name="twitter:title" content="{{page.title}}"> |
|
30 | 35 | <!-- RSS Feed --> |
31 | 36 | <link rel="alternate" type="application/rss+xml" href="{% base %}feed.atom"> |
32 | 37 |
|
33 | | - {% if page.postimg %} |
34 | | - <meta property="og:image" content="{{ site.url | append: "/" }}{{ page.postimg }}" /> |
35 | | - <meta name="twitter:image" content="{{ site.url | append: "/"}}{{ page.postimg }}" /> |
36 | | - {% else %} |
37 | | - <meta property="og:image" content="{{ "/img/social-preview.jpg" | prepend: site.url }}" /> |
38 | | - <meta name="twitter:image" content="{{ "/img/social-preview.jpg" | prepend: site.url }}" /> |
39 | | - {% endif %} |
40 | | - |
41 | 38 | <!-- Stylesheets & Fonts --> |
42 | 39 | <link rel="stylesheet" href="{% base %}css/main.css"> |
43 | 40 | <link rel="stylesheet" href="https://unpkg.com/boxicons@latest/css/boxicons.min.css"> |
|
0 commit comments