Display portrait also in absence of text content #21
2 changed files with 1 additions and 3 deletions
|
|
@ -69,8 +69,6 @@ Contributor pages can declare a particular image to be used as a portrait with t
|
|||
|
||||
It is also possible to use one and the same image as portrait and thumbnail (see page of Michael Hanke). For that to work, the face needs to be centered in the thumbnail image.
|
||||
|
||||
Note - Hugo renders the portrait section only when there is some content after the frontmatter in the markdown file. Adding ` `, a non-breaking space HTML entity adds the minimal content needed to render the image.
|
||||
|
||||
## Function as a taxonomy for TRR379
|
||||
|
||||
This website is not just a public-facing view on the consortium. It also
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
</a></p>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ if .Content }}
|
||||
{{ if or .Content $portrait }}
|
||||
<section class="prose mt-0 flex max-w-full flex-col dark:prose-invert lg:flex-row">
|
||||
{{ with $portrait }}
|
||||
<div style="float:left;width:200px;margin-right:1em" class="mt-4">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue