Skip to content

Commit

Permalink
sapper bug(?): need to use underscore with slug
Browse files Browse the repository at this point in the history
for some reason, when using dashes in songs-arent-time-travel slug,
the songs-arent-time-travel.json isn't created in sapper
export.. which leads to a very confusing bug where navigating to the
piece from index fails with something like "json failed, unexpected <
character". *but*, when i navigate directly to that page, or refresh
the page, the load works. (i think this has to do with SPA-ish
navigation on links, as the actual index.html file _is_ built).

   5.26 kB   pieces/songs_arent_time_travel/index.html
   23.8 kB   pieces/arturo/index.html
   24.4 kB   pieces/arturo.json
   # when using dash slug, this file isn't created
   1.93 kB   pieces/songs_arent_time_travel.json
  • Loading branch information
zhammer committed Sep 29, 2020
1 parent 67467db commit b0b3b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pieces/songs-arent-time-travel.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: Songs Aren't Time Travel
slug: songs-arent-time-travel
slug: songs_arent_time_travel
date: 2016-05-19
description: ""

Expand Down

0 comments on commit b0b3b83

Please sign in to comment.