-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·53 lines (44 loc) · 1.25 KB
/
index.php
File metadata and controls
executable file
·53 lines (44 loc) · 1.25 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* type slim
*
* @package
* @author luckyscript
* @version 0.0.1
* @link https://www.luckyscript
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<section>
<div class="container">
<div class="content">
<form method="post">
<h2>Search</h2>
<p><input type="text" name="s" class="text" autofocus autocomplete="off"/></p>
<p><button type="submit" class="submit"><?php _e('search'); ?></button></p>
</form>
</div>
</div>
</section>
<section class="section">
<div class="container">
<?php while($this->next()): ?>
<article>
<h1 class="title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
<h2 class="subtitle is-5"><?php $this->date('F j, Y'); ?></h2>
<div class="content">
<?php $this->excerpt(280, '[...]'); ?>
<a class="button is-link" href="<?php $this->permalink() ?>" style="height:28px">
Read more
<span class="icon is-small">
<i class="fa fa-angle-double-right"></i>
</span>
</a>
</div>
</article>
<?php endwhile; ?>
</div>
<?php $this->pageNav('«', '»'); ?>
</section>
<?php $this->need('footer.php'); ?>