Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github pages not working properly #458

Closed
jonasskanoy opened this issue Nov 16, 2021 · 8 comments
Closed

Github pages not working properly #458

jonasskanoy opened this issue Nov 16, 2021 · 8 comments
Labels

Comments

@jonasskanoy
Copy link

Describe the bug
It seems like the gh page is giving me som issue with the sass functions of the website. I forked the al-folio repo, and followed the instructions as shown.

Expected behavior
Expected same result on the gh page as on the local run.

Screenshots
Website with github pages:
image

Website with local run instance:
image

System:

  • OS: Windows 10, running wsl
  • Browser: Brave v.1.31.91
  • Jekyll version: 4.2.1
  • Ruby version: 2.7.0p0
@jmrplens
Copy link
Contributor

Try this.
In config.yml leave empty the base url

@varunjain3
Copy link

I m also facing a similar issue where I am trying to deploy the page. I left the base_url empty as show below:

https://github.com/varunjain3/varunjain3.github.io/blob/439548f88397069b35dfb14c15754eb94de1d216/_config.yml#L18-L19

The deployment says that Github Pages has issues

GitHub Pages failed to build your site.

The tag responsive_image on line 5 in _posts/2015-05-15-images.md is not a recognized Liquid tag.

Where m I going wrong?

@jonasskanoy
Copy link
Author

Try this. In config.yml leave empty the base url
When I tried that the page looked like this:
image

@alshedivat
Copy link
Owner

please follow instructions on how to deploy the website: https://github.com/alshedivat/al-folio#deployment

@varunjain3
Copy link

Even after reading deployment page, i m still facing the problem

@Z-Y00
Copy link

Z-Y00 commented Nov 21, 2021

For the broken picture, in my case, I believe the whole problem is due to the miss of baseurl
You can see this at my page
The generated webpage point to:
https://z-y00.github.io/assets/img/prof_pic.jpg
But the actual picture is here:
https://z-y00.github.io/academic/assets/img/prof_pic.jpg
academic is the baseurl
@alshedivat I guess you can confirm the issue at my webpage.
https://z-y00.github.io/academic/

For the tag responsive_image, I also met the same problem @varunjain3
I found that if it is deployed via Action and gh-pages branch, then it works out fine.

@alshedivat
Copy link
Owner

@Z-Y00, thanks for pointing out this. I believe the problem might be related to #451 (all images on the demo page were broken for a short while). should be fixed in #468. please make sure your _includes/responsive_img.html is identical to

{% assign largest = resized | sort: 'width' | last %}
{% capture srcset %}
{% for i in resized %}
{{ i.path | relative_url }} {{ i.width }}w,
{% endfor %}
{% endcapture %}
<img {% if class %}class="{{ class }}"{% endif %} src="{{ largest.path | relative_url }}" srcset="{{ srcset | strip_newlines }}/ {{ path }} {{ original.width }}w" {% if alt %}alt="{{ alt }}"{% endif %} {% if title %}title="{{ title }}"{% endif %} {% if zoomable %}data-zoomable{% endif %}/>

@Z-Y00
Copy link

Z-Y00 commented Nov 21, 2021

Thanks for your help! It works!
After the revert of "remove extra space", everything looks good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants