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

12 lines
551 B
HTML
Raw Normal View History

{% import "githubLinks.html" as github -%}
{% set relativePath = doc.fileInfo.relativePath %}
{% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %}
{% if 'guide/' in relativePath or 'tutorial/' in relativePath or 'docs.md' in relativePath %}
<div class="page-actions">
<a href="{$ github.githubEditHref(doc, versionInfo) $}" aria-label="Suggest Edits" title="Suggest Edits"><i class="material-icons" aria-hidden="true" role="img">mode_edit</i></a>
</div>
{% endif %}
<div class="content">
{$ doc.description | marked $}
</div>