Skip to content

Commit

Permalink
Fix svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
efergus committed Jun 30, 2024
1 parent 19db7e0 commit 8f73562
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to GitHub Pages

on:
push:
branches: "main"
branches: "svelte-fix"

jobs:
build_site:
Expand Down Expand Up @@ -46,4 +46,4 @@ jobs:
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode
.svelte-kit

node_modules
node_modules
build
2 changes: 1 addition & 1 deletion src/lib/markdown/svelte-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm i -D @sveltejs/adapter-static
## Modify svelte.config.js

```js
import adapter from "@sveltejs/adapter-auto";
import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";

/** @type {import('@sveltejs/kit').Config} */
Expand Down
20 changes: 7 additions & 13 deletions src/routes/projects/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import Project from "$lib/components/Card.svelte";
import img from "$lib/assets/particlegrid/mol-representations.png";
import molecule from "$lib/assets/particlegrid/mol-representations.png";
</script>

<h1 class="emphasize">Projects and Writeups</h1>
Expand All @@ -9,7 +9,7 @@
<Project
title="Fermidle"
subtitle="why do they call them dle's when they're anything but?"
link="/fermidle"
link="https://eferg.us/fermidle"
>
<p>
How many golf balls would it take to fill the oceans? How many Empire
Expand Down Expand Up @@ -54,7 +54,7 @@
The overall process is is to go from SMILES string (a) to 3D grid (f). For
more info, take a look at the paper!
</p>
<img src={img} alt="The principle of ParticleGrid" />
<img src={molecule} alt="The principle of ParticleGrid" />
</Project>
<Project
title="Static Svlete on GitHub Pages"
Expand All @@ -68,23 +68,17 @@
much fluff, so that's what this is.
</p>
</Project>
<Project
title="No-JS dark mode toggle"
subtitle="Writeup"
link="/projects/dark-mode"
>
<!-- TODO: link -->
<Project title="No-JS dark mode toggle" subtitle="Writeup" link="">
<p>
Everyone knows dark mode is best. Or something. But what if... you had the
option to choose? Well, some brilliant people have decided to make that
dream a reality, and I decided to try doing it using only CSS, without
using any JS.
</p>
</Project>
<Project
title="No-JS mobile menu"
subtitle="Writeup"
link="/projects/mobile-menu"
>
<!-- TODO: link -->
<Project title="No-JS mobile menu" subtitle="Writeup" link="">
<p>
Mobile pop-out menus are super nice, but you'd expect to need JS for
something that complex. But what if... you didn't? Similarly to my no-JS
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
Expand Down

0 comments on commit 8f73562

Please sign in to comment.