Netlify Jekyll stripping random HTML from category pages?

Hi my site name is http://focused-mcclintock-e782a5.netlify.app

I am today finding different behaviors between local builds (even with netlify build) compared to what Netlify is publishing. Specifically for some reason, Netlify is removing some arbitrary HTML from my pages. Suspicously category pages that have pagination.

When deployed, there’s a missing quote from Lao Tzu on this page:

Here’s what it looks like locally:

image

Very frustrating I can’t seem to reproduce what Netlify is doing, even locally. I’ve tried redeploying without cache on Netlify. And I’ve been using netlify build to recreate Netlify’s build env locally. I even tried this on a fresh checkout.

The only thing I can think is today I changed the Ruby version up to 2.7.1. Though both local and remote settings appear to be using Ruby 2.7.1.

Build settings are pretty boring Jekyll settings

Repository - github.com/softwaredoug/softwaredoug.com
Base directory - Not set
Build command - jekyll build
Publish directory - _site/
Builds - Active

The last deploy log

2:58:21 PM: Build ready to start
2:58:24 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
2:58:24 PM: build-image tag: v3.4.1
2:58:24 PM: buildbot version: e1f4178b0d9779ebad1b11d5b54739f82fed3c22
2:58:24 PM: Building without cache
2:58:24 PM: Starting to prepare the repo for build
2:58:24 PM: No cached dependencies found. Cloning fresh repo
2:58:24 PM: git clone https://github.com/softwaredoug/softwaredoug.com
2:58:25 PM: Preparing Git Reference refs/heads/master
2:58:27 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: '_site' versus '_site/' in the Netlify UI
2:58:27 PM: Starting build script
2:58:27 PM: Installing dependencies
2:58:27 PM: Python version set to 2.7
2:58:28 PM: Downloading and installing node v10.22.0...
2:58:29 PM: Downloading https://nodejs.org/dist/v10.22.0/node-v10.22.0-linux-x64.tar.xz...
2:58:29 PM: Computing checksum with sha256sum
2:58:29 PM: Checksums matched!
2:58:32 PM: Now using node v10.22.0 (npm v6.14.6)
2:58:32 PM: Started restoring cached build plugins
2:58:32 PM: Finished restoring cached build plugins
2:58:32 PM: Attempting ruby version 2.7.1, read from .ruby-version file
2:58:34 PM: Using ruby version 2.7.1
2:58:34 PM: Using PHP version 5.6
2:58:34 PM: Started restoring cached ruby gems
2:58:34 PM: Finished restoring cached ruby gems
2:58:34 PM: Installing gem bundle
2:58:34 PM: [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path '/opt/build/cache/bundle'`, and stop using this flag
2:58:34 PM: [DEPRECATED] The --binstubs option will be removed in favor of `bundle binstubs`
2:58:37 PM: Fetching gem metadata from https://rubygems.org/..........
2:58:37 PM: Fetching gem metadata from https://rubygems.org/.
2:58:37 PM: Resolving dependencies...
2:58:37 PM: Fetching public_suffix 4.0.6
2:58:37 PM: Installing public_suffix 4.0.6
2:58:37 PM: Fetching addressable 2.7.0
2:58:37 PM: Installing addressable 2.7.0
2:58:38 PM: Using bundler 2.1.4
2:58:38 PM: Fetching colorator 1.1.0
2:58:38 PM: Installing colorator 1.1.0
2:58:38 PM: Fetching concurrent-ruby 1.1.7
2:58:38 PM: Installing concurrent-ruby 1.1.7
2:58:38 PM: Fetching eventmachine 1.2.7
2:58:38 PM: Installing eventmachine 1.2.7 with native extensions
2:58:56 PM: Fetching http_parser.rb 0.6.0
2:58:56 PM: Installing http_parser.rb 0.6.0 with native extensions
2:58:57 PM: Fetching em-websocket 0.5.1
2:58:57 PM: Installing em-websocket 0.5.1
2:58:57 PM: Fetching ffi 1.13.1
2:58:57 PM: Installing ffi 1.13.1 with native extensions
2:59:06 PM: Fetching forwardable-extended 2.6.0
2:59:07 PM: Installing forwardable-extended 2.6.0
2:59:07 PM: Fetching i18n 1.8.5
2:59:07 PM: Installing i18n 1.8.5
2:59:07 PM: Fetching sassc 2.4.0
2:59:07 PM: Installing sassc 2.4.0 with native extensions
3:02:39 PM: Fetching jekyll-sass-converter 2.1.0
3:02:39 PM: Installing jekyll-sass-converter 2.1.0
3:02:39 PM: Fetching rb-fsevent 0.10.4
3:02:39 PM: Installing rb-fsevent 0.10.4
3:02:39 PM: Fetching rb-inotify 0.10.1
3:02:39 PM: Installing rb-inotify 0.10.1
3:02:39 PM: Fetching listen 3.2.1
3:02:39 PM: Installing listen 3.2.1
3:02:40 PM: Fetching jekyll-watch 2.2.1
3:02:40 PM: Installing jekyll-watch 2.2.1
3:02:40 PM: Fetching rexml 3.2.4
3:02:40 PM: Installing rexml 3.2.4
3:02:40 PM: Fetching kramdown 2.3.0
3:02:40 PM: Installing kramdown 2.3.0
3:02:40 PM: Fetching kramdown-parser-gfm 1.1.0
3:02:41 PM: Installing kramdown-parser-gfm 1.1.0
3:02:41 PM: Fetching liquid 4.0.3
3:02:41 PM: Installing liquid 4.0.3
3:02:41 PM: Fetching mercenary 0.4.0
3:02:41 PM: Installing mercenary 0.4.0
3:02:41 PM: Fetching pathutil 0.16.2
3:02:41 PM: Installing pathutil 0.16.2
3:02:41 PM: Fetching rouge 3.22.0
3:02:41 PM: Installing rouge 3.22.0
3:02:42 PM: Fetching safe_yaml 1.0.5
3:02:42 PM: Installing safe_yaml 1.0.5
3:02:42 PM: Fetching unicode-display_width 1.7.0
3:02:42 PM: Installing unicode-display_width 1.7.0
3:02:42 PM: Fetching terminal-table 1.8.0
3:02:42 PM: Installing terminal-table 1.8.0
3:02:42 PM: Fetching jekyll 4.1.1
3:02:42 PM: Installing jekyll 4.1.1
3:02:42 PM: Fetching jekyll-paginate-v2 3.0.0
3:02:42 PM: Installing jekyll-paginate-v2 3.0.0
3:02:42 PM: Fetching jekyll-redirect-from 0.16.0
3:02:42 PM: Installing jekyll-redirect-from 0.16.0
3:02:42 PM: Fetching multi_json 1.15.0
3:02:43 PM: Installing multi_json 1.15.0
3:02:43 PM: Fetching pygments.rb 1.2.1
3:02:43 PM: Installing pygments.rb 1.2.1
3:02:43 PM: Bundle complete! 5 Gemfile dependencies, 32 gems now installed.
3:02:43 PM: Bundled gems are installed into `/opt/build/cache/bundle`
3:02:43 PM: Post-install message from i18n:
3:02:43 PM: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
3:02:43 PM: But that may break your application.
3:02:43 PM: If you are upgrading your Rails application from an older version of Rails:
3:02:43 PM: Please check your Rails app for 'config.i18n.fallbacks = true'.
3:02:43 PM: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be'config.i18n.fallbacks = [I18n.default_locale]'.
3:02:43 PM: If not, fallbacks will be broken in your app by I18n 1.1.x.
3:02:43 PM: If you are starting a NEW Rails application, you can ignore this notice.
3:02:43 PM: For more info see:
3:02:43 PM: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
3:02:43 PM: Gem bundle installed
3:02:43 PM: 5.2 is already installed.
3:02:43 PM: Using Swift version 5.2
3:02:43 PM: Started restoring cached go cache
3:02:43 PM: Finished restoring cached go cache
3:02:43 PM: Installing Go version 1.12
3:02:51 PM: unset GOOS;
3:02:51 PM: unset GOARCH;
3:02:51 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64';
3:02:51 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}";
3:02:51 PM: go version >&2;
3:02:51 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env"
3:02:51 PM: go version go1.12 linux/amd64
3:02:51 PM: Installing missing commands
3:02:51 PM: Verify run directory
3:02:52 PM: ​
3:02:52 PM: ┌─────────────────────────────┐
3:02:52 PM: │        Netlify Build        │
3:02:52 PM: └─────────────────────────────┘
3:02:52 PM: ​
3:02:52 PM: ❯ Version
3:02:52 PM:   @netlify/build 3.3.5
3:02:52 PM: ​
3:02:52 PM: ❯ Flags
3:02:52 PM:   deployId: 5f53dfcd080cf02d1362f278
3:02:52 PM:   mode: buildbot
3:02:52 PM: ​
3:02:52 PM: ❯ Current directory
3:02:52 PM:   /opt/build/repo
3:02:52 PM: ​
3:02:52 PM: ❯ Config file
3:02:52 PM:   No config file was defined: using default values.
3:02:52 PM: ​
3:02:52 PM: ❯ Context
3:02:52 PM:   production
3:02:52 PM: ​
3:02:52 PM: ┌───────────────────────────────────┐
3:02:52 PM: │ 1. Build command from Netlify app │
3:02:52 PM: └───────────────────────────────────┘
3:02:52 PM: ​
3:02:52 PM: $ bundle exec jekyll build
3:02:53 PM: Configuration file: /opt/build/repo/_config.yml
3:02:53 PM:             Source: /opt/build/repo
3:02:53 PM:        Destination: /opt/build/repo/_site
3:02:53 PM:  Incremental build: disabled. Enable with --incremental
3:02:53 PM:       Generating...
3:02:53 PM:          AutoPages: Disabled/Not configured in site.config.
3:02:53 PM:         Pagination: Complete, processed 3 pagination page(s)
3:02:53 PM:                     done in 0.555 seconds.
3:02:53 PM:  Auto-regeneration: disabled. Use --watch to enable.
3:02:53 PM: ​
3:02:53 PM: (build.command completed in 1.5s)
3:02:53 PM: ​
3:02:53 PM: ┌─────────────────────────────┐
3:02:53 PM: │   Netlify Build Complete    │
3:02:53 PM: └─────────────────────────────┘
3:02:53 PM: ​
3:02:53 PM: (Netlify Build completed in 1.5s)
3:02:54 PM: Caching artifacts
3:02:54 PM: Started saving ruby gems
3:02:54 PM: Finished saving ruby gems
3:02:54 PM: Started saving build plugins
3:02:54 PM: Finished saving build plugins
3:02:54 PM: Started saving pip cache
3:02:54 PM: Finished saving pip cache
3:02:54 PM: Started saving emacs cask dependencies
3:02:54 PM: Finished saving emacs cask dependencies
3:02:54 PM: Started saving maven dependencies
3:02:54 PM: Finished saving maven dependencies
3:02:54 PM: Started saving boot dependencies
3:02:54 PM: Finished saving boot dependencies
3:02:54 PM: Started saving go dependencies
3:02:56 PM: Finished saving go dependencies
3:02:59 PM: Build script success
3:02:59 PM: Starting to deploy site from '_site'
3:02:59 PM: Creating deploy tree 
3:02:59 PM: Creating deploy upload records
3:03:00 PM: 0 new files to upload
3:03:00 PM: 0 new functions to upload
3:03:00 PM: Starting post processing
3:03:00 PM: Post processing - HTML
3:03:00 PM: Post processing - header rules
3:03:00 PM: Post processing - redirect rules
3:03:00 PM: Post processing done
3:03:00 PM: Site is live
3:03:43 PM: Finished processing build request in 5m19.442172209s

My local fresh checkout netlify build

doug@woz$~/ws/softwaredoug2(mas) $ netlify build
​
┌─────────────────────────────┐
│        Netlify Build        │
└─────────────────────────────┘
​
❯ Version
  @netlify/build 3.3.5
​
❯ Flags
  mode: cli
​
❯ Current directory
  /Users/doug/ws/softwaredoug2
​
❯ Config file
  No config file was defined: using default values.
​
❯ Context
  production
​
┌───────────────────────────────────┐
│ 1. Build command from Netlify app │
└───────────────────────────────────┘
​
$ jekyll build
Configuration file: /Users/doug/ws/softwaredoug2/_config.yml
            Source: /Users/doug/ws/softwaredoug2
       Destination: /Users/doug/ws/softwaredoug2/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
         AutoPages: Disabled/Not configured in site.config.
        Pagination: Complete, processed 3 pagination page(s)
                    done in 0.537 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
​
(build.command completed in 2s)
​
┌─────────────────────────────┐
│   Netlify Build Complete    │
└─────────────────────────────┘
​

HTML I’m surprised isn’t getting rendered

---
layout: page
tagline:
permalink: /unlearning/
hidden: true
title: Unlearning - Imagining the next world
pagination:
  enabled: true
  category: unlearning
  sort_reverse: true
---

TEST1

<blockquote cite="http://daily-tao.blogspot.com/2012/01/verse-48.html">
  <p>
One who seeks knowledge
learns something new each day.</p>
<p>One who seeks the Tao
unlearns something new each day.</p>
<footer><cite>Tao Te Ching, Verse 48</cite></footer>
</blockquote>

{% for post in paginator.posts %}

<article class="home" >

Hey @softwaredoug,
Silent failures are truly the worst! Have you successfully used blockquotes on other pages? I ask because in the course of looking into this, I found:

Thanks Jen - it’s not just block quotes it seems, other category pages (such as ones that use pagination) also have different issues. I would share an issue on my site, but many of the pages are personal with pics of kids, etc. Though I’d be happy to DM you a link if that’s possible here.

You certainly can, but I’m heading out for the weekend here shortly and I wouldn’t want your DM to sit in case someone else can get to it before I’m back on Tuesday. My parting thread to share is:

In lieu of a DM for now, if you could share some of the other kinds of tags that are getting stripped, as well as your Jekyll theme if you’re using one, that could also help my colleagues and other community members try to figure out what might be going on. And I will check back in next week!

BTW Jen and @paulcalvano - thanks for the help - disabling pagination has resolved the issue (well accept I won’t have pagination for now). I am thinking of simply removing pagination. It will at least solve the issue in the short term. I may also just decide to leave off pagination indefinitely…

1 Like