Add language file for GitHub Export plugin and fix status retrieval method

This commit is contained in:
interlope committed 2026-06-01 16:53:24 +02:00
1 parent 93555b3044
commit 571827b18c
2 files changed
+8 -2

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
{
"plugin-data": {
"name": "GitHub Export",
"description": "Export Bludit articles to a GitHub repository as Markdown files with YAML frontmatter."
}
}
+2 -2
View File
@@ -148,7 +148,7 @@ class pluginBluditGithub extends Plugin
private function shouldExport($page)
{
return $page->status() !== 'draft' || $this->getValue('exportDrafts');
return $page->getValue('status') !== 'draft' || $this->getValue('exportDrafts');
}
private function exportPage($page, $saveStatus = true)
@@ -223,7 +223,7 @@ class pluginBluditGithub extends Plugin
$fm .= 'title: "' . addslashes($page->title()) . "\"\n";
$fm .= 'date: ' . date('Y-m-d', strtotime($page->getValue('dateRaw'))) . "\n";
$fm .= 'slug: ' . $page->key() . "\n";
$fm .= 'status: ' . $page->status() . "\n";
$fm .= 'status: ' . $page->getValue('status') . "\n";
$fm .= 'tags:' . ($tagLines ?: ' []') . "\n";
$description = $page->description();