diff --git a/packages/amagaki-plugin-partial-library/example/amagaki.ts b/packages/amagaki-plugin-partial-library/example/amagaki.ts
index 66363635..7fe8e8ad 100644
--- a/packages/amagaki-plugin-partial-library/example/amagaki.ts
+++ b/packages/amagaki-plugin-partial-library/example/amagaki.ts
@@ -13,12 +13,18 @@ export default async (pod: Pod) => {
},
staticRoutes: [
{
- path: `/static/`,
+ path: '/static/',
staticDir: '/dist/',
},
],
});
-
- PartialLibraryPlugin.register(pod, {})
+ PartialLibraryPlugin.register(pod, {
+ partial: {
+ tracked: ['spacer'],
+ },
+ serving: {
+ template: '/views/library.njk',
+ },
+ });
};
diff --git a/packages/amagaki-plugin-partial-library/example/views/base.njk b/packages/amagaki-plugin-partial-library/example/views/base.njk
index 3c25221a..ba9f2711 100644
--- a/packages/amagaki-plugin-partial-library/example/views/base.njk
+++ b/packages/amagaki-plugin-partial-library/example/views/base.njk
@@ -9,15 +9,17 @@
- {% set partial = pod.doc('/content/partials/header.yaml').fields %}
- {% include "/views/partials/header.njk" %}
- {% if doc.fields.partials %}
- {% asyncEach partial in doc.fields.partials %}
- {% include "/views/partials/" ~ partial.partial ~ ".njk" %}
- {% endeach %}
- {% else %}
-
- {{doc.body|markdown|safe}}
-
- {% endif %}
+ {% block main %}
+ {% set partial = pod.doc('/content/partials/header.yaml').fields %}
+ {% include "/views/partials/header.njk" %}
+ {% if doc.fields.partials %}
+ {% asyncEach partial in doc.fields.partials %}
+ {% include "/views/partials/" ~ partial.partial ~ ".njk" %}
+ {% endeach %}
+ {% else %}
+
+ {{doc.body|markdown|safe}}
+
+ {% endif %}
+ {% endblock %}
diff --git a/packages/amagaki-plugin-partial-library/example/views/library.njk b/packages/amagaki-plugin-partial-library/example/views/library.njk
new file mode 100644
index 00000000..430e63fa
--- /dev/null
+++ b/packages/amagaki-plugin-partial-library/example/views/library.njk
@@ -0,0 +1,42 @@
+{% extends "/views/base.njk" %}
+
+{% block main %}
+