angular-cn/aio/tools/transforms/templates/content.template.html

14 lines
421 B
HTML

{% import "lib/githubLinks.html" as github -%}
{% set relativePath = doc.fileInfo.relativePath %}
{% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %}
{% if '/' in relativePath or 'docs.md' in relativePath %}
<div class="github-links">
{$ github.githubEditLink(doc, versionInfo) $}
</div>
{% endif %}
{% block content %}
<div class="content">
{$ doc.description | marked $}
</div>
{% endblock %}