Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Twig variable as link
· 9 years ago
Oh wow! That is actually working but not a charm for my HTML markup :D
-
Twig variable as link
· 9 years ago
Could you try to take the <a> out of the <div> ? I'm asking that because I found a post talking about an issue quite similar : https://github.com/erusev/parsedown/issues/266
-
Twig variable as link
· 9 years ago
Thanks for your nice idea. Also tried it, but also not working. Twig got not parsed in the a´s href.
-
Twig variable as link
· 9 years ago
Hello, I don't know why it's not working, but you could try this workaround : Define a variable : {% set newsLink = news.url %} Then use the variable instead of news.url : <a href="{{ newsLink }
-
Twig variable as link
· 9 years ago
yes, also moving outside the href works. My only actual workaround right now is to write the url in data-href and replace href on DOM load with the value with JS.
-
Twig variable as link
· 9 years ago
It's strange, it seems that Twig is not parsed. But since you're in the loop, and the title is shown, Twig is processing. Moving it outside the <a> tag works?
-
Twig variable as link
· 9 years ago
Is there someone who knows what to do?
-
Twig variable as link
· 9 years ago
I stuck at a serious simple problem. I try to loop over Grav pages and dynamically output there links. {% for news in page.find('/aktuelles').children.order('header.news_date', 'asc').slice(0, 3) %}
-
Saturn theme 17px difference
· 9 years ago
Why does the whole appearance, content of the Saturn theme moves 17 px horizontally back and forth when I click on a menu? Very annoying. I inspected some html elements but can't find the reason.
-
Hiding a page
· 9 years ago
This was answered https://github.com/getgrav/grav/issues/1494