Add language file for GitHub Export plugin and fix status retrieval method
This commit is contained in:
1 parent
93555b3044
commit
571827b18c
2 files changed
+8
-2
No files matched your search
@@ -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
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user