mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
fix: search result
This commit is contained in:
parent
316cf1da39
commit
2650bb6654
@ -12,7 +12,7 @@
|
||||
<li>Доступ к текущей странице невозможен, возможно, у нее нет разрешения или она была удалена.</li>
|
||||
<li>現在のページにアクセスできない、権限がない、または削除された可能性があります。</li>
|
||||
</ul>
|
||||
<p class="text-center"><a href="<?php $this->options->siteUrl(); ?>" role="button" class="secondary"><?php _e('回首页'); ?></a></p>
|
||||
<p class="text-center"><a href="<?php $this->options->siteUrl(); ?>" role="button" class="outline"><?php _e('回首页'); ?></a></p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
@ -13,32 +13,29 @@
|
||||
<div class="text-center">
|
||||
<?php \Widget\Metas\Category\Rows::alloc()->listCategories('wrapClass=list-inline'); ?>
|
||||
</div>
|
||||
|
||||
<?php while ($this->next()): ?>
|
||||
|
||||
<hr class="post-separator">
|
||||
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while ($this->next()): ?>
|
||||
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<header class="entry-header text-center">
|
||||
<h1 class="entry-title" itemprop="name headline"><a href="<?php $this->permalink() ?>" itemprop="url"><?php $this->title() ?></a></h1>
|
||||
<ul class="entry-meta list-inline text-muted">
|
||||
<li><i data-feather="calendar" class="is-sm me-2"></i><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li>
|
||||
<li><i data-feather="folder" class="is-sm me-2"></i><?php $this->category(', '); ?></li>
|
||||
<li><i data-feather="message-circle" class="is-sm me-2"></i><a href="<?php $this->permalink() ?>#comments" itemprop="discussionUrl"><?php $this->commentsNum('暂无评论', '1 条评论', '%d 条评论'); ?></a></li>
|
||||
</ul>
|
||||
</header>
|
||||
<?php postMeta($this); ?>
|
||||
|
||||
<div class="entry-content fmt" itemprop="articleBody">
|
||||
<?php $this->content('阅读剩余部分'); ?>
|
||||
<?php $this->content('阅读全文'); ?>
|
||||
</div>
|
||||
</article>
|
||||
<hr class="post-separator">
|
||||
<?php endwhile; ?>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
<article class="post">
|
||||
<div class="entry-content fmt text-center" itemprop="articleBody">
|
||||
<p><?php _e('没有找到内容'); ?></p>
|
||||
</div>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- <div class="text-center">
|
||||
<a href="#">« Older Posts</a>
|
||||
<span class="mx-2 text-muted">·</span>
|
||||
<a href="#">Newer Posts »</a>
|
||||
</div> -->
|
||||
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
|
||||
</main>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user