Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/twenty-twenty-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2020-06-06 07:08:12 +0300
committersomrat <monnaf37@gmail.com>2020-06-06 07:08:12 +0300
commit9b561147a0cb8ab3c6a79931fe1dd30ab15585af (patch)
treecbf9ce08f655da92cfab2c0238ed15c18ca5b7c4
parentd771b4cf17ffd8ad3080b9e686548188dafe9be9 (diff)
parent85af9dbc038151c1d8c024b7e633ec6fcdb4f0b2 (diff)
Merge branch 'master' of https://github.com/themefisher/wordpress-tweenty-tweenty-hugo
-rw-r--r--layouts/_default/single.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 14b2c4f..c852280 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -26,7 +26,7 @@
</svg> </span>
<span class="meta-text">
By {{ range .Params.Author }}
- <a href="{{ `author/` | relLangURL }}{{ . | urlize | lower }}">{{ . | humanize }}</a>
+ <a href="{{ `author/` | relLangURL }}{{ . | urlize | lower }}">{{ . }}</a>
{{ end }} </span>
</li>
<li class="post-date meta-wrapper">
@@ -56,6 +56,7 @@
</div><!-- .post-meta-wrapper -->
</div><!-- .entry-header-inner -->
</header><!-- .entry-header -->
+ {{if .Params.Image }}
<figure class="featured-media">
<div class="featured-media-inner section-inner medium">
<img width="1200" height="769" src="{{ .Params.Image | absURL }}"
@@ -63,6 +64,7 @@
sizes="(max-width: 1200px) 100vw, 1200px">
</div><!-- .featured-media-inner -->
</figure><!-- .featured-media -->
+ {{end}}
<div class="post-inner thin ">
<div class="entry-content">
{{ .Content }}
@@ -99,4 +101,4 @@
</div><!-- .section-inner -->
</article>
-{{ end }} \ No newline at end of file
+{{ end }}