mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 17:57:28 -05:00
archetypes
assets
data
exampleSite
i18n
layouts
_default
partials
author-metadata.html
authors-meta-item.html
breadcrumb.html
comments.html
credit.html
figure.html
head.html
icon.html
link_tags.html
opengraph.html
pagination.html
post-metadata-short.html
post-metadata.html
readingtime-meta-item.html
remote_figure.html
rss-link.html
schema.html
series-meta-item.html
tags-meta-item.html
term-description.html
top.html
translations-meta-item.html
twitter_cards.html
viewsource-meta-item.html
series
shortcodes
taxonomy
index.html
robots.txt
.editorconfig
.gitattributes
.gitignore
.gitmodules
LICENSE
README.md
config.yaml
theme.toml
27 lines
934 B
HTML
27 lines
934 B
HTML
<meta itemprop="name" content="{{ .Title | plainify }}">
|
|
<meta itemprop="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
|
|
|
{{ $format := "2006-01-02T15:04:05-07:00" }}
|
|
{{ with .Date }}
|
|
<meta itemprop="datePublished" content="{{ .Format $format }}">
|
|
{{ end }}
|
|
{{ with .Lastmod }}
|
|
<meta itemprop="dateModified" content="{{ .Format $format }}">
|
|
{{ end }}
|
|
|
|
<meta itemprop="wordCount" content="{{ .WordCount }}">
|
|
|
|
{{ $images := $.Resources.ByType "image" }}
|
|
{{ $featured := $images.GetMatch "*feature*" }}
|
|
{{ if not $featured }}
|
|
{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}
|
|
{{ end }}
|
|
|
|
{{ with $featured }}
|
|
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
|
{{ end }}
|
|
|
|
{{ with .Params.tags }}
|
|
<meta itemprop="keywords" content="{{ delimit . ", " }}">
|
|
{{ end }}
|