summaryrefslogtreecommitdiff
path: root/themes/hugo-coder/layouts/partials/home.html
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2021-12-26 00:30:09 -0500
committerRyan Schanzenbacher <ryan@rschanz.org>2021-12-26 00:30:09 -0500
commit98a21b966410c127e74b16e7a2817882ee16560f (patch)
treeee646c86e3d3f0fa1cd952294d49feeeb700d60f /themes/hugo-coder/layouts/partials/home.html
parente6eec31b71ab728f6610f4e764b2e206fb95f940 (diff)
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/layouts/partials/home.html')
m---------themes/hugo-coder0
-rw-r--r--themes/hugo-coder/layouts/partials/home.html35
2 files changed, 35 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder
deleted file mode 160000
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be
diff --git a/themes/hugo-coder/layouts/partials/home.html b/themes/hugo-coder/layouts/partials/home.html
new file mode 100644
index 0000000..ff640dd
--- /dev/null
+++ b/themes/hugo-coder/layouts/partials/home.html
@@ -0,0 +1,35 @@
1<section class="container centered">
2 <div class="about">
3 {{ if and (isset .Site.Params "avatarurl") (not (isset .Site.Params "gravatar")) }}
4 {{ with .Site.Params.avatarURL }}
5 <div class="avatar"><img src="{{ . | relURL }}" alt="avatar"></div>
6 {{ end }}
7 {{ end }}
8 {{ with .Site.Params.gravatar }}
9 <div class="avatar"><img src="https://www.gravatar.com/avatar/{{md5 .}}?s=240&d=mp" alt="gravatar"></div>
10 {{ end }}
11 <h1>{{ .Site.Params.author }}</h1>
12 {{ if reflect.IsSlice .Site.Params.info }}
13 <h2>{{ range .Site.Params.info }}{{.}}<br>{{ end}}</h2>
14 {{ else }}
15 <h2>{{ .Site.Params.info }}</h2>
16 {{ end }}
17 {{ with .Site.Params.social }}
18 <ul>
19 {{ range sort . "weight" }}
20 {{ if .icon }}
21 <li>
22 <a href="{{ .url | safeURL }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>
23 <i class="{{ .icon }}" aria-hidden="true"></i>
24 </a>
25 </li>
26 {{ else }}
27 <li>
28 <a href="{{ .url | safeURL }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>{{ .name }}</a>
29 </li>
30 {{ end }}
31 {{ end }}
32 </ul>
33 {{ end }}
34 </div>
35</section>