mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: generate_summary and generate_description match hugo better.
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ og_for_page :: proc(site_og: Open_Graph, page: Page) -> Open_Graph {
|
||||
description_set = true
|
||||
}
|
||||
if !description_set && is_article && page.body_html != "" {
|
||||
og.description = generate_summary(page.body_html)
|
||||
og.description = generate_description(generate_summary(page.body_html))
|
||||
description_set = true
|
||||
}
|
||||
if !description_set {
|
||||
|
||||
Reference in New Issue
Block a user