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

Not able to customize page #16

Closed
nataliabernardo opened this issue Apr 24, 2018 · 4 comments
Closed

Not able to customize page #16

nataliabernardo opened this issue Apr 24, 2018 · 4 comments

Comments

@nataliabernardo
Copy link

Hi! I'm trying to create my one page with this template. I followed the instructions (bundle, npm and jekyll install etc), however the changes that I made in _config.yml and about.md files are not being updated in the website. Do you have any idea of what is happening? Thank you.

@janczizikow
Copy link
Owner

Hey, I guess there could be a couple of scenarios why this is happening.

  1. No Frontmatter in the file
  2. If you're using gulp to run the site locally, I think it doesn't refresh on editing .md files
  3. ServiceWorker

Frontmatter
Did you add YAML / Frontmatter in your .md or .html file? You should add it on top of the pages:

---
layout: page
title: About
permalink: /about/
---

# Markdown or HTML stuff goes here

Running local server with gulp
If you're using gulp to run the site locally, I'm not 100% sure if it refreshes on saving .md files (I don't remember 😆 ). So if that's the case you might have to stop the gulp process and re-run it again (ctrl + C in terminal and run gulp again)

ServiceWorker

Finally it could also be to service worker. It's because the SW open cache first and even if there're changes on the page, you might not see it. Don't want to get to detailed here, but basically it will allow users to access the site faster and even open it without internet connection if they visited the site before. BTW this still doesn't work once the site is published. What you can do is open the developer tools in your browser and check Update on Reload & Bypass for network option:

screen shot 2018-04-25

Try to reload the page with the developer tools open and see if it reloads. If this is the case you can just remove the service worker by removing the last <script> tag in _includes/footer.html. It has sw.js in it, so should be easy to find.

Let me know if any of that helps!

@nataliabernardo
Copy link
Author

nataliabernardo commented Apr 25, 2018

Thank you very much for you answer janczizikow! It updated when I went to another place with a faster wifi. Maybe, it was because of the low speed internet.

Now I'm having trouble with the images of cards. "gulp img" command returns:

Error: File `turnstile.jpg`: Image enlargement is detected
  real width: 1280px, required width: 1920px

Thank you!

@janczizikow
Copy link
Owner

That's because gulp-img cannot resize from smaller dimensions to bigger ones. So you cannot resize an image from 1280px => 1920px (it would result in stretching the image and reducing it's quality). If you want to use images smaller than 1920px you can change the options of the gulp-img task in gulpfile.js :

  // somes stuff
      }, {
        width: 1999, // dimensions of the blog post hero images
        rename: { suffix: '_lg' }
      }, {
        // max-width hero
        width: 1920,
      }],

// some stuff

So if you want to use 1280px images, just change the 1999 to 1280 and same for 1920px.

@nataliabernardo
Copy link
Author

Thank you, janczizikow! :)

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

No branches or pull requests

2 participants