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">
{% if page.name == "index.md" %}
{% include_relative ../README.md %}
<!-- yay i'm NOT stupid -->
{% else %}
{{ content }}
{% endif %}
@ -65,7 +65,7 @@
</footer>
</div>
<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>
function httpGet(theUrl)
@ -75,7 +75,7 @@
xmlHttp.send( null );
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>
{% endif %}
{% if site.google_analytics %}