DEV Community

Discussion on: 10 Things I've Learned While Building A Website For My Blog 📚

Collapse
 
dkabardinov profile image
Dmitrii Kabardinov

Hi Darshak. I really like your site, thanks for sharing. I even went and subscribed to your RSS feed after I read your latest post (creation and consumption). Nice work. I dig the name of the blog too - very witty, haha. Now regarding responsive image example. I used a picture because I'm not sure how to embed a block of code here on dev and whether dev applies syntax highlighting to your code or not. I know that posting code snippets via images is not very accessible, but if that helps a little, I included the actual code in the alt attribute of the image. That being said, I do it differently on my website, where I posted this article originally: kabardinovd.com/posts/10-things-I-...

Collapse
 
dar5hak profile image
Darshak Parikh

Thanks Dmitrii! I'm glad you liked my site. Yours is pretty marvelous too—Lighthouse aside, it just feels so fast. ⚡

As for the code snippet, DEV does support syntax highlighting in the usual markdown way: three backticks followed by html.

  <picture>
    <source srcset="/assets/images/PR.PNG" media="(min-width: 800px)" />
    <source srcset="/assets/images/PR-cropped-1.png" media="(max-width: 800px)" />
    <img src="/assets/images/PR-cropped-1.png" alt="Screenshot of a PR with comment data made by Staticman" /> 
  </picture>
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
dkabardinov profile image
Dmitrii Kabardinov

Nice, thanks for the tip. I'll use the text version next time then.

Collapse
 
dar5hak profile image
Darshak Parikh

Speaking of RSS, I've been meaning to set up a collection of feeds I like. What apps do you use?

Thread Thread
 
dkabardinov profile image
Dmitrii Kabardinov

"RSS Reader" (on Android)