Add new inject point postBodyStart (#646)

This commit is contained in:
Bryan 2023-04-29 16:39:49 +08:00 committed by GitHub
parent 47997153c9
commit e5d502676a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -90,7 +90,8 @@
{{ post.content }}
{%- endif %}
{% else %}
{{ post.content }}
{{- next_inject('postBodyStart') }}
{{- post.content }}
{%- endif %}
</div>

View File

@ -63,6 +63,7 @@ const points = {
'header',
'sidebar',
'postMeta',
'postBodyStart',
'postBodyEnd',
'footer',
'bodyEnd',