GithubHelp home page GithubHelp logo

blog's Introduction

前提環境

HUGOが必要.

macOSの場合

$ brew install hugo

記事の追加のしかた-書き方

# 記事MDを生成
$ hugo new posts/<記事のファイル名>.md

# 記事MDを編集(好きなエディタで)
$ code content/posts/<記事のファイル名>.md

# 記事MDからHTML生成
$ hugo

なお、記事のヘッダーを以下のように編集してください。
tagsは必要に応じて追加してください。

---
title: "記事名"
date: 2020-05-07T11:39:39+09:00
author: 筆者名
tags: ["記事の", "タグ", "を", "自由に入力"]
draft: false
---

画像はcontent/images/path to imageとして置いてください。 以下のように記述すると表示されます。

![alt](/blog/images/path to image)

記事の表示確認

自分が書いた記事がWebでどう表示されるか確認したい.

$ git submodule update --init --recursive
$ hugo server -D

上記にコマンドをうつと下記のように表示されると思う.

...
Web Server is available at http://localhost:1313/blog/ (bind address 127.0.0.1)

この状態で,ブラウザで表示されてるURLにアクセスすればOK.

http://localhost:1313/blog

デプロイ(記事の公開)

生成後はgit add, git commit, git pushしてデプロイしましょう。
反映には数分時間が掛かることがあります。

blog's People

Contributors

tamamu avatar takedahiromasa avatar tomatoaiu avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

tomatoaiu

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.