|
|
@@ -13,41 +13,32 @@ get_header(); ?>
|
|
|
</div>
|
|
|
<div class="desk" role="main">
|
|
|
<div class="entry-content">
|
|
|
- <div class="row mt-3">
|
|
|
- <div class="col-lg-7">
|
|
|
- <h4 class="fw-bold mt-4 mb-1">Doing</h4>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-lg-8">
|
|
|
+ <h4 class="fw-bold mb-1">Now</h4>
|
|
|
<ul class="now-doing" style="margin:0">
|
|
|
<?php now(); ?>
|
|
|
</ul>
|
|
|
+ <div class="row mt-3">
|
|
|
+ <div class="col-md-6 studio-tools">
|
|
|
+ <h4 class="fw-bold">Posts</h4>
|
|
|
+ <ul>
|
|
|
+ <?php $recentposts = get_posts('numberposts=18'); foreach ($recentposts as $post) : setup_postdata($post); ?>
|
|
|
+ <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="col-md-6 studio-tools d-lg-block">
|
|
|
+ <h4 class="fw-bold">Today I Learned</h4>
|
|
|
+ <ul>
|
|
|
+ <?php pull_til(18); ?>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="col-lg-4 offset-md-1">
|
|
|
- <h4 class="fw-bold mt-2">Projects</h4>
|
|
|
- <ul style="margin:0">
|
|
|
- <?php $recentposts = get_posts(array( 'category_name' => 'studio', 'numberposts' => 8, 'offset' => 0 ) ); foreach ($recentposts as $post) : setup_postdata($post); ?>
|
|
|
- <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
|
|
|
- <?php endforeach; ?>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- Desk index row: WP-side archive/topics/tags + halved TIL/Recent Posts/Bookmarks pulls -->
|
|
|
- <div class="row mt-3">
|
|
|
- <div class="col-md-4 studio-tools">
|
|
|
- <h4 class="fw-bold">Recent Posts</h4>
|
|
|
- <ul>
|
|
|
- <?php $recentposts = get_posts('numberposts=35'); foreach ($recentposts as $post) : setup_postdata($post); ?>
|
|
|
- <li style="color:#777"><?php echo get_the_date('y/m/d'); ?> - <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
|
|
|
- <?php endforeach; ?>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <div class="col-md-4 studio-tools d-lg-block">
|
|
|
- <h4 class="fw-bold">Today I Learned</h4>
|
|
|
- <ul>
|
|
|
- <?php pull_til(35); ?>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <div class="col-md-4 studio-tools desk-meta">
|
|
|
+ <div class="col-lg-4 studio-tools desk-meta">
|
|
|
<?php $sticky = get_option('sticky_posts'); if( !empty($sticky) ){ ?>
|
|
|
- <h4 class="fw-bold">Recently ( Edited )</h4>
|
|
|
+ <h4 class="fw-bold">Edited</h4>
|
|
|
<ul>
|
|
|
<?php $args = array('post_type' => 'post', 'orderby' => 'modified', 'posts_per_page' => 5,'post__in' => $sticky);?>
|
|
|
<?php $stickyposts = get_posts($args); foreach ($stickyposts as $post) : setup_postdata($post); ?>
|
|
|
@@ -55,7 +46,7 @@ get_header(); ?>
|
|
|
<?php endforeach; ?>
|
|
|
</ul>
|
|
|
<?php } ?>
|
|
|
- <h4 class="fw-bold">Recent Bookmarks</h4>
|
|
|
+ <h4 class="fw-bold mt-4">Bookmarks</h4>
|
|
|
<ul>
|
|
|
<?php bookmarks_pull(14); ?>
|
|
|
</ul>
|
|
|
@@ -63,18 +54,6 @@ get_header(); ?>
|
|
|
<ul class="tags">
|
|
|
<?php wp_get_archives( array( 'type' => 'yearly', 'format' => 'custom', 'before' => '', 'after' => ', ' ) ); ?>
|
|
|
</ul>
|
|
|
- <h4 class="fw-bold">Topics</h4>
|
|
|
- <ul class="tags">
|
|
|
- <?php $cats = get_categories( array( 'orderby' => 'name', 'exclude' => array( 1, 7, 44 ) ) ); foreach ( $cats as $cat ) : ?>
|
|
|
- <a href="<?php echo esc_url( get_category_link( $cat->term_id ) ); ?>" title="<?php echo esc_attr( $cat->name ); ?>"><?php echo esc_html( $cat->name ); ?></a>,
|
|
|
- <?php endforeach; ?>
|
|
|
- </ul>
|
|
|
- <h4 class="fw-bold">Tags</h4>
|
|
|
- <ul class="tags">
|
|
|
- <?php $tags = get_tags(); if ( $tags ) : foreach ( $tags as $tag ) : ?>
|
|
|
- <a href="<?php echo esc_url( get_tag_link( $tag->term_id ) ); ?>" title="<?php echo esc_attr( $tag->name ); ?>"><?php echo esc_html( $tag->name ); ?></a>,
|
|
|
- <?php endforeach; endif; ?>
|
|
|
- </ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row mt-3 pb-2">
|
|
|
@@ -137,7 +116,7 @@ get_header(); ?>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="d-flex desk-actions mt-3" style="width:100%;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.5rem">
|
|
|
+ <div class="d-flex desk-actions" style="width:100%;margin-top:3rem;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:.5rem">
|
|
|
<div style="flex:0 0 280px"><?php get_search_form(); ?></div>
|
|
|
<a href="/desk/posts/" type="button" class="btn btn-dark">The Scroll</a>
|
|
|
<a href="/archive/" type="button" class="btn btn-dark">๐๐ผ The Archive</a>
|