summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-04-07 11:30:57 -0400
committerCara Salter <cara@devcara.com>2022-04-07 11:31:23 -0400
commite7cf09322988983b6a0f05116af92e538dbd391c (patch)
tree3ae6fcb7297e33b90add3120ee8e5a2f7843b06b
parent716f68afd8fd3db5c0285939840a3adee04dc0dc (diff)
downloadsite-e7cf09322988983b6a0f05116af92e538dbd391c.tar.gz
site-e7cf09322988983b6a0f05116af92e538dbd391c.zip
templates: Initial h-card and h-entry support
-rw-r--r--Cargo.toml2
-rw-r--r--templates/index.rs.html7
-rw-r--r--templates/post.rs.html17
3 files changed, 16 insertions, 10 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5c15097..b628da5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "site"
-version = "0.1.0"
+version = "0.2.0"
edition = "2021"
build = "src/build.rs"
diff --git a/templates/index.rs.html b/templates/index.rs.html
index 31ed504..0b8ddc0 100644
--- a/templates/index.rs.html
+++ b/templates/index.rs.html
@@ -5,15 +5,15 @@
@:header_html(None, None)
<link rel="canonical" href="https://devcara.com">
-
- <h1>Cara Salter</h1>
+<div class="vcard h-card">
+ <h1 class="fn p-name">Cara Salter</h1>
<div class="two-column">
<div class="inner-column">
<h3>About me</h3>
I am a:
<ul>
- <li>Trans woman (she/her)</li>
+ <li>Trans <div class="p-gender-identity">woman</div> (she/her)</li>
<li>Eagle Scout</li>
<li>Software Engineer</li>
</ul>
@@ -69,4 +69,5 @@
</div>
</div>
+</div>
@:footer_html()
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()