This commit is contained in:
Alexandre Vicenzi 2021-02-25 21:56:48 +01:00
parent 181171399a
commit b8dda716d0
10 changed files with 119 additions and 44 deletions

View File

@ -3,10 +3,10 @@
<h1>Category: {{ .Title }}</h1> <h1>Category: {{ .Title }}</h1>
{{ range .Data.Pages -}} {{ range .Data.Pages -}}
<li> <li>
<span> <div class="flex">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</span> </div>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>

View File

@ -3,12 +3,12 @@
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ range .Data.Pages -}} {{ range .Data.Pages -}}
<li> <li>
<span> <div class="flex">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
{{ if eq .Kind "page" }} {{ if eq .Kind "page" }}
<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
{{ end }} {{ end }}
</span> </div>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>

View File

@ -5,7 +5,7 @@
{{ if ne .Type "page" -}} {{ if ne .Type "page" -}}
<div class="post-date"> <div class="post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> &middot; {{ .ReadingTime }} min read <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <span class="readtime">&middot; {{ .ReadingTime }} min read</span>
</div> </div>
{{- end }} {{- end }}
@ -18,11 +18,12 @@
{{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}} {{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}}
{{ partial "share.html" . }} {{ partial "share.html" . }}
{{- end }} {{- end }}
</div>
{{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}} {{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}}
<div class="comments">
<h2>Comments</h2> <h2>Comments</h2>
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
</div>
{{- end }} {{- end }}
</div>
{{- end }} {{- end }}

View File

@ -3,10 +3,10 @@
<h1>Tag: {{ .Title }}</h1> <h1>Tag: {{ .Title }}</h1>
{{ range .Data.Pages -}} {{ range .Data.Pages -}}
<li> <li>
<span> <div class="flex">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</span> </div>
</li> </li>
{{- end }} {{- end }}
</ul> </ul>

View File

@ -3,12 +3,16 @@
<div class="sidebar-about"> <div class="sidebar-about">
{{ with .Site.Params.gravatar }} {{ with .Site.Params.gravatar }}
<div class="author-image"> <div class="author-image">
<a href="{{ $.Site.BaseURL }}">
<img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar"> <img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar">
</a>
</div> </div>
{{ else }} {{ else }}
{{ with .Site.Params.profilePicture }} {{ with .Site.Params.profilePicture }}
<div class="author-image"> <div class="author-image">
<a href="{{ $.Site.BaseURL }}">
<img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture"> <img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture">
</a>
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,3 +1,4 @@
{{ if isset .Params "tags" }}
<div> <div>
<ul class="tags"> <ul class="tags">
{{- range $tag := $.Params.tags -}} {{- range $tag := $.Params.tags -}}
@ -11,3 +12,4 @@
{{- end -}} {{- end -}}
</ul> </ul>
</div> </div>
{{ end }}

View File

@ -8,6 +8,10 @@
border-color: {{ . }}; border-color: {{ . }};
} }
.read-more-link a:hover {
background-color: {{ . }};
}
.pagination li a { .pagination li a {
color: {{ . }}; color: {{ . }};
border: 1px solid {{ . }}; border: 1px solid {{ . }};

View File

@ -70,6 +70,7 @@ html {
footer { footer {
margin-left: 19rem !important; margin-left: 19rem !important;
margin-right: 1rem !important;
} }
} }
@ -109,8 +110,8 @@ a.sidebar-nav-item:focus {
*/ */
.content { .content {
padding-top: 2rem; padding-top: 1rem;
padding-bottom: 2rem; padding-bottom: 1rem;
min-height: 50%; min-height: 50%;
} }
@ -125,8 +126,8 @@ footer {
font-size: .7rem; font-size: .7rem;
text-align: center; text-align: center;
height: 40px; height: 40px;
margin: 2rem 1rem 0 1rem;
padding: 1rem 0; padding: 1rem 0;
margin: 0 1rem;
border-top: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0;
} }
@ -186,6 +187,8 @@ footer a,
.read-more-link a:hover { .read-more-link a:hover {
text-decoration: none; text-decoration: none;
color: #fff;
background-color: #49757a;
} }
.pull-right { .pull-right {
@ -194,6 +197,7 @@ footer a,
ul.posts { ul.posts {
list-style: none; list-style: none;
padding: 0 1rem;
} }
.social-icons, .social-icons,
@ -201,6 +205,29 @@ ul.posts {
margin-top: 1rem; margin-top: 1rem;
} }
ul.posts li,
.sidebar nav li {
font-size: 1.2rem;
padding: 0.25rem 0;
}
.social-icons a {
font-size: 1.5rem;
padding: 0.2rem;
}
@media (min-width: 58rem) {
.social-icons a {
font-size: 1.2rem;
}
ul.posts li,
.sidebar nav li {
font-size: inherit;
padding: 0;
}
}
.social-icons a, .social-icons a,
.social-icons a:hover, .social-icons a:hover,
.social-icons a:focus { .social-icons a:focus {
@ -273,7 +300,7 @@ ul.posts {
.share-buttons { .share-buttons {
text-align: center; text-align: center;
font-size: 1.5rem; font-size: 2rem;
margin-top: 2rem; margin-top: 2rem;
} }
@ -288,7 +315,7 @@ ul.posts {
ul.tags { ul.tags {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 2rem 0 1rem 0; margin: 1rem 0;
} }
ul.tags li { ul.tags li {
@ -302,7 +329,7 @@ a.tag-link {
border-radius: 3px; border-radius: 3px;
font-size: 0.75rem; font-size: 0.75rem;
text-decoration: none; text-decoration: none;
color: #757575; color: #757575 !important;
} }
a.tag-link:hover { a.tag-link:hover {
@ -329,3 +356,18 @@ figcaption {
margin-bottom: .5rem; margin-bottom: .5rem;
font-weight: 400; font-weight: 400;
} }
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.flex {
display: flex;
justify-content: space-between;
}
.nowrap {
white-space: nowrap;
}

View File

@ -147,28 +147,22 @@ abbr[title] {
/* Code */ /* Code */
code, code,
pre { pre,
.highlight {
font-family: Menlo, Monaco, "Courier New", monospace; font-family: Menlo, Monaco, "Courier New", monospace;
} }
code { code {
padding: .25em .5em; color: #e83e8c;
font-size: 85%; white-space: pre;
color: #b3555e;
background-color: #f9f9f9;
border-radius: 3px;
} }
pre { pre {
display: block; display: block;
margin-top: 0; overflow: auto;
margin-bottom: 1rem; margin: 0;
padding: 1rem; padding: 0;
font-size: .8rem;
line-height: 1.4; line-height: 1.4;
white-space: pre; white-space: pre;
white-space: pre-wrap; background-color: #fff;
word-break: break-all;
word-wrap: break-word;
background-color: #f9f9f9;
} }
pre code { pre code {
padding: 0; padding: 0;
@ -177,12 +171,29 @@ pre code {
background-color: transparent; background-color: transparent;
} }
.highlight { .highlight {
font-size: 90%;
margin-bottom: 1rem; margin-bottom: 1rem;
border-radius: 4px; border-radius: 4px;
border: 1px solid;
border-color: #ddd #ddd #ccc;
border-radius: 3px;
} }
.highlight pre { .highlight pre {
margin-bottom: 0; margin-bottom: 0;
} }
.chroma .lntable {
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
width: auto;
overflow: auto;
display: block;
}
.chroma .lntd {
background-color: #fff;
border: 0;
}
/* Quotes */ /* Quotes */
blockquote { blockquote {
@ -307,6 +318,11 @@ tbody tr:nth-child(odd) th {
margin-bottom: 2em; margin-bottom: 2em;
} }
.page .title,
.post .title {
font-size: 2rem;
}
/* Blog post or page title */ /* Blog post or page title */
.page-title, .page-title,
.post-title, .post-title,
@ -315,16 +331,22 @@ tbody tr:nth-child(odd) th {
} }
.page-title, .page-title,
.post-title { .post-title {
font-size: 1.6rem;
margin-top: 0; margin-top: 0;
} }
/* Meta data line below post title */ /* Meta data line below post title */
.post-date { .post-date {
display: block; display: block;
font-size: 1.0rem;
margin-bottom: 1rem; margin-bottom: 1rem;
color: #757575; color: #757575;
} }
.posts .post-date {
margin-bottom: 0.5rem;
}
/* Related posts */ /* Related posts */
.related { .related {
padding-top: 2rem; padding-top: 2rem;

View File

@ -1,4 +1,4 @@
.sidebar, .post-date { .sidebar, .share-buttons, .comments, .readtime {
display: none !important; display: none !important;
} }