---
title: publishesNote
description: >-
  Whether the build publishes a note at `path` inside the vault with
  `frontmatter`: discovery reads its folder, and the vault's include and exclude
  patterns let it through and it isn't a draft, unless a publication date
  publishes it anyway, and it isn't private. A published note may still be
  password-protected. Page history judges a note's earlier versions with it, at
  the paths they had then.
updated_at: '2026-11-19T22:03:58+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: function
  name: publishesNote
  signatures:
    - >-
      publishesNote(config:
      Pick<[[reference/api/core/ResolvedConfig|ResolvedConfig]], "include" |
      "exclude" | "publicationMode" | "frontmatter">, path: string, frontmatter:
      Readonly<Record<string, unknown>> | undefined): boolean
  parameters:
    - name: config
      type: >-
        Pick<[[reference/api/core/ResolvedConfig|ResolvedConfig]], "include" |
        "exclude" | "publicationMode" | "frontmatter">
    - name: path
      type: string
    - name: frontmatter
      type: 'Readonly<Record<string, unknown>> | undefined'
  returns:
    type: boolean
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugins/src/filter-unpublished.ts#L25
---

# publishesNote
