modify archive title styling, bring archive title into index.php and remove archive.php

This commit is contained in:
Adam Piontek 2021-07-10 11:06:12 -04:00
parent 2ac3f742b5
commit 4cd43d6ab6
3 changed files with 15 additions and 37 deletions

View file

@ -1,29 +0,0 @@
<?php
/**
* The default archive page template.
*
* @author Adam Piontek
* @since 1.0.0
*/
namespace WP_73k;
get_header(); ?>
<main class="container d-flex justify-content-center">
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
<h1><?= get_the_archive_title(); ?></h1>
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
echo get_template_part( 'content-templates/content', 'article' );
}
}
?>
</div>
</main>
<?php
get_footer();

View file

@ -51,9 +51,6 @@ a {
border-bottom: none !important; border-bottom: none !important;
} }
/* navbar menus */
// nav.navbar ul.navbar-nav li.menu-item
/* more */ /* more */
.border-gray-900 { .border-gray-900 {
border-color: $gray-900 !important; border-color: $gray-900 !important;
@ -105,6 +102,12 @@ a {
@extend .mb-0; @extend .mb-0;
margin-top: -0.5rem; margin-top: -0.5rem;
} }
.tek-border-bottom-gray-dashed {
@extend .border-bottom;
// @extend .border-gray;
border-bottom-color: $gray-500 !important;
border-bottom-style: dashed !important;
}
/* front page styles */ /* front page styles */
#tek-front-page img.wp-post-image { #tek-front-page img.wp-post-image {
@ -153,9 +156,9 @@ a {
margin-bottom: 2rem; margin-bottom: 2rem;
} }
.tek-employer { .tek-employer {
@extend .border-bottom; @extend .tek-border-bottom-gray-dashed;
@extend .border-gray; @extend .text-gray-300;
border-bottom-style: dashed !important; @extend .fst-italic;
} }
} }

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* The default single page template. * The default archive page template.
* *
* @author Adam Piontek * @author Adam Piontek
* @since 1.0.0 * @since 1.0.0
@ -12,7 +12,11 @@ get_header(); ?>
<main class="container d-flex justify-content-center"> <main class="container d-flex justify-content-center">
<div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3"> <div class="col-12 col-md-10 col-lg-9 col-xl-8 col-xxl-7 pb-2 mb-4 mt-3">
<?php if (is_archive()) { ?>
<h1 class="text-gray-300 fst-italic mb-4 tek-border-bottom-gray-dashed"><?= get_the_archive_title(); ?></h1>
<?php <?php
}
if ( have_posts() ) { if ( have_posts() ) {
while ( have_posts() ) { while ( have_posts() ) {
the_post(); the_post();
@ -38,4 +42,4 @@ get_header(); ?>
</div> </div>
</main> </main>
<?php <?php
get_footer(); get_footer();