-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
41 lines (38 loc) · 1.5 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php get_header();
if (is_home() && get_option('page_for_posts') ) {
$page_for_posts = get_option( 'page_for_posts' );
$img = wp_get_attachment_image_src( get_post_thumbnail_id( $page_for_posts ), 'full' );
$featured_image = $img[0];
}
?>
<?php
// $dominant_color = get_post_meta( $page_for_posts, 'dominant_color', true );
// $dominant_color_css = str_replace('[', 'background-color:rgb(', $dominant_color);
// $dominant_color_css = str_replace(']', ')', $dominant_color_css);
?>
<!--
<div class="thumbnail-wrapper" style="<?php // echo $dominant_color_css; ?>">
<img src="<?php // echo $featured_image; ?>">
</div>
-->
<main role="main" class="container blog-home">
<h2 class="blog-title">Botwiki Blog</h2>
<div class="mt-5">
<!-- <h1><?php
// _e( 'Latest posts', 'botwiki' ); ?>
</h1> -->
<?php get_template_part('loop-blog'); ?>
<?php get_template_part('pagination'); ?>
<div class="blog-more">
<h3>Wait, there's more!</h3>
<ul>
<li>follow us at <a href="https://mastodon.social/@botwiki">@botwiki</a></li>
<li>keep up with new bots and blog updates via <a href="https://botsin.space/@newonbotwiki">@newonbotwiki</a></li>
<li>subscribe to our <a href="/botwiki-weekly-digest/">weekly digest</a></li>
<li>check out our <a href="/learn/#blogs-and-websites">blogroll</a></li>
<li><a href="/about/team">meet the team</a></li>
</ul>
</div>
</div>
</main>
<?php get_footer(); ?>