Add meta item

- Use meta item for category/author lookups
- Add Liquid filter to get values from meta item lists
- Implement log on "returnUrl" parameter
This commit is contained in:
2022-04-24 23:21:22 -04:00
parent d0e016fd28
commit fa20122f20
8 changed files with 96 additions and 32 deletions

View File

@@ -2,6 +2,9 @@
<article class="py-3">
<form action="/user/log-on" method="post">
<input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}">
{% if model.return_to %}
<input type="hidden" name="returnTo" value="{{ model.return_to.value }}">
{% endif %}
<div class="container">
<div class="row pb-3">
<div class="col col-md-6 col-lg-4 offset-lg-2">

View File

@@ -31,7 +31,7 @@
<a href="#" class="text-danger">Delete</a>
</small>
</td>
<td>{{ post.author_name }}</td>
<td>{{ model.authors | value: post.author_id }}</td>
<td>{{ post.status }}</td>
<td>{{ post.tags | join: ", " }}</td>
</tr>