記事タイトルをh2に

 ブログでは通常、日付にh2、記事タイトルにh3が付けられている。
 SEOを考えると記事タイトルにh2を付けた方が良い

記事HTML編集

<% if:with_date %><h2 class="date"><% article.createstamp | date_format("%Y年%m月%d日") %></h2><% /if %>
<div class="blogbody">
<h3 class="title"><a href="<% article.page_url %>" class="title"><% article.subject %></a></h3>
の部分を
<% if:with_date %><div class="date"><% article.createstamp | date_format("%Y年%m月%d日") %></div><% /if %>
<div class="blogbody">
<h2 class="title"><a href="<% article.page_url %>" class="title"><% article.subject %></a></h2>
に変更。

その際CSSのh2,dateとh3,titleも入れ替えること。

参考
 SEO:記事タイトルをh2に
2005年07月08日(金) 14:04:26 Modified by inqsite




スマートフォン版で見る