Skip to content

Commit 134b838

Browse files
committed
Once more trying to fix downloads...
1 parent fa19b70 commit 134b838

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config/_default/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ taxonomies:
4848
sensor: sensors
4949
material: materials
5050

51-
ignorefiles: "generated/.*\\.md"
51+
ignorefiles: "generated/.*\\.html"
5252

5353
enableEmoji: true
5454
markup:

content/en/instructions/elevator/elevator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ This experiment allows for many variations, such as using it while climbing stai
9999

100100
## Worksheets / material
101101

102-
* Worksheet by Solmaz Khodaeifaal (Simon Fraser University): [docx](files/elevator_khodaeifaal.docx), [pdf](files/elevator_khodaeifaal.pdf)
102+
* Worksheet by Solmaz Khodaeifaal (Simon Fraser University): [docx](../files/elevator_khodaeifaal.docx), [pdf](../files/elevator_khodaeifaal.pdf)
103103

104104
We are always happy to receive and share your worksheets. Get in touch with us at [email protected]
105105

layouts/partials/download.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
console.log(currentFileName)
1212

1313
// data types NO CATCH FOR NONEXISTENT FILES; provide everything listed here with pandoc
14-
const fileTypes = ["pdf", "tex", "html", "odt", "docx"];
14+
const fileTypes = ["pdf", "tex", "odt", "docx"];
1515

1616
// dropdown-menu dynamically filled with the aforementioned list
1717
const fileTypeSelect = document.getElementById('fileType');
@@ -32,7 +32,7 @@
3232

3333
function downloadFile() {
3434
const fileType = document.getElementById('fileType').value;
35-
window.location.href = "generated/"+fileType;
36-
window.location.download = "generated/"+fileType;
35+
window.location.href = "../generated/"+fileType;
36+
window.location.download = "../generated/"+fileType;
3737
}
3838
</script>

0 commit comments

Comments
 (0)