teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

5

url

2019/03/30 11:31

投稿

JJJHHH
JJJHHH

スコア11

title CHANGED
File without changes
body CHANGED
@@ -6,10 +6,9 @@
6
6
 
7
7
 
8
8
  ### 該当のソースコード
9
+ [jahad9819jjj.github.io](https://github.com/jahad9819jjj/jahad9819jjj.github.io)
10
+ [blog](https://github.com/jahad9819jjj/blog)
9
11
 
10
- [jahad9819jjj.github.io] https://github.com/jahad9819jjj/jahad9819jjj.github.io
11
- [blog] https://github.com/jahad9819jjj/blog
12
-
13
12
  ### 試したこと
14
13
  hugoで作ったサイトがLocalで見れるかどうか→見ることができた.
15
14
  `config.toml`と`public`でのbaseurlが間違っていたので修正し,pushした.
@@ -35,7 +34,7 @@
35
34
  $ cd ..
36
35
  $ git submodule add https://github.com/jahad9819jjj/jahad9819jjj.github.io.git public
37
36
  ```
38
- https://secondculturekid.com/post/hosting-hugo-on-ghp/
37
+ [参考](https://secondculturekid.com/post/hosting-hugo-on-ghp/)
39
38
  このサイトによると,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
40
39
 
41
40
  ちなみに,localでhugoのサイトは出力できたので,ディレクトリ構成が崩れているとかはないように思います.

4

url

2019/03/30 11:31

投稿

JJJHHH
JJJHHH

スコア11

title CHANGED
File without changes
body CHANGED
@@ -7,8 +7,8 @@
7
7
 
8
8
  ### 該当のソースコード
9
9
 
10
- [jahad9819jjj.github.io]('https://github.com/jahad9819jjj/jahad9819jjj.github.io')
10
+ [jahad9819jjj.github.io] https://github.com/jahad9819jjj/jahad9819jjj.github.io
11
- [blog]('https://github.com/jahad9819jjj/blog')
11
+ [blog] https://github.com/jahad9819jjj/blog
12
12
 
13
13
  ### 試したこと
14
14
  hugoで作ったサイトがLocalで見れるかどうか→見ることができた.
@@ -35,7 +35,7 @@
35
35
  $ cd ..
36
36
  $ git submodule add https://github.com/jahad9819jjj/jahad9819jjj.github.io.git public
37
37
  ```
38
- [参考]('https://secondculturekid.com/post/hosting-hugo-on-ghp/')
38
+ https://secondculturekid.com/post/hosting-hugo-on-ghp/
39
39
  このサイトによると,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
40
40
 
41
41
  ちなみに,localでhugoのサイトは出力できたので,ディレクトリ構成が崩れているとかはないように思います.

3

タグ

2019/03/30 11:27

投稿

JJJHHH
JJJHHH

スコア11

title CHANGED
File without changes
body CHANGED
File without changes

2

参考サイトの明記

2019/03/30 11:14

投稿

JJJHHH
JJJHHH

スコア11

title CHANGED
File without changes
body CHANGED
@@ -35,9 +35,9 @@
35
35
  $ cd ..
36
36
  $ git submodule add https://github.com/jahad9819jjj/jahad9819jjj.github.io.git public
37
37
  ```
38
+ [参考]('https://secondculturekid.com/post/hosting-hugo-on-ghp/')
39
+ このサイトによると,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
38
40
 
39
- これで,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
40
-
41
41
  ちなみに,localでhugoのサイトは出力できたので,ディレクトリ構成が崩れているとかはないように思います.
42
42
 
43
43
 

1

全体

2019/03/30 11:13

投稿

JJJHHH
JJJHHH

スコア11

title CHANGED
File without changes
body CHANGED
@@ -7,13 +7,40 @@
7
7
 
8
8
  ### 該当のソースコード
9
9
 
10
+ [jahad9819jjj.github.io]('https://github.com/jahad9819jjj/jahad9819jjj.github.io')
10
- [My Repository]('https://github.com/jahad9819jjj/blog')
11
+ [blog]('https://github.com/jahad9819jjj/blog')
11
12
 
12
13
  ### 試したこと
13
- hugoで作ったサイトがLocalで見れるかどうか→OK
14
+ hugoで作ったサイトがLocalで見れるかどうか→見ることができた.
14
- `config.toml`と`public`でのbaseurl修正push
15
+ `config.toml`と`public`でのbaseurlが間違っていたので修正し,pushした.
16
+ github-pagesと連携させるために,Githubに2つのRepositoryを用意し,`jahad9819jjj.github.io`と`blog`というRepositoryを作った.
15
17
 
18
+ そして次のコマンドを打った.
19
+ ```sh
20
+ $ cd blog
21
+ $ git init
22
+ $ git remote add origin https://github.com/jahad9819jjj/blog.git
23
+ $ git add .
24
+ ```
16
25
 
26
+ 次に
27
+ ```sh
28
+ $ hugo -t hugo-swift-theme
29
+ ```
30
+ で`public`ディレクトリを作成し,`jahad9819jjj.github.io`リポジトリをサブモジュールとして追加するために,次のコマンドを打った.
31
+
32
+ ```sh
33
+ $ cd public
34
+ $ git init
35
+ $ cd ..
36
+ $ git submodule add https://github.com/jahad9819jjj/jahad9819jjj.github.io.git public
37
+ ```
38
+
39
+ これで,`https://jahad9819jjj.github.io `にブログが作成されるとあるのですが,できず途方に暮れています.
40
+
41
+ ちなみに,localでhugoのサイトは出力できたので,ディレクトリ構成が崩れているとかはないように思います.
42
+
43
+
17
44
  ### 補足情報(FW/ツールのバージョンなど)
18
45
 
19
46
  hugo 0.54.0