mirror of
https://github.com/tomfran/typo.git
synced 2025-04-26 13:39:55 +03:00
Added list summaries configuration, tweaked social icons margin on mobile
This commit is contained in:
parent
b372fcf6f2
commit
0a3f759770
4 changed files with 28 additions and 11 deletions
|
@ -154,6 +154,8 @@ homeCollection = 'posts'
|
||||||
|
|
||||||
# Pagination size across all website, this is the same for homepage and single list page
|
# Pagination size across all website, this is the same for homepage and single list page
|
||||||
paginationSize = 100
|
paginationSize = 100
|
||||||
|
# Display summaries under post list entries
|
||||||
|
listSummaries = false
|
||||||
|
|
||||||
# Social icons
|
# Social icons
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
|
|
|
@ -151,10 +151,6 @@ footer a {
|
||||||
|
|
||||||
/* Posts list */
|
/* Posts list */
|
||||||
|
|
||||||
.post-list-container {
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-line {
|
.post-line {
|
||||||
margin-bottom: .5rem;
|
margin-bottom: .5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -166,18 +162,27 @@ footer a {
|
||||||
margin-bottom: 0rem;
|
margin-bottom: 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-date {
|
.line-date {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
font-family: "Monaspace";
|
font-family: "Monaspace";
|
||||||
width: 110px;
|
min-width: 110px;
|
||||||
|
max-width: 110px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
|
margin-top: 0rem;
|
||||||
|
margin-bottom: 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title {
|
.line-title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.line-summary {
|
||||||
|
font-size: small;
|
||||||
|
margin-top: .2rem !important;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -209,7 +214,7 @@ footer a {
|
||||||
|
|
||||||
.social-icons {
|
.social-icons {
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
margin-bottom: 3rem;
|
margin-bottom: var(--social-icons-bottom-margin)
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-icons a {
|
.social-icons a {
|
||||||
|
|
|
@ -29,10 +29,13 @@
|
||||||
--toc-margin-top: 2rem;
|
--toc-margin-top: 2rem;
|
||||||
--toc-margin-bottom: 3rem;
|
--toc-margin-bottom: 3rem;
|
||||||
|
|
||||||
/* code */
|
/* Code */
|
||||||
--code-padding: 1.5rem;
|
--code-padding: 1.5rem;
|
||||||
--code-border-radius: 10px;
|
--code-border-radius: 10px;
|
||||||
|
|
||||||
|
/* Social section */
|
||||||
|
--social-icons-bottom-margin: 3rem;
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
--footer-height: 3rem;
|
--footer-height: 3rem;
|
||||||
|
|
||||||
|
@ -61,5 +64,6 @@
|
||||||
@media screen and (max-width: 640px) {
|
@media screen and (max-width: 640px) {
|
||||||
:root {
|
:root {
|
||||||
--header-top-gap: 1rem;
|
--header-top-gap: 1rem;
|
||||||
|
--social-icons-bottom-margin: 0rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,4 +1,10 @@
|
||||||
<div class="post-line">
|
<div class="post-line">
|
||||||
<p class="post-date">{{ .Date.Format "2 Jan 2006" }} </p>
|
<p class="line-date">{{ .Date.Format "2 Jan 2006" }} </p>
|
||||||
<p class="post-title"> <a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
|
<div>
|
||||||
|
<p class="line-title"> <a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
|
||||||
|
|
||||||
|
{{ if .Site.Params.listSummaries }}
|
||||||
|
<p class="line-summary"> {{ .Summary }} </p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Add table
Add a link
Reference in a new issue