refactor: update and use paths
This commit is contained in:
parent
8a80262454
commit
41ccff084d
|
@ -2,6 +2,6 @@
|
|||
title: Page not found
|
||||
---
|
||||
|
||||
import Layout from '../layouts/PageLayout.astro'
|
||||
import Layout from '~/layouts/PageLayout.astro'
|
||||
|
||||
<Layout title={frontmatter.title} />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Ansible email course
|
||||
---
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import DailyEmailForm from '../../components/DailyEmailForm.astro'
|
||||
import Layout from '../../layouts/DailyEmailLayout.astro'
|
||||
import DailyEmailForm from '~/components/DailyEmailForm.astro'
|
||||
import Layout from '~/layouts/DailyEmailLayout.astro'
|
||||
|
||||
export async function getStaticPaths({ paginate }) {
|
||||
const emails = await Astro.glob('../../daily-emails/*.{md,mdx}')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import DailyEmailForm from '../../../../../components/DailyEmailForm.astro'
|
||||
import Layout from '../../../../../layouts/DailyEmailLayout.astro'
|
||||
import DailyEmailForm from '~/components/DailyEmailForm.astro'
|
||||
import Layout from '~/layouts/DailyEmailLayout.astro'
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const emails = await Astro.glob('../../../../../daily-emails/*.{md,mdx}')
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
import AboutMe from '../../components/AboutMe.astro'
|
||||
import Layout from '../../layouts/Layout.astro'
|
||||
import Markdown from '../../components/Markdown.astro'
|
||||
import { getSlugFromFile } from '../../utils.ts'
|
||||
import AboutMe from '~/components/AboutMe.astro'
|
||||
import Layout from '~/layouts/Layout.astro'
|
||||
import Markdown from '~/components/Markdown.astro'
|
||||
import { getSlugFromFile } from '~/utils.ts'
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await Astro.glob('../../posts/*.md')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
import PageLayout from '../../layouts/PageLayout.astro'
|
||||
import { getSlugFromFile } from '../../utils.ts'
|
||||
import PageLayout from '~/layouts/PageLayout.astro'
|
||||
import { getSlugFromFile } from '~/utils.ts'
|
||||
|
||||
const posts = await Astro.glob("../../posts/*.md")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Book a 1-on-1 consulting call
|
||||
link: https://savvycal.com/opdavies/consulting-call
|
||||
price: 199
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Company information
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Contact Oliver
|
||||
---
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Oliver's Daily List
|
||||
---
|
||||
|
||||
import AboutMe from '../components/AboutMe.astro';
|
||||
import DailyEmailForm from '../components/DailyEmailForm.astro';
|
||||
import Markdown from '../components/Markdown.astro';
|
||||
import AboutMe from '~/components/AboutMe.astro';
|
||||
import DailyEmailForm from '~/components/DailyEmailForm.astro';
|
||||
import Markdown from '~/components/Markdown.astro';
|
||||
import _ from 'lodash'
|
||||
|
||||
export const testimonials = [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Oliver Davies - PHP Developer and Drupal Specialist
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Introduction to Automated Testing and Test-Driven Development with Drupal
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Oliver Davies - Software Developer and Consultant, PHP and Drupal specialist
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Links
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Pair program with me
|
||||
---
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import PageLayout from '../layouts/PageLayout.astro'
|
||||
import PageLayout from '~/layouts/PageLayout.astro'
|
||||
|
||||
const commonSearches = [
|
||||
'Drupal',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Speaker Information
|
||||
---
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
import AboutMe from '../../components/AboutMe.astro'
|
||||
import Events from '../../components/talk/Events.astro'
|
||||
import Layout from '../../layouts/Layout.astro'
|
||||
import Markdown from '../../components/Markdown.astro'
|
||||
import Slides from '../../components/talk/Slides.astro'
|
||||
import Video from '../../components/talk/Video.astro'
|
||||
import { getSlugFromFile } from '../../utils.ts'
|
||||
import AboutMe from '~/components/AboutMe.astro'
|
||||
import Events from '~/components/talk/Events.astro'
|
||||
import Layout from '~/layouts/Layout.astro'
|
||||
import Markdown from '~/components/Markdown.astro'
|
||||
import Slides from '~/components/talk/Slides.astro'
|
||||
import Video from '~/components/talk/Video.astro'
|
||||
import { getSlugFromFile } from '~/utils.ts'
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const talks = await Astro.glob('../../talks/*.md')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import PageLayout from '../../layouts/PageLayout.astro'
|
||||
import PageLayout from '~/layouts/PageLayout.astro'
|
||||
import _ from 'lodash'
|
||||
import { getSlugFromFile } from '../../utils.ts'
|
||||
import { getSlugFromFile } from '~/utils.ts'
|
||||
|
||||
const talks = await Astro.glob("../../talks/*.md")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: ../layouts/PageLayout.astro
|
||||
layout: ~/layouts/PageLayout.astro
|
||||
title: Things you should know about PHP
|
||||
---
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@assets/*": ["assets/*"],
|
||||
"@components/*": ["src/components/*"]
|
||||
"~/*": ["src/*"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue