diff options
author | Cara Salter <cara@devcara.com> | 2022-04-07 11:30:57 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-04-07 11:31:23 -0400 |
commit | e7cf09322988983b6a0f05116af92e538dbd391c (patch) | |
tree | 3ae6fcb7297e33b90add3120ee8e5a2f7843b06b /templates/post.rs.html | |
parent | 716f68afd8fd3db5c0285939840a3adee04dc0dc (diff) | |
download | site-e7cf09322988983b6a0f05116af92e538dbd391c.tar.gz site-e7cf09322988983b6a0f05116af92e538dbd391c.zip |
templates: Initial h-card and h-entry support
Diffstat (limited to 'templates/post.rs.html')
-rw-r--r-- | templates/post.rs.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/templates/post.rs.html b/templates/post.rs.html index 321dbec..2823b3b 100644 --- a/templates/post.rs.html +++ b/templates/post.rs.html @@ -5,12 +5,17 @@ @:header_html(Some(&post.front_matter.title.clone()), None) -<h1>@post.front_matter.title.clone()</h1> -<span> - <small>Posted @post.clone().date.format("%B %d %Y") by - @post.clone().author</small> -</span> +<article class="h-entry"> + <h1 class="p-name">@post.front_matter.title.clone()</h1> + <span> + <small>Posted <time class="dt-published" + datetime="@post.clone().date.format("%F + %T")">@post.clone().date.format("%d %B %Y") by + <div class="p-author + h-card">@post.clone().author</div></small> + </span> -@body + @body +</article> @:footer_html() |