update astro

pull/1/head
Drake 2 years ago
parent edf9d04f28
commit ac933dad5f

@ -6,11 +6,10 @@
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
import { defineConfig } from 'astro/config'
import deno from '@astrojs/deno'
// @ts-check
export default /** @type {import('astro').AstroUserConfig} */ ({
// Comment out "renderers: []" to enable Astro's default component support.
renderers: [],
buildOptions: {
site: "https://www.ruthenic.com"
}
export default defineConfig({
site: "https://www.ruthenic.com"
});

@ -4,12 +4,15 @@
"private": true,
"scripts": {
"dev": "make dev",
"realDev": "astro dev",
"realDev": "astro dev",
"build": "make build",
"realBuild": "astro build",
"realBuild": "astro build",
"preview": "astro preview"
},
"devDependencies": {
"astro": "^0.22.20"
"astro": "^1.0.0-beta.10"
},
"dependencies": {
"@astrojs/deno": "^0.1.0"
}
}

File diff suppressed because it is too large Load Diff

@ -1,7 +1,6 @@
---
const allPosts = Astro.fetchContent('../pages/blog/*.md')
const posts = allPosts.sort((a, b) => new Date(b.date) - new Date(a.date));
const allPosts = await Astro.glob('../pages/blog/*.md')
const posts = allPosts.map(item => (Object.assign({}, item.frontmatter, {url: item.url}))).sort((a, b) => new Date(b.date) - new Date(a.date));
---
<div>

@ -2,11 +2,11 @@
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 400;
src: url('/public/fonts/mono.ttf') format('truetype');
src: url('/fonts/mono.ttf') format('truetype');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: url('/public/fonts/sans.woff2') format('woff2');
src: url('/fonts/sans.woff2') format('woff2');
}

@ -1,7 +1,7 @@
---
export async function getStaticPaths({paginate, rss}) {
const allPosts = Astro.fetchContent('./*.md')
const posts = allPosts.sort((a, b) => new Date(b.date) - new Date(a.date));
const allPosts = await Astro.glob('./*.md')
const posts = allPosts.map(item => (Object.assign({}, item.frontmatter, {url: item.url}))).sort((a, b) => new Date(b.date) - new Date(a.date));
rss({
title: "Ruthenic's Blog",
description: "My blog, utilized for talking about random things.",

Loading…
Cancel
Save