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 .yarn/install-state.gz
.pnp.* .pnp.*
package-lock.json

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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