( options = {} )
| 247 | export class PageHead { |
| 248 | |
| 249 | constructor ( options = {} ) { |
| 250 | const { |
| 251 | title, |
| 252 | description, |
| 253 | meta = [], |
| 254 | link = [], |
| 255 | structuredData = null, |
| 256 | |
| 257 | domain = getSiteUrl(), |
| 258 | pathname = '', |
| 259 | } = options |
| 260 | |
| 261 | this.title = title |
| 262 | this.description = description |
| 263 | this.meta = meta |
| 264 | this.link = link |
| 265 | this.structuredData = structuredData |
| 266 | |
| 267 | this.domain = domain |
| 268 | this.pathname = pathname |
| 269 | } |
| 270 | |
| 271 | get pageUrl () { |
| 272 | const urlInstance = new URL( this.domain ) |
nothing calls this directly
no test coverage detected