Giter Site home page Giter Site logo

blogview-template's Introduction

blogview-template

blogview と gimonfu を使ったブログ執筆用テンプレート

使い方

  1. Use this template からこのリポジトリを複製
  2. yarnなどして依存ライブラリをインストール
  3. .gimonfu.json を gimonfu のドキュメントに従って設定
  4. yarn pullなどして既存の記事をダウンロード
  5. 記事を編集してyarn pushで投稿

新規記事を追加する

例えば Ubuntu 環境であれば、以下のようなシェルスクリプトが使えます。

#!/bin/sh
NAME=`cat /dev/urandom | tr -dc 'a-f0-9' | fold -w 10 | head -n 1`
echo "---
title: 新規投稿
categories:
  - 雑記
draft: true
---
" > ./entry/"$NAME".md
pnpm push

GitHub Actions から記事を自動投稿する

  1. gimonfu.json の内容をGIMONFU_JSONという名前で GitHub の Secrets に登録
  2. .github/workflows以下にあるpush.yml.examplepush.ymlにリネーム
  3. push.ymlをコミットしてプッシュ

blogview-template's People

Contributors

mkizka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.