mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
33
themes/minimo/layouts/partials/widgets/about.html
Normal file
33
themes/minimo/layouts/partials/widgets/about.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{{- $defaultConfig := .Site.Data.config.default.widgets.about -}}
|
||||
{{- $configData := ( or .Site.Data.config.widgets.about $defaultConfig ) -}}
|
||||
{{- $lang := .Site.Language.Lang -}}
|
||||
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
|
||||
|
||||
<section class='widget widget-about sep-after'>
|
||||
<header>
|
||||
{{ with $config.logo }}
|
||||
<div class='logo'>
|
||||
<a href='{{ $.Site.Home.RelPermalink }}'>
|
||||
<img src='{{ . | relURL }}'>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<h2 class='title site-title '>
|
||||
<a href='{{ $.Site.Home.RelPermalink }}'>
|
||||
{{ with $config.title }}
|
||||
{{- . -}}
|
||||
{{ else }}
|
||||
{{- .Site.Title -}}
|
||||
{{ end }}
|
||||
</a>
|
||||
</h2>
|
||||
<div class='desc'>
|
||||
{{ with $config.description }}
|
||||
{{- . | markdownify -}}
|
||||
{{ else }}
|
||||
{{- .Site.Params.info.description -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
</section>
|
Reference in New Issue
Block a user