Starting aboue me page!
This commit is contained in:
parent
fe12ef9a9f
commit
85d8e9ab6e
30 changed files with 950 additions and 255 deletions
39
layouts/shortcodes/previewSkills.html
Normal file
39
layouts/shortcodes/previewSkills.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<div class="grid center section-max-108">
|
||||
{{ $blocks := index $.Site.Data.skills (.Get 0) }}
|
||||
{{ range $blocks }}
|
||||
<div class="padding-container">
|
||||
<div class="block-preview label expand">
|
||||
<h2 class="flex">
|
||||
<img src="/icons/skills/{{ .Icon }}.svg" loading="lazy" class="icon-larger-text" alt=""/> {{ .Name }}
|
||||
</h2>
|
||||
{{ if .WorkedWith }}
|
||||
<p>{{ i18n "workedWith" }} {{ .WorkedWith }}</p>
|
||||
{{ end }}
|
||||
{{ if .Properties }}
|
||||
<p>{{ i18n "properties" }} {{ .Properties }}</p>
|
||||
{{ end }}
|
||||
<p >{{ i18n .Text | markdownify }}</p>
|
||||
{{ if .RelevantSoft }}
|
||||
<p class="reduced-vertical-margin"><b>{{ i18n "relevantSoftware" }}</b></p>
|
||||
<div class="grid flex">
|
||||
{{ $scratch := newScratch }}
|
||||
{{ range .RelevantSoft }}
|
||||
{{ $scratch.Set "img" "/icons/apps/" }}
|
||||
{{ $scratch.Add "img" (lower .) }}
|
||||
{{ $scratch.Add "img" ".svg" }}
|
||||
{{ $scratch.Set "url" "https://apps.ad5001.eu/" }}
|
||||
{{ $scratch.Add "url" (lower .) }}
|
||||
{{ $scratch.Add "url" "/" }}
|
||||
{{ $scratch.Add "relevant" (slice (dict "Image" ($scratch.Get "img") "Title" . "URL" ($scratch.Get "url") "Tag" true)) }}
|
||||
{{ end }}
|
||||
{{ partial "links.html" ($scratch.Get "relevant") }}
|
||||
</div>
|
||||
<br>
|
||||
{{ end }}
|
||||
<div class="grid flex-right">
|
||||
{{ partial "links.html" .Links }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue