✨ add ghost api basics
This commit is contained in:
@ -24,7 +24,8 @@
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{{ content | safe }}
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
</main>
|
||||
|
||||
<footer>
|
21
_includes/layouts/post.njk
Normal file
21
_includes/layouts/post.njk
Normal file
@ -0,0 +1,21 @@
|
||||
{% extends 'layouts/default.njk' %}
|
||||
|
||||
{% set title = post.title %}
|
||||
{% set codeinjection_head = post.codeinjection_head %}
|
||||
{% set codeinjection_foot = post.codeinjection_foot %}
|
||||
|
||||
{% block content %}
|
||||
<article class="content">
|
||||
{% if post.feature_image %}
|
||||
<figure class="post-feature-image">
|
||||
<img src="{{ post.feature_image }}" alt="{{ title }}">
|
||||
</figure>
|
||||
{% endif %}
|
||||
<section class="post-full-content">
|
||||
<h1 class="content-title">{{ title }}</h1>
|
||||
<section class="content-body load-external-scripts">
|
||||
{{ content | safe }}
|
||||
</section>
|
||||
</section>
|
||||
</article>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user