Skip to content

Commit 600db85

Browse files
authored
Merge pull request #142 from frankkilcommins/main
update copyright year and add OG metadata for image previews
2 parents 906263e + 0e6bb3e commit 600db85

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ title: OpenAPI Documentation
44
description: For API designers and writers wishing formalize their API in an OpenAPI Description document.
55
baseurl: /
66
logo: "/assets/images/OpenAPI_Logo_Pantone-1.png"
7-
footer_content: "\xA9 2023 OpenAPI Initiative. <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\
7+
image: "/assets/images/OpenAPI_Logo_Pantone-1.png"
8+
footer_content: "\xA9 2025 OpenAPI Initiative. <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\
89
><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by/4.0/80x15.png\"\
910
\ /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\
1011
>Creative Commons Attribution 4.0 International License</a>. The documentation is\

_includes/head_custom.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
33
<style>.github-fork-ribbon:before { background-color: #1d781d; }</style>
44
<a class="github-fork-ribbon" href="https://github.com/OAI/Documentation" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
5+
6+
{%- assign og_image = page.image | default: site.image -%}
7+
8+
<meta property="og:title" content="{{ page.title | default: site.title | escape }}" />
9+
<meta property="og:description" content="{{ page.excerpt | strip_html | truncate: 160 | default: site.description }}" />
10+
<meta property="og:image" content="{{ site.url }}{{ og_image }}" />
11+
<meta property="og:url" content="{{ page.url | absolute_url }}" />
12+
<meta property="og:type" content="website" />

0 commit comments

Comments
 (0)