fix asset paths
This commit is contained in:
parent
5195ee7acd
commit
42ac9ee2b6
3 changed files with 11 additions and 7 deletions
|
@ -131,7 +131,7 @@ export default async (config) => {
|
|||
|
||||
config.addPlugin(EleventyFeedPlugin, {
|
||||
type: "atom", // "atom", ""rss", or "json"
|
||||
outputPath: "/feed.xml",
|
||||
outputPath: "/assets/feed.xml",
|
||||
collection: {
|
||||
name: "posts", // iterate over `collections.posts`
|
||||
limit: 0, // 0 means no limit
|
||||
|
@ -151,11 +151,15 @@ export default async (config) => {
|
|||
|
||||
config.addPlugin(EleventyVitePlugin, {
|
||||
viteOptions: {
|
||||
appType: "mpa",
|
||||
publicDir: "assets/",
|
||||
server: {
|
||||
port: 8080,
|
||||
middleWareMode: true,
|
||||
},
|
||||
build: {
|
||||
mode: "production",
|
||||
emptyOutDir: true,
|
||||
sourcemap: true,
|
||||
},
|
||||
plugins: [ViteMinifyPlugin({})],
|
||||
|
|
|
@ -11,7 +11,7 @@ title: Joshua's Homepage
|
|||
<link rel="stylesheet" href="{{ "/site.css" | url }}"/>
|
||||
<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="/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="webmention" href="https://webmention.io/joshua.seigler.net/webmention"/>
|
||||
<title>{{ computedTitle }} - {{ site.title }}</title>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
---
|
||||
permalink: /sitemap.xml
|
||||
permalink: /assets/sitemap.xml
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for page in collections.all %}
|
||||
{% if not page.data.draft and page.url %}
|
||||
{%- for page in collections.all -%}
|
||||
{%- if not page.data.draft and page.url %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url | url }}</loc>
|
||||
<lastmod>{{ page.date.toISOString() }}</lastmod>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
{%- endfor %}
|
||||
</urlset>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue