Skip to content

Commit 9ca20ca

Browse files
authored
Shrinks99 → Update links, new opengraph image
* Shrinks99 → NatronGitHub in readme * Adds opengraph image - Reorders meta tags * Open docs in new tab from header
1 parent 047a75e commit 9ca20ca

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Natron's Website
22

3-
![Repo Size](https://img.shields.io/github/repo-size/shrinks99/NatronGitHub.github.io)![GPL 2 License](https://img.shields.io/badge/license-GPL%202-green) ![W3C Validation](https://img.shields.io/w3c-validation/html?targetUrl=https%3A%2F%2Fwilkinson.graphics%2FNatronGitHub.github.io%2F)![Website Live](https://img.shields.io/website?url=https%3A%2F%2Fimg.shields.io%2Fw3c-validation%2Fhtml%3FtargetUrl%3Dhttps%253A%252F%252Fwilkinson.graphics%252FNatronGitHub.github.io%252F)![Last Commit Date](https://img.shields.io/github/last-commit/shrinks99/NatronGitHub.github.io)
3+
![Repo Size](https://img.shields.io/github/repo-size/natrongithub/NatronGitHub.github.io)![GPL 2 License](https://img.shields.io/badge/license-GPL%202-green) ![W3C Validation](https://img.shields.io/w3c-validation/html?targetUrl=https%3A%2F%2FNatronGitHub.github.io)![Website Live](https://img.shields.io/website?url=https%3A%2F%2Fimg.shields.io%2Fw3c-validation%2Fhtml%3FtargetUrl%3Dhttps%3A%2F%2FNatronGitHub.github.io)![Last Commit Date](https://img.shields.io/github/last-commit/natrongithub/NatronGitHub.github.io)
44

55
## Development
66

@@ -29,7 +29,7 @@ Make sure you have `git` already installed. This website also requires Jekyll, a
2929
Navigate to your directory of choice with `cd /path/of/choice`, then run this command to download the repo:
3030

3131
```bash
32-
git clone https://github.com/Shrinks99/NatronGitHub.github.io && cd NatronGitHub.github.io
32+
git clone https://github.com/NatronGitHub/NatronGitHub.github.io && cd NatronGitHub.github.io
3333
```
3434

3535
Build with Jekyll in three steps:

_includes/head.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@
66
<meta name="theme-color" content="#1e1830">
77
<meta name="keywords" content="node-based, compositor, compositing, computer graphics, cgi, open source, vfx, software">
88
<title>{{ page.title }}</title>
9-
<!-- OpenGraph Card -->
9+
<!-- OpenGraph & Twitter Card Tags -->
1010
<meta property="og:type" content="website">
1111
<meta property="og:title" content="{{page.title}}">
12-
<meta property="og:image" content="">
1312
<meta property="og:image:width" content="1920">
1413
<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 %}
1521
<meta name="og:description" content="{% if page.description %}
1622
{{ page.description | strip_html | strip_newlines | truncate: 160 }}
1723
{% else %}
1824
{{ site.description }}
1925
{% endif %}">
2026
<meta property="og:locale" content="en_US" />
21-
<!-- Twitter Card -->
2227
<meta name="twitter:card" content="summary_large_image">
2328
<meta name="twitter:domain" content="natrongithub.github.io">
2429
<meta name="twitter:title" content="{{page.title}}">
@@ -30,14 +35,6 @@
3035
<!-- RSS Feed -->
3136
<link rel="alternate" type="application/rss+xml" href="{% base %}feed.atom">
3237

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-
4138
<!-- Stylesheets & Fonts -->
4239
<link rel="stylesheet" href="{% base %}css/main.css">
4340
<link rel="stylesheet" href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<a href="{% base %}news">News</a>
2828
</li>
2929
<li>
30-
<a href="http://natron.readthedocs.io">Docs</a>
30+
<a href="http://natron.readthedocs.io" target="_blank">Docs</a>
3131
</li>
3232
<li>
3333
<a href="{% base %}about">About</a>

img/social-preview.jpg

9.11 KB
Loading

0 commit comments

Comments
 (0)