all repos — nasg @ 32d93d440e6ac29027a9727032e86b2bad2f3b5b

comments are back
Peter Molnar hello@petermolnar.eu
Sat, 03 Jun 2017 11:07:38 +0000
commit

32d93d440e6ac29027a9727032e86b2bad2f3b5b

parent

0904cd2b31c6e76e1fc1d3b0ce6599d6ecf5654d

4 files changed, 61 insertions(+), 44 deletions(-)

jump to
M block_comments.htmlblock_comments.html

@@ -1,47 +1,59 @@

-<section class="comments"> +<section class="comments h-feed"> {% if post.replies|length > 0 %} <h6 class="comments-replies"><a name="replies"></a>Replies</h6> <ol> {% for reply in post.replies %} - <li class="p-comment comment"> - <div class="comment-author p-author h-card vcard"> - {% if reply.author.url %} - <a class="url u-url" href="{{ reply.author.url }}"> + <li class="h-entry p-comment"> + <a class="u-url u-uuid" href="{{ site.url }}/{{ post.slug }}/#{{ reply.id }}" name="{{ reply.id }}"></a> + <header> + <div class="p-author h-card"> + {% if reply.author.url %} + <a class="url u-url" href="{{ reply.author.url }}"> + <span class="p-name fn">{{ reply.author.name }}</span> + </a> + {% else %} <span class="p-name fn">{{ reply.author.name }}</span> - </a> - {% else %} - <span class="p-name fn">{{ reply.author.name }}</span> - {% endif %} + {% endif %} + </div> <time class="dt-published" datetime="{{ reply.published|date("c") }}"> {{ reply.published|date("%Y-%m-%d %H:%M") }} </time> - </div> - <div class="comment-content e-content"> + </header> + <div class="e-content"> {{ reply.html }} </div> - {% if reply.source|length > 0 %} - <a href="{{ reply.source }}" class="u-repost-of">{{ reply.source }}</a> - {% endif %} - <a class="u-in-reply-to" href="{{ post.url }}"></a> + <footer> + {% if reply.source|length > 0 %} + <a href="{{ reply.source }}" class="u-repost-of">{{ reply.source }}</a> + {% endif %} + <a class="u-in-reply-to" href="{{ post.url }}"></a> + </footer </li> {% endfor %} </ol> {% endif %} {% if post.reacjis|length > 0 %} - <h6 class="comments-reacji"><a name="reacji"></a>Reacji</h6> + <h6 class="comments-reacji"><a name="reacji"></a>Reactions</h6> <dl> {% for reacji, replies in post.reacjis.items() %} <dt><a name="{{ reacji }}"></a>{{ reacji }}</dt> <dd> <ul> {% for reply in replies %} - <li class="p-comment comment reacji"> + <li class="p-comment h-entry "> + <a class="u-url u-uuid" href="{{ site.url }}/{{ post.slug }}/#{{ reply.id }}" name="{{ reply.id }}"></a> <time class="dt-published" datetime="{{ reply.published|date("c") }}"> {{ reply.published|date("%Y-%m-%d %H:%M") }} </time> - <span class="comment-author p-author h-card vcard"> - <a href="{{ reply.author.url }}" title="{{ reply.author.name }}">{{ reply.author.name }}</a> + <span class="p-author h-card"> + {% if reply.author.url %} + <a class="url u-url" href="{{ reply.author.url }}"> + <span class="p-name fn">{{ reply.author.name }}</span> + </a> + {% else %} + <span class="p-name fn">{{ reply.author.name }}</span> + {% endif %} </span> <a class="u-in-reply-to" href="{{ post.url }}"></a> </li>

@@ -51,5 +63,4 @@ </dd>

{% endfor %} </dl> {% endif %} - </section>
M rss.htmlrss.html

@@ -26,7 +26,7 @@

{% for post in posts %} <item> <title>{% if post.title %}{{ post.title }}{% endif%}</title> - <link>{{ site.url }}/{{ post.slug }}</link> + <link>{{ site.url }}/{{ post.slug }}/</link> <pubDate>{{ post.published|date("%a, %d %b %Y %T %z") }}</pubDate> <dc:creator><![CDATA[{{ post.author.name }}]]></dc:creator> <guid isPermaLink="true">{{ site.url }}/{{ post.slug }}</guid>
M singular.htmlsingular.html

@@ -11,7 +11,7 @@ {% else %}

<title>{{ post.name }} | {{ site.domain }}</title> {% endif %} - <link rel="canonical" href="{{ site.url }}/{{ post.slug }}" /> + <link rel="canonical" href="{{ site.url }}/{{ post.slug }}/" /> <link rel="shortlink" href="{{ site.url }}/{{ post.shortslug }}" /> <meta name="author" content="{{ post.author.name }}">

@@ -24,7 +24,7 @@ <meta property="og:site_name" content="{{ site.name }}" />

<meta property="og:title" content="{{ post.title }}" /> <meta property="og:type" content="blog" /> {% if post.modified %}<meta name="og:updated_time" content="{{ post.modified|date("c") }}" />{%endif%} - <meta property="og:url" content="{{ site.url }}/{{ post.shortslug }}" /> + <meta property="og:url" content="{{ site.url }}/{{ post.shortslug }}/" /> <meta name="DC.Format" content="text/html" /> <meta name="DC.Title" content="{{ post.title }}">

@@ -32,8 +32,8 @@ <meta name="DC.Creator" content="{{ post.author.name }}">

<meta name="DC.Description" content="{{ post.excerpt|default(post.title) }}"> <meta name="DC.Date" content="{{ post.published|date("%Y-%m-%d") }}"> <meta name="DC.Type" content="{{ dctype }}"> - <meta name="DC.Identifier" content="{{ site.url }}/{{ post.slug }}"> - <meta name="DC.Source" content="{{ site.url }}/{{ post.slug }}"> + <meta name="DC.Identifier" content="{{ site.url }}/{{ post.slug }}/"> + <meta name="DC.Source" content="{{ site.url }}/{{ post.slug }}/"> <meta name="DC.Language" content="{{ post.lang|default(site.lang) }}"> <meta name="DC.Rights" content="Copyright {{ post.published|date("%Y") }}, {{ post.author.name }} <{{ post.author.email }}>. All rights reserved.">

@@ -46,7 +46,7 @@ {% if post.reactions %}

<h1 class="reaction">{% include 'block_reaction.html' %}</h1> {% elif post.title|length %} <h1> - <a href="{{ site.url }}/{{ post.slug }}" title="{{ post.title }}"> + <a href="{{ site.url }}/{{ post.slug }}/" title="{{ post.title }}"> <span class="p-name">{{ post.title }}</span> </a> </h1>

@@ -92,7 +92,7 @@ <aside class="pubdate">

<h6 class="pubdate-title">Published</h6> <p> <a class="u-url u-uuid" href="{{ site.url}}/{{ post.slug }}/"></a> - <a title="{{ post.title }}" href="{{ site.url }}/{{ post.slug }}"> + <a title="{{ post.title }}" href="{{ site.url }}/{{ post.slug }}/"> <time class="dt-published" datetime="{{ post.published|date("c") }}"> {{ post.published|date("%Y-%m-%d %H:%M") }}

@@ -129,11 +129,12 @@ <a href="{{ site.url }}/{{ post.shortslug }}">{{ site.url }}/{{ post.shortslug }}</a>

</p> </aside> </footer> + + {% if ( post.comments ) %} + {% include 'block_comments.html' %} + {% endif %} + </article> - - {% if ( post.comments ) %} - {% include 'block_comments.html' %} - {% endif %} <aside class="content-note"> <hr />
M style.cssstyle.css

@@ -467,8 +467,7 @@ max-width: 72ch;

margin: 1rem auto; } -.h-entry, -.comments { +.h-entry { font-size: 0.86rem; padding: 0.6rem; /*! margin: 0 0 1rem 0; */

@@ -584,6 +583,7 @@ margin: 0;

} .h-entry footer h6, +.comments h6, .h-entry .footnotes hr:before { font-size: 0.8rem; margin: 1rem 0 0 0;

@@ -727,12 +727,15 @@ .footer-contact dl dd:first-of-type {

border-bottom: none; } -.comments { - font-size: 0.9rem; -} .comments ol li { - margin: 1rem 0 0 0; + margin: 0; + padding: 0.3rem; +} + +.comments ol li .e-content { + padding: 0; + margin: 0; } .comments ol li .p-name {

@@ -758,19 +761,21 @@ display:none;

visibility:hidden; } -.comments dl dt { - display: inline-block; - clear: both; - float:left; +.comments dl dt, +.comments dl dd, +.comments dl dd ul, +.comments dl dd ul li { + display: inline; } .comments dl dd ul { - padding: 0 0 0 1rem; + padding: 0; list-style-type: none; - display: inline-block; } + .comments dl dd li { - display: inline-block; + padding: 0 0.3rem; + font-size: 0.8rem; } .comments dl dd time {