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

Set <title> tag with the title of the current page on melpa.org #2969

Closed

Conversation

jacktasia
Copy link
Contributor

This PR sets the <title> tag with the title of the current page. So if you're on a specific package's page you'll actually see that package's name+version in your browser's tab and more importantly when you're going through your browser history (which was my motivation for this PR).

image

Right now it's using | as the separator and I am not 100% sure version should be part of the title, but I do think something like this should be done regardless of style/content decisions. Thoughts?

This PR was tested on the most recent versions of Chrome, Firefox, and Safari on a Mac.

@purcell
Copy link
Member

purcell commented Jul 28, 2015

Thanks, yes, I'd also like this to work properly! Not sure that this is quite the ideal implementation, since the view() functions shouldn't have any side effects, so let me have a think about this and I'll either merge this or something similar.

@purcell purcell self-assigned this Jul 28, 2015
@jacktasia
Copy link
Contributor Author

Cool, thanks. FWIW, it may make more sense to use - as a separator than |. I was curious what, if any, impact that would have on Google results and it looks like they're auto-creating titles for you with a - now. I have zero idea if this actually matters, but I thought I'd bring it up. Either way looking forward to seeing this live however you decide to implement it.

image

@purcell purcell closed this in 6eb07d6 Aug 23, 2015
@purcell
Copy link
Member

purcell commented Aug 23, 2015

Done in a more verbose but perhaps slightly cleaner way in 6eb07d6. Should take effect within a couple of hours.

jeffgran pushed a commit to jeffgran/melpa that referenced this pull request Jan 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants