Skip to content

Commit

Permalink
Fix url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kenakofer committed Jan 7, 2021
1 parent 34b9958 commit fececb4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
*.pdf
*.png
*.midi
/lilypond/**/*.midi
.DS_Store
_site
.bundle
.jekyll-cache
ruby-version
sass-cache/
*.swp
.ruby-version
.sass-cache/
Gemfile
Gemfile.lock
vendor/
2 changes: 1 addition & 1 deletion docs/_includes/navigation.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav>
<a href="/" {% if page.url == "/" %}style="color: red;"{% endif %}>Home</a><br />
<a href="/test_song" {% if page.url == "/test_song.html" %}style="color: red;"{% endif %}>A Song</a><br />
<a href="test-song.html" {% if page.url == "test-song.html" %}style="color: red;"{% endif %}>A Song</a><br />
</nav>
6 changes: 1 addition & 5 deletions docs/_layouts/song_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
<body>
<script>
window.song_filename = "{{ page.song_file }}";
{% if jekyll.environment == "production" %}
window.midi_url = "https://github.com/kenanbit/hymn-hosting/releases/latest/download/{{ page.song_file }}.midi";
{% else %}
window.midi_url = "http://127.0.0.1:4000/local_lilypond_outputs/{{ page.song_file }}.midi";
{% endif %}
window.midi_url = "local_lilypond_outputs/{{ page.song_file }}.midi";
function changeImage(variant) {
var img = document.getElementById("music_image");
img.src="https://github.com/kenanbit/hymn-hosting/releases/latest/download/{{ page.song_file }}-"+variant+".png";
Expand Down

0 comments on commit fececb4

Please sign in to comment.