Skip to content

Commit

Permalink
Fix External Articles Search Bug
Browse files Browse the repository at this point in the history
 * Fix #3
  • Loading branch information
yousinix committed Mar 6, 2019
1 parent 0621938 commit f722136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ layout: null
"title" : "{{ post.title | escape }}",
"category" : "{{ post.category }}",
"tags" : "{{ post.tags | join: ', ' }}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"url" : "{{ post.external_url | default: post.url | relative_url }}",
"date" : "{{ post.date }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
Expand Down

4 comments on commit f722136

@monikagupta78
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if external url is there, it is opening that url in static site. can't it just show the content from external site with in same jekyll site?

@yousinix
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, I cannot do it for now because I think it's not possible. Maybe I will give it another try later.

@monikagupta78
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I am just trying to figure out if that is possible? i have another md file in diffrent github repo that want to render in site itself, instead of copying the content in post in jekyll site, it will be duplicate.
Let me know if it can be achieved ?

one more Qs, sitemap.xml, what it can be of use (value add) in jekyyl site? some example html page that used this sitemap xml?

@yousinix
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try using that Site's API to grab the content of your posts and put it in there. I can't do this in the external posts because every site has a different API, that's why it's not possible to show the content from external site with in same jekyll site. I will still do some research and make sure it's 100% not possible.

And concerning the sitemap.xml, I still don't know about them or what they are used for. Maybe I will try to figure it out and use it soon if it's that important.

Please sign in to comment.