Skip to content

Commit 7aced10

Browse files
committed
meta social
1 parent e025326 commit 7aced10

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ description: >- # this means to ignore newlines until "baseurl:"
2424
A conference + unconference for organizers, innovators, and community builders interested in creating a better future of public life.
2525
baseurl: "" # the subpath of your site, e.g. /blog
2626
url: "https://civic-spark.com" # the base hostname & protocol for your site, e.g. http://example.com
27+
image: "/assets/images/social_card.jpg"
2728

2829
github_username: civictechto
2930

_layouts/base.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@
55
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta name="description" content="{{ page.description | default: site.description }}">
8+
9+
<!-- Open Graph / Facebook -->
10+
<meta property="og:title" content="{{ page.title | default: site.title }}">
11+
<meta property="og:description" content="{{ page.description | default: site.description }}">
12+
<meta property="og:type" content="website">
13+
<meta property="og:url" content="{{ page.url | absolute_url }}">
14+
{% if page.image or site.image %}
15+
<meta property="og:image" content="{{ page.image | default: site.image | absolute_url }}">
16+
{% endif %}
17+
18+
<!-- Twitter -->
19+
<meta name="twitter:card" content="summary_large_image">
20+
<meta name="twitter:title" content="{{ page.title | default: site.title }}">
21+
<meta name="twitter:description" content="{{ page.description | default: site.description }}">
22+
{% if page.image or site.image %}
23+
<meta name="twitter:image" content="{{ page.image | default: site.image | absolute_url }}">
24+
{% endif %}
25+
826
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" />
927
<link rel="stylesheet" href="{{ site.baseurl }}/assets/styles/fonts.css" />
1028
<link rel="stylesheet" href="{{ site.baseurl }}/assets/styles/default-core.css" />

assets/images/social_card.jpg

518 KB
Loading

0 commit comments

Comments
 (0)