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

can't build, invalid date #49

Open
pbielefeldt opened this issue Jan 15, 2023 · 1 comment
Open

can't build, invalid date #49

pbielefeldt opened this issue Jan 15, 2023 · 1 comment

Comments

@pbielefeldt
Copy link

Hi all!

Thanks for providing this excellent theme! Unfortunately, after updating to the latest version (9ae90ed), I can no longer build the page. When running bundle exec jekyll build, I get

      Generating... 
             Error: could not read file …/vendor/bundle/ruby/2.6.0/gems/jekyll-3.9.2/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb: Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/ruby/2.6.0/gems/jekyll-3.9.2/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/ruby/2.6.0/gems/jekyll-3.9.2/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.

The file in question looks like this:

---
layout: post
title:  "Welcome to Jekyll!"
date:   <%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>
categories: jekyll update
---
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to
see your changes. You can rebuild the site in many different ways, but the most common
way is to run `jekyll serve`, which launches a web server and auto-regenerates your site
when a file is updated.

Line 4 looks weird to me.
However, it appears to be auto-generated from somewhere, and I can't figure out from where. Any help is appreciated!

I am on CentOS 7 (still), if that's relevant.

Best regards
p_bielefeldt

pbielefeldt pushed a commit to pbielefeldt/jekyll-theme-minimal-resume that referenced this issue Jan 16, 2023
pbielefeldt pushed a commit to pbielefeldt/jekyll-theme-minimal-resume that referenced this issue Jan 16, 2023
pbielefeldt pushed a commit to pbielefeldt/jekyll-theme-minimal-resume that referenced this issue Jan 16, 2023
murraco pushed a commit that referenced this issue Jan 17, 2023
pbielefeldt pushed a commit to pbielefeldt/jekyll-theme-minimal-resume that referenced this issue Jan 19, 2023
murraco pushed a commit that referenced this issue Apr 19, 2023
@murraco
Copy link
Owner

murraco commented Jul 26, 2023

This a bit outdated, but I'm curious, did you get it to work?

pbielefeldt pushed a commit to pbielefeldt/jekyll-theme-minimal-resume that referenced this issue Sep 20, 2023
pbielefeldt pushed a commit to pbielefeldt/jekyll-theme-minimal-resume that referenced this issue Sep 20, 2023
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