Multilingual question (newbie)

i’m totally new to hugu so sorry about the first question. Should be easy for you … i hope
I have i18n installed (actually using Theme GitHub - hugo-toha/toha: A Hugo theme for personal portfolio - Thanks to the author)
I added to KeyValue Pair to en.toml

other = “Lorem IpsumLorem IpsumLorem IpsumLorem IpsumLorem IpsumLorem IpsumLorem Ipsum”

in the opnegraph.html i want to use it, but i Don’t know how to escape the "

{{ $title       :=  (index site.Data ).site.openGraph.title | default site.Title }}

{{ $type        :=  (index site.Data ).site.openGraph.type | default "website" }}

{{ $url         :=  (index site.Data ).site.openGraph.url | default site.BaseURL }}

<!-- ============ open graph tags ========== -->

**<meta property="og:title" content="{{ $title }}"/>**

<meta property="og:type" content="{{ $type }}"/>

**<meta property="og:description" content="{{ i18n "description"  }}"/>**

<meta property="og:url" content="{{ $url }}">

I do not get an error but the content in the site is empty

<meta property="og:description" content=""/>

thanks for your help

I restarted the server and it worked … sorry to bother you - greate tool

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.