Skip to content

Commit bcfa437

Browse files
authored
Add note and rfc822_datetime functions to the help section
1 parent fbdc7fa commit bcfa437

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ <h5>For all types of Article [Article, Page, Analysis (and custom types)]</h5>
401401
<h4>Functions</h4>
402402
<ul>
403403
<li>r(refId: string, args: object): string [inserts a reference and returns a string with an HTML element with an anchor link] </li>
404+
<li>note(noteText: string, args: object): string [inserts a note and returns a string with an HTML element with an anchor link] </li>
404405
<li>img(imgId: string, args: object, options: object): string [returns a string with an IMG element. The possible attributes of <i>options</i> are: width (number), height (number), version (string), title (string/boolean), caption (string/boolean), alt (string/boolean) and style (string)] </li>
405406
<li>media_url(mediaId: string, media: object): string [returns the URL corresponding to the media ID] </li>
406407
<li>photo_version(photo: object, version: string): string [returns the URL of the requested image version. If it does not exist, it returns the smallest version that is larger than the one requested] </li>
@@ -416,6 +417,7 @@ <h4>Functions</h4>
416417
<li>declare(key: string, value: string, args: object): void [this function allows user-edited pages to pass information to templates]</li>
417418
<li>format_date(dateStr: string, options: object): string [formats dates in a human-readable format]</li>
418419
<li>iso_datetime(dateStr: string): string [formats dates according to the ISO 8601 standard]</li>
420+
<li>rfc822_datetime(dateStr: string, timezone: string): string [formats dates according to the RFC 822 standard]</li>
419421
</ul>
420422
</code>
421423
</div>
@@ -438,4 +440,4 @@ <h4>HTML + <a class="blue-link" target="_blank" href="https://twig.symfony.com/"
438440

439441
<script type="module" src="js/script.js"></script>
440442
</body>
441-
</html>
443+
</html>

0 commit comments

Comments
 (0)