Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit 3b61117

Browse files
Changes in index and post thumbnails
1 parent cb5bf49 commit 3b61117

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

resources/templates/index.tpl.php

-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
<?php get_header() ?>
2-
<style>
3-
html, body {
4-
height: 100%;
5-
}
6-
7-
body {
8-
display: flex;
9-
align-items: center;
10-
justify-content: center;
11-
}
12-
13-
article {
14-
max-width: 300px;
15-
}
16-
</style>
17-
182
<?php do_action('theme/index/header') ?>
193

204
<main>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
<article>
2-
None
3-
</article>
1+
<?php
2+
3+
use function App\Theme\config;
4+
5+
?>
6+
7+
<section>
8+
<header>
9+
<h2><?= __('Nothing Found', config('textdomain')) ?></h2>
10+
</header>
11+
12+
<div><?php get_search_form() ?></div>
13+
</section>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
<article>
2-
<?php the_title() ?>
2+
<header>
3+
<h2><?php the_title() ?></h2>
4+
</header>
5+
6+
<div><?php the_content() ?></div>
7+
8+
<footer>
9+
<time><?php the_date() ?></time>
10+
</footer>
311
</article>

0 commit comments

Comments
 (0)