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
|
||||
#sidebar: source/_data/sidebar.njk
|
||||
#postMeta: source/_data/post-meta.njk
|
||||
#postBodyStart: source/_data/post-body-start.njk
|
||||
#postBodyEnd: source/_data/post-body-end.njk
|
||||
#footer: source/_data/footer.njk
|
||||
#bodyEnd: source/_data/body-end.njk
|
||||
|
||||
@ -90,7 +90,8 @@
|
||||
{{ post.content }}
|
||||
{%- endif %}
|
||||
{% else %}
|
||||
{{ post.content }}
|
||||
{{- next_inject('postBodyStart') }}
|
||||
{{- post.content }}
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@ const points = {
|
||||
'header',
|
||||
'sidebar',
|
||||
'postMeta',
|
||||
'postBodyStart',
|
||||
'postBodyEnd',
|
||||
'footer',
|
||||
'bodyEnd',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user