You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,15 +33,109 @@ In your `_config.yml`, add the following section:
35
33
gems:
36
34
- jekyll-multisite
37
35
38
-
shared: ../_shared
36
+
shared: _shared
39
37
shared_pagination: true
40
38
...
41
39
42
-
Each individual site needs to have it's own configuration file with it's own source and destination. Let's use `_example.yml` to demonstrate:
40
+
Each individual site needs to have it's own configuration file with it's own source and destination. Let's use `_example_com.yml` to demonstrate:
41
+
42
+
...
43
+
title: Example dot Com
44
+
url: http://example.com
45
+
destination: _site/example.com
46
+
source: '_example.com'
47
+
exclude: ['some-file.md']
48
+
...
49
+
50
+
Now, lets' create a second site as well, in a file called `_example_net.yml`
43
51
44
52
...
45
-
url: "http://example.com"
46
-
destination: _site/example
47
-
source: '_example'
48
-
49
-
Due to the way things are done internally in Jekyll, the shared source directory must be relative to to the source path. More information can be found on the [Jekyll Multi-site](http://penguindreams.org/insert-address-here) blog post.
53
+
title: Example dot Net
54
+
url: http://example.net
55
+
destination: _site/example.net
56
+
source: '_example.net'
57
+
exclude: ['some-other-file.md']
58
+
...
59
+
60
+
Finally, we need a base `_config.yml` that declares all the settings that are shared:
Due to the way things are done internally in Jekyll and the limitation of my plugin, the shared source directory must be one directory down from the source path. Your directory structure should look like the following:
85
+
86
+
```
87
+
.
88
+
├── _config.yml
89
+
├── _example.com
90
+
│ ├── about.md
91
+
│ ├── css
92
+
│ ├── _data
93
+
│ ├── _drafts
94
+
│ ├── favicon.ico
95
+
│ ├── files
96
+
│ ├── images
97
+
│ ├── _plugins -> ../_plugins/
98
+
│ ├── _posts
99
+
│ └── videos.html
100
+
├── _example_com.yml
101
+
├── _example.net
102
+
│ ├── about.md
103
+
│ ├── css
104
+
│ ├── _data
105
+
│ ├── _drafts
106
+
│ ├── favicon.ico
107
+
│ ├── files
108
+
│ ├── images
109
+
│ ├── _plugins -> ../_plugins/
110
+
│ ├── _posts
111
+
│ └── videos.html
112
+
├── _example_net.yml
113
+
├── _shared
114
+
│ ├── 404.html
115
+
│ ├── archives.md
116
+
│ ├── contact.md
117
+
│ ├── css
118
+
│ ├── feed.xml
119
+
│ ├── fonts
120
+
│ ├── index.html
121
+
│ └── js
122
+
├── _includes
123
+
├── _layouts
124
+
└── _plugins
125
+
```
126
+
127
+
Take care to notice you still need a symbolic link for `_plugins` to work correctly (I'm working on fixing that). When you build you sites, built them like so:
0 commit comments