Skip to content

Commit 36bef86

Browse files
committed
Fix issues and add h-entry microformat
1 parent 2e08d76 commit 36bef86

File tree

7 files changed

+29
-22
lines changed

7 files changed

+29
-22
lines changed

_components/postDetails.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="post-details">
2-
<p>By Andreu Botella</p>
2+
<p>By <span class="p-author">Andreu Botella</span></p>
33
{% if published %}
4-
<p><time datetime="{{ date.toISOString() }}">{{ date | date("HUMAN_DATE") }}</time></p>
4+
<p><time class="dt-published" datetime="{{ date.toISOString() }}">{{ date | date("HUMAN_DATE") }}</time></p>
55
{% else %}
66
<p>Not yet published</p>
77
{% endif %}
@@ -12,7 +12,7 @@
1212
<p>Tags:</p>
1313
<ul>
1414
{% for tag in tags %}
15-
<li><a href="/blog/tag/{{ tag | slugify | urlencode }}/">{{ tag }}</a></li>
15+
<li><a class="p-category" href="/blog/tag/{{ tag | slugify | urlencode }}/">{{ tag }}</a></li>
1616
{% endfor %}
1717
</ul>
1818
{% else %}

_includes/blog-archive.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ additional_css:
2626
{% for post in results %}
2727
<article>
2828
<header>
29-
<h1><a href="{{ post.data.url }}">{{ post.data.title | md(true) | safe }}</a></h1>
29+
<h2><a href="{{ post.data.url }}">{{ post.data.title | md(true) | safe }}</a></h2>
3030
{{ comp.postDetails(post.data) | safe }}
3131
</header>
3232
<div class="summary">

_includes/blog-post.njk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ layout: layout.njk
33
additional_css:
44
- /styles/blog.css
55
---
6-
<main>
6+
<main class="h-entry">
77
<header>
8-
<h1>{{ title | md(true) | safe }}</h1>
8+
<h1 class="p-name">{{ title | md(true) | safe }}</h1>
99
{# We're including the component with Nunjucks rather than using Lume
1010
# components because we need it to pick up the local variables in this
1111
# template (which are the post's data). #}
1212
{% include "../_components/postDetails.njk" %}
1313
</header>
1414

15-
{{ content | safe }}
15+
<div class="e-content">
16+
{{ content | safe }}
17+
</div>
1618
</main>

_includes/home-layout.njk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ additional_css:
88
</main>
99

1010
<nav id="socials">
11-
<h1>Contact</h1>
11+
<h2>Contact</h2>
1212

1313
<dl>
1414
<dt id="social-mastodon" title="Mastodon">Mastodon:</dd>
15-
<dd><a target="_new" rel="me" href="https://mastodon.andreubotella.com/@andreu">@[email protected]</a></dd>
15+
<dd><a target="_blank" rel="me" href="https://mastodon.andreubotella.com/@andreu">@[email protected]</a></dd>
1616
<dt id="social-github" title="GitHub">GitHub:</dt>
17-
<dd><a target="_new" href="https://github.com/andreubotella">andreubotella</a></dd>
17+
<dd><a target="_blank" href="https://github.com/andreubotella">andreubotella</a></dd>
1818
<dt id="social-matrix" title="Matrix">Matrix:</dt>
1919
<dd>
20-
<a target="_new" href="https://matrix.to/#/@abotella:igalia.com">@abotella:igalia.com</a>
20+
<a target="_blank" href="https://matrix.to/#/@abotella:igalia.com">@abotella:igalia.com</a>
2121
</dd>
2222
<dt id="social-linkedin" title="LinkedIn">LinkedIn:</dt>
2323
<dd>
24-
<a target="_new" href="https://www.linkedin.com/in/andreu-botella-botella">Andreu Botella</a>
24+
<a target="_blank" href="https://www.linkedin.com/in/andreu-botella-botella">Andreu Botella</a>
2525
</dd>
2626
<dt id="social-email" title="Email">Email:</dt>
2727
<dd>
28-
<a target="_new" href="mailto:andreu&#x040;andreubotella.com">andreu&#x040;andreubotella.com</a>
28+
<a target="_blank" href="mailto:andreu&#x040;andreubotella.com">andreu&#x040;andreubotella.com</a>
2929
(personal)
3030
</dd>
3131
<dd>
32-
<a target="_new" href="mailto:abotella&#x040;igalia.com">abotella&#x040;igalia.com</a>
32+
<a target="_blank" href="mailto:abotella&#x040;igalia.com">abotella&#x040;igalia.com</a>
3333
(work)
3434
</dd>
3535
<dt id="social-pubkey" title="Public key">Public key:</dt>
3636
<dd>
37-
<a target="_new" href="https://keys.mailvelope.com/pks/lookup?op=get&search=0x3CC8BD9D9311F58F87979B565D4FFE9260FAA4E9">
37+
<a target="_blank" href="https://keys.mailvelope.com/pks/lookup?op=get&search=0x3CC8BD9D9311F58F87979B565D4FFE9260FAA4E9">
3838
<code>3CC8 BD9D 9311 F58F 8797 9B56 5D4F FE92 60FA A4E9</code>
3939
</a>
4040
</dd>

_includes/talks-layout.njk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ additional_css:
1111

1212
{% for talk in talks %}
1313
<section class="talk" id="{{ talk.name | md(true) | striptags | slugify }}">
14-
<h1>{{ talk.name | md(true) | safe }}</h1>
14+
<h2>{{ talk.name | md(true) | safe }}</h2>
1515

1616
{% if talk.coSpeakers %}
1717
<p><em>(given together with
@@ -22,7 +22,7 @@ additional_css:
2222
,
2323
{%- endif %}
2424
{% if cospeaker.url %}
25-
<a target="_new" href="{{ cospeaker.url }}">{{ cospeaker.name }}</a>
25+
<a target="_blank" href="{{ cospeaker.url }}">{{ cospeaker.name }}</a>
2626
{%- else %}
2727
{{ cospeaker.name }}
2828
{%- endif %}
@@ -39,7 +39,7 @@ additional_css:
3939
{% else %}
4040
<dt>Part of:</dt>
4141
{% endif %}
42-
<dd><a target="_new" href="{{ talk.event.url }}">{{ talk.event.name }}</a></dd>
42+
<dd><a target="_blank" href="{{ talk.event.url }}">{{ talk.event.name }}</a></dd>
4343
<dt>Date:</dt>
4444
{% if (talk.date | string) === talk.date %}
4545
<dd>{{ talk.date }}</dd>
@@ -52,12 +52,12 @@ additional_css:
5252
<dd>{{ talk.length }}</dd>
5353
{% if talk.url %}
5454
<dt>Link:</dt>
55-
<dd><a target="_new" href={{ talk.url }}>{{ talk.url }}</a></dd>
55+
<dd><a target="_blank" href={{ talk.url }}>{{ talk.url }}</a></dd>
5656
{% endif %}
5757
{% if (talk.type != "interview") or talk.slides %}
5858
<dt>Slides:</dt>
5959
{% if talk.slides %}
60-
<dd><a target="_new" href="{{ talk.slides }}">{{ talk.slides }}</a></dd>
60+
<dd><a target="_blank" href="{{ talk.slides }}">{{ talk.slides }}</a></dd>
6161
{% else %}
6262
<dd>TODO</dd>
6363
{% endif %}
@@ -67,7 +67,7 @@ additional_css:
6767
{% if talk.youtubeId %}
6868
<iframe class="youtube"
6969
src="https://www.youtube-nocookie.com/embed/{{ talk.youtubeId }}"
70-
title="YouTube video player: {{ talk.name | md(true) | striptags(true) }}" frameborder="0"
70+
title="YouTube video player: {{ talk.name | md(true) | striptags(true) }}"
7171
allow="picture-in-picture; web-share" allowfullscreen></iframe>
7272
{% else %}
7373
<p>(Youtube video pending)</p>

static/styles/home-page.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ body {
2525
}
2626

2727
#container main,
28-
#socials h1 {
28+
#socials h2 {
2929
text-align: center;
3030
}
3131

@@ -38,6 +38,10 @@ body {
3838
background: radial-gradient(farthest-side at bottom right, #fff, 80%, #fff0);
3939
}
4040

41+
#socials h2 {
42+
font-size: 1.75rem;
43+
}
44+
4145
#socials > dl {
4246
display: grid;
4347
grid-template-columns: auto 1fr;

static/styles/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ code {
195195
iframe.youtube {
196196
display: block;
197197
margin: auto;
198+
border: none;
198199
width: 75%;
199200
max-width: 560px;
200201
aspect-ratio: 16/9;

0 commit comments

Comments
 (0)