Ghost.psd1

@{
    RootModule           = 'Ghost.psm1'
    ModuleVersion        = '0.2.0'
    CompatiblePSEditions = @('Desktop', 'Core')
    GUID                 = '2c88733f-7c78-4043-b269-2b3306b8c3fe'
    Author               = 'Gijs Reijn'
    CompanyName          = 'Community'
    Copyright            = '(c) Gijs Reijn. All rights reserved.'
    Description          = 'Community Ghost Admin API module: posts, tags, images, themes, Markdown files, local sites.'
    PowerShellVersion    = '5.1'
    FormatsToProcess     = @(
        'ObjectDefinitions/Ghost.Image.ps1xml'
        'ObjectDefinitions/Ghost.LocalSite.ps1xml'
        'ObjectDefinitions/Ghost.Post.ps1xml'
        'ObjectDefinitions/Ghost.PostSync.ps1xml'
        'ObjectDefinitions/Ghost.Tag.ps1xml'
        'ObjectDefinitions/Ghost.Theme.ps1xml'
        'ObjectDefinitions/Ghost.ThemeSync.ps1xml'
    )
    FunctionsToExport    = @(
        'Connect-Ghost'
        'Copy-GhostPost'
        'Disconnect-Ghost'
        'Enable-GhostTheme'
        'Export-GhostContent'
        'Get-GhostPost'
        'Get-GhostTag'
        'Import-GhostContent'
        'New-GhostImage'
        'New-GhostPost'
        'New-GhostPostFile'
        'New-GhostTag'
        'New-GhostTheme'
        'Publish-GhostPost'
        'Remove-GhostLocalSite'
        'Remove-GhostPost'
        'Remove-GhostTag'
        'Set-GhostPost'
        'Set-GhostTag'
        'Start-GhostLocalSite'
        'Stop-GhostLocalSite'
        'Sync-GhostPost'
        'Sync-GhostTheme'
        'Unpublish-GhostPost'
    )
    CmdletsToExport      = @()
    VariablesToExport    = @()
    AliasesToExport      = @()

    PrivateData          = @{
        PSData = @{
            Tags         = @('Ghost', 'GhostCMS', 'AdminAPI', 'Blog', 'CMS', 'Publishing', 'Markdown', 'REST')

            # build/build.ps1 sets the prerelease label, such as preview1, in the copy that is published.
            Prerelease   = ''

            # build/build.ps1 fills in the notes of the version from CHANGELOG.md, in the copy that is published.
            ReleaseNotes = '### Added

- `Sync-GhostPost` reads front matter in YAML as well as JSON: `title: My post`, `tags: [News, Releases]`.
- `Sync-GhostPost -Recurse` also takes the Markdown files in the folders below a folder, for posts that have a
  folder of their own: `posts/2026-11-20-my-post/index.md`, with its images next to it. Such a post gets its slug
  from the name of its folder.
- `New-GhostPostFile`: start a post as such a folder, with the front matter filled in.
- `Start-GhostLocalSite`, `Stop-GhostLocalSite` and `Remove-GhostLocalSite`: a Ghost site on your own machine or
  on a build agent, with an owner, an Admin API key and, when you name one, a theme from a folder or a git
  repository and its `routes.yaml`.
- `Export-GhostContent` and `Import-GhostContent`: save the posts, pages, tags and settings of a site to a file,
  and add them to or replace those of a site on your own machine. Together they make a local copy of a live site.
- `Sync-GhostTheme`: upload and activate a theme only when the site does not show it yet, so that it can run on
  every push.

### Changed

- A date at the start of the name of a post file or folder, as in `2026-11-20-my-post`, is no longer part of the
  slug. It is the publication date of the post, unless the front matter has a `published_at`.
- A date in the front matter without a time zone is read as UTC, on every machine.'

        }
    }
}