From 09e64f9a2ca44dadc42af141b11d30243c7e6aa8 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Fri, 26 Oct 2018 00:09:43 +0200 Subject: [PATCH] Updated theme override --- content/about.md | 8 ++++---- layouts/partials/list-item.html | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/list-item.html diff --git a/content/about.md b/content/about.md index 3f7005b..afa5d37 100644 --- a/content/about.md +++ b/content/about.md @@ -11,9 +11,9 @@ CMtec was created back in 1999 by **Chritoffer Martinsson** in Helsingborg Swede The company has two focus areas: * Product development in the home automation and electronic sector. -* Music production + Released as Open Source on [GitLab](https://git.cmtec.se) -All products/projects are released as Open Source on GitLab https://git.cmtec.se +* Music production (mastering, mixing and recording) + Published on [SoundCloud](https://soundcloud.com/cmtec) -Music are published on SoundCloud https://soundcloud.com/cmtec - +If you have any questions please send us a email at [info@cmtec.se](mailto:info@cmtec.se) diff --git a/layouts/partials/list-item.html b/layouts/partials/list-item.html new file mode 100644 index 0000000..e574411 --- /dev/null +++ b/layouts/partials/list-item.html @@ -0,0 +1,24 @@ +
+ + {{ $.Scratch.Set "link" .RelPermalink }} + {{ with .Params.repo }} + {{ $repoHost := default "github" $.Params.repoHost }} + {{ if eq "github" $repoHost }} + {{ printf "https://github.com/%s/%s/" $.Site.Params.githubUsername . | $.Scratch.Set "link" }} + {{ else if eq "gitlab" $repoHost }} + {{ printf "https://gitlab.com/%s/%s/" $.Site.Params.gitlabUsername . | $.Scratch.Set "link" }} + {{ else if eq "bitbucket" $repoHost }} + {{ printf "https://bitbucket.org/%s/%s/" $.Site.Params.bitbucketUsername . | $.Scratch.Set "link" }} + {{ end }} + {{ end }} + {{ with .Params.link }} {{ $.Scratch.Set "link" . }} {{ end }} + + {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") | $.Scratch.Set "subtitle" }} + {{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }} + +
{{ $.Scratch.Get "subtitle" }}
+ {{ range .Params.tags }} + {{ . }} + {{ end }} + +