Fix blog tags, update donate links

This commit is contained in:
Korbs 2024-11-21 18:53:30 -05:00
parent 07d40a6f3d
commit b1f0116c6a
5 changed files with 7 additions and 9 deletions

View file

@ -11,10 +11,7 @@ export default defineConfig({
// Slug issue if not enabled // Slug issue if not enabled
redirects: { redirects: {
'/docs/': '/docs/zorn/introduction/', '/docs/': '/docs/zorn/introduction/',
'/docs/minpluto': '/docs/zorn/introduction/', '/docs/minpluto': '/docs/zorn/introduction/'
'/blog/minpluto-and-its-future-goals': '/blog/673e823bd79b8500015f4763',
'/blog/zen-browser-worth-the-hype': '/blog/673e81f4d79b8500015f4755',
'/blog/desktop-development-stops': '/blog/673e817fd79b8500015f474a',
}, },
integrations: [markdoc(), mdx(), integrations: [markdoc(), mdx(),
betterImageService({ betterImageService({

View file

@ -12,7 +12,7 @@ import {Zorn} from "@minpluto/zorn"
// Icons // Icons
import { Calendar } from "@iconoir/vue"; import { Calendar } from "@iconoir/vue";
const Id = Astro.url.href.split("/blog/").pop(); const Id = Astro.url.href.split("?postid=").pop();
const GhostPostFetch = 'https://blog.ghost.sudovanilla.org/ghost/api/content/posts/' + Id + '/?key=bef2ed15d9e38f7703be9412b3' const GhostPostFetch = 'https://blog.ghost.sudovanilla.org/ghost/api/content/posts/' + Id + '/?key=bef2ed15d9e38f7703be9412b3'
const GhostPostResponse = await fetch(GhostPostFetch); const GhostPostResponse = await fetch(GhostPostFetch);
const GhostPost = await GhostPostResponse.json(); const GhostPost = await GhostPostResponse.json();
@ -29,7 +29,7 @@ const GhostPost = await GhostPostResponse.json();
{new Date(GhostPost.posts[0].published_at).toLocaleDateString()} {new Date(GhostPost.posts[0].published_at).toLocaleDateString()}
</p> </p>
<div class="blog-post-content"> <div class="blog-post-content">
<Fragment set:html={GhostPost.posts[0].html} <Fragment set:html={GhostPost.posts[0].html}/>
</div> </div>
</div> </div>
</slot> </slot>

View file

@ -22,7 +22,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue";
<Fragment slot="body"> <Fragment slot="body">
<div class="posts"> <div class="posts">
{Ghost.posts.map((post) => {Ghost.posts.map((post) =>
<a href={'/blog/' + post.id} class="card-post"> <a href={'/blog/' + post.slug + '?postid=' + post.id} class="card-post">
<img id="bg" src={post.custom_excerpt.image} /> <img id="bg" src={post.custom_excerpt.image} />
<img src={post.custom_excerpt} /> <img src={post.custom_excerpt} />
<div class="card-post-content"> <div class="card-post-content">

View file

@ -14,8 +14,9 @@ const posts = await getCollection("posts");
<Fragment slot="sub-header"> <Fragment slot="sub-header">
<p class="header-sub-service">Become a Sponsor</p> <p class="header-sub-service">Become a Sponsor</p>
<div> <div>
<a target="_blank" style="opacity: 0.5; pointer-events: none;" href="#">Wire Transfer</a>
<a target="_blank" href="https://paypal.me/SudoVanilla">Paypal</a> <a target="_blank" href="https://paypal.me/SudoVanilla">Paypal</a>
<a target="_blank" href="https://liberapay.com/SudoVanilla">Liberapay</a>
<a target="_blank" href="https://wise.com/pay/me/corbinj6">Wise</a>
<span>-</span> <span>-</span>
<a target="_blank" href="https://payments.sudovanilla.org/p/login/3cs28Rcxeg1EbjG7ss">Stripe Login</a> <a target="_blank" href="https://payments.sudovanilla.org/p/login/3cs28Rcxeg1EbjG7ss">Stripe Login</a>
</div> </div>

View file

@ -34,7 +34,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue";
</Heading> </Heading>
<div class="posts"> <div class="posts">
{Ghost.posts.map((post) => {Ghost.posts.map((post) =>
<a href={'/blog/' + post.id} class="card-post"> <a href={'/blog/' + post.slug + '?postid=' + post.id} class="card-post">
<img id="bg" src={post.custom_excerpt.image} /> <img id="bg" src={post.custom_excerpt.image} />
<img src={post.custom_excerpt} /> <img src={post.custom_excerpt} />
<div class="card-post-content"> <div class="card-post-content">