Add micro
This commit is contained in:
@@ -45,3 +45,22 @@ author:
|
|||||||
name: "Fundor333"
|
name: "Fundor333"
|
||||||
description: "Pythonista, Backend Developer, Photographer, Dev Ops, Ex-Scout, Bookworm and Tea Lover. Sometime you can find me in a GDG, a DataBeers, a Pycon, a Comicon or other similar event. Huge Open Source fan and user I am allways searching something new to do or to study. Huge fan of automation, autodeploy, data sharing and bots. A lot of my personal stuff are here in my blog and some in my Github."
|
description: "Pythonista, Backend Developer, Photographer, Dev Ops, Ex-Scout, Bookworm and Tea Lover. Sometime you can find me in a GDG, a DataBeers, a Pycon, a Comicon or other similar event. Huge Open Source fan and user I am allways searching something new to do or to study. Huge fan of automation, autodeploy, data sharing and bots. A lot of my personal stuff are here in my blog and some in my Github."
|
||||||
fediverseAccount: "@fundor333@mastodon.social"
|
fediverseAccount: "@fundor333@mastodon.social"
|
||||||
|
|
||||||
|
hcard:
|
||||||
|
avatar: "img/logo.png"
|
||||||
|
fullName: Fundor333
|
||||||
|
pronouns:
|
||||||
|
- he
|
||||||
|
- his
|
||||||
|
nickname: F333
|
||||||
|
city: Venice
|
||||||
|
region: Ve
|
||||||
|
country: IT
|
||||||
|
showLocation: true
|
||||||
|
social:
|
||||||
|
- platform: email
|
||||||
|
identity: blog@fundor333.com
|
||||||
|
url_pattern: mailto:%s
|
||||||
|
- platform: github
|
||||||
|
identity: fundor333
|
||||||
|
url_pattern: https://github.com/%s
|
||||||
|
|||||||
26
layouts/_default/single.html
Normal file
26
layouts/_default/single.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<div class="wrapper post">
|
||||||
|
<main class="page-content" aria-label="Content">
|
||||||
|
<article class="h-entry">
|
||||||
|
<header class="header">
|
||||||
|
<h1 class="header-title p-name">{{ .Title }}</h1>
|
||||||
|
<div class="post-meta">
|
||||||
|
<a class="u-url" href="{{ .Permalink }}">
|
||||||
|
{{ $configDateFormat := .Site.Params.dateFormat | default ":date_medium" }}
|
||||||
|
{{ with .Date }}
|
||||||
|
{{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }}
|
||||||
|
<time datetime="{{ $ISO_time }}" class="dt-published" itemprop="datePublished"> {{ . | time.Format $configDateFormat }} </time>
|
||||||
|
{{ end }}
|
||||||
|
by {{ with .Site.Params.Hcard.Avatar }}<img class="u-photo" alt="" style=" display: none;" src="{{ . | absURL }}"> {{ end }}<a class="p-author h-card" rel="author" href="{{ .Site.BaseURL }}">{{ .Site.Params.Hcard.FullName }}</a>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
{{ partial "toc.html" .}}
|
||||||
|
<div class="page-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
{{- partial "comments.html" . -}}
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
|
|
||||||
<span class="footer_item"> </span>
|
<span class="footer_item"> </span>
|
||||||
|
{{ partial "hcard" . }}
|
||||||
|
|
||||||
|
|
||||||
<div class="footer_social-icons">
|
<div class="footer_social-icons">
|
||||||
{{- partial "socialIcons.html" site.Params.socialIcons -}}
|
{{- partial "socialIcons.html" site.Params.socialIcons -}}
|
||||||
|
|||||||
29
layouts/partials/hcard.html
Normal file
29
layouts/partials/hcard.html
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<!-- Default h-card -->
|
||||||
|
<div class="h-card author">
|
||||||
|
<p>
|
||||||
|
<a class="u-url" href="{{ .Site.BaseURL }}"></a>
|
||||||
|
Created by {{ with .Site.Params.Hcard.Avatar }}<img class="u-photo author-avatar" alt="" src="{{ . | absURL }}"> {{ end }}<span class="p-name" rel="me">{{ .Site.Params.Hcard.FullName }}</span>
|
||||||
|
{{- with .Site.Params.Hcard.Pronouns -}}
|
||||||
|
{{- $len_pronouns := (len .) }}
|
||||||
|
({{ range $index, $element := . }}<span class="u-pronoun">{{ $element }}</span>
|
||||||
|
{{- if eq (add $index 1) $len_pronouns -}}
|
||||||
|
{{- else -}}
|
||||||
|
/
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }} pronouns
|
||||||
|
{{- end -}}
|
||||||
|
{{- if isset .Site.Params.Hcard "nickname" -}}
|
||||||
|
{{- with .Site.Params.Hcard.Pronouns }}, {{ else }}({{ end -}}
|
||||||
|
also known as <span class="p-nickname">{{ .Site.Params.Hcard.Nickname }}</span>)
|
||||||
|
{{- end -}}
|
||||||
|
{{- if not .Site.Params.Hcard.ShowLocation }}.{{ end -}}
|
||||||
|
{{- if .Site.Params.Hcard.ShowLocation }} in
|
||||||
|
{{ with .Site.Params.Hcard.City }} <span class="p-locality">{{ . }}</span>,{{ end }}
|
||||||
|
{{ with .Site.Params.Hcard.Region }} <span class="p-region">{{ . }}</span>,{{ end }}
|
||||||
|
{{ with .Site.Params.Hcard.Country }} <span class="p-country-name">{{ . }}</span>{{ end }}.
|
||||||
|
{{ end }}
|
||||||
|
</p>
|
||||||
|
{{ with .Site.Params.Hcard.Biography }}<p>
|
||||||
|
<span class="p-note">{{ . | markdownify }}</span>
|
||||||
|
</p>{{ end }}
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user