on master help sign in
Adding post date/time
commit01d2da4a8eba9790d9984427bda6d638d772f8a7 authorMatilde Park <matilde@tlon.io> dateFri 30 Aug 2019, 12:40 (7 years ago) parentef5c1bc
2 files changed+21−4
sass/_main.scss+12−2 templates/page.html+9−2
sass/_main.scss+12−2
@@ -1,6 +1,8 @@
11@import "indigo";
22@import url('https://rsms.me/inter/inter-ui.css');
33
4+// layout
5+
46body {
57 @extend .sans, .f4, .grid12;
68 margin: 0 32px;
@@ -19,13 +21,21 @@ article {
1921}
2022
2123// components
24+ // images
25+img {
26+ max-width: 100%;
27+}
2228 // flatten headers
2329h1, h2, h3, h4, h5 {
2430 @extend .f4, .fw-bold;
2531}
26− // ship styling
32+ // author and ship styling
33+span[rel=author] {
34+ font-weight: 600;
35+ margin-right: 5px;
36+}
37+
2738address {
2839 display: inline;
2940 font-style: normal;
30− float: right;
3141}
templates/page.html+9−2
@@ -8,10 +8,17 @@
88<nav class="mt6"><a class="gray3" href="{{config.base_url}}">Urbit</a> <span class="gray3"> / </span><a href="{{config.base_url}}/posts/{{page.taxonomies.posts[0]}}">{{ page.taxonomies.posts[0] }}</a></nav>
99{% endif %}
1010 <article class="mt6 mb6">
11− <!-- <h4><code>&#126;{% if page.date %}{{ page.date | date(format="%Y.%m.%d") }}{% endif %}</code></h4> -->
1211 <h1>{{ page.title }}</h1>
1312 <!-- body -->
1413 {{ page.content | safe }}
15− {% if page.extra.author %} <span class="mt3" rel="author"> {{ page.extra.author }} </span> {% if page.extra.ship %} <address class="mono">{{ page.extra.ship }}</address>{% endif %} {% endif %}
14+ {% if page.extra.author %}
15+ <span class="mt3" rel="author"> {{ page.extra.author }} </span>
16+ {% if page.extra.ship %}
17+ <address class="mono">{{ page.extra.ship }}</address>
18+ {% endif %}
19+ {% if page.date %}
20+ <time class="mono block f5">~{{page.date}}</time>
21+ {% endif %}
22+ {% endif %}
1623 </article>
1724{% endblock content %}