Replace code with image
The Twig code was breaking Liquid in ConvertKit.
This commit is contained in:
parent
b5ff9d786b
commit
5a1b99ea27
|
@ -13,17 +13,9 @@ tags:
|
||||||
|
|
||||||
Here is some code from my website:
|
Here is some code from my website:
|
||||||
|
|
||||||
```twig
|
![A screenshot of the code that calculates the number of talks I've given.]({{site.url}}/assets/images/talk-count-code.png)
|
||||||
{%- verbatim -%}
|
|
||||||
{% set talkCount = 0 %}
|
|
||||||
|
|
||||||
{% for talk in data.talks %}
|
If you want, you can also [view it on GitHub](https://raw.githubusercontent.com/opdavies/oliverdavies.uk/main/source/_pages/talks.md).
|
||||||
{% for event in talk.events if 'today'|date('U') >= event.date|date('U') %}
|
|
||||||
{% set talkCount = talkCount + 1 %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endfor %}
|
|
||||||
{%- endverbatim -%}
|
|
||||||
```
|
|
||||||
|
|
||||||
It is business logic responsible for counting the number of talks I've given at different events so I can display it on my Talks page.
|
It is business logic responsible for counting the number of talks I've given at different events so I can display it on my Talks page.
|
||||||
|
|
||||||
|
|
BIN
source/assets/images/talk-count-code.png
Normal file
BIN
source/assets/images/talk-count-code.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in a new issue