Merge pull request #44 from welpo/style/links-metadata-rehaul
💄 style: coloured links in paragraph; meta changes
This commit is contained in:
commit
c05b9b85b4
@ -92,12 +92,12 @@ html {
|
|||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
align-items:center;
|
|
||||||
justify-content:center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
max-width: var(--max-layout-width);
|
max-width: var(--max-layout-width);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -176,6 +176,7 @@ p {
|
|||||||
font-family: 'Source Serif Pro', serif;
|
font-family: 'Source Serif Pro', serif;
|
||||||
margin-top: 0.4rem;
|
margin-top: 0.4rem;
|
||||||
margin-bottom: 2.3vmin;
|
margin-bottom: 2.3vmin;
|
||||||
|
line-height: 2rem;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +77,13 @@ header {
|
|||||||
padding-bottom: 1vmin;
|
padding-bottom: 1vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.meta a {
|
||||||
|
color: var(--meta-color);
|
||||||
|
text-decoration-color: none;
|
||||||
|
font-weight: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.card-meta {
|
.card-meta {
|
||||||
color: var(--meta-color);
|
color: var(--meta-color);
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,10 @@
|
|||||||
color: var(--hover-color);
|
color: var(--hover-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav.tags {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
@ -60,6 +64,12 @@ a {
|
|||||||
font-weight: 580;
|
font-weight: 580;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p a {
|
||||||
|
color: var(--accent-color);
|
||||||
|
text-decoration: inherit;
|
||||||
|
font-weight: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
background-color: var(--primary-color);
|
background-color: var(--primary-color);
|
||||||
color: var(--hover-color);
|
color: var(--hover-color);
|
||||||
|
@ -86,36 +86,33 @@
|
|||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
</div>
|
</div>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
{% if page.date %}
|
|
||||||
Posted on {{ page.date | date(format=config.extra.timeformat) }}
|
|
||||||
•
|
|
||||||
{% endif %}
|
|
||||||
<span> {{ page.reading_time }} minute read</span>
|
|
||||||
{% if page.draft %}
|
{% if page.draft %}
|
||||||
<span class="draft-label">DRAFT</span>
|
<span class="draft-label">DRAFT</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.date %}
|
||||||
|
{{ page.date | date(format=config.extra.timeformat) }} •
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<span> {{ page.reading_time }} minute read{% if page.taxonomies and page.taxonomies.tags %} {%
|
||||||
|
endif %}</span>
|
||||||
|
|
||||||
{% if page.taxonomies and page.taxonomies.tags %}
|
{% if page.taxonomies and page.taxonomies.tags %}
|
||||||
<div class="post-tags">
|
<nav class="nav tags"> • Categories:
|
||||||
<nav class="nav tags">
|
|
||||||
{% for tag in page.taxonomies.tags %}
|
{% for tag in page.taxonomies.tags %}
|
||||||
<svg class="tags-item-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
|
<a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a>{% if not loop.last %},
|
||||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
{% endif %}
|
||||||
<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path>
|
|
||||||
<line x1="7" y1="7" x2="7.01" y2="7"></line>
|
|
||||||
</svg>
|
|
||||||
<a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if page.extra.tldr %}
|
{% if page.extra.tldr %}
|
||||||
<div class="tldr">
|
<div class="tldr">
|
||||||
<strong>tl;dr:</strong>
|
<h3>TL;DR:</h3>
|
||||||
{{ page.extra.tldr }}
|
<p>{{ page.extra.tldr }}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user