BeaconCMS / BeaconCMS/beacon_live_admin

Components and Pages: Snippets: add `{{ site.url }}`

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.