xengineer’s diary

結果、メモ的な内容になっています。

エラー: Missing required field "updated".

こんにちは。

もう一つ運営してるブログのほうで、
前々から気づいてたんだけど、放置していた表題のエラー。
重い腰をあげて、ついてに直してみたんです。

あーがんばった。

ちなみに、↓↓ このブログ。

branch4 Blog

github pages で octopressで運用してるやーつ。

やったこと。
↓ このファイルに★印の行を追記。
source/_includes/post/date.html

{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %}
{% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %}
{% capture has_date %}{{ date | size }}{% endcapture %}

{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %}
{% capture updated_formatted %}{{ page.updated_formatted }}{{ post.updated_formatted }}{% endcapture %}
{% capture was_updated %}{{ updated | size }}{% endcapture %}

{% if has_date != '0' %}
  {% capture time %}<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}>{{ date_f    ormatted }}</time>{% endcapture %}
  <span class='updated' title="{{ date | datetime }}"></span>★
{% endif %}

{% if was_updated != '0' %}
  {% capture updated %}<time datetime="{{ updated | datetime | date_to_xmlschema }}" class="updated">Updated {{ updated_formatted }}</time>{% e    ndcapture %}
  <span class='updated' title="{{ date | datetime }}"></span>★
{% else %}{% assign updated = false %}{% endif %}

これで直った。かもしれない。
Webmaster tools、反映遅いからしばらく待って直ってなかったらまたなんかしよっと。