empierre / romanes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scema.org article detail page

empierre opened this issue · comments

use DateTime::Format::ISO8601;
my $iso8601 = DateTime::Format::ISO8601->new(
base_datetime => $dt,
cut_off_year => 42,
legacy_year => 1,
);

++Tag author
++tag first picture
{
"@context": "http://schema.org",
"@type": "NewsArticle",
  "headline": "<TMPL_VAR NAME="photo_place">",
  "image": "http://romanes.com/images/Front_Page.jpg",
  "datePublished": "2018-01-01T08:00:00+08:00",
  "dateModified": "2018-01-10T09:20:00+08:00",
  "author": {
    "@type": "Person",
    "name": "<TMPL_VAR NAME="author">"
  },
   "publisher": {
    "@type": "Organization",
    "name": "Romanes.com",
    "logo": {
      "@type": "ImageObject",
      "url": "http://romanes.com/images/Front_Page.jpg"
    }
  },
  "description": "<TMPL_VAR NAME="photo_comment">"
}
</script>