BeaconCMS / BeaconCMS/beacon_live_admin
Components and Pages: Snippets: add `{{ site.url }}`
Open
area:seo
enhancement
good first issue
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Add a `site` map assign with `url` field to page snippets, which is useful for some meta tags like `og:url` that could be defined as `{{ site.url }}/{{ page.path }}`
The url can be obtained from the [config endpoint](https://github.com/BeaconCMS/beacon/blob/544ca030a8ea804607bcff93dfba81e475165429/lib/beacon/config.ex#L130):
```elixir
Beacon.Config.fetch!(site).endpoint.url()
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.