Skip to content

Commit

Permalink
refactoring datas into a data folder for easier navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
hsmith-dev committed Aug 17, 2024
1 parent 93ef70e commit 5dc8db3
Show file tree
Hide file tree
Showing 26 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/CommunityLinks.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { socialLinks } from '../content/community-links.js';
import { socialLinks } from '../content/data/community-links';
import '../styles/IconLinks.css';
---
<div class="social-links">
Expand Down
2 changes: 1 addition & 1 deletion src/components/DownloadInfoTable.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { downloadInfoTable } from '../content/download-info-table.js';
import { downloadInfoTable } from '../content/data/download-info-table';
import '../styles/DownloadInfoTable.css';
const tabs = Object.keys(downloadInfoTable);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Downloads.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { downloads } from '../content/downloads.js';
import { downloads } from '../content/data/downloads';
import '../styles/Downloads.css';
---
<section class="downloads-section">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import HeaderLink from './HeaderLink.astro';
import { SITE_TITLE } from '../consts';
import { navData } from '../content/navData';
import { navData } from '../content/data/navData';
import '../styles/Header.css';
const isHomePage = Astro.props.isHomePage ?? false; // Default to false
Expand Down
2 changes: 1 addition & 1 deletion src/components/KeyFeatures.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { keyFeaturesData } from '../content/keyFeaturesData';
import { keyFeaturesData } from '../content/data/keyFeaturesData';
---

<h2>Key Features</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SocialLinks.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { socialLinks } from '../content/social-links.js';
import { socialLinks } from '../content/data/social-links';
import '../styles/IconLinks.css';
---
<div class="social-links">
Expand Down
2 changes: 1 addition & 1 deletion src/components/TeamMembers.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { teamMembers } from '../content/team';
import { teamMembers } from '../content/data/team';
import '../styles/TeamMembers.css';
---
<section class="team-section" id="team">
Expand Down
2 changes: 1 addition & 1 deletion src/components/WhyChoose.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { whyChooseData } from '../content/whyChooseData';
import { whyChooseData } from '../content/data/whyChooseData';
---

<h2>Why Choose Vortex Linux?</h2>
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Base from '../components/Base.astro';
import TeamMembers from '../components/TeamMembers.astro';
import WhyChoose from '../components/WhyChoose.astro';
import KeyFeatures from '../components/KeyFeatures.astro';
import { aboutData } from '../content/aboutData';
import { aboutData } from '../content/data/aboutData';
---

<Base title={aboutData.title} description={aboutData.description} showCallToAction={true}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/attribution.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Base from '../components/Base.astro';
import { attributionData } from '../content/attributionData';
import { attributionData } from '../content/data/attributionData';
import '../styles/Attributions.css';
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/code-of-conduct.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Base from '../components/Base.astro';
import { codeOfConductData } from '../content/codeOfConductData';
import { codeOfConductData } from '../content/data/codeOfConductData';
---

<Base title={codeOfConductData.title} description={codeOfConductData.description} showCallToAction={false}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Base from '../components/Base.astro';
import BlogSlider from '../components/BlogSlider.astro';
import WhyChoose from '../components/WhyChoose.astro';
import KeyFeatures from '../components/KeyFeatures.astro';
import { indexData } from '../content/indexData';
import { indexData } from '../content/data/indexData';
---

<Base isHomePage={true} showCallToAction={true}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/privacy-policy.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Base from '../components/Base.astro';
import { privacyPolicyData } from '../content/privacyPolicyData';
import { privacyPolicyData } from '../content/data/privacyPolicyData';
---

<Base title={privacyPolicyData.title} description={privacyPolicyData.description} showCallToAction={false}>
Expand Down

0 comments on commit 5dc8db3

Please sign in to comment.