Skip to content

Commit

Permalink
GitHub Pages fixes for file paths and url paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hsmith-dev authored Aug 16, 2024
1 parent 5635b6e commit 8b38e71
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import sitemap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig({
site: 'https://vortexlinux.org',
base: '',
base: 'website',
integrations: [mdx(), sitemap()],
});
4 changes: 0 additions & 4 deletions src/components/Downloads.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
import BaseHead from '../components/BaseHead.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
import { downloads } from '../content/downloads.js';
---

Expand Down
6 changes: 3 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const today = new Date();
© {today.getFullYear()} Vortex Linux Org. All rights reserved.
<SocialLinks />
<div class="policies">
<a href="/privacy-policy">Privacy Policy</a>
<a href="/code-of-conduct">Code of Conduct</a>
<a href="/attribution">Attributions</a>
<a href="/website/privacy-policy">Privacy Policy</a>
<a href="/website/code-of-conduct">Code of Conduct</a>
<a href="/website/attribution">Attributions</a>
</div>
</footer>
<style>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import SocialLinks from './SocialLinks.astro';
<header>
<nav>
<div class="internal-links">
<HeaderLink href="/" class="logo">
<HeaderLink href="/website" class="logo">
<Image src="/website/favicon.svg" alt="Logo" width="75" height="75"/>
<span style="font-size: 2rem; font-weight: bold;"> {SITE_TITLE}</span>
</HeaderLink>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<style>
.hero-section {
background-image: url('/banner.jpg'); /* Replace with your image path */
background-image: url('/website/banner.jpg'); /* Replace with your image path */
background-size: cover;
background-position: center;
height: 80vh; /* Adjust height as needed */
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/first-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'First post'
description: 'Lorem ipsum dolor sit amet'
pubDate: 'Jul 08 2022'
heroImage: '/blog-placeholder-3.jpg'
heroImage: '/website/blog-placeholder-3.jpg'
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/markdown-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Markdown Style Guide'
description: 'Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.'
pubDate: 'Jun 19 2024'
heroImage: '/blog-placeholder-1.jpg'
heroImage: '/website/blog-placeholder-1.jpg'
---

Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/second-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Second post'
description: 'Lorem ipsum dolor sit amet'
pubDate: 'Jul 15 2022'
heroImage: '/blog-placeholder-4.jpg'
heroImage: '/website/blog-placeholder-4.jpg'
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/third-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Third post'
description: 'Lorem ipsum dolor sit amet'
pubDate: 'Jul 22 2022'
heroImage: '/blog-placeholder-2.jpg'
heroImage: '/website/blog-placeholder-2.jpg'
---

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
Expand Down
2 changes: 1 addition & 1 deletion src/content/blog/using-mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Using MDX'
description: 'Lorem ipsum dolor sit amet'
pubDate: 'Jun 01 2024'
heroImage: '/blog-placeholder-5.jpg'
heroImage: '/website/blog-placeholder-5.jpg'
---

This theme comes with the [@astrojs/mdx](https://docs.astro.build/en/guides/integrations-guide/mdx/) integration installed and configured in your `astro.config.mjs` config file. If you prefer not to use MDX, you can disable support by removing the integration from your config file.
Expand Down
6 changes: 3 additions & 3 deletions src/content/social-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ export const socialLinks = [
name: 'Read The Docs',
url: 'https://vortexlinux.readthedocs.io/en/latest/',
srText: 'Go to Vortex Linux\'s Read The Docs',
svgPath: `/social-icons/read-the-docs.svg`,
svgPath: `/website/social-icons/read-the-docs.svg`,
},
{
name: 'Discord Server',
url: 'https://discord.gg/MsF24qUA5y',
srText: 'Go to Vortex Linux\'s Discord Server',
svgPath: `/social-icons/discord.svg`,
svgPath: `/website/social-icons/discord.svg`,
},
{
name: 'GitHub Repo',
url: 'https://github.com/Vortex-Linux/',
srText: 'Go to Vortex Linux\'s GitHub repo',
svgPath: `/social-icons/github.svg`,
svgPath: `/website/social-icons/github.svg`,
}
// Add more social links as needed
];
Expand Down

0 comments on commit 8b38e71

Please sign in to comment.