Open enyuka opened 4 years ago
/home/hogehoge/public_html/fugafuga/wp-content/themes/twentysixteen/single.php
<?php
if( date('U') - get_the_time('U') > 60*60*24*180 && in_category('244') ) { ?>
<div class="oldpostAttention">
<p>
この記事は<?php the_time('Y年n月j日') ?>に書かれたものです。<br />
現在は内容が古い可能性もありますのでご注意ください。
</p>
</div>
<?php } ?>
crayonの代わりにEnlighter使うようにした。あと、マークダウンをいい感じにWPに貼り付けしやすくるように↓で直した https://github.com/enyuka/blog/commit/1e533f15ab3811ec955ad823bb792d6894e33684
うっかりサーバ移行しちまったぜ。