# Jekyll - Plugins don't work when sorting posts

**URL:** <https://talk.jekyllrb.com/t/jekyll-plugins-dont-work-when-sorting-posts/6574>\
**Category:** Help\
**Created:** [October 18, 2021, 11:57am UTC](https://talk.jekyllrb.com/t/jekyll-plugins-dont-work-when-sorting-posts/6574 "2021-10-18T11:57:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekofi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ekofi/32/4003_2.png) [@ekofi](https://talk.jekyllrb.com/u/ekofi)\
**Post date:** [October 18, 2021, 11:57am UTC](https://talk.jekyllrb.com/t/jekyll-plugins-dont-work-when-sorting-posts/6574/1 "2021-10-18T11:57:27Z")

</div>

I have a plugin called [jekyll-spaceship](https://github.com/jeffreytse/jekyll-spaceship#configuration) in Jekyll - It helps me to use video feature (not available in Markdown): ! [Video] (https:// vimeo. com/633912445?height=500)

Everything works perfectly on post page.

But in home page, I am listing posts like this:

```auto
<div id="main" class="site-main">                                                          
  <div id="primary" class="content-area">
    <div id="content" class="site-content" role="main">
      {% for post in paginator.posts %}
      <header class="entry-header">
        <h1 class="entry-title">
          <a href="{{post.url}}" rel="bookmark">{{post.title}}</a>
        </h1>
      </header>
      <div class="entry-content">{{ post.content }}</div>
      {% endfor %}
    </div></div>
</div>

```

And, this event turns it into an image. So I can’t use the plugin feature. I think `{% for post in paginator.posts %}` turns it into normal Markdown.

How can I fix this problem?

By the way, I am using [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2) for paginating but doesn’t matter, its the same like normal Jekyll

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [October 18, 2021, 12:51pm UTC](https://talk.jekyllrb.com/t/jekyll-plugins-dont-work-when-sorting-posts/6574/2 "2021-10-18T12:51:47Z")

</div>

If the result of `{{ post.content }}` is un-rendered raw Markdown, then you could feed it through the [`markdownify`](https://jekyllrb.com/docs/liquid/filters/#markdownify) filter. I.e. `{{ post.content | markdownify }}`.

---

<div class="post-metadata">

**Author:** ![ekofi](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ekofi/32/4003_2.png) [@ekofi](https://talk.jekyllrb.com/u/ekofi)\
**Post date:** [October 18, 2021, 12:58pm UTC](https://talk.jekyllrb.com/t/jekyll-plugins-dont-work-when-sorting-posts/6574/3 "2021-10-18T12:58:08Z")

</div>

> [@chuckhoupt](#):
>
> {{ post.content | markdownify }}

I tried this but same. It’s returning same thing. Only in {{post}} its returning well. I thought I can define something like

{% if post.layout == “post” %}  
{% assign post.layout == “none” %}  
{{ post }}  
{% endif %}

But it’s not working. (assign is not working)

---

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [October 18, 2021, 8:40pm UTC](https://talk.jekyllrb.com/t/jekyll-plugins-dont-work-when-sorting-posts/6574/4 "2021-10-18T20:40:03Z")

</div>

I am not familiar with that plugin, but you could do this with a little liquid include tag. I know you lose the markdown option, but it might be a better solution for you? Here is a good GitHub resource that will walk you through the easy steps to make it work. No need to download the repo; check out the readme file.

> **[GitHub - nathancy/jekyll-embed-video: Embed videos in Jekyll webpages without...](https://github.com/nathancy/jekyll-embed-video#embed-vimeo)**
>
> Embed videos in Jekyll webpages without a plugin (Youtube, Vimeo, Twitch, Facebook, Streamable, Google Drive clips + more) - GitHub - nathancy/jekyll-embed-video: Embed videos in Jekyll webpages wi...

The basic idea is to add a file called `vimeo-player.html` in the root `_includes` folder of your Jekyll site (create the folder if necessary).

Then, inside the `vimeo-player.html` file, you set up the code, like this:

```auto
<div class="embed-container">
  <iframe
      src="https://player.vimeo.com/video/{{ include.id }}"
      width="889"
      height="500"
      frameborder="0"
      webkitallowfullscreen
      mozallowfullscreen
      allowfullscreen>
  </iframe>
</div>

```

Then, in your post, you can still type markdown, but wherever you want the video, type something like this:

```auto
{% include vimeo-player.html id=633912445 %}

```

I did not test this, but believe the video will display on the blog roll on your home page using this method.
