Jekyll is not reading new posts - jekyll

I'm trying to add new posts to my jekyll site. But when I execute "jekyll serve --verbose" I see my new posts are not read by jekyll. I have looked all questions similar to my problem but they didn't work for my case.
My new post names are 2018-04-18-first.markdown and 2019-04-17-second.markdown but jekyll tries to read default post whic is 2020-04-18-welcome-to-jekyll.markdown
Putting verbose log below.
Logging at level: debug
Configuration file: /home/dozturk/50percent/_config.yml
Requiring: kramdown
Source: /home/dozturk/50percent
Destination: /home/dozturk/50percent/_site
Incremental build: disabled. Enable with --incremental
Generating...
Reading: _posts/2020-04-18-welcome-to-jekyll.markdown
Rendering: _posts/2020-04-18-welcome-to-jekyll.markdown
Pre-Render Hooks: _posts/2020-04-18-welcome-to-jekyll.markdown
Rendering Liquid: _posts/2020-04-18-welcome-to-jekyll.markdown
Requiring: rouge
Rendering Markup: _posts/2020-04-18-welcome-to-jekyll.markdown
Requiring: kramdown
Rendering Layout: _posts/2020-04-18-welcome-to-jekyll.markdown
Rendering: _posts/2020-04-18-welcome-to-jekyll.markdown
Pre-Render Hooks: _posts/2020-04-18-welcome-to-jekyll.markdown
Rendering Liquid: _posts/2020-04-18-welcome-to-jekyll.markdown
Rendering Markup: _posts/2020-04-18-welcome-to-jekyll.markdown
Rendering: about.md
Pre-Render Hooks: about.md
Rendering Liquid: about.md
Rendering Markup: about.md
Rendering Layout: about.md
Rendering: feed.xml
Pre-Render Hooks: feed.xml
Rendering Liquid: feed.xml
Rendering Markup: feed.xml
Rendering Layout: feed.xml
Rendering: index.html
Pre-Render Hooks: index.html
Rendering Liquid: index.html
Rendering Markup: index.html
Rendering Layout: index.html
Rendering: /css/main.scss
Pre-Render Hooks: /css/main.scss
Rendering Liquid: /css/main.scss
Rendering Markup: /css/main.scss
done in 0.222 seconds.
Requiring: jekyll-watch
Requiring: kramdown
Watcher: Ignoring (?-mix:_config\.yml)
Watcher: Ignoring (?-mix:_site)
Auto-regeneration: enabled for '/home/dozturk/50percent'
Logging at level: debug
Configuration file: /home/dozturk/50percent/_config.yml
[2020-04-18 22:12:15] INFO WEBrick 1.4.2
[2020-04-18 22:12:15] INFO ruby 2.5.1 (2018-03-29) [x86_64-linux-gnu]
[2020-04-18 22:12:15] DEBUG WEBrick::HTTPServlet::FileHandler is mounted on /.
[2020-04-18 22:12:15] DEBUG unmount .
[2020-04-18 22:12:15] DEBUG Jekyll::Commands::Serve::Servlet is mounted on .
Server address: http://127.0.0.1:4000/
[2020-04-18 22:12:15] INFO WEBrick::HTTPServer#start: pid=3784 port=4000
Server running... press ctrl-c to stop.
^C[2020-04-18 22:18:36] DEBUG close TCPSocket(127.0.0.1, 4000)
[2020-04-18 22:18:36] INFO going to shutdown ...
[2020-04-18 22:18:36] INFO WEBrick::HTTPServer#start done.
[Solved]
Today I tried building again and it built successfully first and second posts as I wanted. I was duplicating and renaming posts from Windows Explorer to create new posts. Today I realized Ubuntu doesn't detect changes that I made in Windows Explorer, probably the core of the problem is that. Everything seems like working now!

Make sure you add the front matter tag(Two lines of three dashes ("-")). Like this:
---
---
(Rest of your content)
Frontmatter tells Jekyll to process and convert the page.
https://jekyllrb.com/docs/front-matter/

Today I tried building again and it built successfully first and second posts as I wanted. I was duplicating and renaming posts from Windows Explorer to create new posts. Today I realized Ubuntu doesn't detect changes that I made in Windows Explorer, probably the core of the problem is that. Everything seems like working now!

Related

Github Jekyll page behaves not properly

I am trying to build Github Jekyll pages. Everything went fine and it gives the expected pages locally but the format of the page is really bad when it is in the Github page. On top of that any links on the page go to 404. I uploaded the basic jekyll page in github and it can be find at https://vinuvikraman.github.io/blogs/. Programs in Gemfile.lock have the similar version installed in Github.
How can I make the github page works properly?
Thank you!
Have you tried setting url and baseurl in the config. Because it looks like the site expects it to be on the root domain and not at /blog. For example, the CSS file is refrenced at:
https://vinuvikraman.github.io/assets/main.css
But is actually at:
https://vinuvikraman.github.io/blogs/assets/main.css

AppCache does not swap index.html

I have been using appcache with an unchanged index.html for quite some time. It was not explicitly listed in the manifest, but cached anyway as a master entry.
Now index.html changes and I'm running into this problem:
All resources are fetched and cached properly, however the master entry remains old and the website breaks. I tried listing index.html explicitly in the manifest. Chrome devtools shows the dilemma very well:
The old index.html remains as master. The new one gets cached explicitly but doesn't swap.
This error happens as described in Chrome. FF and Safari work fine. IE 11 displays "Resource doesn’t exist on the server" and "Appcache Fatal Error".
The manifest looks like this:
CACHE MANIFEST
# vX.X.X
NETWORK:
*
CACHE:
index.html
app.js
app.json
favicon.ico
... (+100 more files)
Found it:
To fix a framework bug, I had a server-side redirect to add a query string param. Swapping the appcache from https://example.com to https://example.com?myparam broke the appcache in Chrome and IE.
Faced with the same problem and solved it without server side manipulations.
So all you need is to add script to your <head> tag:
<script type="text/javascript">
window.applicationCache.addEventListener("updateready",
(event) => { window.location.reload(true) });
</script>
Some explanations you can find in my post here, if you interested:
AppCache doesn't swap index.html file

The browser caches HTML pages in a grunt / angular application. How does one invalidate it when building?

I have a webapp built with angular/grunt/yeoman.
This is the problem that I have:
File home.html:
<h1>hello</h1>
I grunt build, then check the page in my brower. Everything is fine.
Then I change
home.html to
<h1>hello 2</h1>
I grunt build, then in my browser I still see hello if I navigate to this page by clicking links. If I refresh the page with the browser button, I see hello 2.
Why is that ? How to tell grunt to build the app so the browser re-fetches every html page ?
Note: I have no problem with html/css since they are concatenated into a single file, and the file name changes every build.
I am using chrome.
You could:
Use a plugin to clear the browser cache, for example: Clear Cache
Use a web server that explicitly forbids caching

Windows: creating Jekyll pages not working

Unable to render new page in browser. I'm on Win7 and have Ruby1.9.3 and DevKit installed. When I create a new Jekyll site everything works. I copied the index.html in root and renamed to about.html and that worked and was able to view both pages in the browser. I copied the about.html page and renamed to contact.html and the page fails to inherit the layout and only renders text content and Liquid tags in the browser. All of this is on my local machine. Thanks for any advice.
Repo: https://github.com/greenlightjspence/JekyllWin7/
I had similar problem today and after almost hour fighting with it I finally found that Visual Studio saved my file with 'UTF-8 with Signature' encoding which was causing issues. Changing file encoding to 'UTF-8 without Signature' helped. To change file encoding, open file (index.html in my case) and go to File->Advanced Save Options. Hope it will help you as well.
Looks like it's known issue mentioned on official Jekyll site (http://jekyllrb.com/docs/frontmatter/).

Sass source maps not auto-refreshing in Chrome

In Chrome Canary (Version 30.0.1570.0 canary) I've set up sass source maps as follows:
DevTools > Settings > General > Enable CSS source maps + Auto-reload generated CSS CHECKED!
DevTools > Settings > Added folder public
My folder structure looks as follows:
public
sass
_buttons.scss
style.scss
css
style.css
index.html (with link href=css/style.css)
In DevTools I can do inspect element and see that a style-rule comes from _buttons.scss. I can click the _buttons.scss and get the DevTools to display the scss source. I can modify the source in devtools and hit cmd+s and it's saved to disk and when switching to sublime, the file has been updated. BUT in Chrome the css is not automatically reloaded. I have to refresh the page manually to reload the css.
Sass version:
$ sass -v
$ Sass 3.3.0.alpha.149 (Bleeding Edge)
I watch with:
$ sass --scss --sourcemap --watch public/sass:public/css
Any body else having problems with the Auto-reload generated CSS in Chrome (Canary) ?
I've also tried Chrome "normal" (20.0...) and same problem there, no auto-reload.
Have you tried using Workspaces? That's what I use and it's working fine for me, and always has. A bunch of things have moved out of experiments recently, so maybe that's why it's not working?