Skip to content

Commit e39a4c9

Browse files
committed
deploy: 50d737a
1 parent bf68ffa commit e39a4c9

File tree

91 files changed

+4259
-19190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+4259
-19190
lines changed

404.html

Lines changed: 0 additions & 466 deletions
This file was deleted.

README.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
## 路徑簡介:
2+
3+
```
4+
|_ /_post: blog 文章位置
5+
|_ /_site : 編譯過的網站位置 # 不建議更動
6+
|_ /_product : 書架上的書
7+
|_ /img: blog 圖片位置
8+
|_ /markdown__
9+
| |_ knowledge : 存放知識庫文章
10+
| |_ resource : 存放資源文章
11+
| |_ about.md : 關於我們的頁面
12+
| |_ product.md : 書架頁面
13+
| |_ satellit.md : 衛星計畫頁面
14+
|_ _data __
15+
| |__ navigation : 定義 網站最上層的分頁 相依/markdown
16+
|_ _layouts : 網頁框架定義 # 不建議更動
17+
|_ readme.md : 本文件位置
18+
|_ index.md : cypherpunks-core.github.io 首頁內容
19+
|_ classification.md : 文章分類分頁內容
20+
```
21+
22+
## 文章貢獻注意事項:
23+
* **文件命名:**`/_post`創建新的markdonwn文件,請依照發布 `年-月-日-標題.markdown`格式命名
24+
* **YAML設定:** `年-月-日-標題.markdown` 文件最上部的`YAML`請參考下方進行修改
25+
> * `image: '/img/125.png'` 圖片請放置在此處`/img/`,圖片命名格式`作者名-流水號.png`,圖片寬度為800
26+
> * 如果還不想發布可以把`published: true`改為`false`。
27+
> **注意:**`layout: post`, `categories: news`, `hero_image: /img/hero.png`建議不要更動
28+
29+
```
30+
---
31+
layout: post
32+
title: "文章標題"
33+
date: 2019-11-10
34+
categories: news
35+
description: "文章摘要"
36+
image: '/img/125.png'
37+
published: true
38+
hero_image: /img/hero.png
39+
---
40+
```
41+
42+
* **圖片位置:** 圖片,請放置在`/img`中,因用圖片請用`/img.png`格式(請勿用託管圖片,怕圖片失效
43+
44+
> 圖片大小規範:
45+
> * blog 圖片 寬度 800 x 600 # 寬度一定要800 高度隨意
46+
> * 商品 圖片 寬度 640 x 480
47+
* **數學公式:** 可以markdown的文件當中添加以下程式碼([參考](https://www.jianshu.com/p/054484d0892a)第四項):
48+
```
49+
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>
50+
```
51+
使用方法:`$$公式$$`
52+
> 因為markdown 第一行通常為預覽頁面的摘要,建議放在第一句話的後面,預防出現問題
53+
54+
## 搭建測試環境
55+
**Ruby 環境要求**
56+
要降到2.7.* 不然無法執行
57+
58+
**Mac OS X :**
59+
```
60+
# 在 terminal 輸入 安裝 xcode-select
61+
xcode-select --install
62+
63+
# 安裝 homebrew
64+
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
65+
66+
# 安裝 ruby
67+
brew install ruby
68+
69+
# 設定環境
70+
export PATH=/usr/local/opt/ruby/bin:$PATH
71+
72+
# 安裝 jekyll bundler
73+
gem install jekyll bundler
74+
75+
# 下載專案
76+
git clone https://github.com/cypherpunks-core/cypherpunks-core.github.io.git
77+
78+
# 進入專案
79+
cd cypherpunks-core.github.io.git
80+
81+
# 安裝 該專案所需套件
82+
bundle install
83+
84+
# 在本地端起一個 server
85+
bundle exec jekyll server --future
86+
```
87+
88+
若執行成功,下方將顯示運行中的 _Server address_ ,預設為 _Server address_: [http://127.0.0.1:4000](http://127.0.0.1:4000)

blog/index.html

Lines changed: 102 additions & 371 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)