Skip to content

Adding hyperlinks to blog post titles.#10

Open
sergiotarxz wants to merge 2 commits intobludit-themes:masterfrom
sergiotarxz:feature/issue_#2/hyperlinks_in_titles
Open

Adding hyperlinks to blog post titles.#10
sergiotarxz wants to merge 2 commits intobludit-themes:masterfrom
sergiotarxz:feature/issue_#2/hyperlinks_in_titles

Conversation

@sergiotarxz
Copy link
Contributor

@sergiotarxz sergiotarxz commented Jul 20, 2020

Adding hyperlinks to blog post titles, if there is no title, page permalink is used as a title.

Issue #2

The usage of htmlentities is related to issue #4, I filtered also ' in urls because there is a chance other people commiting changes to this repo without knowing htmlentities by default doesn't filter ' and using ' as href delimiter.

@sergiotarxz sergiotarxz mentioned this pull request Jul 21, 2020
@dignajar
Copy link
Collaborator

What happen if the title is empty? I want to show empty.

@sergiotarxz
Copy link
Contributor Author

sergiotarxz commented Jul 23, 2020

Maybe I can do a smaller link to article in this case, printing permalink as title can be weird.

So pages which you don't want to have title won't have a big permalink.

Issue bludit-themes#2
@sergiotarxz
Copy link
Contributor Author

sergiotarxz commented Jul 23, 2020

What happen if the title is empty? I want to show empty.

Maybe the solution I have come now is more elegant, I have added a link to the article in the footer and removed the need to print the title if you don't want to put one title will be anyway a permalink but there is no need to have a title.

@sergiotarxz
Copy link
Contributor Author

sergiotarxz commented Jul 23, 2020

2020-07-23-125545_956x1023_scrot
2020-07-23-125559_1920x1080_scrot
This is how it looks now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants