Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bjacquemet/personal-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sidebar/sidebar.html')
-rw-r--r--layouts/partials/sidebar/sidebar.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/layouts/partials/sidebar/sidebar.html b/layouts/partials/sidebar/sidebar.html
new file mode 100644
index 0000000..b4829d6
--- /dev/null
+++ b/layouts/partials/sidebar/sidebar.html
@@ -0,0 +1,29 @@
+<header style="{{ partial "sidebar/style" . | safeCSS }}">
+
+ <div class="intro">
+ <div class="logo-container">
+ <a href="/">
+ <img src='{{ .Site.Params.sidebar.logo | default "images/edna-west.jpg" | absURL }}' alt="Profile {{ .Title }}" class="rounded-logo">
+ </a>
+ </div>
+ <h2>{{ .Site.Params.intro.main | default "Welcome, I'm John Doe" | emojify }}</h2>
+ <h3>{{ .Site.Params.intro.sub | default "This is my personal website" | emojify }}</h3>
+ <div class="menu">
+ {{ partial "sidebar/menu" . }}
+ {{ if .Site.Params.contact.email }}
+ {{ $email := printf "mailto:%s" .Site.Params.contact.email}}
+ <p>
+ <a href="{{ $email }}" target="_blank" rel="external">
+ {{ .Site.Params.contact.text | emojify }}
+ </a>
+ </p>
+ {{ end }}
+ </div>
+
+ </div>
+
+ <div class="socials">
+ {{ partial "sidebar/social" .}}
+ </div>
+
+</header> \ No newline at end of file