Skip to content

Commit

Permalink
add more documentation on rednering
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-awwad committed Oct 6, 2024
1 parent c66030a commit 77d9fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ Add the following partial to your `layout.antlers.html`

`{{ partial:fine-seo::components/meta }}`

In case not all meta are required or further customiztion needed, then just copy the `/components/_meta.antlers.html` to your project and make the changes you like and call your own partial.

## How to Use

Its straight forward addon, just visit the addon page and click on the blue button to generate the needed seo fields.

TODOs:
[] Add Brand globals
[] Add a youtube video to describe this
[] Support JSON LD for website and organization

Statamic marketplace has other paid SEO addons with so much more functionalities. But this Fine SEO addon is a simple way to get started.
1 change: 1 addition & 0 deletions resources/views/components/_meta.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta name="og:image" content="{{ fine_seo_image ?? brand.logo }}">
<meta name="og:url" content="{{ url }}">
<meta name="og:type" content="{{ yield:og_type }}website{{ /yield:og_type }}">
<meta name="og:site_name" content="{{ siteTitle }}">
<meta name="twitter:title" content="{{ pageTitle }}{{ separator }}{{ siteTitle }}">
<meta name="twitter:description" content="{{ fine_seo_description }}">
<meta name="twitter:image" content="{{ fine_seo_image ?? brand.logo }}">
Expand Down

0 comments on commit 77d9fcf

Please sign in to comment.