Hi rdyar and ashmaroli and thank you for your answers. I don’t see from where is coming the error. Browsing on internet, I can see that is kind of error is generic. Here is the trace when I ran
MBP-de-Admin:inger admin$ jekyll build -V
Logging at level: debug
Configuration file: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger/_config.yml
Requiring: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger/_plugins/ideal_image_slider.rb
Requiring: jekyll-feed
Requiring: kramdown
Source: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger
Destination: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger/_site
Incremental build: disabled. Enable with --incremental
Generating...
EntryFilter: excluded /Gemfile
EntryFilter: excluded /Gemfile.lock
EntryFilter: excluded /Inger-Analytics-feb0aa8b73d1.json
Reading: _posts/2017-12-30-welcome-to-jekyll.markdown
Generating: Jekyll::AmpGenerator finished in 0.004647 seconds.
Generating: JekyllFeed::Generator finished in 0.001888 seconds.
Generating: Jekyll::JekyllSitemap finished in 0.000933 seconds.
Rendering: _posts/2017-12-30-welcome-to-jekyll.markdown
Pre-Render Hooks: _posts/2017-12-30-welcome-to-jekyll.markdown
Rendering Liquid: _posts/2017-12-30-welcome-to-jekyll.markdown
Requiring: rouge
Rendering Markup: _posts/2017-12-30-welcome-to-jekyll.markdown
Requiring: kramdown
Rendering Layout: _posts/2017-12-30-welcome-to-jekyll.markdown
Rendering: 404.html
Pre-Render Hooks: 404.html
Rendering Liquid: 404.html
Rendering Markup: 404.html
Rendering Layout: 404.html
Rendering: about.md
Pre-Render Hooks: about.md
Rendering Liquid: about.md
Rendering Markup: about.md
Rendering Layout: about.md
Rendering: index.html
Pre-Render Hooks: index.html
Rendering Liquid: index.html
Rendering Markup: index.html
Rendering Layout: index.html
Rendering: css/style.scss
Pre-Render Hooks: css/style.scss
Rendering Liquid: css/style.scss
Rendering Markup: css/style.scss
Rendering: assets/main.scss
Pre-Render Hooks: assets/main.scss
Rendering Liquid: assets/main.scss
Rendering Markup: assets/main.scss
Rendering: amp/jekyll/update/2017/12/30/welcome-to-jekyll/index.html
Pre-Render Hooks: amp/jekyll/update/2017/12/30/welcome-to-jekyll/index.html
Rendering Liquid: amp/jekyll/update/2017/12/30/welcome-to-jekyll/index.html
Requiring: rouge
Rendering Markup: amp/jekyll/update/2017/12/30/welcome-to-jekyll/index.html
Rendering Layout: amp/jekyll/update/2017/12/30/welcome-to-jekyll/index.html
Liquid Exception: undefined method `start_with?' for nil:NilClass in /_layouts/amp.html
jekyll 3.6.2 | Error: undefined method `start_with?' for nil:NilClass
I suppose that the error occurs in index.html (or may be afterwards ?)
Here is my index.html page
---
layout: default
title: Hank Quinlan, Horrible Cop
lang: fr
---
<div class="blurb">
<h1>Hi there, I'm Hank Quinlan!</h1>
<p>I'm best known as the horrible cop from <em>A Touch of Evil</em> Don't trust me. <a href="/about">Read more about my life...</a></p>
</div><!-- /.blurb -->
Here is my default.html
<!DOCTYPE html>
{% include header.html %}
{{ content }}
{% include footer.html %}
and here is my footer.html
</div><!-- /.container -->
<footer>
<ul>
<li><a href="mailto:hankquinlanhub@gmail.com">email</a></li>
<li><a href="https://github.com/hankquinlan">github.com/hankquinlan</a></li>
</ul>
</footer>
</body>
<script>
function setActive() {
var aObj = document.getElementsByClassName("mainMenu").getElementsByTagName('a');
for(i=0;i<aObj.length;i++) {
if(document.location.href.indexOf(aObj[i].href)>=0) {
aObj[i].className='active';
}
}
}
window.onload = setActive;
</script>
<link rel="stylesheet" type="text/css" href="/css/style.css">
{% if page.path contains '_posts' %}
<link rel="amphtml" href="{{ page.id | prepend: '/inger' | prepend: site.baseurl | prepend: site.url | append: '.html' }}">
{% endif %}
<script src="assets/javascript/common/google_map_api.js"></script>
</html>
Here is my _config.yml content
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Inger Hair at Home at Aix en Provence
email: flamant@club-internet.fr
description: #>- # this means to ignore newlines until "baseurl:"
This site is intended to introduce the activity of hair at home of Inger at Aix en Provence.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://localhost" # the base hostname & protocol for your site, e.g. http://example.com
#baseurl: "" # the subpath of your site, e.g. /blog
#url: "https://flamant.github.io" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: flamant
# Build settings
markdown: kramdown
theme: minima
plugins:
- jekyll-feed
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- Inger-Analytics-feb0aa8b73d1.json
- .gitignore
defaults:
-
scope:
path: ""
values:
lang: fr
# Source language is optional. If set, translations to it will not be
# performed.
#source_lang: en
translations:
en:
callTheNumber: Contact me at
sendmeAMail: Send me a mail
clickHere: click here
ingerHairStylingAtHome: INGER HAIRSTYLING SERVICE AT HOME
home: HOME
whoIAm: WHO I AM
tariffs2018: TARIFFS 2018
coveredMunicipalities: COVERED MUNICIPALITIES
facebook: facebook
fr:
callTheNumber: Appelez moi au
sendmeAMail: Envoyez moi un mail
clickHere: cliquez ici
ingerHairStylingAtHome: INGER COIFFURE A DOMICILE
home: ACCUEIL
whoIAm: QUI SUIS-JE
tariffs2018: TARIFS 2018
coveredMunicipalities: LES COMMUNES DESSERVIES
facebook: facebook
Here is the trace when I ran
MBP-de-Admin:inger admin$ bundle exec jekyll build --trace
Configuration file: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger/_config.yml
Source: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger
Destination: /Users/admin/Documents/Perso/Site-Internet/Jekyll/inger/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: undefined method `start_with?' for nil:NilClass in /_layouts/amp.html
/Users/admin/.rvm/gems/ruby-2.4.1/gems/amp-jekyll-1.0.2/lib/jekyll/amp_filter.rb:19:in `block in amp_images': undefined method `start_with?' for nil:NilClass (NoMethodError)
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/nokogiri-1.8.1/lib/nokogiri/xml/node_set.rb:190:in `block in each'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/nokogiri-1.8.1/lib/nokogiri/xml/node_set.rb:189:in `upto'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/nokogiri-1.8.1/lib/nokogiri/xml/node_set.rb:189:in `each'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/amp-jekyll-1.0.2/lib/jekyll/amp_filter.rb:14:in `amp_images'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/strainer.rb:56:in `invoke'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/context.rb:86:in `invoke'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/variable.rb:78:in `block in render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/variable.rb:76:in `each'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/variable.rb:76:in `inject'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/variable.rb:76:in `render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/block_body.rb:109:in `render_node'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/block_body.rb:88:in `block in render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/block_body.rb:75:in `each'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/block_body.rb:75:in `render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/template.rb:208:in `block in render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/template.rb:242:in `with_profiling'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/template.rb:207:in `render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/liquid-4.0.0/lib/liquid/template.rb:220:in `render!'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:30:in `block (2 levels) in render!'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:42:in `measure_bytes'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:29:in `block in render!'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:49:in `measure_time'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:28:in `render!'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:123:in `render_liquid'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:188:in `render_layout'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:155:in `place_in_layouts'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:85:in `render_document'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:62:in `run'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/site.rb:466:in `block in render_pages'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/site.rb:464:in `each'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/site.rb:464:in `render_pages'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/site.rb:193:in `render'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/site.rb:73:in `process'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/command.rb:28:in `process_site'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:65:in `build'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:36:in `process'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /Users/admin/.rvm/gems/ruby-2.4.1/gems/jekyll-3.6.2/exe/jekyll:15:in `<top (required)>'
from /Users/admin/.rvm/gems/ruby-2.4.1/bin/jekyll:23:in `load'
from /Users/admin/.rvm/gems/ruby-2.4.1/bin/jekyll:23:in `<main>'
from /Users/admin/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/admin/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
And finaly, here is my project tree