From b08effbe8b69e7a54535013444f0b73deb5d4b60 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 7 Oct 2019 17:11:35 -0400 Subject: [PATCH] Move layout-related code to separate component files --- themes/wporg-5ftf/archive.php | 50 +++++++++---------- .../css/components/_components.scss | 2 + themes/wporg-5ftf/css/components/_page.scss | 15 ------ .../css/components/_site-content.scss | 14 ++++++ .../css/components/_site-title.scss | 15 ++++++ 5 files changed, 55 insertions(+), 41 deletions(-) create mode 100644 themes/wporg-5ftf/css/components/_site-content.scss create mode 100644 themes/wporg-5ftf/css/components/_site-title.scss diff --git a/themes/wporg-5ftf/archive.php b/themes/wporg-5ftf/archive.php index 65154db..14b634b 100644 --- a/themes/wporg-5ftf/archive.php +++ b/themes/wporg-5ftf/archive.php @@ -10,43 +10,41 @@ if ( ! have_posts() ) { get_header(); ?> -
-
+
- - - + + - while ( have_posts() ) : - the_post(); + + get_template_part( 'template-parts/content', 'none' ); -
-
+ endif; + ?> + +