okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
251 stars 134 forks source link

Add default page title #670

Closed mpourismaiel closed 4 years ago

mpourismaiel commented 4 years ago

What this PR does / why we need it: Add default page title using title of the first content fragment found in page.

Which issue this PR fixes: fixes (partially) #655

Special notes for your reviewer: This PR only adds default title to the page. Removing date metadata which was mentioned in the issue is not done and I don't think fixing it in the same PR is a good idea since the change is a bit complicated already.

Release note:

- page: Each page now uses the first content fragment's title as page title by default.
ghost commented 4 years ago

DeepCode's analysis on #1fe8e6 found:

:speech_balloon: This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


:relaxed: If you want to provide feedback on our bot, here is how to contact us.