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

View File

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

View File

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