@@ -36,9 +36,9 @@ lastmod: 2021-05-22T19:25:00-01:00
3636---
3737` )
3838
39- b .WithContent ("mypage.md" , `---
39+ b .WithContent ("mypage/index .md" , `---
4040title: My Page
41- images: ["pageimg1.jpg", "pageimg2.jpg"]
41+ images: ["pageimg1.jpg", "pageimg2.jpg", "https://example.local/logo.png", "sample.jpg" ]
4242date: 2021-02-26T18:02:00+01:00
4343lastmod: 2021-05-22T19:25:00+01:00
4444---
@@ -58,37 +58,42 @@ title: My Site
5858` )
5959
6060 b .WithSunset ("content/mybundle/featured-sunset.jpg" )
61+ b .WithSunset ("content/mypage/sample.jpg" )
6162 b .Build (BuildCfg {})
6263
6364 b .AssertFileContent ("public/mybundle/index.html" , `
64- <meta name="twitter:image" content="https://example.org/mybundle/featured-sunset.jpg"/>
65+ <meta name="twitter:image" content="https://example.org/mybundle/featured-sunset.jpg" />
6566<meta name="twitter:title" content="My Bundle"/>
6667<meta property="og:title" content="My Bundle" />
6768<meta property="og:url" content="https://example.org/mybundle/" />
68- <meta property="og:image" content="https://example.org/mybundle/featured-sunset.jpg"/>
69+ <meta property="og:image" content="https://example.org/mybundle/featured-sunset.jpg" />
6970<meta property="article:published_time" content="2021-02-26T18:02:00-01:00" />
7071<meta property="article:modified_time" content="2021-05-22T19:25:00-01:00" />
7172<meta itemprop="name" content="My Bundle">
72- <meta itemprop="image" content="https://example.org/mybundle/featured-sunset.jpg">
73+ <meta itemprop="image" content="https://example.org/mybundle/featured-sunset.jpg" / >
7374<meta itemprop="datePublished" content="2021-02-26T18:02:00-01:00" />
7475<meta itemprop="dateModified" content="2021-05-22T19:25:00-01:00" />
7576
7677` )
7778 b .AssertFileContent ("public/mypage/index.html" , `
78- <meta name="twitter:image" content="https://example.org/pageimg1.jpg"/>
79+ <meta name="twitter:image" content="https://example.org/pageimg1.jpg" />
7980<meta property="og:image" content="https://example.org/pageimg1.jpg" />
8081<meta property="og:image" content="https://example.org/pageimg2.jpg" />
82+ <meta property="og:image" content="https://example.local/logo.png" />
83+ <meta property="og:image" content="https://example.org/mypage/sample.jpg" />
8184<meta property="article:published_time" content="2021-02-26T18:02:00+01:00" />
8285<meta property="article:modified_time" content="2021-05-22T19:25:00+01:00" />
83- <meta itemprop="image" content="https://example.org/pageimg1.jpg">
84- <meta itemprop="image" content="https://example.org/pageimg2.jpg">
86+ <meta itemprop="image" content="https://example.org/pageimg1.jpg" />
87+ <meta itemprop="image" content="https://example.org/pageimg2.jpg" />
88+ <meta itemprop="image" content="https://example.local/logo.png" />
89+ <meta itemprop="image" content="https://example.org/mypage/sample.jpg" />
8590<meta itemprop="datePublished" content="2021-02-26T18:02:00+01:00" />
8691<meta itemprop="dateModified" content="2021-05-22T19:25:00+01:00" />
8792` )
8893 b .AssertFileContent ("public/mysite/index.html" , `
89- <meta name="twitter:image" content="https://example.org/siteimg1.jpg"/>
90- <meta property="og:image" content="https://example.org/siteimg1.jpg"/>
91- <meta itemprop="image" content="https://example.org/siteimg1.jpg"/>
94+ <meta name="twitter:image" content="https://example.org/siteimg1.jpg" />
95+ <meta property="og:image" content="https://example.org/siteimg1.jpg" />
96+ <meta itemprop="image" content="https://example.org/siteimg1.jpg" />
9297` )
9398}
9499
0 commit comments