Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
134 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
$size__site-main: 100%; | ||
$size__site-sidebar: 25%; | ||
$size__max-width: 1080px; | ||
|
||
$size__ratio-small: 30%; | ||
$size__ratio-large: 60%; | ||
|
||
$query__small: 600px; | ||
$query__medium: 900px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* Template part for displaying posts. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package Humescores | ||
*/ | ||
|
||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
<header class="entry-header"> | ||
<?php humescores_the_category_list(); ?> | ||
<?php | ||
if ( is_single() ) : | ||
the_title( '<h1 class="entry-title">', '</h1>' ); | ||
else : | ||
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); | ||
endif; | ||
|
||
if ( 'post' === get_post_type() ) : ?> | ||
<div class="entry-meta"> | ||
<?php humescores_posted_on(); ?> | ||
</div><!-- .entry-meta --> | ||
<?php | ||
endif; ?> | ||
</header><!-- .entry-header --> | ||
|
||
<section class="post-content"> | ||
<div class="entry-content"> | ||
<?php | ||
the_content( sprintf( | ||
/* translators: %s: Name of current post. */ | ||
wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'humescores' ), array( 'span' => array( 'class' => array() ) ) ), | ||
the_title( '<span class="screen-reader-text">"', '"</span>', false ) | ||
) ); | ||
|
||
wp_link_pages( array( | ||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'humescores' ), | ||
'after' => '</div>', | ||
) ); | ||
?> | ||
</div><!-- .entry-content --> | ||
|
||
<footer class="entry-footer"> | ||
<?php humescores_entry_footer(); ?> | ||
</footer><!-- .entry-footer --> | ||
|
||
<?php | ||
humescores_post_navigation(); | ||
|
||
// If comments are open or we have at least one comment, load up the comment template. | ||
if ( comments_open() || get_comments_number() ) : | ||
comments_template(); | ||
endif; | ||
?> | ||
</section><!-- .post-content --> | ||
|
||
<?php | ||
get_sidebar(); | ||
?> | ||
</article><!-- #post-## --> |