mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-07-04 19:17:33 -05:00
Compare commits
4 Commits
9d761b2f81
...
master
Author | SHA1 | Date | |
---|---|---|---|
b4bff1e36d
|
|||
1f9477759d
|
|||
cc7cec07df
|
|||
be12afb50d
|
@ -7,18 +7,17 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with index . "src" }}
|
{{ with index . "src" }}
|
||||||
{{ $media := . }}
|
|
||||||
{{ if eq .MediaType.MainType "image" }}
|
{{ if eq .MediaType.MainType "image" }}
|
||||||
<img src="{{ $media.Permalink }}" alt="{{ $media.Title }}" loading="lazy" />
|
<img src="{{ .Permalink }}" alt="{{ .Title }}" loading="lazy" />
|
||||||
{{ else if eq .MediaType.MainType "video" }}
|
{{ else if eq .MediaType.MainType "video" }}
|
||||||
<video controls preload="metadata">
|
<video controls preload="metadata">
|
||||||
<source src="{{ $media.Permalink }}" alt="{{ $media.Title }}">
|
<source src="{{ .Permalink }}" alt="{{ .Title }}">
|
||||||
{{ i18n "browser_no_video_support" }}
|
{{ i18n "browser_no_video_support" }}
|
||||||
</video>
|
</video>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not $hidecaption }}
|
{{ if not $hidecaption }}
|
||||||
{{ with $media.Title }}
|
{{ with .Title }}
|
||||||
<figcaption>
|
<figcaption>
|
||||||
{{ . | markdownify }}
|
{{ . | markdownify }}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
@ -24,11 +24,7 @@
|
|||||||
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
|
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .IsHome }}
|
<title>{{ .Render "head_title" }}</title>
|
||||||
<title>{{ .Site.Title | plainify }}</title>
|
|
||||||
{{ else }}
|
|
||||||
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "seo-tags/opengraph.html" . }}
|
{{ partial "seo-tags/opengraph.html" . }}
|
||||||
{{ partial "seo-tags/twitter-cards.html" . }}
|
{{ partial "seo-tags/twitter-cards.html" . }}
|
||||||
|
1
layouts/authors/term.head_title.html
Normal file
1
layouts/authors/term.head_title.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ (print .Title "'s Posts | " .Site.Title) | plainify }}
|
@ -8,12 +8,6 @@
|
|||||||
|
|
||||||
{{ partial "top.html" . }}
|
{{ partial "top.html" . }}
|
||||||
|
|
||||||
{{ if hugo.IsServer -}}
|
|
||||||
<div style="position: fixed; bottom: 25px; right: 25px;">
|
|
||||||
{{ templates.Current.Name }}
|
|
||||||
</div>
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
{{ if not .IsHome }}
|
{{ if not .IsHome }}
|
||||||
{{ partial "breadcrumb.html" . }}
|
{{ partial "breadcrumb.html" . }}
|
||||||
|
1
layouts/head_title.html
Normal file
1
layouts/head_title.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ (print .Title " | " .Site.Title) | plainify }}
|
1
layouts/home.head_title.html
Normal file
1
layouts/home.head_title.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ .Site.Title | plainify }}
|
Reference in New Issue
Block a user