Browse Source

desk: move post feed to /desk/posts/ Query Loop page, add Feed button, width 1280

- Created a /desk/posts/ child page (DB) rendering the post feed as a native
  Query Loop block (first block-migration step; 'feed' slug is WP-reserved so
  the page slug is 'posts', button labeled Feed).
- page-desk.php: removed the bottom classic query_posts feed container; added a
  'Feed' button beside 'The Archive'.
- Constrained body.desk .container.leader to max-width 1280px to match the
  block pages' align:wide width.
windhamdavid 1 week ago
parent
commit
c89e84f47a
3 changed files with 7 additions and 26 deletions
  1. 2 26
      page-desk.php
  2. 5 0
      style.css
  3. 0 0
      v4-style.min.css

+ 2 - 26
page-desk.php

@@ -83,33 +83,9 @@ get_header(); ?>
 			</div>
 			</div>
 
 
       <div class="float-end mt-3">
       <div class="float-end mt-3">
-      <div class="row mb-3">
-
-        </div>
-			  <a href="/archive/" type="button" class="btn btn-dark float-end">๐Ÿ‘‰๐Ÿผ The Archive</a>
+        <a href="/desk/posts/" type="button" class="btn btn-dark" style="margin-right:.5rem">Feed</a>
+        <a href="/archive/" type="button" class="btn btn-dark">๐Ÿ‘‰๐Ÿผ The Archive</a>
       </div>
       </div>
 		</div>
 		</div>
 	</div>
 	</div>
-	<div class="container">
-		<div id="content" role="main">
-			<main id="main" class="site-main" role="main">
-			<?php query_posts('showposts=10'); ?>
-			<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-			<article id="content" class="single" role="main">
-				<div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-					<div class="entry-content">
-						<div class="date">
-							<time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_date('n/j/Y'); ?></time>
-						</div>
-						<span class="author vcard"><span class="fn">David A. Windham</span></span>
-						<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
-						<?php the_content(); ?>
-						<div class="clear">&nbsp;</div>
-					</div>
-				</div>
-			</article>
-			<?php endwhile; ?>
-			</main>
-		</div>
-	</div>
 <?php get_footer('home'); ?>
 <?php get_footer('home'); ?>

+ 5 - 0
style.css

@@ -239,6 +239,11 @@ h4.spread {
   margin-left: auto;
   margin-left: auto;
   word-wrap: break-word;
   word-wrap: break-word;
 }
 }
+/* Desk main content: match the block pages' align:wide width (1280px) */
+body.desk .container.leader {
+  width: auto;
+  max-width: 1280px;
+}
 @media (max-width: 667px) {
 @media (max-width: 667px) {
 	body {
 	body {
 
 

File diff suppressed because it is too large
+ 0 - 0
v4-style.min.css


Some files were not shown because too many files changed in this diff