Updated theme override

This commit is contained in:
Christoffer Martinsson 2018-10-26 00:09:43 +02:00
parent d3fe6ba087
commit 09e64f9a2c
2 changed files with 28 additions and 4 deletions

View File

@ -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)

View File

@ -0,0 +1,24 @@
<div class="item">
{{ $.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 }}
<h5>{{ $.Scratch.Get "subtitle" }}</h5>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
{{ end }}
</div>