Skip to content

Commit

Permalink
Add missing example config
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgomez committed Oct 9, 2024
1 parent 1d3a6e2 commit 5ecddbf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions config/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -516,3 +516,14 @@ liveRegion:
messageTimeOutDurationMs: 30000
# The visibility of the live region. Setting this to true is only useful for debugging purposes.
isVisible: false

# Creative Commons metadata fields
ccLicense:
# Icon variant:
# 'full' variant shows image, a disclaimer (optional) and name (always), better for the item page content.
# 'small' (default) variant shows image and name (optional), better for the item page sidebar
variant: small
# Shows the CC license name with the image. Always show if image fails to load
showName: true
# Shows the disclaimer in the 'full' variant of the component
showDisclaimer: true
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ export class ItemPageCcLicenseFieldComponent implements OnInit {
* 'full' variant shows image, a disclaimer (optional) and name (always), better for the item page content.
* 'small' variant shows image and name (optional), better for the item page sidebar
*/
@Input() variant?: 'small' | 'full' = this.appConfig.ccLicense.variant;;
@Input() variant?: 'small' | 'full' = this.appConfig.ccLicense.variant;

/**
* Shows the CC license name with the image. Always show if image fails to load
*/
@Input() showName? = true;
@Input() showName? = this.appConfig.ccLicense.showName;

/**
* Shows the disclaimer in the 'full' variant of the component
*/
@Input() showDisclaimer? = true;
@Input() showDisclaimer? = this.appConfig.ccLicense.showDisclaimer;

ccLicenseUriField: string;
ccLicenseNameField: string;
Expand Down

0 comments on commit 5ecddbf

Please sign in to comment.