Skip to content

Commit

Permalink
some formatting improvements again
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Drewery committed Jun 30, 2023
1 parent 2f817ae commit f3c8951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content/making-a-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ My solution to this was simply to configure a domain name to host from (in this

### Fix the routing

The other problem I had was that the routing wasn't working. I could navigate to the root of the site, but any other page would just return a 404. This is because the routing is handled by the blazor runtime, and the blazor runtime is a javascript file. And javascript files are not included in the artifact we uploaded to GitHub pages.
The other problem I had was that the routing wasn't working. I could navigate to the root of the site, but any other page would just return a 404. This is because the routing is handled by the blazor runtime, and the blazor runtime included in `index.html`.

So, I added a step to the build job to copy the blazor runtime into the release folder:
So, I added a step to the build job to copy the index page to `404.html`, which GitHub pages will use as the 404 page.

```yaml
- name: copy index.html to 404.html
Expand Down
2 changes: 1 addition & 1 deletion site/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<i class="mdi mdi-tag-text-outline"></i>
@foreach (var tag in post.Tags)
{
<a href="/tag/@tag">@delimiter @tag</a>
@delimiter <a href="/tag/@tag">@tag</a>
delimiter = ", ";
}
</li>
Expand Down

0 comments on commit f3c8951

Please sign in to comment.