Skip to content

Commit

Permalink
Update image paths in blog posts and configure assets prefix in Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
miladsoft committed Dec 18, 2024
1 parent 08cce60 commit d783291
Show file tree
Hide file tree
Showing 22 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
export default defineConfig({
site: "https://blog.angor.io/",
base: "/",
assetsPrefix: '/public',
trailingSlash: "always",
integrations: [
tailwind(
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/content/posts/How-to-test-Angor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "How to Test Angor: A Step-by-Step Guide"
published: 2024-06-20
description: "Angor is a decentralized crowdfunding project leveraging the security of Bitcoin and the transparency of Nostr."
image: "./test-angor.svg"
image: "/images/test-angor.svg"
tags: ['Decentralized Crowdfunding', 'Bitcoin' ,'Nostr','Angor']
category: Angor
draft: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Angor vs. Traditional Crowdfunding"
published: 2024-06-27
description: "This article compares Angor to traditional crowdfunding services, outlining key differences, advantages, and potential challenges."
image: "./angor-vs-traditional-crowdfunding.svg"
image: "/images/angor-vs-traditional-crowdfunding.svg"
tags: ['Decentralized Crowdfunding', 'Bitcoin Crowdfunding' ,'Nostr','Fundraising']
category: 'Angor'
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/angor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Welcome to the Angor Blog!
published: 2024-05-09
description: 'Discover the new Angor Blog, your ultimate resource for Bitcoin investment insights and updates on the Angor platform.'
image: './angor.svg'
image: '/images/angor.svg'
tags: [Bitcoin, Technology, Education]
category: 'Angor'
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/bitcoin-full-node/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Setting up a Bitcoin Full Node on Different Operating Systems
published: 2024-05-15
description: Learn how to set up a Bitcoin full node on Windows, macOS, and Linux to contribute to the Bitcoin network.
image: './bitcoin-full-node.svg'
image: '/images/bitcoin-full-node.svg'
tags: [Bitcoin, Cryptocurrency]
category: Cryptocurrency
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/bitcoin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Bitcoin, A Digital Revolution
published: 2024-05-12
description: Explore the transformative journey of Bitcoin from its inception to its current status as a pivotal player in the financial world.
image: './bitcoin.svg'
image: '/images/bitcoin.svg'
tags: [Bitcoin, Cryptocurrency]
category: Cryptocurrency
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/how-to-invest-using-angor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: How to Invest Using Angor
published: 2024-06-17
description: 'Angor allows you to browse various projects and invest securely using Bitcoin. Create a wallet, select a project, submit your investment for approval, and manage your funds with ease.'
image: './invest.svg'
image: '/images/invest.svg'
tags: [Bitcoin, Technology, Education]
category: 'Angor'
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/how-to-raise-funds/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: How to Raise Funds Using Angor
published: 2024-06-17
description: 'Angor is a decentralized crowdfunding platform on Bitcoin, offering secure fund management and direct investor engagement for transparent project funding.'
image: './raise.svg'
image: '/images/raise.svg'
tags: [Bitcoin, Technology, Education]
category: 'Angor'
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/ico/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: What is an Initial Coin Offering (ICO)?
published: 2024-05-13
description: Dive deep into the world of Initial Coin Offerings (ICO), exploring how this innovative crowdfunding mechanism leverages cryptocurrency to fund new projects and the nuances that differentiate it from traditional IPOs.
image: './ico.svg'
image: '/images/ico.svg'
tags: [ICO, Cryptocurrency, Blockchain]
category: Cryptocurrency
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/nostr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Decentralized Social Networking
published: 2024-05-10
description: Explore Nostr, a revolutionary decentralized protocol promising a censorship-resistant and truly global social network.
image: './nostr.svg'
image: '/images/nostr.svg'
tags: ['nostr', 'decentralization' ]
category: 'Technology'
draft: false
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/time-lock-contracts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Innovative Time-Lock Contracts
published: 2024-05-20
description: Discover how Angor's innovative time-lock contracts enhance accountability and trust in crowdfunding by releasing funds at predetermined intervals based on milestone achievements.
image: './time-lock-contracts.svg'
image: '/images/time-lock-contracts.svg'
tags: [Time-Lock Contracts, Smart Contracts]
category: 'Technology'
draft: false
Expand Down
6 changes: 3 additions & 3 deletions src/pages/rss.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export async function GET(context: APIContext) {
description: siteConfig.subtitle || 'No description',
site: siteUrl,
xmlns: {
media: 'http://search.yahoo.com/mrss/',
media: 'http://search.yahoo.com/mrss/',
},
items: blog.map((post) => {
const imageUrl = post.data.image
? new URL(post.data.image.startsWith('/') ? post.data.image.slice(1) : post.data.image, siteUrl).toString()
? new URL(post.data.image.startsWith('/') ? post.data.image : `/images/${post.data.image}`, siteUrl).toString()
: '';

return {
Expand All @@ -36,6 +36,6 @@ export async function GET(context: APIContext) {
: '',
};
}),
customData: `<language>${siteConfig.lang}</language>`,
customData: `<language>${siteConfig.lang}</language>`
});
}

0 comments on commit d783291

Please sign in to comment.