I have blog articles with a structure with sources in a structure with fields like URL, author, date, etc. My goal is to have a text with sources like this:
This is a test .
Relates to source no. 4 in my structure field, resulting in this text:
This is a test (Some Name, 2020).
Is it right that I can follow this tutorial and thus achieve my basic sources/footnote system by:
- Use a custom pattern like
which is easy to find via regular expressions (regex),
- replace the pattern with a string based on the structure’s fields like author and date and
- generate a reference at the end of the article based on all entries in the structure field.
Is this right? Do I miss something here? Of course this is the rough idea as I had no idea if regex stuff is the way to go and if there’s an easier way in Kirby 3.