update seo
This commit is contained in:
parent
4e58d1074b
commit
8cd0bb4e79
4 changed files with 21 additions and 17 deletions
|
@ -28,7 +28,7 @@
|
|||
<img
|
||||
class="my-0 h-14 w-14 rounded-full !bg-black/5 hover:animate-spin dark:!bg-black/80"
|
||||
src="{{ $avatar_url }}"
|
||||
alt="{{ or site.Params.name site.Title }}"
|
||||
alt="{{ site.Params.name | default site.Title }}"
|
||||
/>
|
||||
</div>
|
||||
{{ end }}<!---->
|
||||
|
@ -36,8 +36,8 @@
|
|||
<div>
|
||||
<h1 class="mt-1.5 mb-3 text-3xl font-bold">{{ site.Params.name }}</h1>
|
||||
<div class="break-words">
|
||||
{{ site.Params.bio | default (print "Personal blog by " site.Params.name)
|
||||
}}
|
||||
{{ site.Params.bio | default (print `A personal blog by `
|
||||
site.Params.name) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -9,9 +9,11 @@
|
|||
{{ if .Date }}
|
||||
<time>{{ .Date | time.Format ":date_medium" }}</time>
|
||||
{{ end }}<!---->
|
||||
{{ if or .Params.Author site.Author.name }}
|
||||
{{ $single_author := or .Params.Author site.Author.name }}
|
||||
<!---->
|
||||
{{ if $single_author }}
|
||||
<span class="mx-1">·</span>
|
||||
<span>{{ .Params.Author | default site.Author.name }}</span>
|
||||
<span>{{ $single_author }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -11,15 +11,19 @@
|
|||
|
||||
<!-- Meta -->
|
||||
<meta name="theme-color" />
|
||||
|
||||
{{ $site_author := or site.Author.name site.Params.name site.Title }}
|
||||
<!---->
|
||||
{{ if eq .Kind "page" }}
|
||||
<meta name="description" content="{{ .Summary }}" />
|
||||
<meta
|
||||
name="author"
|
||||
content="{{ .Params.Author | default site.Author.name }}"
|
||||
/>
|
||||
<meta name="author" content="{{ or .Params.author $site_author }}" />
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ site.Params.description }}" />
|
||||
<meta name="author" content="{{ site.Author.name }}" />
|
||||
<!---->
|
||||
<meta
|
||||
name="description"
|
||||
content="{{ site.Params.description | default (print `A personal blog`) }}"
|
||||
/>
|
||||
<meta name="author" content="{{ $site_author }}" />
|
||||
{{ end }}
|
||||
|
||||
<!-- Styles & Scripts -->
|
||||
|
|
|
@ -5,16 +5,14 @@
|
|||
href="{{ `/` | absURL }}"
|
||||
>{{ site.Title }}</a
|
||||
>
|
||||
<a
|
||||
<div
|
||||
class="btn-dark text-[0] ml-6 h-6 w-6 shrink-0 cursor-pointer {{ if site.Params.monoDarkIcon }}[background:url(./theme.svg)_left_center/cover_no-repeat] dark:invert{{ else }}[background:url(./theme.png)_left_center/_auto_theme('spacing.6')_no-repeat] [transition:_background-position_0.4s_steps(5)]{{ end }} dark:[background-position:right]"
|
||||
>Dark</a
|
||||
>
|
||||
></div>
|
||||
</div>
|
||||
|
||||
<a
|
||||
<div
|
||||
class="btn-menu relative z-50 -mr-8 flex h-[5rem] w-[5rem] shrink-0 cursor-pointer flex-col items-center justify-center gap-2.5 lg:hidden"
|
||||
><span class="hidden">Menu</span></a
|
||||
>
|
||||
></div>
|
||||
|
||||
{{ $bg_color := $.Scratch.Get "bg_color" }}
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue