Ways to enhance your DEV posts! Useful embeds.

Jess Lee - Jul 12 '18 - - Dev Community

In alphabetical order, here are our current liquid tag embed options, with the syntax you'll need to include them in your posts :)

1. Codepen

You'll need the full link of the pen:

{% codepen https://codepen.io/cassidoo/pen/NbOzKg %}

2. DEV

a) Comment

You'll need the id at the end of the comment url/permalink:
{% devcomment 40fh %}

Yeah, curried functions are perfect for this. The arrow syntax lends itself to this.

valueChange = (key) => {
  return function (e) {
    var obj= {};
    state[key] = e.target.value; //<-- this is a bug btw.
    this.setState(obj);
  }.bind(this);
}
Enter fullscreen mode Exit fullscreen mode
Enter fullscreen mode Exit fullscreen mode

Enter fullscreen mode Exit fullscreen mode

becomes

valueChange = key => e => this.setState(oldState => ({
  ...oldState,
  [key]: e.target.value
}))
Enter fullscreen mode Exit fullscreen mode
Enter fullscreen mode Exit fullscreen mode

Enter fullscreen mode Exit fullscreen mode
</div>
Enter fullscreen mode Exit fullscreen mode

b) Podcast Episode

Only available for podcasts found on https://dev.to/pod, you'll need the full link. Email us (yo@dev.to) if you'd like your podcast included.
{% podcast https://dev.to/basecspodcast/s2e2--queues-irl %}

play pause Base.cs Podcast

c) Post

You'll need the full link of the post:
{% link https://dev.to/kazz/boost-your-productivity-using-markdown-1be %}

d) User

You'll only need a username:
{% user ben %}

3. GitHub

a) Gist

You'll need the full link of the gist:
{% gist https://gist.github.com/QuincyLarson/4bb1682ce590dc42402b2edddbca7aaa %}

b) Issue

You'll need the full link of the issue or comment:
{% github https://github.com/thepracticaldev/dev.to/issues/242 %}

Allow Login with Gitlab/Your Site #242

c33s avatar
c33s posted on

github is not the holy grail nor twitter is, as reaction microsoft bought github i would rather login with gitlab than with github. even better would be, if you handle user login directly on your site.

c) Repository

You'll only need the username / repo name:
{% github thepracticaldev/dev.to %}

GitHub logo forem / forem

For empowering community 🌱


Forem 🌱

For Empowering Community

Build Status Build Status GitHub commit activity GitHub issues ready for dev GitPod badge

Welcome to the Forem codebase, the platform that powers dev.to. We are so excited to have you. With your help, we can build out Forem’s usability, scalability, and stability to better serve our communities.

What is Forem?

Forem is open source software for building communities. Communities for your peers, customers, fanbases, families, friends, and any other time and space where people need to come together to be part of a collective See our announcement post for a high-level overview of what Forem is.

dev.to (or just DEV) is hosted by Forem. It is a community of software developers who write articles, take part in discussions, and build their professional profiles. We value supportive and constructive dialogue in the pursuit of great code and career growth for all members. The ecosystem spans from beginner to advanced developers, and all are welcome to find their place…

4. Glitch

You'll only need the project slug:
{% glitch beautiful-cubes %}

5. Instagram

You'll only need the post id:
{% instagram BXgGcAUjM39 %}

6. Twitter

Using the Twitter Liquid tag will allow the tweet to pre-render from the server, providing your reader with a better experience. All you need is the tweet id from the url.
{% twitter 733908215021199360 %}

7. repl.it

All you need is the URL after the domain name:
{% replit @WigWog/PositiveFineOpensource %}

8. Runkit Embed

Put executable code within a runkit liquid block, as follows:

{% runkit %}
console.log("Place javascript here!"); 
{% endrunkit %} 
Enter fullscreen mode Exit fullscreen mode
console.log("Place javascript here!");

9. Speaker Deck

This is a little more complicated. You'll want to pull the embed code for the slides on Speaker Deck, and then pull the id from that code:
{% speakerdeck 28cc127475184084ab94fb05a4ed8f4d %}

10. YouTube

You'll only need the video id:
{% youtube 9z-Pdfxxdyo %}

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .