Skip to content

Commit fea4447

Browse files
committed
first init
0 parents  commit fea4447

File tree

10 files changed

+132
-0
lines changed

10 files changed

+132
-0
lines changed

.github/workflows/gh-pages.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: github pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
submodules: true # Fetch Hugo themes (true OR recursive)
16+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
17+
18+
- name: Setup Hugo
19+
uses: peaceiris/actions-hugo@v2
20+
with:
21+
hugo-version: '0.83.1'
22+
extended: true
23+
24+
- name: Build
25+
run: hugo --minify
26+
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3
29+
if: github.ref == 'refs/heads/master'
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./public

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*lock
2+
/resources

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/zen"]
2+
path = themes/zen
3+
url = https://github.com/frjo/hugo-theme-zen.git

README.org

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* RustTalk
2+
3+
4+
* 建站
5+
** 初始化
6+
#+begin_src bash
7+
git switch --orphan gh-pages
8+
git commit --allow-empty -m "Initial commit"
9+
git push -u origin gh-pages
10+
#+end_src

archetypes/default.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+

config.toml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
baseURL = "https://rusttalk.github.io"
2+
languageCode = "zh-cn"
3+
defaultContentLanguage = "en"
4+
hasCJKLanguage = true
5+
title = "RustTalk"
6+
theme = "zen"
7+
copyright = "2021 rusttalk.github.io"
8+
googleAnalytics = "UA-50745138-3"
9+
paginate = 10
10+
paginatePath = "page"
11+
enableGitInfo = false
12+
13+
[frontmatter]
14+
lastmod = [':git', 'lastmod', ':fileModTime', ':default']
15+
16+
[author]
17+
name = "写代码的西瓜"
18+
19+
20+
[[menu.main]]
21+
name = "播客"
22+
weight = 20
23+
identifier = "podcast"
24+
url = "/podcast/"
25+
[[menu.main]]
26+
name = "标签"
27+
weight = 22
28+
identifier = "tags"
29+
url = "/tags/"
30+
[[menu.main]]
31+
name = "关于"
32+
weight = 30
33+
identifier = "about"
34+
url = "/about/"
35+
36+
[params]
37+
logo = true
38+
mainSections = ["post", "podcast"]
39+
dateformat = "2006-01-02"
40+
description = "RustTalk 是一档专注在 Rust 社区的程序员闲聊节目。官网:rusttalk.github.io"
41+
feedlinks = false
42+
realfavicongenerator = true
43+
relatedposts = true
44+
submitted = true
45+
sidebar = true
46+
mobileMenu = true
47+
copyright = "© 2021 [RustTalk](https://github.com/RustTalk/rusttalk.github.io) Licensed under [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/)"
48+
poweredby = true
49+
# footer = "footer"
50+
[params.podcast]
51+
local = false
52+
image = "logo3000.png"
53+
lang = "zh-cn"
54+
author = "rusttalk.github.io"
55+
[params.podcast.category]
56+
name = "Technology"
57+
[params.podcast.owner]
58+
name = "写代码的西瓜"
59+

content/about.org

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#+TITLE: 关于
2+
#+DATE: 2022-01-01T08:55:06+08:00
3+
4+
#+begin_example
5+
______ _ _____ _ _
6+
| ___ \ | |_ _| | | |
7+
| |_/ / _ ___| |_| | __ _| | | __
8+
| / | | / __| __| |/ _` | | |/ /
9+
| |\ \ |_| \__ \ |_| | (_| | | <
10+
\_| \_\__,_|___/\__\_/\__,_|_|_|\_\
11+
#+end_example
12+
13+
RustTalk 是一档专注在 Rust 社区的程序员闲聊节目。节目主旨:
14+
- 专注 Rust 社区,探索 Rust 社区背后的 *奇人轶事*
15+
- 不追求「枯燥无味」的干货,更关注「耐人寻味」经验分享

content/post/000.org

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#+TITLE: 000. RustTalk 节目简介
2+
#+DATE: 2022-01-01T09:11:16+08:00
3+
4+
Hello Rust

static/images/logo.png

9.69 KB
Loading

themes/zen

Submodule zen added at 767119d

0 commit comments

Comments
 (0)