Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog: add canonical URLs, detailed authorship #266

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 170 additions & 0 deletions LICENSES/CC-BY-NC-SA-4.0.txt

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 7 additions & 4 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ path = [
"members.csv",
"package-lock.json",
"package.json",
"public/.well-known/atproto-did",
"public/images/example-members/*",
"src/content/members/*",
"src/env.d.ts",
Expand All @@ -25,15 +26,17 @@ SPDX-License-Identifier = "CC0-1.0"

[[annotations]]
path = [
"src/assets/images/blobs/*",
"public/favicon.svg",
"public/favicon.png",
"public/osspledge.pdf",
"public/opensourcepledge.pdf",
"public/favicon.svg",
"public/images/*",
"public/logos/*",
"public/open-source-pledge-one-pager.pdf",
"public/open-source-pledge-pitch-deck.pdf",
"public/opensourcepledge.pdf",
"public/osspledge.pdf",
"public/resources/*",
"public/resources/stickers/*",
"src/assets/images/blobs/*",
]
SPDX-FileCopyrightText = "© 2024 Functional Software, Inc. d/b/a Sentry"
SPDX-License-Identifier = "LicenseRef-Restricted"
Expand Down
2 changes: 2 additions & 0 deletions public/images/authors/chad.webp.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
© 2024 Chad Whitacre <[email protected]>
SPDX-License-Identifier: LicenseRef-Restricted
2 changes: 2 additions & 0 deletions public/images/authors/cramer.webp.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
© 2024 David Cramer
SPDX-License-Identifier: LicenseRef-Restricted
2 changes: 2 additions & 0 deletions public/images/authors/vlad.webp.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
© 2024 Vlad-Stefan Harbuz <[email protected]>
SPDX-License-Identifier: LicenseRef-Restricted
6 changes: 6 additions & 0 deletions src/content/articles/join-the-pledge.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ title: 'Join the Pledge'
excerpt: "Today we officially launch the Open Source Pledge."
author: 'David Cramer'
authorImageSrc: '/images/authors/cramer.webp'
canonicalUrl: 'https://blog.sentry.io/join-the-pledge/'
isDraft: false
publishDate: '2024-10-08'
---

<!--
© 2024 Functional Software, Inc. dba Sentry
SPDX-License-Identifier: LicenseRef-Restricted
-->

<div class="highlight-box">
This post originally appeared
<a
Expand Down
6 changes: 6 additions & 0 deletions src/content/articles/the-open-source-sustainability-crisis.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ title: 'The Open Source Sustainability Crisis'
excerpt: "What is Open Source sustainability? Fair pay, no hoops. Why is it in crisis? Burnout."
author: 'Chad Whitacre'
authorImageSrc: '/images/authors/chad.webp'
canonicalUrl: 'https://openpath.quest/2024/the-open-source-sustainability-crisis/'
isDraft: false
publishDate: '2024-01-19'
---

<!--
© 2024 Chad Whitacre <[email protected]>
SPDX-License-Identifier: LicenseRef-Restricted
-->

<div class="highlight-box">
This post originally appeared
<a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ title: 'The Philosophy of the Open Source Pledge'
excerpt: "We launched the Open Source Pledge today to make companies pay their fair share to Open Source maintainers they depend on. I wrote this post about why doing so is fair and smart."
author: 'Vlad-Stefan Harbuz'
authorImageSrc: '/images/authors/vlad.webp'
canonicalUrl: 'https://vlad.website/the-philosophy-of-the-open-source-pledge/'
isDraft: false
publishDate: '2024-10-08'
---

<!--
© 2024 Vlad-Stefan Harbuz <[email protected]>
SPDX-License-Identifier: CC-BY-NC-SA-4.0
-->

<div class="highlight-box">
This post originally appeared
<a
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

interface Props {
title?: string;
canonicalUrl?: string;
navless?: boolean;
}

const { title, navless } = Astro.props;
const { title, canonicalUrl, navless } = Astro.props;
---

<!doctype html>
Expand All @@ -30,6 +31,7 @@ const { title, navless } = Astro.props;
<meta property="og:url" content={Astro.url}>
<meta property="article:published_time" content="2024-10-08">
<link rel="me" href="https://fosstodon.org/@opensourcepledge">
<link rel="canonical" href={canonicalUrl || Astro.url}>

<script
is:inline
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function getStaticPaths() {
const { Content } = await article.render();
---

<Layout title={article.data.title}>
<Layout title={article.data.title} canonicalUrl={article.data.canonicalUrl}>
<div class="edge-blobs">
<Blob kind="grad-dots-04" top="12%" right="-2rem"></Blob>
<Blob kind="grad-dots-05" top="45%" left="-2rem"></Blob>
Expand Down
1 change: 1 addition & 0 deletions src/schemas/articles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const articleSchema = z.object({
title: z.string(),
author: z.string(),
authorImageSrc: z.string(),
canonicalUrl: z.string().optional(),
isDraft: z.boolean(),
imageSrc: z.string().optional(),
imageAlt: z.string().optional(),
Expand Down