split partial newsletter_brand
This commit is contained in:
parent
2f47e7cff8
commit
ea271b5651
|
@ -41,6 +41,12 @@ body.type-newsletter.kind-section {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.type-newsletter.kind-page {
|
body.type-newsletter.kind-page {
|
||||||
|
@ -66,7 +72,7 @@ body.type-newsletter.kind-page {
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
color: var(--signature);
|
color: var(--signature);
|
||||||
}
|
}
|
||||||
.issueno {
|
.remark {
|
||||||
color: var(--signature);
|
color: var(--signature);
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
transition: var(--link-transition);
|
transition: var(--link-transition);
|
||||||
|
@ -85,7 +91,7 @@ body.type-newsletter.kind-page {
|
||||||
.arrow {
|
.arrow {
|
||||||
color: var(--signature);
|
color: var(--signature);
|
||||||
}
|
}
|
||||||
.issueno {
|
.remark {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,14 +6,7 @@
|
||||||
{{ partial "breadcrumbs.html" . }}
|
{{ partial "breadcrumbs.html" . }}
|
||||||
|
|
||||||
{{- if $isNewsletter -}}
|
{{- if $isNewsletter -}}
|
||||||
<a class="newsletter-brand" href="{{ .Parent.Permalink }}">
|
{{- partial "newsletter_brand.html" . }}
|
||||||
<div class="icon">@</div>
|
|
||||||
<div class="name">{{ .Param "newsletterName" }}</div>
|
|
||||||
<div class="issueno">#{{ .Param "issueno" }}</div>
|
|
||||||
<div class="arrow">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="34" height="34" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
{{- if $isNewsletter -}}
|
{{- if $isNewsletter -}}
|
||||||
|
@ -59,6 +52,10 @@
|
||||||
{{- if (.Param "ShowPostNavLinks") }}
|
{{- if (.Param "ShowPostNavLinks") }}
|
||||||
{{- partial "post_nav_links.html" . }}
|
{{- partial "post_nav_links.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if $isNewsletter }}
|
||||||
|
{{- partial "newsletter_sub_form.html"}}
|
||||||
|
{{- end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{{- if not (.Param "noComments") }}
|
{{- if not (.Param "noComments") }}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<a class="newsletter-brand" href="{{ .Parent.Permalink }}">
|
||||||
|
<div class="icon">@</div>
|
||||||
|
<div class="name">{{ .Param "newsletterName" }}</div>
|
||||||
|
{{ with .Param "issueno" }}<div class="remark">#{{ . }}</div>{{ end }}
|
||||||
|
<div class="arrow">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="34" height="34" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
|
||||||
|
</div>
|
||||||
|
</a>
|
Loading…
Reference in New Issue