fixing new things in astro
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Thomas Cole 2022-05-31 22:55:42 -04:00
parent 90a7b890cb
commit bbcc854df0
7 changed files with 15 additions and 21 deletions

1
.gitignore vendored
View File

@ -116,3 +116,4 @@ dist
.yarn/install-state.gz
.pnp.*
package-lock.json

View File

@ -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 dont 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(),
],
};
});

View File

@ -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",

View File

@ -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');

View File

@ -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>

View File

@ -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>

View File

@ -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));
---