mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 07:18:57 +00:00
✨ Feat: open more custom blocks (#479)
- custom-comment - custom-post__footer:before - custom-post__footer:after
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
}
|
||||
|
||||
.featured-image {
|
||||
margin: 0.5rem 0 1rem 0;
|
||||
margin: 1rem 0;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
@@ -131,6 +131,7 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-block: 1rem;
|
||||
> h1,
|
||||
> h2 {
|
||||
font-size: 1.5em;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.collection-card {
|
||||
font-size: 0.875rem;
|
||||
background-color: darken($global-background-color, 3%);
|
||||
margin-block: 2rem -1rem;
|
||||
margin-block: 1rem;
|
||||
padding: 1rem 1.25rem;
|
||||
position: relative;
|
||||
@include border-radius($global-border-radius * 1.5);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
.post-reward {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
margin-bottom: -1rem;
|
||||
@extend .print-d-none;
|
||||
|
||||
&:has(.reward-ways:empty) {
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
{{- define "custom-aside" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "custom-comment" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "custom-footer" -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -20,3 +23,9 @@
|
||||
|
||||
{{- define "custom-assets" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "custom-post__footer:before" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "custom-post__footer:after" -}}
|
||||
{{- end -}}
|
||||
@@ -331,6 +331,9 @@
|
||||
</noscript>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Custom Comment System */ -}}
|
||||
{{- block "custom-comment" . }}{{ end -}}
|
||||
</div>
|
||||
{{- /* lightgallery for Artalk and Twikoo */ -}}
|
||||
{{- $params := partial "function/params.html" -}}
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
{{- end -}}
|
||||
{{- $related := $posts.Related . | first ($params.related.count | default 5) -}}
|
||||
{{- with $related -}}
|
||||
<hr class="awesome-hr" />
|
||||
<h2 id="see-also">{{ T "single.relatedContent" }}</h2>
|
||||
<ul>
|
||||
{{- range $i, $p := . -}}
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
{{- /* Collection List */ -}}
|
||||
{{- partial "single/collection-list.html" . -}}
|
||||
|
||||
{{- /* TODO Related Content */ -}}
|
||||
{{/* {{- partial "single/related.html" . -}} */}}
|
||||
|
||||
{{- /* Custom Aside */ -}}
|
||||
{{- block "custom-aside" . }}{{ end -}}
|
||||
</aside>
|
||||
@@ -194,16 +197,19 @@
|
||||
{{- /* FixIt Decryptor */ -}}
|
||||
{{- partial "single/fixit-decryptor.html" . -}}
|
||||
|
||||
{{- /* Custom block before post footer */ -}}
|
||||
{{- block "custom-post__footer:before" . }}{{ end -}}
|
||||
|
||||
{{- /* Footer */ -}}
|
||||
{{- partial "single/footer.html" . -}}
|
||||
|
||||
{{- /* Reward after Footer */ -}}
|
||||
{{- /* Reward after post footer */ -}}
|
||||
{{- if eq $reward.position "after" -}}
|
||||
{{- partial "single/reward.html" . -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Custom post footer */ -}}
|
||||
{{- block "custom-post__footer" . }}{{ end -}}
|
||||
{{- /* Custom block after post footer */ -}}
|
||||
{{- block "custom-post__footer:after" . }}{{ end -}}
|
||||
|
||||
{{- /* Comment */ -}}
|
||||
{{- partial "single/comment.html" . -}}
|
||||
|
||||
Reference in New Issue
Block a user