diff --git a/assets/css/_bs-load.scss b/assets/css/_bs-load.scss index 2064da5..992adc5 100644 --- a/assets/css/_bs-load.scss +++ b/assets/css/_bs-load.scss @@ -30,7 +30,7 @@ @import "../../node_modules/bootstrap/scss/card"; // @import "../../node_modules/bootstrap/scss/accordion"; // @import "../../node_modules/bootstrap/scss/breadcrumb"; -// @import "../../node_modules/bootstrap/scss/pagination"; +@import "../../node_modules/bootstrap/scss/pagination"; // @import "../../node_modules/bootstrap/scss/badge"; // @import "../../node_modules/bootstrap/scss/alert"; // @import "../../node_modules/bootstrap/scss/progress"; diff --git a/assets/css/_layout-top-navbar-main.scss b/assets/css/_layout-top-navbar-main.scss index 7a7fc66..ef3c4fc 100644 --- a/assets/css/_layout-top-navbar-main.scss +++ b/assets/css/_layout-top-navbar-main.scss @@ -12,11 +12,15 @@ padding-left: var(--bs-gutter-x, 4rem); } @include media-breakpoint-up(xxl) { + // min-width: 1400px; max-width: 1400px; } } } .container-lg { + // @include media-breakpoint-up(lg) { + // min-width: 960px; + // } @include media-breakpoint-up(xl) { max-width: 960px; } @@ -32,6 +36,9 @@ main.rdnyc-single-outer { @extend .mt-md-4; @extend .d-flex; @extend .justify-content-center; + & > div.content { + @extend .w-100; + } } /* diff --git a/assets/css/app.scss b/assets/css/app.scss index 5eabc96..e411269 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -107,7 +107,7 @@ article.post.sticky { margin-bottom: 2rem !important; } header.post-header { - @extend .card-header; + @extend .card-body; @extend .pb-0; } div.post-body { @@ -119,6 +119,13 @@ article.post.sticky { } } } +.post-header { + .post-title, .post-title a { + -ms-word-wrap: break-word; + word-wrap: break-word; + } +} + .more-link-outer { @extend .text-end; @extend .mb-0; @@ -289,6 +296,34 @@ table { } } } +.post-page-numbers { + @extend .page-item; + &.current { + @extend .active; + & .page-link { + background-color: shade-color($primary, 25%) !important; + border-color: shade-color($primary, 25%) !important; + color: $gray-100; + &:hover { + background-color: shade-color($primary, 25%) !important; + border-color: shade-color($primary, 25%) !important; + color: $gray-100; + } + } + } + &:hover { + @extend .text-decoration-none; + } + & .page-link { + border: 1px solid shade-color($primary, 25%); + background-color: inherit !important; + &:hover { + border: 1px solid #51A39F; + background-color: #51A39F !important; + color: $spaceblue-800; + } + } +} // &:not(.is-style-outline) { // @extend .btn-primary; diff --git a/content-templates/content-article.php b/content-templates/content-article.php index 6f99b13..6a2a48a 100644 --- a/content-templates/content-article.php +++ b/content-templates/content-article.php @@ -9,36 +9,63 @@ namespace WP_RDNYC; ?> -
+
itemscope itemtype="https://schema.org/CreativeWork">
-

' + : '

'); + + if ( is_archive() || is_search() || is_home() ) : printf( '%s', esc_url( get_the_permalink() ), esc_html( get_the_title() ) ); - } else { - echo get_the_title(); - } ?> -

+ else : echo esc_html( get_the_title() ); + endif; + echo (is_page() ? '' : ''); + ?> + + +
'rounded shadow mb-3 mw-100 h-auto'] ); - } + if ( has_post_thumbnail() ) { + echo get_the_post_thumbnail( get_the_ID(), 'large', ['class' => 'rounded shadow mb-3 mw-100 h-auto'] ); + } - the_content(); ?> + the_content(); + + wp_link_pages( + array( + 'before' => '', + 'link_before' => '', + 'link_after' => '' + ) + ); + ?>
+
diff --git a/header.php b/header.php index e0712c7..2ae7945 100644 --- a/header.php +++ b/header.php @@ -21,6 +21,9 @@ namespace WP_RDNYC; + + + diff --git a/index.php b/index.php index bcaa1fd..946cba8 100644 --- a/index.php +++ b/index.php @@ -11,33 +11,35 @@ namespace WP_RDNYC; get_header(); ?>
- -

- -

- - - - +
- +

+ +

- + + + + + + + +