Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Artyom Newcomer

@Sogl · Joined 9 years ago · 5 posts · 3 topics · 0 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Page slug sometimes works sometimes not · 9 years ago

    I have multilanguage blog site, English version has slug: custom-slug in articles header… When I go into /blog with EN, than I see slug-routes and all works fine. But when non-English version of artic

  • Global macro and how to use it · 9 years ago

    There is no global macro for twig, isn't it? I found in Google what I want to achieve: https://github.com/pattern-lab/edition-php-twig-development/issues/5

  • Global macro and how to use it · 9 years ago

    Hello! I have a lot of links in my site, some of them contains http/https and some not. I want to check every link and if it contains http then add target="_blank" to it. I want to use macro for this,

  • Get translated day of week error · 9 years ago

    Solved by: {{ 'DAYS_OF_THE_WEEK'|ta(post.date|date('N') - 1) }}

  • Get translated day of week error · 9 years ago

    Found a bug with this recipe: {{ 'DAYS_OF_THE_WEEK'|ta(post.date|date('w') - 1) }} when the day is Sunday. post.date|date('w') is equal 0 and minus 1 becomes -1 and I see this on my page: DAYS_OF_THE_