mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
feat: amp
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{% import "macros.html" as macros %}
|
||||
{% extends "templates/base.html" %}
|
||||
|
||||
{% block title %}Coral AMP{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
<style>body { margin: 0; }</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div id='coralStreamEmbed'></div>
|
||||
{% if entrypoint.js %}
|
||||
{% for asset in entrypoint.js %}
|
||||
{{ macros.js(asset.src, asset.integrity, staticURI) }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<script>
|
||||
const CoralStreamEmbed = Coral.createStreamEmbed({
|
||||
id: "coralStreamEmbed",
|
||||
amp: true,
|
||||
});
|
||||
window.CoralStreamEmbed = CoralStreamEmbed;
|
||||
CoralStreamEmbed.render();
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user