fix: post rendering

This commit is contained in:
Cory Dransfeldt 2023-05-05 11:18:15 -07:00
parent 250a8b3c94
commit e60b109020
No known key found for this signature in database

View file

@ -29,7 +29,9 @@ module.exports = async function () {
By following Federico's steps we can obtain a bearer token to access the API which will return an array of our favorited articles. This endpoint is paginated (e.g. passing `?page=1`, but I'm retrieving the full response, reversing the order and rendering the output to achieve the displayed result: By following Federico's steps we can obtain a bearer token to access the API which will return an array of our favorited articles. This endpoint is paginated (e.g. passing `?page=1`, but I'm retrieving the full response, reversing the order and rendering the output to achieve the displayed result:
```html {% raw %}
```liquid
{% if articles %} {% if articles %}
<h2 class="m-0 text-xl font-black leading-tight tracking-normal dark:text-gray-200 md:text-2xl mt-6 mb-4"> <h2 class="m-0 text-xl font-black leading-tight tracking-normal dark:text-gray-200 md:text-2xl mt-6 mb-4">
Reading: favorite articles Reading: favorite articles
@ -49,4 +51,6 @@ By following Federico's steps we can obtain a bearer token to access the API whi
{% endif %} {% endif %}
``` ```
{% endraw %}
[You can see the result rendered here.](/now) [You can see the result rendered here.](/now)