Link to AMP view if we're in a node

This commit is contained in:
Pablo Vazquez 2017-01-24 15:59:06 +01:00
parent 2b528f0fff
commit 0e07cb2b1d

View File

@ -38,6 +38,9 @@ meta(name="twitter:description", content="{{node.description}}")
| {% block head %}
link(href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.1/themes/default/style.min.css", rel="stylesheet")
| {% if node %}
link(rel="amphtml", href="{{ url_for('nodes.view', node_id=node._id, _external=True) }}?format=amp")
| {% endif %}
| {% endblock %}
| {% block css %}