change meta

This commit is contained in:
liuboaibc 2020-07-29 13:56:23 +08:00
parent 324e5eefad
commit cb897b5994
2 changed files with 6 additions and 3 deletions

View File

@ -9,6 +9,7 @@ baseURL = "https://hugo-first.netlify.app"
[params]
logo = "images/logo.svg"
snapshot = "/images/home/53.png"
title = "KubeSphere | The Kubernetes platform tailored for hybrid multicloud"
description = "KubeSphere is a distributed operating system managing cloud native applications with Kubernetes as its kernel, and provides plug-and-play architecture for the seamless integration of third-party applications to boost its ecosystem."

View File

@ -7,9 +7,11 @@
<meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with $data.head.description }}{{ . }}{{ end }}{{ end }}">
<meta name="keywords" content="{{ with .Params.Keywords }}{{ range $i, $e := . }}{{ if $i }} {{ end }}{{ $e }}{{ end }}{{ else }}{{ with $data.head.keywords }}{{ . }}{{ end }}{{ end }}">
{{ with .Params.snapshot }}
<meta property=”og:image” content="{{ . }}" />
{{ end }}
<meta property="og:type" content="article"/>
<meta property="og:title" content="{{ with .Params.Title }}{{ . }}{{ else }}{{ with $data.head.title }}{{ . }}{{ end }}{{ end }}"/>
<meta property="og:description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with $data.head.description }}{{ . }}{{ end }}{{ end }}"/>
<meta property="og:image" content="{{ with .Params.snapshot }}{{ . }}{{ else }}{{ with .Site.Params.snapshot }}{{ . | absURL }}{{ end }}{{ end }}"/>
<meta property="og:url" content="{{ .Permalink }}"/>
{{- partial "css.html" . -}}