hugolib: markdown_title: add title from markdown
authorNikita Shubin <nikita.shubin@maquefel.me>
Sun, 8 May 2022 07:13:27 +0000 (10:13 +0300)
committerNikita Shubin <nikita.shubin@maquefel.me>
Sun, 8 May 2022 07:13:27 +0000 (10:13 +0300)
commit9c80f18328d4a168b0ee4fa55f930c322c67b966
tree44eed7f6f01f4ca2bf73297f01c8917df6d305ba
parent903c9301b12d782f16a35946d614c6c2095e68b5
hugolib: markdown_title: add title from markdown

Getting title from the page itself, as first encountered header in
markdown file.

Currently it's inefficient as we parsing page twice, the first in some
ealier point when hugo renders markdown, so it should be embedded
somewhere in that place.

But currently i don't care about if a PoC implementation.

Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
hugolib/content_map_page.go
hugolib/hugo_sites.go
hugolib/markdown_title.go [new file with mode: 0644]
hugolib/page.go
hugolib/page__common.go