mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Clean up closing brackets on templates
This commit is contained in:
parent
7a0757cef7
commit
919ecde4ac
@ -1,8 +1,8 @@
|
|||||||
<a
|
<a
|
||||||
href="{{ .Destination | safeURL }}"
|
href="{{ .Destination | safeURL }}"
|
||||||
{{ with .Title}}title="{{ . }}"{{ end }}
|
{{ with .Title }}title="{{ . }}"{{ end }}
|
||||||
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}
|
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}
|
||||||
>
|
>
|
||||||
{{- .Text | safeHTML -}}
|
{{- .Text | safeHTML -}}
|
||||||
</a>
|
</a>
|
||||||
{{- print "" -}}
|
{{- /* This comment gets rid of the trailing newline. */ -}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ partial "credit.html" }}
|
{{ partial "credit.html" }}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Language.Lang }}">
|
<html lang="{{ .Language.Lang }}">
|
||||||
{{- partial "head.html" . -}}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
@ -13,9 +13,9 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{- block "main" . }}
|
{{ block "main" . }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{- end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ with .Site.Copyright }}
|
{{ with .Site.Copyright }}
|
||||||
|
@ -33,5 +33,5 @@
|
|||||||
{{ partial "author-metadata.html" . }}
|
{{ partial "author-metadata.html" . }}
|
||||||
|
|
||||||
<meta name="language" content="{{ .Language.Lang }}">
|
<meta name="language" content="{{ .Language.Lang }}">
|
||||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<meta property="og:title" content="{{ .Title }}">
|
<meta property="og:title" content="{{ .Title }}">
|
||||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage}}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
{{ if .Site.IsMultiLingual }}
|
{{ if .Site.IsMultiLingual }}
|
||||||
<details class="langpicker">
|
<details class="langpicker">
|
||||||
<summary>
|
<summary>
|
||||||
{{ partial "icon.html" "world" -}}
|
{{- partial "icon.html" "world" -}}
|
||||||
</summary>
|
</summary>
|
||||||
<ul class="languages">
|
<ul class="languages">
|
||||||
{{ range .AllTranslations }}
|
{{ range .AllTranslations }}
|
||||||
|
Loading…
Reference in New Issue
Block a user