chore(lang): lang element based on frontmatter or default locale (#819)
default locale Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
		@@ -209,8 +209,10 @@ export function renderPage(
 | 
			
		||||
    </div>
 | 
			
		||||
  )
 | 
			
		||||
 | 
			
		||||
  const lang = componentData.frontmatter?.lang ?? cfg.locale.split("-")[0]
 | 
			
		||||
 | 
			
		||||
  const doc = (
 | 
			
		||||
    <html>
 | 
			
		||||
    <html lang={lang}>
 | 
			
		||||
      <Head {...componentData} />
 | 
			
		||||
      <body data-slug={slug}>
 | 
			
		||||
        <div id="quartz-root" class="page">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user