質問編集履歴

5

url

2019/03/30 11:31

投稿

JJJHHH
JJJHHH

スコア11

test CHANGED
File without changes
test CHANGED
@@ -14,11 +14,9 @@
14
14
 
15
15
  ### 該当のソースコード
16
16
 
17
+ [jahad9819jjj.github.io](https://github.com/jahad9819jjj/jahad9819jjj.github.io)
17
18
 
18
-
19
- [jahad9819jjj.github.io] https://github.com/jahad9819jjj/jahad9819jjj.github.io
20
-
21
- [blog] https://github.com/jahad9819jjj/blog
19
+ [blog](https://github.com/jahad9819jjj/blog)
22
20
 
23
21
 
24
22
 
@@ -72,7 +70,7 @@
72
70
 
73
71
  ```
74
72
 
75
- https://secondculturekid.com/post/hosting-hugo-on-ghp/
73
+ [参考](https://secondculturekid.com/post/hosting-hugo-on-ghp/)
76
74
 
77
75
  このサイトによると,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
78
76
 

4

url

2019/03/30 11:31

投稿

JJJHHH
JJJHHH

スコア11

test CHANGED
File without changes
test CHANGED
@@ -16,9 +16,9 @@
16
16
 
17
17
 
18
18
 
19
- [jahad9819jjj.github.io]('https://github.com/jahad9819jjj/jahad9819jjj.github.io')
19
+ [jahad9819jjj.github.io] https://github.com/jahad9819jjj/jahad9819jjj.github.io
20
20
 
21
- [blog]('https://github.com/jahad9819jjj/blog')
21
+ [blog] https://github.com/jahad9819jjj/blog
22
22
 
23
23
 
24
24
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  ```
74
74
 
75
- [参考]('https://secondculturekid.com/post/hosting-hugo-on-ghp/')
75
+ https://secondculturekid.com/post/hosting-hugo-on-ghp/
76
76
 
77
77
  このサイトによると,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
78
78
 

3

タグ

2019/03/30 11:27

投稿

JJJHHH
JJJHHH

スコア11

test CHANGED
File without changes
test CHANGED
File without changes

2

参考サイトの明記

2019/03/30 11:14

投稿

JJJHHH
JJJHHH

スコア11

test CHANGED
File without changes
test CHANGED
@@ -72,9 +72,9 @@
72
72
 
73
73
  ```
74
74
 
75
+ [参考]('https://secondculturekid.com/post/hosting-hugo-on-ghp/')
75
76
 
76
-
77
- れで,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
77
+ のサイトによると,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
78
78
 
79
79
 
80
80
 

1

全体

2019/03/30 11:13

投稿

JJJHHH
JJJHHH

スコア11

test CHANGED
File without changes
test CHANGED
@@ -16,15 +16,69 @@
16
16
 
17
17
 
18
18
 
19
+ [jahad9819jjj.github.io]('https://github.com/jahad9819jjj/jahad9819jjj.github.io')
20
+
19
- [My Repository]('https://github.com/jahad9819jjj/blog')
21
+ [blog]('https://github.com/jahad9819jjj/blog')
20
22
 
21
23
 
22
24
 
23
25
  ### 試したこと
24
26
 
25
- hugoで作ったサイトがLocalで見れるかどうか→OK
27
+ hugoで作ったサイトがLocalで見れるかどうか→見ることができた.
26
28
 
27
- `config.toml`と`public`でのbaseurl修正push
29
+ `config.toml`と`public`でのbaseurlが間違っていたので修正し,pushした.
30
+
31
+ github-pagesと連携させるために,Githubに2つのRepositoryを用意し,`jahad9819jjj.github.io`と`blog`というRepositoryを作った.
32
+
33
+
34
+
35
+ そして次のコマンドを打った.
36
+
37
+ ```sh
38
+
39
+ $ cd blog
40
+
41
+ $ git init
42
+
43
+ $ git remote add origin https://github.com/jahad9819jjj/blog.git
44
+
45
+ $ git add .
46
+
47
+ ```
48
+
49
+
50
+
51
+ 次に
52
+
53
+ ```sh
54
+
55
+ $ hugo -t hugo-swift-theme
56
+
57
+ ```
58
+
59
+ で`public`ディレクトリを作成し,`jahad9819jjj.github.io`リポジトリをサブモジュールとして追加するために,次のコマンドを打った.
60
+
61
+
62
+
63
+ ```sh
64
+
65
+ $ cd public
66
+
67
+ $ git init
68
+
69
+ $ cd ..
70
+
71
+ $ git submodule add https://github.com/jahad9819jjj/jahad9819jjj.github.io.git public
72
+
73
+ ```
74
+
75
+
76
+
77
+ これで,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
78
+
79
+
80
+
81
+ ちなみに,localでhugoのサイトは出力できたので,ディレクトリ構成が崩れているとかはないように思います.
28
82
 
29
83
 
30
84