ysk24ok / jekyll-linkpreview

Jekyll plugin to generate link preview
https://rubygems.org/gems/jekyll-linkpreview
MIT License
29 stars 8 forks source link

It can't be used. #29

Closed boookk closed 2 years ago

boookk commented 2 years ago

Hi,

I used the tag within the markdown.

However, the tag content is displayed as it is and does not support preview.

Aren't we supposed to use tags within the markdown?

I want a detailed way to use it.

Thank you.

ysk24ok commented 2 years ago

@boookk Could you give me more details?

boookk commented 2 years ago

Thank you for your quick response.

I'm sorry for the late response.

jekyll-linkpreview (0.4.1) jekyll (4.2.1, 3.9.1)

I installed the plug-in and placed the linkpreview.css file in the /assets/css directory.

And I wrote the phrase below in the head tag in the ./_include/head.html file.

<link rel="stylesheet" type="text/css" href="/assets/css/linkpreview.css" media="screen">

After that, I inserted the link in the post using the tag as below.

{% linkpreview "link" %}

As a result, gitaction fails, and tags and links appear as strings in the post.

However, it works when you run the local server and check the post.

What's my problem?

ysk24ok commented 2 years ago

However, it works when you run the local server and check the post.

Yes, the preview is not rendered unless you run jekyll buildor jekyll serve, like other plugins.

boookk commented 2 years ago

Oh, I see..

Thank you for your quick response.