Skip to content

Commit

Permalink
fix: use double quotes in directory listing html (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
flakey5 authored Nov 15, 2023
1 parent d75c442 commit 0e9ec8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/templates/directoryListing.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<html>
<head><title>Index of {{pathname}}</title></head>
<body>
<h1>Index of {{pathname}}</h1><hr /><pre><a href='../'>../</a>
<h1>Index of {{pathname}}</h1><hr><pre><a href="../">../</a>
{{#each entries}}
<a href='{{href}}'>{{name}}</a>{{displayNamePaddingRight}}
{{lastModified}}
{{size}}
<a href="{{href}}">{{name}}</a>{{displayNamePaddingRight}} {{lastModified}} {{size}}
{{/each}}
</pre><hr /></body>
</html>
</html>
2 changes: 1 addition & 1 deletion src/templates/directoryListing.out.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/e2e/test-data/expected-html/dist.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html><html>
<head><title>Index of /dist/</title></head>
<body>
<h1>Index of /dist/</h1><hr><pre><a href='../'>../</a>
<a href='latest/'>latest/</a> - -
<a href='/dist/index.json'>index.json</a> 2-Oct-2023 5:43 18 B
<h1>Index of /dist/</h1><hr><pre><a href="../">../</a>
<a href="latest/">latest/</a> - -
<a href="/dist/index.json">index.json</a> 2-Oct-2023 5:43 18 B
</pre><hr /></body>
</html>
</html>

0 comments on commit 0e9ec8b

Please sign in to comment.