Include widgets.js on blog posts that need it

Fixes #78
This commit is contained in:
Oliver Davies 2020-05-29 21:05:17 +01:00
parent 22533eba56
commit 79eb9bef0b
7 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,23 @@
uuid: e9be005a-2f67-4204-ba80-72a74e7f990b
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_has_tweet
- node.type.post
id: node.post.field_has_tweet
field_name: field_has_tweet
entity_type: node
bundle: post
label: 'Has tweet'
description: 'Check to include Twitter''s widget.js script for this page.'
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'Yes'
off_label: 'No'
field_type: boolean