🐛 Fixed the code block and post meta information.
This commit is contained in:
parent
77ace23724
commit
288ded9ddd
@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
pre, code {
|
pre, code {
|
||||||
font-family: $code-font-family;
|
font-family: $code-font-family;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
@ -17,6 +17,7 @@ tags:
|
|||||||
|
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
|
expand: true
|
||||||
---
|
---
|
||||||
|
|
||||||
The world’s fastest framework for building websites.
|
The world’s fastest framework for building websites.
|
||||||
|
@ -7,15 +7,15 @@
|
|||||||
<link itemprop="mainEntityOfPage" href="{{ .Permalink }}">
|
<link itemprop="mainEntityOfPage" href="{{ .Permalink }}">
|
||||||
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
|
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||||
<meta itemprop="image" content="{{ .Site.Params.avatar.url }}">
|
<meta itemprop="image" content="{{ .Site.Params.avatar.url }}">
|
||||||
<meta itemprop="name" content="{{ .Site.Params.author }}">
|
<meta itemprop="name" content="{{ .Params.author | default .Site.Params.author }}">
|
||||||
</span>
|
</span>
|
||||||
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
|
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
|
||||||
<meta itemprop="name" content="{{ .Title }}">
|
<meta itemprop="name" content="{{ .Site.Params.author }}">
|
||||||
<meta itemprop="description" content="{{ .Description }}">
|
<meta itemprop="description" content="{{ .Site.Params.description }}">
|
||||||
</span>
|
</span>
|
||||||
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
|
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
|
||||||
<meta itemprop="name" content="{{ .Title }}">
|
<meta itemprop="name" content="{{ .Title }}">
|
||||||
<meta itemprop="description" content="{{ .Description }}">
|
<meta itemprop="description" content="{{ .Description | default .Summary }}">
|
||||||
</span>
|
</span>
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h2 class="post-title" itemprop="name headline">
|
<h2 class="post-title" itemprop="name headline">
|
||||||
@ -41,14 +41,14 @@
|
|||||||
</header>
|
</header>
|
||||||
<!-- POST BODY -->
|
<!-- POST BODY -->
|
||||||
<div class="post-body" itemprop="articleBody">
|
<div class="post-body" itemprop="articleBody">
|
||||||
{{/*- if .Expand }}
|
{{- if .Params.Expand }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ else */}}
|
{{- else }}
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{/*- end */}}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
<footer class="post-footer">
|
<footer class="post-footer">
|
||||||
{{- if and .Site.Params.readMoreBtn }}
|
{{- if and .Site.Params.readMoreBtn (not .Params.Expand) }}
|
||||||
<div class="post-button">
|
<div class="post-button">
|
||||||
<a class="btn" href="{{ .Permalink }}#more" rel="contents">
|
<a class="btn" href="{{ .Permalink }}#more" rel="contents">
|
||||||
{{ T "PostReadMore" }} »
|
{{ T "PostReadMore" }} »
|
||||||
|
Loading…
Reference in New Issue
Block a user