Hi there.
Right now, in order to set the title of my pages I have something like this in asual-head.vm:
#set ( $title = "#BlogName()")
#if ($BLOJSOM_PERMALINK)
#foreach ($entry in $BLOJSOM_ENTRIES)
#set ( $title = "$entry.getTitle() : #BlogName()" )
#end
#end
<title>$title</title>
If the link is a full permalink, then I get entry.title + blogname which is fine.
But I want only the blogname if I access the homepage, and also, I want someting like YYYY/MM/DD : blogname if I access a page like blogurl.com/2008/06/11
How can I extract the full date (YYYY/MM/DD) or the year + month (YYYY/MM) or only the year (YYYY) in order to add it to the title?
Also, how do I know the page I'm accessing is the homepage? (considering that my blog base address is programaresociala.ro but going to www.programaresociala.ro is the same thing?)
Thanks in advance.