fix(config): fix wrong svg alt attributes and how posts handle authors
This commit is contained in:
@@ -1,47 +1,31 @@
|
||||
{{ define "head" }}
|
||||
{{ if .Site.Params.bgImg -}}
|
||||
<style>.bg-img {background-image: url('{{.Site.Params.bgImg}}');}</style>
|
||||
{{- else if .Site.Params.images -}}
|
||||
{{- range first 1 .Site.Params.images -}}
|
||||
<style>.bg-img {background-image: url('{{. | absURL}}');}</style>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "extrabodyclass" }}
|
||||
class="toxicGlow"
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ if (or .Site.Params.images .Site.Params.bgImg) }}
|
||||
<div class="bg-img"></div>
|
||||
{{ end }}
|
||||
<div id="spotlight" class="animated fadeIn">
|
||||
<div id="home-center">
|
||||
<h1 id="home-title">{{ .Site.Title }}:/ <span id="usrid">#</span><span id="caret">_</span></h1>
|
||||
<hr>
|
||||
{{ range .Site.Params.homeSubtitle }}
|
||||
<p id="home-subtitle">{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.social }}
|
||||
<div id="home-social">
|
||||
{{ partialCached "social-icons.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<hr>
|
||||
<div id="home-nav-header">
|
||||
All the fun lies right here
|
||||
<br>
|
||||
<img class="feather" draggable="false" width="30" height="20" src="{{"arrow.svg" | relURL}}">
|
||||
</div>
|
||||
<nav id="home-nav" class="site-nav">
|
||||
{{ partialCached "menu.html" . }}
|
||||
</nav>
|
||||
</div>
|
||||
<div id="home-footer">
|
||||
<p>
|
||||
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{{ if (or .Site.Params.images .Site.Params.bgImg) }}
|
||||
<div class="bg-img"></div>
|
||||
{{ end }}
|
||||
<div id="spotlight" class="animated fadeIn">
|
||||
<div id="home-center">
|
||||
<h1 id="home-title">{{ .Site.Title }}:/ <span id="usrid">#</span><span id="caret">_</span></h1>
|
||||
<hr>
|
||||
{{ range .Site.Params.homeSubtitle }}<p id="home-subtitle">{{ . }}</p>{{ end }}
|
||||
{{ with .Site.Params.social }}<div id="home-social">{{ partialCached "social-icons.html" . }}</div>{{ end }}
|
||||
<hr>
|
||||
<div id="home-nav-header">
|
||||
All the fun lies right here
|
||||
<br>
|
||||
<img class="feather" draggable="false" width="30" height="20" alt="down-arrow" src="{{"arrow.svg" | relURL}}">
|
||||
</div>
|
||||
<nav id="home-nav" class="site-nav">
|
||||
{{ partialCached "menu.html" . }}
|
||||
</nav>
|
||||
</div>
|
||||
<div id="home-footer">
|
||||
<p>
|
||||
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
{{- else if (eq .name "facebook") -}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>
|
||||
{{- else if (eq .name "github") -}}
|
||||
<img class="feather" draggable="false" width="24" height="24" alt="rootme" src="{{"github.svg" | relURL}}">
|
||||
<img class="feather" draggable="false" width="24" height="24" alt="github" src="{{"github.svg" | relURL}}">
|
||||
{{- else if (eq .name "gitlab") -}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path></svg>
|
||||
{{- else if (eq .name "instagram") -}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.5" y2="6.5"></line></svg>
|
||||
{{- else if (eq .name "linkedin") -}}
|
||||
<img class="feather" draggable="false" width="24" height="24" alt="rootme" src="{{"linkedin.svg" | relURL}}">
|
||||
<img class="feather" draggable="false" width="24" height="24" alt="linkedin" src="{{"linkedin.svg" | relURL}}">
|
||||
{{- else if (eq .name "slack") -}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22.08 9C19.81 1.41 16.54-.35 9 1.92S-.35 7.46 1.92 15 7.46 24.35 15 22.08 24.35 16.54 22.08 9z"></path><line x1="12.57" y1="5.99" x2="16.15" y2="16.39"></line><line x1="7.85" y1="7.61" x2="11.43" y2="18.01"></line><line x1="16.39" y1="7.85" x2="5.99" y2="11.43"></line><line x1="18.01" y1="12.57" x2="7.61" y2="16.15"></line></svg>
|
||||
{{- else if (eq .name "stackoverflow") -}}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
{{- end }}
|
||||
<hr class="post-end">
|
||||
<footer class="post-info">
|
||||
{{- with $.Param "author" }}
|
||||
{{- with .Param "author" }}
|
||||
<p><object type="image/svg+xml" class="feather" data="{{"author.svg" | relURL}}">{{.}}</object></p>
|
||||
{{- end }}
|
||||
{{- with .Params.tags }}
|
||||
@@ -78,4 +78,4 @@
|
||||
{{ end }}
|
||||
{{ define "footer " }}
|
||||
{{ partialCached "footer.html " . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user