We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Anyway to get the current year?

Erin Dalzell September 28, 2014 by Erin Dalzell

Is there anyway to get the current year so I can use it in a template?

            {{ if segment_2 }}
                {{ theme:partial src="default" folder="blog/{segment_2}" }}
            {{ else }}
                {{ theme:partial src="default" folder="blog/{current_date format='Y'}" }}
            {{ /if }}           

This doesn't work and current_date is not processed.

Ideas?

Answered by Philip Meissner!
>>>>>>> Answered <<<<<<<
3 Replies
1 Follower