Various fixes to microformats2 tags
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Yarmo Mackenbach 2020-06-13 23:04:11 +02:00
parent dfebb27ce0
commit 4a5621b81c
5 changed files with 31 additions and 21 deletions

View File

@ -140,37 +140,37 @@ blockquote strong em {
header.h-card { header.h-card {
margin-bottom: 64px; margin-bottom: 64px;
} }
.h-card { header.h-card {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
} }
.h-card .header-image { header.h-card .header-image {
flex: 1; flex: 1;
flex-basis: auto; flex-basis: auto;
margin: 8px 32px 8px 0; margin: 8px 32px 8px 0;
text-align: center; text-align: center;
} }
.h-card .header-description { header.h-card .header-description {
flex: 100; flex: 100;
flex-basis: auto; flex-basis: auto;
/* min-width: 360px; */ /* min-width: 360px; */
margin: 8px 0; margin: 8px 0;
/* text-align: center; */ /* text-align: center; */
} }
.h-card .profile-picture { header.h-card .profile-picture {
max-width: 160px; max-width: 160px;
border-radius: 100%; border-radius: 100%;
} }
.h-card h1 { header.h-card h1 {
font-size: 1.4em; font-size: 1.4em;
margin: 0 0 16px; margin: 0 0 16px;
} }
.h-card p { header.h-card p {
font-size: 1.1em; font-size: 1.1em;
margin: 0 0 8px; margin: 0 0 8px;
} }
.h-card .social a { header.h-card .social a {
display: inline-block; display: inline-block;
width: 20px; width: 20px;
height: 20px; height: 20px;

View File

@ -6,8 +6,13 @@ block content
| Back to: | Back to:
a(href="/") blog a(href="/") blog
article.longform article.longform.h-entry
h1 !{$post['title']} h1.p-name !{$post['title']}
p.longform__header Posted on !{$post['date_formatted']} by !{$post['author']} p.longform__header
.longform__content | Posted on
time(datetime="{$post['date']}").dt-published !{$post['date_formatted']}
| by
a(href="/" rel="author").p-author.h-card !{$post['author']}
.longform__content.e-content
| !{$post['content']} | !{$post['content']}

View File

@ -3,9 +3,9 @@ extends layout
mixin entry($item) mixin entry($item)
article.longform_list__item.h-entry article.longform_list__item.h-entry
p p
a(href="{$item['urlrel']}").p-name !{$item['title']} a(href="{$item['urlrel']}").p-name.u-url !{$item['title']}
br br
| On | Posted on
time(datetime="{$item['date']}").dt-published !{$item['date_formatted']} time(datetime="{$item['date']}").dt-published !{$item['date_formatted']}
block content block content

View File

@ -3,9 +3,9 @@ extends layout
mixin entry($item) mixin entry($item)
article.longform_list__item.h-entry article.longform_list__item.h-entry
p p
a(href="{$item['urlrel']}").p-name !{$item['title']} a(href="{$item['urlrel']}").p-nameu-url !{$item['title']}
br br
| On | Posted on
time(datetime="{$item['date']}").dt-published !{$item['date_formatted']} time(datetime="{$item['date']}").dt-published !{$item['date_formatted']}
block content block content

View File

@ -7,9 +7,14 @@ block content
a(href="/about") about me a(href="/about") about me
| > | >
a(href="/notes") notes a(href="/notes") notes
article.longform article.longform.h-entry
h1 !{$post['title']} h1.p-name !{$post['title']}
p.longform__header Posted on !{$post['date_formatted']} by !{$post['author']} p.longform__header
.longform__content | Posted on
| !{$post['content']} time(datetime="{$post['date']}").dt-published !{$post['date_formatted']}
| by
a(href="/" rel="author").p-author.h-card !{$post['author']}
.longform__content.e-content
| !{$post['content']}