git

My personal website source code
Log | Files | Refs | Submodules | README | LICENSE

commit 1c271b444924ba5fb764f82d704ddb774ae15812
parent 78580f438dc5848cb28ecefc1cd217dacd93c7be
Author: Luís Ferreira <[email protected]>
Date:   Wed,  6 Oct 2021 00:48:21 +0100

treewide: make codestyle consistent

Signed-off-by: Luís Ferreira <[email protected]>

Diffstat:
Massets/sass/post.scss | 4++--
Mlayouts/_default/index.html | 31+++++++++++++++----------------
2 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/assets/sass/post.scss b/assets/sass/post.scss @@ -3,7 +3,7 @@ .post-description { } .post-title { - display: inline-block + display: inline-block; } .post-title a { @@ -15,5 +15,5 @@ } .post-content { - padding-top: 10px + padding-top: 10px; } diff --git a/layouts/_default/index.html b/layouts/_default/index.html @@ -18,7 +18,7 @@ <p class="min-textbox">Nothing to see here. Check my <a href="{{ "about" }}">about page</a>!</p> {{ end }} {{ range $paginator.Pages }} - <div class="post on-list min-textbox"> + <div class="post on-list min-textbox"> <div class="post-meta"> <h2 class="post-title"> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> @@ -32,37 +32,36 @@ </div> {{ if .Params.Cover }} - <img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" /> + <img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" /> {{ end }} <div class="post-description"> - {{ if .Params.showFullContent }} - {{ .Content | markdownify }} - {{ else if .Description }} - {{ .Description | markdownify }} - {{ else }} - {{ if .Truncated }} - {{ .Summary }} - {{ end }} - {{ end }} + {{ if .Params.showFullContent }} + {{ .Content | markdownify }} + {{ else if .Description }} + {{ .Description | markdownify }} + {{ else }} + {{ if .Truncated }} + {{ .Summary }} + {{ end }} + {{ end }} </div> {{ if .Params.tags }} - <span class="post-tags xx-sm"> + <span class="post-tags xx-sm"> {{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> {{- . -}} </a>&nbsp; {{ end }} - </span> + </span> {{ end }} {{ if not .Params.showFullContent }} <div> - <a class="read-more button" - href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> + <a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> </div> {{ end }} - </div> + </div> {{ end }} {{ partial "pagination.html" . }} </div>