modify archive title styling, bring archive title into index.php and remove archive.php
This commit is contained in:
parent
2ac3f742b5
commit
4cd43d6ab6
3 changed files with 15 additions and 37 deletions
29
archive.php
29
archive.php
|
@ -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();
|
|
@ -51,9 +51,6 @@ a {
|
|||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
/* navbar menus */
|
||||
// nav.navbar ul.navbar-nav li.menu-item
|
||||
|
||||
/* more */
|
||||
.border-gray-900 {
|
||||
border-color: $gray-900 !important;
|
||||
|
@ -105,6 +102,12 @@ a {
|
|||
@extend .mb-0;
|
||||
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 */
|
||||
#tek-front-page img.wp-post-image {
|
||||
|
@ -153,9 +156,9 @@ a {
|
|||
margin-bottom: 2rem;
|
||||
}
|
||||
.tek-employer {
|
||||
@extend .border-bottom;
|
||||
@extend .border-gray;
|
||||
border-bottom-style: dashed !important;
|
||||
@extend .tek-border-bottom-gray-dashed;
|
||||
@extend .text-gray-300;
|
||||
@extend .fst-italic;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* The default single page template.
|
||||
* The default archive page template.
|
||||
*
|
||||
* @author Adam Piontek
|
||||
* @since 1.0.0
|
||||
|
@ -12,7 +12,11 @@ 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">
|
||||
|
||||
<?php if (is_archive()) { ?>
|
||||
<h1 class="text-gray-300 fst-italic mb-4 tek-border-bottom-gray-dashed"><?= get_the_archive_title(); ?></h1>
|
||||
|
||||
<?php
|
||||
}
|
||||
if ( have_posts() ) {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
|
|
Loading…
Reference in a new issue