Skip to content
Permalink
Browse files

Working on prev/next links

  • Loading branch information
ChrisWiegman committed Sep 22, 2020
1 parent a5cc564 commit cf97501f5e6bf46c962dc4b1970eea4d27adc2fa
Showing with 30 additions and 13 deletions.
  1. +1 −1 README.md
  2. +11 −0 theme/assets/scss/components/layout.scss
  3. +18 −12 theme/singular.php
@@ -68,4 +68,4 @@ You can run all testing (all lints and unit tests) together with the following:

```bash
make test
```
```w
@@ -114,6 +114,17 @@
}
}

.prevnext {

a.priv {
float: left;
}

a.next {
float: right;
}
}

.content-header {

clear: both;
@@ -1,4 +1,5 @@
<?php

/**
* Templates for individual posts and pages.
*
@@ -8,18 +9,18 @@
get_header();
?>

<article class = 'h-entry' itemscope = '' itemtype = 'http://schema.org/BlogPosting'>
<div class = 'content-header'>
<?php
the_title( '<h1 class="title post-title p-name" itemprop="name headline">', '</h1>' );
<article class='h-entry' itemscope='' itemtype='http://schema.org/BlogPosting'>
<div class='content-header'>
<?php
the_title( '<h1 class="title post-title p-name" itemprop="name headline">', '</h1>' );

if ( 'post' === get_post_type() ) {
printf( '<div class="meta"><a class="u-url" href="%s"><time class="dt-published">%s</time></a></dif>', esc_url( get_the_permalink() ), get_the_date( 'l, F jS, Y' ) );
}
?>
</div>
if ( 'post' === get_post_type() ) {
printf( '<div class="meta"><a class="u-url" href="%s"><time class="dt-published">%s</time></a></dif>', esc_url( get_the_permalink() ), get_the_date( 'l, F jS, Y' ) );
}
?>
</div>

<div class="content e-content" itemprop="articleBody">
<div class="content e-content" itemprop="articleBody">

<?php
if ( has_post_thumbnail() ) {
@@ -31,9 +32,14 @@
the_content();
?>

</div>
</div>

</article>
</article>

<div class="navigation prevnext">
<span class="prev"><?php previous_post_link(); ?></span>
<span class="next"><?php next_post_link(); ?></span>
</div>

<?php
get_footer();

0 comments on commit cf97501

Please sign in to comment.
You can’t perform that action at this time.