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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • No numbers in the slug? · 11 years ago

    I didn't touch the folder name at all. It's like this: 01.blog/ this-is-the-title/ item.md I added a slug: variable in the item.md instead, like this: --- yaml title: This is the title slu

  • No numbers in the slug? · 11 years ago

    The slug will use the folder name of the page by default. It automatically strips out any numbers in the formation XX. (ie. XX.folder-name). So the resulting slug for a page in 03.folder-name will b

  • No numbers in the slug? · 11 years ago

    Well, if the blog page weren't the home page, blog/would be fine. But so it's not very logical ;) I just tested it again... First 10-test.htmlworked, but 1-test.htmldoesn't (404 error). I cleared the

  • No numbers in the slug? · 11 years ago

    blog/ is there because the blog posts are subpages of the blog page. You could add the posts as top-level pages, but then you'd need to rewrite their templates, and the homepage template to list them.

  • No numbers in the slug? · 11 years ago

    Usually my URL for a post looks like this: http://www.domain.com/25-important-keywords.html Well, I managed, that there's no way to eliminate the /blog/ slug in Grav - if there is, please let me know

  • Text.html.twig - different image on language · 11 years ago

    Oh yah i had a missing single quote! sorry about that. Glad you got it sorted!

  • Text.html.twig - different image on language · 11 years ago

    Thank you Andy, I had to change it a bit to make it work: {% set image = page.media.images['image.'~grav.language.getActive~'.png'] %} to keep it meaningful (not just image.en.png), I decided to get t

  • Text.html.twig - different image on language · 11 years ago

    page.media.images is just an array of all the images found in a particular folder. So getting |first will get whatever it finds first, irrespective of language. If you want to get a particular langua

  • Text.html.twig - different image on language · 11 years ago

    Hello, text.html.twig contains the reference to the first image: {% set image = page.media.images|first %} is it possible to change it so that the image can change with the language extension? Example

  • Data folder? · 11 years ago

    Ok, can you help me with the path for site.yaml? menu: url: ?