Update something
This commit is contained in:
parent
5344e614a7
commit
90f5502efa
5 changed files with 113 additions and 4 deletions
|
@ -1,13 +1,18 @@
|
|||
---
|
||||
pubDatetime: 2025-03-20
|
||||
title: "Create your own GitHub alternative with Gitea and Forgejo"
|
||||
pubDatetime: 2025-03-21
|
||||
title: "Create your own GitHub alternative with Gitea, Opengist, and Forgejo"
|
||||
description: Then you can deploy your apps and websites with Coolify on a cheap VPS. Easy peasy lemon squeezy.
|
||||
featured: true
|
||||
draft: true
|
||||
tags:
|
||||
- selfhosting
|
||||
- coolify
|
||||
- github
|
||||
- forgejo
|
||||
- gitea
|
||||
- opengist
|
||||
- pikapods
|
||||
---
|
||||
|
||||
## Opengist example
|
||||
|
||||
<script src="https://gists.tifflabs-software.org/tiffmin/4e80165e59b24b959d8f56a362d99935.js"></script>
|
||||
|
|
|
@ -108,6 +108,10 @@ const structuredData = {
|
|||
set:html={JSON.stringify(structuredData)}
|
||||
/>
|
||||
|
||||
<script
|
||||
is:inline
|
||||
src="https://umami.tifflabs.cfd/script.js"
|
||||
data-website-id="3919f0ce-6f1e-4b81-b587-b861b1bc2c44"></script>
|
||||
<!-- Enable RSS feed auto-discovery -->
|
||||
<!-- https://docs.astro.build/en/recipes/rss/#enabling-rss-feed-auto-discovery -->
|
||||
<link
|
||||
|
|
|
@ -2,6 +2,8 @@ import rss from "@astrojs/rss";
|
|||
import { getCollection } from "astro:content";
|
||||
import getSortedPosts from "@/utils/getSortedPosts";
|
||||
import { SITE } from "@/config";
|
||||
import { globalImageUrls } from "@/utils/globalImageUrls";
|
||||
import sanitizeHtml from "sanitize-html";
|
||||
|
||||
export async function GET() {
|
||||
const posts = await getCollection("blog");
|
||||
|
@ -10,7 +12,13 @@ export async function GET() {
|
|||
title: SITE.title,
|
||||
description: SITE.desc,
|
||||
site: SITE.website,
|
||||
items: sortedPosts.map(({ data, id }) => ({
|
||||
items: sortedPosts.map(({ data, id, rendered }) => ({
|
||||
content: globalImageUrls(
|
||||
SITE.website,
|
||||
sanitizeHtml(rendered?.html, {
|
||||
allowedTags: sanitizeHtml.defaults.allowedTags.concat(["img"]),
|
||||
}),
|
||||
),
|
||||
link: `posts/${id}/`,
|
||||
title: data.title,
|
||||
description: data.description,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue