27 lines
1.0 KiB
HTML
Raw Normal View History

2020-09-24 17:05:45 +02:00
{{ partial "head_meta" . }}
{{ partial "header" . }}
2020-06-26 14:48:14 +02:00
<main>
2020-09-24 17:05:45 +02:00
<div class="header-project">
{{ $.Scratch.Set "link" .RelPermalink }}
{{ with .Params.repo }}
{{ $repoHost := default "gitlab" $.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" }}
{{ end }}
{{ end }}
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}
2020-06-26 14:48:14 +02:00
2020-09-24 17:05:45 +02:00
<a class="content" href="{{ .Scratch.Get "link" }}">
<div class="text">
<h1 class="title">{{ .Title }}</h1>
<h4 class="subtitle">{{ $.Scratch.Get "subtitle" }}</h4>
</div>
<img class="logo" src="{{ .Params.logo }}">
</a>
</div>
<br>
<div class="text-justify">{{ .Content }}</div>
2020-06-26 14:48:14 +02:00
</main>
{{ partial "footer" . }}