Add page layout
This commit is contained in:
@@ -21,6 +21,7 @@ function windycoys_nav() {
|
|||||||
|
|
||||||
function windycoys_the_tags() {
|
function windycoys_the_tags() {
|
||||||
$tags = get_the_tags();
|
$tags = get_the_tags();
|
||||||
|
if (!$tags) return false;
|
||||||
// Suppress NewsNow tag
|
// Suppress NewsNow tag
|
||||||
foreach($tags as $key=>$tag) {
|
foreach($tags as $key=>$tag) {
|
||||||
if($tag->name === "newsnow") {
|
if($tag->name === "newsnow") {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="Article-content">
|
<div class="Article-content">
|
||||||
<?php the_content( __( 'Continue reading <span class="meta-nav">»</span>', 'windycoys' ) ); ?>
|
<?php the_content(__('Continue reading <span class="meta-nav">»</span>', 'windycoys')); ?>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
38
theme/page.php
Normal file
38
theme/page.php
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<?php get_header(); ?>
|
||||||
|
<main class="Grid">
|
||||||
|
<section class="Grid-logo">
|
||||||
|
<?php get_template_part('partials/logo') ?>
|
||||||
|
</section>
|
||||||
|
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
|
||||||
|
<section class="Grid-article">
|
||||||
|
<article class="Article">
|
||||||
|
<h1 class="Article-title">
|
||||||
|
<a href="<?php the_permalink(); ?>">
|
||||||
|
<?php the_title(); ?>
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
|
<div class="Article-content">
|
||||||
|
<?php the_content(__('Continue reading <span class="meta-nav">»</span>', 'windycoys')); ?>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
<?php else: ?>
|
||||||
|
<section class="Grid-article">
|
||||||
|
<article class="Article">
|
||||||
|
<h1 class="Article-title">Sorry, there is no article to display</h1>
|
||||||
|
<div class="Article-content">
|
||||||
|
<a class="Link" href="<?php get_site_url() ?>/">Go back home</a>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
<?php endif; ?>
|
||||||
|
<section class="Grid-banner">
|
||||||
|
<?php get_template_part('partials/banner') ?>
|
||||||
|
</section>
|
||||||
|
<section class="Grid-footer">
|
||||||
|
<?php get_template_part('partials/footer') ?>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
<?php get_template_part('partials/navigation') ?>
|
||||||
|
<?php get_footer() ?>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="Article-content">
|
<div class="Article-content">
|
||||||
<?php the_content( __( 'Continue reading <span class="meta-nav">»</span>', 'windycoys' ) ); ?>
|
<?php the_content(__('Continue reading <span class="meta-nav">»</span>', 'windycoys')); ?>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user