fix asset paths

This commit is contained in:
Joshua Seigler 2025-06-29 14:47:50 -04:00
parent 5195ee7acd
commit 42ac9ee2b6
3 changed files with 11 additions and 7 deletions

View file

@ -131,7 +131,7 @@ export default async (config) => {
config.addPlugin(EleventyFeedPlugin, { config.addPlugin(EleventyFeedPlugin, {
type: "atom", // "atom", ""rss", or "json" type: "atom", // "atom", ""rss", or "json"
outputPath: "/feed.xml", outputPath: "/assets/feed.xml",
collection: { collection: {
name: "posts", // iterate over `collections.posts` name: "posts", // iterate over `collections.posts`
limit: 0, // 0 means no limit limit: 0, // 0 means no limit
@ -151,11 +151,15 @@ export default async (config) => {
config.addPlugin(EleventyVitePlugin, { config.addPlugin(EleventyVitePlugin, {
viteOptions: { viteOptions: {
appType: "mpa",
publicDir: "assets/",
server: { server: {
port: 8080, port: 8080,
middleWareMode: true,
}, },
build: { build: {
mode: "production", mode: "production",
emptyOutDir: true,
sourcemap: true, sourcemap: true,
}, },
plugins: [ViteMinifyPlugin({})], plugins: [ViteMinifyPlugin({})],

View file

@ -11,7 +11,7 @@ title: Joshua's Homepage
<link rel="stylesheet" href="{{ "/site.css" | url }}"/> <link rel="stylesheet" href="{{ "/site.css" | url }}"/>
<style>{% include "-inline-css.njk" %}</style> <style>{% include "-inline-css.njk" %}</style>
<script defer src="https://stats.apps.seigler.net/script.js" data-website-id="ccb4bd94-2a71-47fe-8eea-d85bf75b7f6d"></script> <script defer src="https://stats.apps.seigler.net/script.js" data-website-id="ccb4bd94-2a71-47fe-8eea-d85bf75b7f6d"></script>
<script defer src="/scripts/main.ts" type="module"></script> <script defer src="/scripts/main.js" type="module"></script>
<link rel="me" href="https://github.com/seigler"/> <link rel="me" href="https://github.com/seigler"/>
<link rel="webmention" href="https://webmention.io/joshua.seigler.net/webmention"/> <link rel="webmention" href="https://webmention.io/joshua.seigler.net/webmention"/>
<title>{{ computedTitle }} - {{ site.title }}</title> <title>{{ computedTitle }} - {{ site.title }}</title>

View file

@ -1,15 +1,15 @@
--- ---
permalink: /sitemap.xml permalink: /assets/sitemap.xml
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
--- ---
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in collections.all %} {%- for page in collections.all -%}
{% if not page.data.draft and page.url %} {%- if not page.data.draft and page.url %}
<url> <url>
<loc>{{ site.url }}{{ page.url | url }}</loc> <loc>{{ site.url }}{{ page.url | url }}</loc>
<lastmod>{{ page.date.toISOString() }}</lastmod> <lastmod>{{ page.date.toISOString() }}</lastmod>
</url> </url>
{% endif %} {%- endif -%}
{% endfor %} {%- endfor %}
</urlset> </urlset>