Add option for promo message below article
This commit is contained in:
parent
d29c669422
commit
32a0c2f2bf
|
@ -616,6 +616,15 @@ select {
|
|||
}
|
||||
}
|
||||
|
||||
/* Promo */
|
||||
.promo {
|
||||
@include subarticle-element;
|
||||
font-weight: bold;
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
/* Webmentionform */
|
||||
.wm-form {
|
||||
@include subarticle-element;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{- .Render "summary" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ partialCached "authorbox" . (.Param "authorbox") }}
|
||||
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "pagination" . }}
|
||||
{{ end }}
|
|
@ -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 }}">
|
||||
|
|
|
@ -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 }}
|
|
@ -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 }}
|
|
@ -0,0 +1,3 @@
|
|||
<div class="promo">
|
||||
{{ (.Site.Params.promo) | emojify | markdownify }}
|
||||
</div>
|
|
@ -15,7 +15,7 @@
|
|||
{{- range $paginator.Pages }}
|
||||
{{- .Render "photosummary" }}
|
||||
{{- end }}
|
||||
{{ partialCached "authorbox" . (.Param "authorbox") }}
|
||||
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "pagination" . }}
|
||||
{{ end }}
|
Reference in New Issue