Update default.html

This commit is contained in:
Puyo 2021-05-04 02:26:38 +02:00 committed by GitHub
parent ea79b93494
commit 008b229981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@
<section id="content"> <section id="content">
{% if page.name == "index.md" %} {% if page.name == "index.md" %}
{% include_relative ../README.md %} <!-- yay i'm NOT stupid -->
{% else %} {% else %}
{{ content }} {{ content }}
{% endif %} {% endif %}
@ -65,7 +65,7 @@
</footer> </footer>
</div> </div>
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script> <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
{% if page.name == "your_mom.md" %} {% if page.name == "index.md" %}
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script> <script>
function httpGet(theUrl) function httpGet(theUrl)
@ -75,7 +75,7 @@
xmlHttp.send( null ); xmlHttp.send( null );
return xmlHttp.responseText; return xmlHttp.responseText;
} }
document.getElementById('content').innerHTML = marked(httpGet("{{ site.replace_index_with }}")); document.getElementById('content').innerHTML = marked(httpGet("https://thingproxy.freeboard.io/fetch/{{ site.replace_index_with }}"));
</script> </script>
{% endif %} {% endif %}
{% if site.google_analytics %} {% if site.google_analytics %}