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

github.com/zzzmisa/hugo-theme-doors.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzzmisa <zzzmisa.office@gmail.com>2021-12-24 12:12:50 +0300
committerzzzmisa <zzzmisa.office@gmail.com>2021-12-24 12:12:50 +0300
commit1961fbf734591f447019b3ab9431b70519b9e944 (patch)
tree7a0ff7e3ca5843e7681a55371cf6e69066f84c5c
parenta2f57ea9379100fc1e964d7706503f35f06f7809 (diff)
Make it possible to delete the white square
-rw-r--r--layouts/index.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 478c818..6fb40de 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -83,10 +83,12 @@
<article class="ampstart-article-summary m0 relative">
<a href="{{ .url }}" target="_blank">
<amp-img width="{{ .w }}" height="{{ .h }}" layout="responsive" src="{{ .image }}"></amp-img>
- <header class="absolute bottom-0 right-0 left-0 center m3 p3">
- <h3 class="caps bold">{{ .title }}</h3>
- <h1 class="h2 my1">{{ .description }}</h1>
- </header>
+ {{ if or .title .description }}
+ <header class="absolute bottom-0 right-0 left-0 center m3 p3">
+ <h3 class="caps bold">{{ .title }}</h3>
+ <h1 class="h2 my1">{{ .description }}</h1>
+ </header>
+ {{ end }}
</a>
</article>
</p>