fix: linitng fixes
This commit is contained in:
parent
f62ce81866
commit
88d5ef1bd7
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ frappe.ui.form.on('Blog Post', {
|
|||
generate_google_search_preview(frm);
|
||||
}
|
||||
});
|
||||
function generate_google_search_preview(frm){
|
||||
|
||||
function generate_google_search_preview(frm) {
|
||||
let google_preview = frm.get_field("google_preview");
|
||||
let seo_title = (frm.doc.title).slice(0, 60);
|
||||
let seo_description = (frm.doc.meta_description || frm.doc.blog_intro || "").slice(0, 160);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue