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

W3c validation fail : blog-skeleton

Started by Muut Archive 11 years ago · 4 replies · 255 views
11 years ago

Regarding the alt, it could be how you have your images:

TXT
![](myimage.jpg)

= no alt

TXT
![my alt](myimage.jpg)

"my alt" = alt

Regarding the paragraph tags, it could well be the newlines or lack thereorf between paragraphs in your markdown. Just try playing with that and seeing if the result changes. Basically those <p></p> tags are mostly output by the markdown->html processing. There are a few of these tags in the partials/blog_item.html.twig but I just had a quick look and I don't see any dangling ones there.

11 years ago

Hi,
I also noticed that. Post images (those that you just put in the post folder) don't come with the ability to add alt text.
Or maybe I am just too much of a templating noob)

11 years ago

Just have to add an alt attribute to the <img> tag in the Twig template then.

11 years ago

Ok, thanks Andy, that's what I should have looked for in the first place.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1330 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4052 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago