diff --git a/functions.php b/functions.php index 804b90e..aff0d1b 100644 --- a/functions.php +++ b/functions.php @@ -270,4 +270,24 @@ function custom_breadcrumbs() { } +} + +//paginate + +function list_pagination($count) +{ + global $wp_query; + $big = 99999999; + $paged = paginate_links(array( + 'base' => str_replace($big, '%#%', get_pagenum_link($big)), + 'format' => '?paged=%#%', + 'current' => max(1, get_query_var('paged')), + 'mid_size' => 0, + 'prev_next' => true, + 'prev_text' => __('<'), + 'next_text' => __('>'), + 'type' => 'list', + 'total' => $wp_query->max_num_pages + )); + echo $paged; } \ No newline at end of file diff --git a/header.php b/header.php index f78a1b2..d1d4a98 100644 --- a/header.php +++ b/header.php @@ -36,7 +36,7 @@ - Slowtwitch + Slowtwitch × diff --git a/search.php b/search.php new file mode 100644 index 0000000..98182c9 --- /dev/null +++ b/search.php @@ -0,0 +1,37 @@ + + + + + post_count; + if (have_posts()) { + while (have_posts()) { + the_post(); + $category = get_the_category()[0]; + $count++; + ?> + + + + + + name; ?> + + + + + + + + + + + + + \ No newline at end of file diff --git a/style.css b/style.css index a246a9b..ecdc864 100644 --- a/style.css +++ b/style.css @@ -47,6 +47,10 @@ h1 { transform-origin: top left; } +.st-site-title-link { + text-decoration: none; +} + .st-title-scrolled { transform: scale(0,0); } @@ -939,11 +943,17 @@ COMPONENTS } @media (min-width: 760px) { - .st-article-section-four-oh-four { + .st-article-section-four-oh-four, + .st-article-archives { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; } + + .st-article-archives .breadcrumbs, + .st-article-archives .pagination { + grid-column: 1/span 2; + } } @media (min-width: 1200px) { @@ -951,7 +961,59 @@ COMPONENTS font-size: 4rem; } - .st-article-section-four-oh-four { + .st-article-section-four-oh-four, + .st-article-archives { grid-template-columns: repeat(4, 1fr); } + + .st-article-archives .breadcrumbs, + .st-article-archives .pagination { + grid-column: 1/span 4; + } +} + +/* Pagination */ + +ul.page-numbers { + list-style: none; + margin: 0; + margin-bottom: .75em; + padding: 0; + display: flex; + justify-content: space-between; +} + +.page-numbers li { + min-width: 40px; + display: flex; + justify-content: center; + background-color: #0b4fa0; +} + +.page-numbers a { + text-decoration: none; + margin: 0; +} + +.page-numbers a, +.page-numbers .dots, +.page-numbers .current { + padding: .25em .4em; + background-color: #0b4fa0; +} + +.page-numbers .dots, +.page-numbers .current, +.st-nav-arrow, +a.page-numbers, +.page-numbers a:visited { + color: #fff; +} + +@media (min-width: 760px) { + ul.page-numbers { + justify-content: center; + gap: 1em; + margin: 1em 0; + } } \ No newline at end of file