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

title_seperator not working for "|" #1201

Closed
3 of 5 tasks
deepaksood619 opened this issue Aug 25, 2017 · 5 comments
Closed
3 of 5 tasks

title_seperator not working for "|" #1201

deepaksood619 opened this issue Aug 25, 2017 · 5 comments

Comments

@deepaksood619
Copy link
Contributor

deepaksood619 commented Aug 25, 2017

  • This is a question about using the theme.
  • This is a feature request.
  • I believe this to be a bug with the theme.
    • I have updated all gems with bundle update.
    • I have tested locally with bundle exec jekyll build.

Environment informations

  • Minimal Mistakes version: - 4.5.1
  • Jekyll version: - 3.5.2
  • GitHub Pages hosted: yes
  • Operating system: - macOS Sierra

Expected behavior

title_separator : "|"
screen shot 2017-08-25 at 3 40 31 pm

The title doesn't show the title separator as specified, when pipe is used (above image)

title_separator : "-"
screen shot 2017-08-25 at 3 41 22 pm

I tried it with "," "x" and it's working, it seems that title_seperator : "|" is only not working (pipe |)
Its not working in any page, home, blog, etc.

@mmistakes
Copy link
Owner

mmistakes commented Aug 25, 2017

You have to use the HTML entity title_separator: "|". The | pipe character means something in YAML and it's getting tripped up there.

Duplicate of #760

@deepaksood619
Copy link
Contributor Author

Thank you so much...
I was just wondering that, is there any way we can have a post that will show in archive and is linked to other post. i.e. clicking in the post will direct it to a post posted on another website?
Another use case - portfolio in grid view showing portfolio example, but clicking on a grid takes user to the link attached and not to blog or about of portfolio?
Can we achieve this?

@mmistakes
Copy link
Owner

Sure. You can use the "Link Post" code to get an idea of how to do this. You'll most likely need to alter the theme some.

If you go to the Year Archive and scroll down to Post: Link you'll see it links to an external site... and the link icon goes to the post's permalink.

Relevant source files:

@deepaksood619
Copy link
Contributor Author

Thanks for the reply,
I exactly wanted this functionality.

But the problem now is that since there is a grid layout archive for my project portfolios, i am doing this in my portfolio.html

<div class="grid__wrapper">
  {% assign items = site.portfolio | sort: 'date' | reverse %}
  {% for post in items %}
    {% include archive-single.html type="grid" %}
  {% endfor %}
</div>

and the problem is that in post with link, the date tag is not working, excerpt and header are working though.

How would i achieve a sort on date as my portfolio links are not created by date since i don't want that, i wanted a simple direct link for them, so i am not saving the files in collection with date prefixes. And if i don't do the date sort then the portfolios are shown in alphabetical order.

So how would i achieve this.

@deepaksood619
Copy link
Contributor Author

Sorry, i got the solution. Thanks. It was working, issue was on formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants