Fix blog tags, update donate links
This commit is contained in:
parent
07d40a6f3d
commit
b1f0116c6a
5 changed files with 7 additions and 9 deletions
|
@ -11,10 +11,7 @@ export default defineConfig({
|
|||
// Slug issue if not enabled
|
||||
redirects: {
|
||||
'/docs/': '/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',
|
||||
'/docs/minpluto': '/docs/zorn/introduction/'
|
||||
},
|
||||
integrations: [markdoc(), mdx(),
|
||||
betterImageService({
|
||||
|
|
|
@ -12,7 +12,7 @@ import {Zorn} from "@minpluto/zorn"
|
|||
// Icons
|
||||
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 GhostPostResponse = await fetch(GhostPostFetch);
|
||||
const GhostPost = await GhostPostResponse.json();
|
||||
|
@ -29,7 +29,7 @@ const GhostPost = await GhostPostResponse.json();
|
|||
{new Date(GhostPost.posts[0].published_at).toLocaleDateString()}
|
||||
</p>
|
||||
<div class="blog-post-content">
|
||||
<Fragment set:html={GhostPost.posts[0].html}
|
||||
<Fragment set:html={GhostPost.posts[0].html}/>
|
||||
</div>
|
||||
</div>
|
||||
</slot>
|
||||
|
|
|
@ -22,7 +22,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue";
|
|||
<Fragment slot="body">
|
||||
<div class="posts">
|
||||
{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 src={post.custom_excerpt} />
|
||||
<div class="card-post-content">
|
||||
|
|
|
@ -14,8 +14,9 @@ const posts = await getCollection("posts");
|
|||
<Fragment slot="sub-header">
|
||||
<p class="header-sub-service">Become a Sponsor</p>
|
||||
<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://liberapay.com/SudoVanilla">Liberapay</a>
|
||||
<a target="_blank" href="https://wise.com/pay/me/corbinj6">Wise</a>
|
||||
<span>-</span>
|
||||
<a target="_blank" href="https://payments.sudovanilla.org/p/login/3cs28Rcxeg1EbjG7ss">Stripe Login</a>
|
||||
</div>
|
||||
|
|
|
@ -34,7 +34,7 @@ import { BookmarkBook, ReportColumns } from "@iconoir/vue";
|
|||
</Heading>
|
||||
<div class="posts">
|
||||
{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 src={post.custom_excerpt} />
|
||||
<div class="card-post-content">
|
||||
|
|
Loading…
Reference in a new issue