GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — plugins/GitHubGit at master · typecho/plugins

Expand file tree

/

GitHubGit

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

GitHubGit

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Action.php
Action.php
 
 
Plugin.php
Plugin.php
 
 
README.md
README.md
 
 
Spyc.php
Spyc.php
 
 

README.md

Outline

Configuration

configure security code

Open Plugin.php in your editor, find this line:

const github_git = 'curtseyingpiddlesMiguelyeshivahsclarinettists'    ;

Change github_git value to something else.

You can make up anything you like, but please use a long and hard to guess one.

If the value of github_git be guessed by someone else, they can post articles to your blog, if they know how to add GitHub web hooks.

After editing, save Plugin.php.

setup GitHub web hook

In your repository, click Settings -> Service Hooks -> WebHook URLs, add the action url, e.g.

http://typecho.example.com/action/curtseyingpiddlesMiguelyeshivahsclarinettists

Install

Same as other typecho plugins.

That is:

  • Upload the GitHubGit diretory to usr/plugins of your typecho directory.
  • Enable the plugin at your dashboard.

Usage

This plugin is roughly jekyll compatible. You just need to do as you normally do in jekyll.

  • Add a new post in the _posts directory of your git repository.
  • Commit and push to GitHub.

Your new post will be published in typecho automatically.

Post format

Example:

---
title: your blog title
tags: apple orange
categroy: life
---

Write you posts in *markdown*.

If you have used jekyll before, you will find this format familiar.

But there are some differencs:

  • Only support markdown markup.
  • No self defined field.
  • No support for layout, published and permalink. (We will use filename as permalink slug.)
  • category only allows one value, since Typecho only allows one.
  • tags only support space-separated strings. YAML list is not supported.

Bugs

#9 git add multiple files to repostiory, then push. Only the first file will be published into typecho.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.