The problems' titles should also appear in the HTML <title> tags

Announcements, comments, ideas, feedback, and "How do I... ?" questions
Post Reply
shlomifish
Posts: 8
Joined: Fri Feb 12, 2016 6:16 pm

The problems' titles should also appear in the HTML <title> tags

Post by shlomifish »

Hi all! Currently the title tags ( https://developer.mozilla.org/en-US/doc ... ment/title ) of the individual problems' pages (such as https://projecteuler.net/problem=31 ) lack the problem's subject line / title / short description (e.g "Coin sums"). This is bad for SEO and also makes the default browser bookmarks less useful. Note that I cannot find that problem page in this DuckDuckGo search: https://duckduckgo.com/?q=euler+coins+s ... 0-1&ia=web .

Please add it to all the problems' pages.
shlomifish
Posts: 8
Joined: Fri Feb 12, 2016 6:16 pm

Re: The problems' titles should also appear in the HTML <title> tags

Post by shlomifish »

Do note that I wrote a userscript which provides a partial (and browser-side) fix for the issue: https://www.shlomifish.org/Files/files/ ... es.user.js
User avatar
euler
Administrator
Posts: 3698
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: The problems' titles should also appear in the HTML <title> tags

Post by euler »

Somehow I'd missed this. Good suggestion. I've modified the title to display: "#{id} {description} - Project Euler".
Image
impudens simia et macrologus profundus fabulae
SaxTenor
Posts: 4
Joined: Mon Sep 28, 2020 11:05 am

Re: The problems' titles should also appear in the HTML <title> tags

Post by SaxTenor »

Nice improvement. Thank you :wink:
shlomifish
Posts: 8
Joined: Fri Feb 12, 2016 6:16 pm

Re: The problems' titles should also appear in the HTML <title> tags

Post by shlomifish »

euler wrote: Sat Sep 18, 2021 10:27 am Somehow I'd missed this. Good suggestion. I've modified the title to display: "#{id} {description} - Project Euler".
Many thanks!
Post Reply