Retrieve posts from wordpress

This commit is contained in:
Lewis Dale committed 2023-02-16 10:46:48 +00:00
1 parent 09ac787260
commit 5b68b1278c
6 files changed
+66 -9

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
<!doctype html>
<html lang={{data.page.lang}}>
<head>
<title>{{ title }} | {{ metadata.site.name }}</title>
<title>{{ title | safe }} | {{ metadata.site.name }}</title>
{% if includeFA %}
<link rel="stylesheet" type="text/css" href="/assets/css/fontawesome.css" />
{% endif %}
+2 -2
View File
@@ -2,11 +2,11 @@
layout: base.njk
includePrism: true
eleventyComputed:
title: "{{ post.title.rendered }}"
title: "{{ post.title.rendered | safe }}"
---
<main class="wrapper-md stack-lg">
<article class="stack-md">
<h1><a href="{{ post.url }}">{{ title }}</a></h1>
<h1><a href="{{ post.url }}">{{ title | safe }}</a></h1>
{{ content | safe }}
</article>