This commit is contained in:
parent
90a7b890cb
commit
bbcc854df0
1
.gitignore
vendored
1
.gitignore
vendored
@ -116,3 +116,4 @@ dist
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
package-lock.json
|
@ -1,17 +1,9 @@
|
||||
export default {
|
||||
// projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
|
||||
// pages: './src/pages', // Path to Astro components, pages, and data
|
||||
// dist: './dist', // When running `astro build`, path to final static output
|
||||
// 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.
|
||||
buildOptions: {
|
||||
// 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',
|
||||
import { defineConfig } from 'astro/config'
|
||||
import svelte from '@astrojs/svelte';
|
||||
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
svelte(),
|
||||
],
|
||||
};
|
||||
|
||||
});
|
@ -16,6 +16,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@astrojs/renderer-svelte": "^0.1.1",
|
||||
"@astrojs/svelte": "^0.1.4",
|
||||
"@fortawesome/fontawesome-free": "^5.15.3",
|
||||
"@mdi/font": "^5.9.55",
|
||||
"@mdi/js": "^5.9.55",
|
||||
|
@ -12,7 +12,7 @@
|
||||
to { opacity: 1; }
|
||||
}
|
||||
</style>
|
||||
<script src="/js/particles.min.js"/>
|
||||
<script is:inline src="/js/particles.min.js"/>
|
||||
<div id="pjs"></div>
|
||||
<script>
|
||||
particlesJS.load('pjs', '/particlesjs-config.json');
|
||||
|
@ -36,7 +36,7 @@ const {title} = Astro.props;
|
||||
</style>
|
||||
|
||||
<!-- 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>
|
||||
<body>
|
||||
|
@ -47,7 +47,7 @@ const { title, description, publishDate} = content;
|
||||
</style>
|
||||
|
||||
<!-- 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>
|
||||
<body>
|
||||
|
@ -2,8 +2,8 @@
|
||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||
import ProjectPostPreview from '../components/ProjectPostPreview.astro';
|
||||
|
||||
let allPosts = Astro.fetchContent('posts/*.md');
|
||||
allPosts.sort((a,b) => new Date(b.publishDate) - new Date(a.publishDate));
|
||||
let allPosts = await Astro.glob('./posts/*.md');
|
||||
//allPosts.sort((a,b) => new Date(b.publishDate) - new Date(a.publishDate));
|
||||
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user