description: Hugo
subordinate: true
requires:
  web-publishing-directory:
    interface: publish-dir
    scope: container
data-resources:
  - /opt/apps/hugo/output

default-options:
  # config:
  #   language-code: "en-us"
  #   title: "My Hugo Site"
  #   theme: "ananke"

uses:
  publish-dir:
    #constraint: required | recommended | optional
    #auto: pair | summon | none ## default: pair
    scope: container
    constraint: required
    auto: summon
    solves:
      container: "main running server"
    default-options:
      location: !var-expand "$DATASTORE/$BASE_SERVICE_NAME/opt/apps/hugo/output"
  backup:
    constraint: recommended
    auto: pair
    solves:
      backup: "Automatic regular backup"
    default-options:
      ## First pattern matching wins, no pattern matching includes.
      ## include-patterns are checked first, then exclude-patterns
      ## Patterns rules:
      ##  - ending / for directory
      ##  - '*' authorized
      ##  - must start with a '/', will start from $SERVICE_DATASTORE
      exclude-patterns:
        - "/opt/apps/hugo/output/"