-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Page title leaking to home index.html #2379
Comments
Need to see your config and content to troubleshoot. I’m guessing one of your HTML files is the culprit. Please share a link to a public repo. |
I don't have it as a public repo, but you should be able to replicate. Create a first.html file in _pages (it doesn't start with the traditional date string like most page files, it was taken from a Wordpress export of draft pages): It has this frontmatter:layout: single
|
Sorry can’t reproduce it. Any file you have in a _pages folder isn’t a post so it won’t show up any of the post related archive pages e.g. tags, categories, posts by year, etc. Sounds to me like one of your posts has some goofy YAML or maybe even you have some with the same permalink. Without seeing your actual files I can’t say. I’ve definitely see weird stuff in content that does stuff like this. And it can be hard to catch if you don’t know what your looking for. |
I've given you access to the private repository if you'll find it useful to debug for other users. It's not a big issue as it's just the HTML title tag, so this is a low priority bug and more of an FYI. |
There's something screwy for sure. If you delete the Trying to figure out where it's getting that from... |
I can't locate the bad file, but you have one somewhere buried.
Once that is working start moving your Which leads me to believe there's a file with YAML front matter in it, that's buried in another Jekyll folder that get's processed and messes something up on the homepage. |
Hi, I think I may take a look at this. Would you mind sharing necessary information so I can reproduce it? |
Further testing, doesn't appear to be your content, configuration, or the theme. I'm not sure what plugin is the culprit but it appears to be one of the Jekyll ones. I tried disabling all plugins, but because the theme gem has a few marked as dependencies they get installed anyways. Now, if I removed the theme gem from Now to find out what plugin is the problem. |
Looks like it's a Jekyll 4.0 issue... or a 4.0 issue combined with one the Jekyll plugins like include-cache. Seeing how most users of this theme host on GitHub Pages and that's locked at 3.8 that would explain why the issue has gone unnoticed. Change your source "https://rubygems.org"
gem "jekyll", "~> 3.8.6"
gem "minimal-mistakes-jekyll"
gem "jekyll-redirect-from" Run And you should have no problems building your site. |
Seems related to this issue jekyll/jekyll#7811 |
This resolved the issue, thanks for taking the time! |
@mmistakes Maybe it's time to unpin this issue. Jekyll 4.0.1 is out and the specific cause has been fixed (as you linked, jekyll/jekyll#7811). |
Environment
Expected behavior
I expect the main website title to be that in title: in _config.yml.
Instead I'm getting "The three values of entrepreneurship -" in front of the that title: in the <title> html.
Steps to reproduce the behavior
I'm not sure, but in _pages I have a bunch of html files, one of them called first.html with this front matter:
layout: single
title: The three values of entrepreneurship
permalink: "three-values-of-entrepreneurship"
and the issue is "The three values of entrepreneurship" is the prefix HTML <title> on the front page of this website now. That first.html is not referenced anywhere else, it was just a draft page.
copied a pile of *.html draft files into _pages, but they are not referenced in navigation.yml or elsewhere
Other
The text was updated successfully, but these errors were encountered: