mirror of
https://github.com/naoufalzerai/zerai.xyz.git
synced 2025-12-24 22:43:58 +00:00
change theme again :D
This commit is contained in:
34
themes/notepadium/layouts/partials/article-author.html
Normal file
34
themes/notepadium/layouts/partials/article-author.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{{- $profile := .Params.profile -}}
|
||||
{{- if not $profile -}}
|
||||
{{- $profile = site.Params.profile -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- with $profile -}}
|
||||
{{- if eq .enable true -}}
|
||||
<section class="article author">
|
||||
{{- with .avatar -}}<img class="avatar" src="{{- . | relURL -}}" alt>{{- end -}}
|
||||
|
||||
{{- with .name -}}<p class="name">{{- . -}}</p>{{- end -}}
|
||||
|
||||
{{- with .bio -}}<div class="bio">{{- . | markdownify -}}</div>{{- end -}}
|
||||
|
||||
<div class="details">
|
||||
{{- with .github -}}
|
||||
<a class="item" href="https://github.com/{{- . | safeHTML -}}" target="_blank" rel="noopener noreferrer"><span class="iconfont icon-github"></span> {{- . -}}</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- with .docker -}}
|
||||
<a class="item" href="https://hub.docker.com/u/{{- . | safeHTML -}}" target="_blank" rel="noopener noreferrer"><span class="iconfont icon-docker"></span> {{- . -}}</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- with .twitter -}}
|
||||
<a class="item" href="https://twitter.com/{{- . | safeHTML -}}" target="_blank" rel="noopener noreferrer"><span class="iconfont icon-twitter"></span> @{{- . -}}</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- with .email -}}
|
||||
<a class="item" href="mailto:{{- . | safeHTML -}}" target="_blank" rel="noopener noreferrer"><span class="iconfont icon-email"></span> {{- . -}}</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</section>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user