git

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

commit a0434618235194d86290c829e74d91d88dfcc0c7
parent c4a890224a23f510122f97b6ab4d28e406545e39
Author: Luís Ferreira <[email protected]>
Date:   Wed,  6 Oct 2021 00:25:33 +0100

treewide: adapt rest of the website conformant with minimal style

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

Diffstat:
Aassets/sass/post.scss | 15+++++++++++++++
Massets/sass/style.scss | 1+
Mconfig.toml | 5+++++
Mlayouts/_default/index.html | 41++++++++++++++++++++---------------------
Alayouts/posts/single.html | 29+++++++++++++++++++++++++++++
5 files changed, 70 insertions(+), 21 deletions(-)

diff --git a/assets/sass/post.scss b/assets/sass/post.scss @@ -0,0 +1,15 @@ +.post-meta { } +.post-tags { } +.post-description { } + +.post-title { + display: inline-block +} + +.post-title a { + text-decoration: none; +} + +.post-content { + padding-top: 10px +} diff --git a/assets/sass/style.scss b/assets/sass/style.scss @@ -8,6 +8,7 @@ @import 'footer'; @import 'article'; @import 'avatar'; +@import 'post'; html, body { margin: 0px; diff --git a/config.toml b/config.toml @@ -5,6 +5,11 @@ enableGitInfo = true [author] name = "Luís Ferreira" +[markup] + [markup.highlight] + codeFences = true + style = 'emacs' + [languages] [languages.en] title = "luis space" diff --git a/layouts/_default/index.html b/layouts/_default/index.html @@ -18,34 +18,24 @@ <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"> - <h1 class="post-title"> - <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> - </h1> + <div class="post on-list min-textbox"> <div class="post-meta"> - <span class="post-date"> - {{ .Date.Format "2006-01-02" }} - </span> - {{ with .Params.Author }} - <span class="post-author">:: {{ . }}</span> - {{ end }} - </div> - - {{ if .Params.tags }} - <span class="post-tags"> - {{ range .Params.tags }} - #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> - {{- . -}} - </a>&nbsp; + <h2 class="post-title"> + <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> + </h2> + <span class="post-date"> + {{ .Date.Format "2006-01-02" }} + </span> + {{ with .Params.Author }} + <span class="post-author">:: {{ . }}</span> {{ end }} - </span> - {{ end }} + </div> {{ if .Params.Cover }} <img src="{{ .Params.Cover | absURL }}" class="post-cover" alt="{{ .Title | plainify | default " " }}" /> {{ end }} - <div class="post-content"> + <div class="post-description"> {{ if .Params.showFullContent }} {{ .Content | markdownify }} {{ else if .Description }} @@ -57,6 +47,15 @@ {{ end }} </div> + {{ if .Params.tags }} + <span class="post-tags xx-sm"> + {{ range .Params.tags }} + #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> + {{- . -}} + </a>&nbsp; + {{ end }} + </span> + {{ end }} {{ if not .Params.showFullContent }} <div> <a class="read-more button" diff --git a/layouts/posts/single.html b/layouts/posts/single.html @@ -0,0 +1,29 @@ +{{ define "main" }} + +<div class="post-meta min-textbox"> + <div> + <h1 class="post-title">{{ .Title }}</h1> + <span class="post-date"> + {{ .Date.Format "2006-01-02" }} + </span> + </div> + <div class="post-description"> + {{ if .Params.description }} + {{ .Description | markdownify }} + {{ end }} + </div> + {{ if .Params.tags }} + <span class="post-tags xx-sm"> + {{ range .Params.tags }} + #<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> + {{- . -}} + </a>&nbsp; + {{ end }} + </span> + {{ end }} + <hr class="solid"> +</div> +<article class="post-content min-textbox"> +{{ .Content }} +</article> +{{ end }}