Closed floatingpurr closed 6 years ago
You have a link to a public repo? I can't help troubleshoot your issue without it.
Hello, I've just loaded the code here: https://github.com/floatingpurr/test : )
You can see the problem in action in _pages/blog/index.html
Ah yeah seen this one before. You have to use |
as a HTML entity, since it breaks some of the Liquid code if you don't.
See this issue for the fix.
Thank you so much! Excuse me if I take advantage from this discussion for a coupe of little things without opening up a new one.
Hint: in the theme guide there is the statement
Example:
title_separator: "|"
would produce page titles likeSample Page | My Awesome Site
.
It could be useful specifying this problem : )
Follow up: I still see a lot of blank lines among tags in generated html files. Is this a problem related to this theme or it's just a characteristic of jekyll template system?
Thank you once again
Happy to accept a pull request if you want to update the documentation files to include a note about using title_separator: "|"
.
As far as blank spaces and lines. Do you mean in the actual rendered page? Or in the HTML source? If its the source that's a side effect of Liquid. You'll see a bunch of blank lines and inconsistent indentation due to for
loops and conditionals.
Liquid 4 allows you to collapse some of that, but it doesn't completly remove it. It's a non-issue if you ask me. On my personal site I pipe all my .html
files through minifiers to strip all that out and reduce the file sizes for improved page load.
Yes, exactly, I mean the HTML source. Minifiers are a good hint.
I saw you have fixed docs in commit 1c0f191. Thanks for your support!
No problem. I also made a small fix to the seo.html include. It automatically replaces |
with the HTML entity now, so it should work making that the separator in _config.yml
.
@mmistakes, great job :clap:
bundle update
.bundle exec jekyll build
.Environment informations
I've marked this post as a question because probably I'm using the theme in a wrong way.
Expected behavior
In my
_config.yml
file I set:When I build pages, I expect to have pages titles like:
<title>Page Title | Foo </title>
instead I have something like this:
<title> Page Title Foo </title>
with a lot of extra spaces (see the source of this markdown).
|
?Is there a way to avoid those issues?