File tree Expand file tree Collapse file tree 1 file changed +25
-23
lines changed
sites/svelte.dev/src/routes/blog/[slug] Expand file tree Collapse file tree 1 file changed +25
-23
lines changed Original file line number Diff line number Diff line change 2020 <meta name ="og:image" content ="https://svelte.dev/blog/ {$page .params .slug }/card.png" />
2121</svelte:head >
2222
23- <article class =" post listify text" use:copy _code_descendants>
24- <h1 >{data .post .title }</h1 >
25- <p class ="standfirst" >{data .post .description }</p >
26-
27- <p class =" byline" >
28- <a href ={data .post .author .url }>{data .post .author .name }</a >
29- <time datetime ={data .post .date }>{data .post .date_formatted }</time >
30- </p >
31-
32- <DocsOnThisPage
33- details ={{
34- content : ' ' ,
35- file : ' ' ,
36- path : ` /blog/${data .post .slug } ` ,
37- sections : data .post .sections ,
38- slug : data .post .slug ,
39- title : data .post .title
40- }}
41- orientation =" inline"
42- />
43-
44- {@html data .post .content }
45- </article >
23+ <div class =" content" >
24+ <article class =" post listify text" use:copy _code_descendants>
25+ <h1 >{data .post .title }</h1 >
26+ <p class ="standfirst" >{data .post .description }</p >
27+
28+ <p class =" byline" >
29+ <a href ={data .post .author .url }>{data .post .author .name }</a >
30+ <time datetime ={data .post .date }>{data .post .date_formatted }</time >
31+ </p >
32+
33+ <DocsOnThisPage
34+ details ={{
35+ content : ' ' ,
36+ file : ' ' ,
37+ path : ` /blog/${data .post .slug } ` ,
38+ sections : data .post .sections ,
39+ slug : data .post .slug ,
40+ title : data .post .title
41+ }}
42+ orientation =" inline"
43+ />
44+
45+ {@html data .post .content }
46+ </article >
47+ </div >
4648
4749<!-- the crawler doesn't understand twitter:image etc, so we have to add this hack. TODO fix in sveltekit -->
4850<img hidden src ="/blog/ {$page .params .slug }/card.png" alt ="Social card for {data .post .title }" />
You can’t perform that action at this time.
0 commit comments