This commit is contained in:
parent
90a7b890cb
commit
bbcc854df0
1
.gitignore
vendored
1
.gitignore
vendored
@ -116,3 +116,4 @@ dist
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
|
package-lock.json
|
@ -1,17 +1,9 @@
|
|||||||
export default {
|
import { defineConfig } from 'astro/config'
|
||||||
// projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
|
import svelte from '@astrojs/svelte';
|
||||||
// pages: './src/pages', // Path to Astro components, pages, and data
|
|
||||||
// dist: './dist', // When running `astro build`, path to final static output
|
export default defineConfig({
|
||||||
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
|
integrations: [
|
||||||
buildOptions: {
|
svelte(),
|
||||||
// site: 'http://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
|
|
||||||
// sitemap: true, // Generate sitemap (set to "false" to disable)
|
|
||||||
},
|
|
||||||
devOptions: {
|
|
||||||
// port: 3000, // The port to run the dev server on.
|
|
||||||
},
|
|
||||||
renderers: [
|
|
||||||
'@astrojs/renderer-react',
|
|
||||||
'@astrojs/renderer-svelte',
|
|
||||||
],
|
],
|
||||||
};
|
|
||||||
|
});
|
@ -16,6 +16,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/renderer-svelte": "^0.1.1",
|
"@astrojs/renderer-svelte": "^0.1.1",
|
||||||
|
"@astrojs/svelte": "^0.1.4",
|
||||||
"@fortawesome/fontawesome-free": "^5.15.3",
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
||||||
"@mdi/font": "^5.9.55",
|
"@mdi/font": "^5.9.55",
|
||||||
"@mdi/js": "^5.9.55",
|
"@mdi/js": "^5.9.55",
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
to { opacity: 1; }
|
to { opacity: 1; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="/js/particles.min.js"/>
|
<script is:inline src="/js/particles.min.js"/>
|
||||||
<div id="pjs"></div>
|
<div id="pjs"></div>
|
||||||
<script>
|
<script>
|
||||||
particlesJS.load('pjs', '/particlesjs-config.json');
|
particlesJS.load('pjs', '/particlesjs-config.json');
|
||||||
|
@ -36,7 +36,7 @@ const {title} = Astro.props;
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Sometimes some js is needed. Load font awesome -->
|
<!-- Sometimes some js is needed. Load font awesome -->
|
||||||
<script src="/js/fa-all.min.js"/>
|
<script is:inline src="/js/fa-all.min.js"/>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -47,7 +47,7 @@ const { title, description, publishDate} = content;
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- Sometimes some js is needed. Load font awesome -->
|
<!-- Sometimes some js is needed. Load font awesome -->
|
||||||
<script src="/js/fa-all.min.js"/>
|
<script is:inline src="/js/fa-all.min.js"/>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
import ProjectPostPreview from '../components/ProjectPostPreview.astro';
|
import ProjectPostPreview from '../components/ProjectPostPreview.astro';
|
||||||
|
|
||||||
let allPosts = Astro.fetchContent('posts/*.md');
|
let allPosts = await Astro.glob('./posts/*.md');
|
||||||
allPosts.sort((a,b) => new Date(b.publishDate) - new Date(a.publishDate));
|
//allPosts.sort((a,b) => new Date(b.publishDate) - new Date(a.publishDate));
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user