jlelse
/
Indieroad
Archived
1
Fork 0

Add option for promo message below article

This commit is contained in:
Jan-Lukas Else 2020-04-12 10:24:35 +02:00
parent d29c669422
commit 32a0c2f2bf
7 changed files with 19 additions and 8 deletions

View File

@ -616,6 +616,15 @@ select {
}
}
/* Promo */
.promo {
@include subarticle-element;
font-weight: bold;
a {
text-decoration: underline;
}
}
/* Webmentionform */
.wm-form {
@include subarticle-element;

View File

@ -20,7 +20,7 @@
{{- .Render "summary" }}
{{- end }}
{{- end }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
</main>
{{ partial "pagination" . }}
{{ end }}

View File

@ -28,8 +28,9 @@
</div>
{{ partial "post_tags" . }}
</article>
{{ partialCached "authorbox" . (.Param "authorbox") }}
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
</main>
{{ if (and (.Param "promo") .CurrentSection.Parent) }}{{ partialCached "promo" . }}{{ end }}
{{ range $i, $image := .Params.images }}
<a href="#_" class="lightbox" id="{{ $image | md5 }}-lightbox">
<img src="{{ $image | safeURL }}">

View File

@ -10,7 +10,7 @@
{{- range $paginator.Pages }}
{{- .Render "summary" }}
{{- end }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
</main>
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -1,5 +1,4 @@
{{- if .Param "authorbox" }}
{{- with .Site.Author }}
{{ with .Site.Author }}
<div class="authorbox p-author h-card">
{{ if .avatar }}
<figure class="author-avatar">
@ -17,5 +16,4 @@
</div>
{{ end }}
</div>
{{- end }}
{{- end }}
{{ end }}

View File

@ -0,0 +1,3 @@
<div class="promo">
{{ (.Site.Params.promo) | emojify | markdownify }}
</div>

View File

@ -15,7 +15,7 @@
{{- range $paginator.Pages }}
{{- .Render "photosummary" }}
{{- end }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
</main>
{{ partial "pagination" . }}
{{ end }}