-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Astro 5 and convert to new Content Layer API
- Loading branch information
Showing
24 changed files
with
272 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
--- | ||
<hr> | ||
|
||
<p>As we are open source, you can easily check our work on <a href="https://github.com/interledger/">GitHub</a>. If the work mentioned here inspired you, we welcome your contributions. You can join our <a href="https://communityinviter.com/apps/interledger/interledger-working-groups-slack">community slack</a> or participate in the next <a href="https://docs.google.com/document/u/1/d/1T_Q_eRZtL8GluJR9rVADd7fvkB8mPluMk-d96LM4vlg/edit#heading=h.ybdhwl6k5886">community call</a>, which takes place each second Wednesday of the month.</p> | ||
|
||
<p>If you want to stay updated with all open opportunities and news from the Interledger Foundation, you can subscribe to our <a href="https://interledger.org/subscribe">newsletter</a>.</p> | ||
|
||
<style> | ||
hr { | ||
margin-block-start: var(--space-l); | ||
margin-block-end: var(--space-s); | ||
} | ||
p { | ||
font-style: italic; | ||
} | ||
</style> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
const { length, currentPage, firstUrl, prevUrl, nextUrl, lastUrl } = Astro.props; | ||
const paginationList = Array.from({length}, (_, i) => i + 1); | ||
--- | ||
<nav aria-label="Blog pages" class="pagination"> | ||
{firstUrl ? ( | ||
<a href={`/developers${firstUrl}`} class="pagination__link">«</a> | ||
) : ( | ||
<span class="pagination__link disabled">«</span> | ||
)} | ||
|
||
{prevUrl ? ( | ||
<a href={`/developers${prevUrl}`} class="pagination__link">‹</a> | ||
) : ( | ||
<span class="pagination__link disabled">‹</span> | ||
)} | ||
|
||
{paginationList.map((num) => ( | ||
<a | ||
href={`/developers/blog${num == 1 ? "" : "/" + num}`} | ||
class={`pagination__link ${currentPage == num ? "disabled active" : ""}`} | ||
> | ||
{num} | ||
</a> | ||
))} | ||
|
||
{!nextUrl ? ( | ||
<span class="pagination__link disabled">›</span> | ||
) : ( | ||
<a href={`/developers${nextUrl}`} class="pagination__link">›</a> | ||
)} | ||
|
||
{lastUrl ? ( | ||
<a href={`/developers${lastUrl}`} class="pagination__link">»</a> | ||
) : ( | ||
<span class="pagination__link disabled">»</span> | ||
)} | ||
</nav> | ||
|
||
<style> | ||
.pagination { | ||
display: flex; | ||
justify-content: center; | ||
margin-block: var(--space-m); | ||
} | ||
|
||
.pagination__link { | ||
padding: var(--space-xs) var(--space-s); | ||
} | ||
|
||
.active { | ||
color: var(--color-primary); | ||
} | ||
|
||
.disabled:not(.active) { | ||
opacity: 0.5; | ||
cursor: not-allowed; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { z, defineCollection } from "astro:content"; | ||
import { glob } from "astro/loaders"; | ||
import { docsLoader, i18nLoader } from "@astrojs/starlight/loaders"; | ||
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema"; | ||
|
||
const blogCollection = defineCollection({ | ||
loader: glob({ pattern: "**/[^_]*.{md,mdx}", base: "./src/content/blog" }), | ||
schema: z.object({ | ||
title: z.string(), | ||
description: z.string(), | ||
slug: z.string(), | ||
date: z.date(), | ||
image: z.string().optional(), | ||
tags: z.array(z.string()), | ||
authors: z.array(z.string()), | ||
author_urls: z.array(z.string()), | ||
}), | ||
}); | ||
|
||
export const collections = { | ||
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), | ||
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }), | ||
blog: blogCollection, | ||
}; |
7 changes: 4 additions & 3 deletions
7
...18-01-29-simplifying-interledger-the-graveyard-of-possible-protocol-features.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...018-10-03-interledger-how-to-interconnect-all-blockchains-and-value-networks.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/content/blog/2019-01-23-thoughts-on-scaling-interledger-connectors.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
src/content/blog/2024-07-30-open-payments-cinderella-story.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.