mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Add new inject point postBodyStart (#646)
This commit is contained in:
parent
47997153c9
commit
e5d502676a
@ -23,6 +23,7 @@ custom_file_path:
|
|||||||
#header: source/_data/header.njk
|
#header: source/_data/header.njk
|
||||||
#sidebar: source/_data/sidebar.njk
|
#sidebar: source/_data/sidebar.njk
|
||||||
#postMeta: source/_data/post-meta.njk
|
#postMeta: source/_data/post-meta.njk
|
||||||
|
#postBodyStart: source/_data/post-body-start.njk
|
||||||
#postBodyEnd: source/_data/post-body-end.njk
|
#postBodyEnd: source/_data/post-body-end.njk
|
||||||
#footer: source/_data/footer.njk
|
#footer: source/_data/footer.njk
|
||||||
#bodyEnd: source/_data/body-end.njk
|
#bodyEnd: source/_data/body-end.njk
|
||||||
|
|||||||
@ -90,7 +90,8 @@
|
|||||||
{{ post.content }}
|
{{ post.content }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ post.content }}
|
{{- next_inject('postBodyStart') }}
|
||||||
|
{{- post.content }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -63,6 +63,7 @@ const points = {
|
|||||||
'header',
|
'header',
|
||||||
'sidebar',
|
'sidebar',
|
||||||
'postMeta',
|
'postMeta',
|
||||||
|
'postBodyStart',
|
||||||
'postBodyEnd',
|
'postBodyEnd',
|
||||||
'footer',
|
'footer',
|
||||||
'bodyEnd',
|
'bodyEnd',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user