Skip to content

Commit deb7eb0

Browse files
linawolfjaapio
authored andcommitted
Introduce global variable "today" and "release"
These are also provided by sphinx and frequently used in the TYPO3 docs
1 parent bfd026f commit deb7eb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/guides/src/Nodes/ProjectNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public function __construct(
4040
) {
4141
$this->addVariable('project', new PlainTextInlineNode($title ?? ''));
4242
$this->addVariable('version', new PlainTextInlineNode($version ?? ''));
43+
$this->addVariable('release', new PlainTextInlineNode($version ?? ''));
4344
$this->addVariable('last_rendered', new PlainTextInlineNode(date(DATE_RFC2822)));
45+
$this->addVariable('today', new PlainTextInlineNode(date(DATE_RFC2822)));
4446

4547
parent::__construct();
4648
}

0 commit comments

Comments
 (0)