GithubHelp home page GithubHelp logo

niiharamegumu / microcms-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microcmsio/microcms-blog

0.0 0.0 0.0 3.49 MB

microCMS official blog

Home Page: https://blog.microcms.io/

License: Apache License 2.0

JavaScript 10.89% Vue 86.88% CSS 2.23%

microcms-blog's Introduction

microcms-blog

サイト: https://blog.microcms.io

機能

  • 記事一覧
  • カテゴリー別記事一覧
  • タグ別記事一覧
  • 人気の記事一覧
  • 最新の記事一覧
  • 検索
  • パンくずリスト
  • 記事詳細
    • 目次
    • 著者
    • SNSシェアボタン
    • 下書きプレビュー
    • 関連記事
  • サイトマップ
  • バナー
  • Google Tag Manager
  • Facebook Pixel
  • RSS
  • PWA

技術構成

  • Nuxt(SSG)
  • microCMS(コンテンツ)
  • Netlify(Hosting, Functions)
  • ESLint
  • Prettier
  • PostCSS
  • PWA

microCMSのAPIスキーマ設定

ブログ

endpoint: blog
type: リスト形式

フィールド ID 表示名 種類
title タイトル テキストフィールド
category カテゴリー コンテンツ参照 - カテゴリー
tag タグ 複数コンテンツ参照 - タグ
toc_visible 目次 真偽値
body 本文 リッチエディタ
description 概要 テキストフィールド
ogimage OGP 画像 画像
writer 著者 コンテンツ参照 - 著者
partner パートナー コンテンツ参照 - パートナー
related_blogs 関連記事 複数コンテンツ参照 - ブログ
cv_point CVポイント 繰り返し(※上限1に設定) - カスタムフィールド

カスタムフィールド

フィールドID: thumbnail

フィールド ID 表示名 種類
title タイトル テキストフィールド
text 本文 テキストエリア
buttonText ボタンテキスト テキストフィールド
buttonLink ボタンリンク テキストフィールド
thumbnail サムネイル 画像

著者

endpoint: authors
type: リスト形式

フィールドID 表示名 種類
name 名前 テキストフィールド
text 自己紹介 テキストエリア
image 画像 画像

カテゴリー

endpoint: categories
type: リスト形式

フィールドID 表示名 種類
name 名前 テキストフィールド

タグ

endpoint: tags type: リスト形式

フィールド ID 表示名 種類
name 名前 テキストフィールド

パートナー

endpoint: partners
type: リスト形式

フィールドID 表示名 種類
company 会社名 テキストフィールド
url 会社URL テキストフィールド
description 説明文 テキストエリア
logo ロゴ 画像

人気の記事

endpoint: popular-articles
type: オブジェクト形式

フィールドID 表示名 種類
articles 人気の記事 複数コンテンツ参照 - ブログ

バナー

endpoint: banner
type: オブジェクト形式

フィールドID 表示名 種類
image 画像 画像
url リンク先URL テキストフィールド
alt 代替テキスト テキストフィールド

環境変数

プロジェクトルートに.envファイルを作成し、以下の項目を設定してください。

  • API_KEY(microCMSのAPIキー)
  • SERVICE_ID(microCMSのサービスID)
  • GTM_ID(Google Tag ManagerのID)※任意
  • FB_PIXEL_ID(FacebookピクセルID)※任意

例:

API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
SERVICE_ID=your-service-id
GTM_ID=GTM-xxxxxxx
FB_PIXEL_ID=xxxxxxxxxxxxxxxxxx

開発方法

# パッケージをインストール
$ npm install

# 開発サーバーを起動(localhost:3000)
$ npm run dev

# Netlify Functionsをローカルで起動(localhost:9000)
$ npm run functions:serve

# アプリケーションを静的生成
$ npm run generate

# 静的生成したアプリケーションを起動
$ npm start

ライセンス

Apache License 2.0

microcms-blog's People

Contributors

shibe97 avatar shomiyu avatar hannoeru avatar youheinozaki avatar hiro08gh avatar shoma2da avatar yamanoku avatar dc7290 avatar newt0 avatar wattanx avatar karuhi 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.