-
Notifications
You must be signed in to change notification settings - Fork 100
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
Customize generated page title #63
Comments
Would you like to change the title on all archive pages, or just for specific categories/tags? |
I'm not really sure yet. Are there implications to each? On Thu, May 19, 2016 at 10:12 PM, Nick [email protected] wrote:
Adam Becker |
Maybe, although I'm not sure what the implications would be yet. I'm working on a branch trying to add some support for this, as I have a similar need. |
I pushed a version where I'm testing customizable tag and category titles. (and descriptions) See fc8af85e/lib/jekyll-archives.rb and fc8af85e/lib/jekyll-archives/archive.rb You can now set custom title prefixes in
These strings will be added in front of the generated page title. If no tag or cat specific prefix, the plugin falls back to title_prefix, and if no prefix, just the tag/cat title is used. You can set a custom title per tag/cat using
This is handy in tandem with my other commit testing case-insensitive tags/cats 3e3d819, where I have to downcase all the tags/cats in order to merge them properly. So you could tweak the casing or spelling of specific tags/cats site-wide using data files, while allowing post authors to ignore casing completely within their posts. Authors should be writing, not worrying about correct casing of tags/cats. Feedback and critiques are greatly appreciated. I feel like the code could be simplified a good bit. 😎 @ajb using my commit, you'd set the following in
And in your tag archive layout, remove everything from |
Any news on this issue? I would also like to see it fixed. |
This is awesome! Any chance we could get a suffix too? |
I'd also appreciate the ability to customize the title attribute of the generated pages. Currently it's hard to use this plugin together with jekyll_seo_tag. |
Agreed. How would I go about setting a meta description for the archive pages if I'm using this in line with jekyll-seo-tag? |
Would it be too complicated if we allowed a Liquid template to be set as a title in archives:
title: "Posts tagged with {{ page.title }}" |
No news on this? I "fixed" it by adding
|
did this ever get looked into? |
❤️ to all the contributors for this great plugin.
It seems like this gem is heavily reliant on its ability to set the page title, which prevents us from achieving our preferred page titles:
Is there a workaround? Am I missing something?
The text was updated successfully, but these errors were encountered: