Skip to content

Commit b12f4a9

Browse files
committed
Wrapped my frontpage up as an h-feed
1 parent e10436d commit b12f4a9

File tree

Image for: File tree

3 files changed

Image for: 3 files changed
+15
-5
lines changed

3 files changed

Image for: 3 files changed
+15
-5
lines changed

‎_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% if page.webmentionable != null %}<link rel="webmention" href="https://webmention.herokuapp.com/api/webmention" />{% endif %}
1616
</head>
1717
<body>
18-
<div class="page">
18+
<div class="page{% if page.frontpage != null %} h-feed{% endif %}">
1919
<header>
2020
<h1><a href="/">Pelle Wessman</a></h1>
2121
<div class="subtitle">Things <a {% if page.frontpage != null %}rel="me"{% endif %} href="/about">about me</a> and the world around us</div>

‎css/style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ ul.posts time,article footer,.webmention-published{color:#aaa;font-size:.8em}
2525
.indie-actions > indie-action {margin:0 0 -1px 6px;float:right}
2626
.indie-actions a{text-decoration: none}
2727
.subtome{text-align:center}
28-
.u-photo{width:20px;border-radius:20px;vertical-align:middle;position:relative;top:-2px;}
28+
.h-entry .u-photo{width:20px;border-radius:20px;vertical-align:middle;position:relative;top:-2px;}
29+
.h-feed .u-photo{width:80px;border-radius:80px;float:left;margin-right:20px;}
30+
.h-feed .h-card{overflow:hidden;padding-bottom:0;}
2931

3032
.webmention-mention{padding-left: 60px;position: relative}
3133
.webmention-mention:last-child{margin-bottom:0}

‎index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,24 @@ <h2>Blog Posts</h2>
99

1010
<ul class="posts">
1111
{% for post in site.posts %}
12-
<li>
13-
<a {% if post.lang == null %}lang="se"{% endif %} href="{{ post.url }}">{{ post.title }}</a>
14-
<time datetime="{{ post.date | date_to_xmlschema }}" pubdate>
12+
<li class="h-entry">
13+
<a {% if post.lang == null %}lang="se"{% endif %} class="p-name" href="{{ post.url }}">{{ post.title }}</a>
14+
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}" pubdate>
1515
- {{ post.date | date_to_string }}
1616
</time>
1717
</li>
1818
{% endfor %}
1919
</ul>
2020
</nav>
2121

22+
<section class="p-author h-card">
23+
<img class="u-photo" src="/avatar.jpg" alt="" />
24+
<p>
25+
Hi, I'm <a class="p-name u-url" rel="me" href="/">Pelle Wessman</a> and this is my blog.<br />
26+
Here I post whatever stuff I'm currently interested in, may it be coding, knitting, cooking – the future will tell.
27+
</p>
28+
</section>
29+
2230
<section>
2331
<h2>Subscribe</h2>
2432
<p>If you want to follow my blog in a feed reader then I've an <a href="/english.xml" type="application/atom+xml">english only</a> version of my feed as well as a feed with <a href="/all.xml" type="application/atom+xml">all posts</a>.</p>

0 commit comments

Image for: 0 commit comments
Comments
 (0)