Skip to content

Instantly share code, notes, and snippets.

@tommorris
Created September 11, 2012 11:43
Show Gist options
  • Save tommorris/3697790 to your computer and use it in GitHub Desktop.
Save tommorris/3697790 to your computer and use it in GitHub Desktop.
<!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">&lt; A post</a>
<a href="/posts/3">Lorem ipsum &gt;</a>
</div>
</body>
</html>
@tommorris
Copy link
Author

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.

@LeifW
Copy link

LeifW commented Sep 12, 2012

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