Skip to content

Instantly share code, notes, and snippets.

@Sulcalibur
Last active August 29, 2015 14:12
Show Gist options
  • Save Sulcalibur/48a34d1951e9e621de43 to your computer and use it in GitHub Desktop.
Save Sulcalibur/48a34d1951e9e621de43 to your computer and use it in GitHub Desktop.
extends ./layout.jade
block content
include _header
.content: .inner
.articles
!= dev ? "" : "<?php if (have_posts()) : while (have_posts()) : the_post(); ?>"
.article
.date!= dev ? "2014年10月8日" : "<?php echo get_the_date(); ?>"
.title: a(href!="<?php the_permalink(); ?>")!= dev ? "タイトル欄" : "<?php the_title(); ?>"
.body
.hero!= "<?php the_post_thumbnail('large'); ?>"
if dev
p= lorem(100)
else
!= " <?php the_content('続きを読む'); ?>"
.tags!= "<?php the_tags() ?>"
ul.social
li: include _twitter_button.html
li: include _facebook_button.html
.comment-link
a(href!= dev ? "#" : "<?php the_permalink(); ?>#disqus_thread") コメントする
!= dev ? "" : "<?php endwhile; else : ?>"
unless dev
.article
.date NOT FOUND
.title 記事が見つかりませんでした
.body: p: a(href!= dev ? "#" : "<?php echo home_url('/'); ?>") トップページに戻る
!= dev ? "" : "<?php endif; ?>"
include _pager
include _sidebar
include _footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment