Created
September 11, 2012 11:43
-
-
Save tommorris/3697790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html | |
xmlns:foaf="http://xmlns.com/foaf/0.1/" | |
xmlns:sioc="http://rdfs.org/sioc/ns#" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:og="http://opengraphprotocol.org/schema/" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:schema="http://schema.org/" | |
xmlns:dcterms="http://purl.org/dc/terms/"> | |
<head> | |
<title>Blog test</title> | |
</head> | |
<body> | |
<p id="notice"></p> | |
<article instanceof="sioc:Post foaf:Document schema:BlogPosting" about="/posts/2" class="hentry"> | |
<h1 property="dcterms:title" class="entry-title"> | |
Another post | |
</h1> | |
<div class="meta"> | |
</div> | |
<div class="entry-content" property="schema:text sioc:content"> | |
<p>This is another post.</p> | |
</div> | |
<h2>Tags</h2> | |
<ul class="tags"> | |
</ul> | |
</article> | |
<div class="nextprev"> | |
<a href="/posts/1">< A post</a> | |
<a href="/posts/3">Lorem ipsum ></a> | |
</div> | |
</body> | |
</html> |
Thanks barnabywalters! I'm definitely going to do those things. Eventually, it'd be nice if we could get a microformats (+RDFa)-enabled blog post standard template so people don't have to think and can just copy, paste and load it into their CMS or crazy indieweb publishing systems.
I'm only used to RDFa 1.0 - this is HTML5 + RDFa 1.1? instanceof is the new typeof? I think the foaf ns is implicitly in scope in the default HTML profile of RDFa 1.1, though.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lookin' good! A couple of suggestions:
<article>
, could the title, meta and tags go in a<header>
for extra semantic fairydust?rel="tag"
URLs there yet, but when you add them remember it's the last URI segment which defines the tag<address>
-- I am guilty of not doing this (adds to TODO list)rel="next|prev"
, and if they do, should they go inside the<article>
?