Title: Gitdown: Git Repository to WordPress Blog Posts
Author: Maxim Maeder
Published: <strong>2023 年 3 月 4 日</strong>
Last modified: 2024 年 3 月 24 日

---

搜索插件

![](https://ps.w.org/gitdown/assets/banner-772x250.png?rev=2905268)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/gitdown/assets/icon.svg?rev=2905274)

# Gitdown: Git Repository to WordPress Blog Posts

 作者：[Maxim Maeder](https://profiles.wordpress.org/maximmaeder/)

[下载](https://downloads.wordpress.org/plugin/gitdown.1.6.1.zip)

 * [详情](https://cn.wordpress.org/plugins/gitdown/#description)
 * [评价](https://cn.wordpress.org/plugins/gitdown/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/gitdown/#developers)

 [支持](https://wordpress.org/support/plugin/gitdown/)

## 描述

Gitdown: Git Repository to WordPress Blog Posts

_By [Maxim Maeder](https://www.maximmaeder.com)_

Gitdown lets you connect a Remote Repository to your Website and upload Markdown
articles to your WordPress Blog.

⚠️ This plugin is still in development. If you find any issues, don’t hesitate to
report them.

#### 🎈 Easy to use

Setting Gitdown up to work with your Repository and Glob Pattern takes no time and
can be easily changed anytime.

#### 🔨 Customization

The shape of your Repository does not matter, you can change the glob pattern to
your liking, and it will understand your repo correctly.

#### 🎁 100% Free

Gitdown is free, and you can use it for whatever you want. Of course, I would be
very grateful if you link back to me or the plugin so more people know about it 
😀.

#### 📚 Documentation

Once you activate Gitdown, it will take you to the documentation page, where you
should get all the necessary info.

You can also consult the following documents for Help.

 * [FAQ](https://github.com/Maximinodotpy/Gitdown/blob/master/docs/faq.md)
 * [Frontmatter Keys](https://github.com/Maximinodotpy/Gitdown/blob/master/docs/keys.md)
 * [Example File](https://github.com/Maximinodotpy/Gitdown/blob/master/docs/example.md)
 * [API Endpoint](https://github.com/Maximinodotpy/Gitdown/blob/master/docs/api-endpoint.md)
 * ([Changelog](https://github.com/Maximinodotpy/Gitdown/blob/master/docs/changelog.md))

You will also find helpful information in the _Reports_ section of the article overview.

⚠️ It may be outdated in some parts as I am somewhat unkeen writing documentation.
Please file an Issue so I know that I need to change it.

#### 👥 Contributing

All contributions are very welcome, so feel free to make [issues](https://github.com/Maximinodotpy/Gitdown/issues),
[proposals](https://github.com/Maximinodotpy/Gitdown/issues/proposals) and [pull requests](https://github.com/Maximinodotpy/Gitdown/pulls).

I’m building this Plugin by myself, and I made it for myself, but I think it could
also be helpful for others. So if you have any ideas on how to improve it, please
let me know.

####  Links

 * [Maximmaeder.com](https://maximmaeder.com/)
 * [My Profile on WordPress.org](https://profiles.wordpress.org/maximmaeder/)
 * [Plugin Page](https://wordpress.org/plugins/gitdown)
 * [SVN repository](https://plugins.svn.wordpress.org/gitdown/)
 * [My other projects](https://demos.maximmaeder.com/)

#### 🤙 Other Software that Gitdown uses.

This plugin uses the following third Party Services and Programs.

 * _[Globster.xyz](https://globster.xyz/)_ Is used in the how-to section for Gitdown
   to teach glob patterns. ([Privacy Policy](https://globster.xyz/privacy/))
 * _[Tailwindcss](https://tailwindcss.com/)_ Is used to style the main admin UI.
 * _[Vue.js](https://vuejs.org/)_ Is used for the main admin UI and its interactivity
   features.
 * _[mnapoli/FrontYAML](https://github.com/mnapoli/FrontYAML)_ Is used to get frontmatter
   information in markdown files.
 * _[git-php](https://github.com/czproject/git-php)_ Is used to clone and fetch 
   git repositories.

## 屏幕截图

 * [[
 * Dashboard User Interface (Normal)
 * [[
 * Dashboard User Interface (Empty)
 * [[
 * How to View Number One
 * [[
 * How to View Number Two
 * [[
 * Gitdown Reading Settings

## 常见问题

### Can I supply multiple glob patterns?

Yes, you can! Simply separate them by commas.

### Does Gitdown read nested categories from the markdown file?

Yes, it does! Something like `Animals/Cats`, will create these two classes in a 
nested fashion and add the last one as the category.

### Does Gitdown read tags?

Yes, It does! You can supply either a list of tags or a single tag.

### Does Gitdown support thumbnails?

Yes, It does! You simply have to provide a file called ‘preview.png’ in the same
folder as your article and it will be added as the thumbnail. This means that you
should have a folder for each article.

### Which keys and values can I provide in the Frontmatter of my Articles?

You find the description for each key [here](https://cn.wordpress.org/plugins/gitdown/keys.md?output_format=md).

### Can I also manage Pages with Gitdown

Yes, you can! simply add `post_type: page` to your frontmatter and this file will
be added as a page. You can then also define a parent page with `parent_page: <slug
of the parent page>`.

### Can Gitdown Automatically update/sync my articles?

Yes it can, simply go to the Settings and activate automatic updating there. Just
keep in mind that this could mean that you will create duplicate content by mistake
if you change the slug of your article.

### Can I connect Private Repositories?

Yes you can you will have to create an URL with the authentication. Consult the 
following links to set this up.

 * [Creating a URL to clone Private Github Repos](https://stackoverflow.com/questions/22755268/clone-a-private-repo-of-github-with-username-and-password)
 * [Creating a custom Personal Access Token](https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)

Generally the URL will have to look something like this: `https://<Username_or_Company
>:<PAT_or_Password>@github.com/<Username_or_Company>/<Repository_name>.git`

## 评价

此插件暂无评价。

## 贡献者及开发者

「Gitdown: Git Repository to WordPress Blog Posts」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ Maxim Maeder ](https://profiles.wordpress.org/maximmaeder/)

[帮助将「Gitdown: Git Repository to WordPress Blog Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gitdown)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/gitdown/)，查看[SVN仓库](https://plugins.svn.wordpress.org/gitdown/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/gitdown/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/gitdown/)。

## 更新日志

#### 1.0.1

 * Small Bugfixes
 * Removed Pull Repo Button

#### 1.0.4

 * Added Tag Insertion
 * wp_generate_attachment_metadata() -> thumbnails will get regenerated if Image
   Editor is available.

#### 1.0.5

 * Added automated updating and posting of posts (Experimental)

#### 1.0.6

 * Fix: Error when trying to clone a private repository

#### 1.2.0

 * Ability to add Pages
 * Breaking Changes

#### 1.2.1

 * Added more Warnings to Report Section (Git Clone Issues)

#### 1.4.6

 * Post Revisions
 * Better Static Resource Caching

#### 1.4.7

 * Documentation Update

#### 1.4.8

 * Documentation Update

#### 1.4.9

 * Documentation Update

#### 1.4.11

 * Swapped `CommonMarkConverter` with `GithubFlavoredConverter`

#### 1.4.12

 * Added [Heading Permalink Extension](https://commonmark.thephpleague.com/2.4/extensions/heading-permalinks/)

#### 1.4.13

 * Catch Type Error when getting Outdated Articles. ([Issue](https://github.com/Maximinodotpy/Gitdown/issues/31))

#### 1.5.0

 * Heading Permalinks removed `content` before id

#### 1.6.0

 * Added API Endpoint for Automating Post Updating

## 额外信息

 *  版本 **1.6.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.1.0 或更高版本 **
 *  已测试的最高版本为 **6.4.0**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/gitdown/)
 * 标签
 * [cms](https://cn.wordpress.org/plugins/tags/cms/)[Github](https://cn.wordpress.org/plugins/tags/github/)
   [markdown](https://cn.wordpress.org/plugins/tags/markdown/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/gitdown/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/gitdown/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gitdown/reviews/)

## 贡献者

 *   [ Maxim Maeder ](https://profiles.wordpress.org/maximmaeder/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/gitdown/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://maximmaeder.com)