diff options
| author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2021-02-25 21:56:48 +0100 |
|---|---|---|
| committer | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2021-02-25 21:56:48 +0100 |
| commit | b8dda716d04a20cdea12e89f5360947ddd68ad91 (patch) | |
| tree | 32a3a6625c80736ed94c3f336ba6361bd89188a4 /layouts | |
| parent | 181171399a0fc5ed7356c7a96a4ba04d0a0999d0 (diff) | |
Fixes
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/category.html | 8 | ||||
| -rw-r--r-- | layouts/_default/list.html | 12 | ||||
| -rw-r--r-- | layouts/_default/single.html | 15 | ||||
| -rw-r--r-- | layouts/_default/taxonomy.html | 8 | ||||
| -rw-r--r-- | layouts/partials/sidebar.html | 8 | ||||
| -rw-r--r-- | layouts/partials/tags.html | 2 | ||||
| -rw-r--r-- | layouts/partials/theme-color.html | 4 |
7 files changed, 34 insertions, 23 deletions
diff --git a/layouts/_default/category.html b/layouts/_default/category.html index f66747e..d885ed1 100644 --- a/layouts/_default/category.html +++ b/layouts/_default/category.html @@ -3,10 +3,10 @@ <h1>Category: {{ .Title }}</h1> {{ range .Data.Pages -}} <li> - <span> - <a href="{{ .Permalink }}">{{ .Title }}</a> - <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> - </span> + <div class="flex"> + <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> + <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> + </div> </li> {{- end }} </ul> diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 752b805..917ca38 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,12 +3,12 @@ <h1>{{ .Title }}</h1> {{ range .Data.Pages -}} <li> - <span> - <a href="{{ .Permalink }}">{{ .Title }}</a> - {{ if eq .Kind "page" }} - <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> - {{ end }} - </span> + <div class="flex"> + <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> + {{ if eq .Kind "page" }} + <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> + {{ end }} + </div> </li> {{- end }} </ul> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bb342dc..3d46668 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,7 +5,7 @@ {{ if ne .Type "page" -}} <div class="post-date"> - <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> · {{ .ReadingTime }} min read + <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> <span class="readtime">· {{ .ReadingTime }} min read</span> </div> {{- end }} @@ -18,11 +18,12 @@ {{ if (and (ne .Params.DisableShare true) (ne .Params.disable_share true)) -}} {{ partial "share.html" . }} {{- end }} -</div> - -{{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}} -<h2>Comments</h2> -{{ template "_internal/disqus.html" . }} -{{- end }} + {{ if (and .Site.DisqusShortname (ne .Params.DisableComments true) (ne .Params.disable_comments true)) -}} + <div class="comments"> + <h2>Comments</h2> + {{ template "_internal/disqus.html" . }} + </div> + {{- end }} +</div> {{- end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 34a87e0..8e4521f 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -3,10 +3,10 @@ <h1>Tag: {{ .Title }}</h1> {{ range .Data.Pages -}} <li> - <span> - <a href="{{ .Permalink }}">{{ .Title }}</a> - <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> - </span> + <div class="flex"> + <a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a> + <time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> + </div> </li> {{- end }} </ul> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 8384905..48bfd1a 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -3,12 +3,16 @@ <div class="sidebar-about"> {{ with .Site.Params.gravatar }} <div class="author-image"> - <img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar"> + <a href="{{ $.Site.BaseURL }}"> + <img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar"> + </a> </div> {{ else }} {{ with .Site.Params.profilePicture }} <div class="author-image"> - <img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture"> + <a href="{{ $.Site.BaseURL }}"> + <img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture"> + </a> </div> {{ end }} {{ end }} diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html index 8423d9a..5b209eb 100644 --- a/layouts/partials/tags.html +++ b/layouts/partials/tags.html @@ -1,3 +1,4 @@ +{{ if isset .Params "tags" }} <div> <ul class="tags"> {{- range $tag := $.Params.tags -}} @@ -11,3 +12,4 @@ {{- end -}} </ul> </div> +{{ end }} diff --git a/layouts/partials/theme-color.html b/layouts/partials/theme-color.html index 9e69895..d7fee43 100644 --- a/layouts/partials/theme-color.html +++ b/layouts/partials/theme-color.html @@ -8,6 +8,10 @@ border-color: {{ . }}; } + .read-more-link a:hover { + background-color: {{ . }}; + } + .pagination li a { color: {{ . }}; border: 1px solid {{ . }}; |
