Skip to content

Commit

Permalink
Resolves #13 by making the color palette calculated.
Browse files Browse the repository at this point in the history
  • Loading branch information
ao5357 committed May 27, 2024
1 parent b8e6b1c commit fc6a114
Show file tree
Hide file tree
Showing 19 changed files with 282 additions and 165 deletions.
29 changes: 15 additions & 14 deletions config/sync/metatag.metatag_defaults.403.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ _core:
id: '403'
label: '403 access denied'
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
robots: noindex
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
shortlink: '[site:url]'
canonical_url: '[site:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
robots: noindex
shortlink: '[site:url]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
29 changes: 15 additions & 14 deletions config/sync/metatag.metatag_defaults.404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ _core:
id: '404'
label: '404 page not found'
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
robots: noindex
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
shortlink: '[site:url]'
canonical_url: '[site:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
robots: noindex
shortlink: '[site:url]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
13 changes: 7 additions & 6 deletions config/sync/metatag.metatag_defaults.commerce_product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ _core:
id: commerce_product
label: Product
tags:
image_src: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
description: '[commerce_product:field_seo:entity:field_seo_description]'
title: '[commerce_product:field_seo:entity:field_seo_title] | [site:name]'
canonical_url: '[current-page:url:absolute]'
og_url: '[current-page:url:absolute]'
description: '[commerce_product:field_seo:entity:field_seo_description]'
image_src: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
og_description: '[commerce_product:field_seo:entity:field_seo_description]'
og_image: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
og_site_name: '[site:name]'
og_title: '[commerce_product:field_seo:entity:field_seo_title]'
og_image: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
og_description: '[commerce_product:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
title: '[commerce_product:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
27 changes: 14 additions & 13 deletions config/sync/metatag.metatag_defaults.front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ _core:
id: front
label: 'Front page'
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
shortlink: '[site:url]'
canonical_url: '[site:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
shortlink: '[site:url]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
17 changes: 9 additions & 8 deletions config/sync/metatag.metatag_defaults.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ _core:
id: global
label: Global
tags:
title: '[current-page:title] | [site:name]'
canonical_url: '[current-page:url]'
og_phone_number: '[contact_info:phone:number]'
og_url: '[current-page:url]'
og_country_name: '[contact_info:address:country_name]'
og_email: '[contact_info:email:emailaddress]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax:number]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone:number]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[current-page:title]'
og_region: '[contact_info:address:region]'
og_fax_number: '[contact_info:fax:number]'
og_country_name: '[contact_info:address:country_name]'
og_url: '[current-page:url]'
title: '[current-page:title] | [site:name]'
view_transition: same-origin
13 changes: 7 additions & 6 deletions config/sync/metatag.metatag_defaults.node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ _core:
id: node
label: Content
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
canonical_url: '[node:url]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_site_name: '[site:name]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
25 changes: 13 additions & 12 deletions config/sync/metatag.metatag_defaults.taxonomy_term.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ _core:
id: taxonomy_term
label: 'Taxonomy term'
tags:
image_src: '[term:field_seo:entity:field_seo_image:entity:url]'
description: '[term:field_seo:entity:field_seo_description]'
title: '[term:field_seo:entity:field_seo_title] | [site:name]'
canonical_url: '[term:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[term:field_seo:entity:field_seo_description]'
image_src: '[term:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[term:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[term:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[term:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[term:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[term:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
title: '[term:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
1 change: 1 addition & 0 deletions config/sync/metatag.metatag_defaults.user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ tags:
canonical_url: '[user:url]'
description: '[site:name]'
title: '[user:display-name] | [site:name]'
view_transition: same-origin
1 change: 1 addition & 0 deletions docroot/modules/custom/frost_custom/frost_custom.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ package: Other
type: module
dependencies:
- contact_info:contact_info
- metatag:metatag
core_version_requirement: ^9 || ^10
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace Drupal\frost_custom\Plugin\metatag\Tag;

use Drupal\metatag\Plugin\metatag\Tag\MetaNameBase;

/**
* Add in the view-transition meta tag.
*
* @MetatagTag(
* id = "view_transition",
* label = @Translation("View transition"),
* description = @Translation("Set to 'same-origin' to enable cross-fade between pages."),
* name = "view-transition",
* group = "advanced",
* weight = "4",
* type = "label",
* secure = FALSE,
* multiple = FALSE
* )
*/
class ViewTransition extends MetaNameBase {
// Inherits everything from the base class.
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ dependencies: { }
id: '403'
label: '403 access denied'
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
robots: noindex
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
shortlink: '[site:url]'
canonical_url: '[site:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
robots: noindex
shortlink: '[site:url]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ dependencies: { }
id: '404'
label: '404 page not found'
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
robots: noindex
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
shortlink: '[site:url]'
canonical_url: '[site:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
robots: noindex
shortlink: '[site:url]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ dependencies: { }
id: commerce_product
label: Product
tags:
image_src: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
description: '[commerce_product:field_seo:entity:field_seo_description]'
title: '[commerce_product:field_seo:entity:field_seo_title] | [site:name]'
canonical_url: '[current-page:url:absolute]'
og_url: '[current-page:url:absolute]'
description: '[commerce_product:field_seo:entity:field_seo_description]'
image_src: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
og_description: '[commerce_product:field_seo:entity:field_seo_description]'
og_image: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
og_site_name: '[site:name]'
og_title: '[commerce_product:field_seo:entity:field_seo_title]'
og_image: '[commerce_product:field_seo:entity:field_seo_image:entity:field_media_image:entity:url]'
og_description: '[commerce_product:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
title: '[commerce_product:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ dependencies: { }
id: front
label: 'Front page'
tags:
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
description: '[node:field_seo:entity:field_seo_description]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
shortlink: '[site:url]'
canonical_url: '[site:url]'
og_phone_number: '[contact_info:phone]'
og_url: '[current-page:url:absolute]'
description: '[node:field_seo:entity:field_seo_description]'
image_src: '[node:field_seo:entity:field_seo_image:entity:url]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_email: '[contact_info:email]'
og_postal_code: '[contact_info:address:postal_code]'
og_fax_number: '[contact_info:fax]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_locality: '[contact_info:address:locality]'
og_street_address: '[contact_info:address:street_address]'
og_phone_number: '[contact_info:phone]'
og_postal_code: '[contact_info:address:postal_code]'
og_region: '[contact_info:address:region]'
og_site_name: '[site:name]'
og_street_address: '[contact_info:address:street_address]'
og_title: '[node:field_seo:entity:field_seo_title]'
og_region: '[contact_info:address:region]'
og_image: '[node:field_seo:entity:field_seo_image:entity:url]'
og_fax_number: '[contact_info:fax]'
og_country_name: '[contact_info:address:country_name]'
og_description: '[node:field_seo:entity:field_seo_description]'
og_url: '[current-page:url:absolute]'
shortlink: '[site:url]'
title: '[node:field_seo:entity:field_seo_title] | [site:name]'
view_transition: same-origin
Loading

0 comments on commit fc6a114

Please sign in to comment.