view.twig

来自「博客系统源码 博客系统源码 博客系统源码」· TWIG 代码 · 共 30 行

TWIG
30
字号
{% extends "layouts/default.twig" %}{% block content %}                {% if not post.next.no_results %}<a class="right next_post" href="$post.next.url">${ post.next.title | truncate(40) } &rarr;</a>{% endif %}                {% if not post.prev.no_results %}<a class="left prev_post" href="$post.prev.url">&larr; ${ post.prev.title | truncate(40) }</a>{% endif %}                <div class="clear"></div>{% include "feathers/" ~ post.feather ~ ".twig" %}{% if enabled_modules.comments %}                <br />                <h2 class="comments">${ "Comments" | translate }</h2>                {% if post.comment_count > 0 %}                <ol class="comments" id="comments_$post.id">                    {% paginate comment in site.comments_per_page post.comments as comments %}{% include "content/comment.twig" %}{% endpaginate %}                </ol>                <input type="hidden" name="last_comment" value="$post.latest_comment" id="last_comment" />                $comments.prev_link                $comments.next_link                {% if comments.pages > 1 %}                <span class="pages">${ "Page %d of %d" | translate | format(comments.page, comments.pages) }</span>                {% endif %}                {% endif %}                {% if post.commentable %}                {% include "forms/comment/new.twig" %}                {% endif %}                {% if post.comment_status == "closed" %}                ${ "Comments are not accepted on this entry." | translate }                {% endif %}{% endif %}{% endblock %}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?