misc: refactor

* accessibility, duplicate code
This commit is contained in:
Aditya Telange 2020-09-21 15:44:37 +05:30
parent 6770e5e552
commit 873bc34d45
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
3 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@
.footer { .footer {
max-width: calc(var(--main-width) + var(--gap) * 2); max-width: calc(var(--main-width) + var(--gap) * 2);
margin: auto; margin: auto;
padding: calc((var(--footer-height) - (var(--gap)) - 10px)/ 2) var(--gap); padding: calc((var(--footer-height) - (var(--gap)) - 10px) / 2) var(--gap);
color: var(--secondary); color: var(--secondary);
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;

View File

@ -31,9 +31,7 @@
.post-content h4, .post-content h4,
.post-content h5, .post-content h5,
.post-content h6 { .post-content h6 {
margin-top: 24px; margin: 24px 0 16px 0;
margin-bottom: 16px;
margin: 24px auto 16px auto;
} }
.post-content h1 { .post-content h1 {

View File

@ -12,7 +12,7 @@
{{ $count := .Count }} {{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }} {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li> <li>
<a href="{{ .Permalink }}">{{ .Name }} <sup><b><sup>{{ $count }}</sup></b></sup> </a> <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a>
</li> </li>
{{ end }} {{ end }}
{{ end }} {{ end }}