-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathpage-tags.php
41 lines (39 loc) · 1.67 KB
/
page-tags.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* 标签页面
*
* @package custom
*/
use Widget\Metas\Tag\Cloud;
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('template-parts/header.php');
?>
<?php $this->need('template-parts/left.php'); ?>
<div class="col-md-12 col-lg-8" id="middle">
<?php $this->need('template-parts/navbar.php'); ?>
<div class="container-fluid p-4 d-flex flex-column row-gap-3">
<div class="card border-0 py-3 col-12">
<div class="d-flex column-gap-2">
<div class="card-body p-0 d-flex flex-column justify-content-between row-gap-1 overflow-hidden"
id="page-archive-category">
<h3><?php $this->title(); ?></h3>
<div class="row pb-5">
<div class="col-12">
<?php Cloud::alloc(["ignoreZeroCount" => "0", "limit" => "9999", "sort" => "count", "desc" => "1"])->to($tags); ?>
<div class="d-flex flex-wrap column-gap-4 row-gap-2">
<?php while ($tags->next()): ?>
<a href="<?php $tags->permalink(); ?>"
title="<?php $tags->name(); ?>(<?php $tags->count(); ?>)篇文章)">
<?php $tags->name(); ?>(<?php $tags->count(); ?>)
</a>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php $this->need('template-parts/right.php'); ?>
<?php $this->need('template-parts/footer.php'); ?>