mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
parent
8fa871a05f
commit
794589fbfd
3 changed files with 16 additions and 16 deletions
|
@ -221,7 +221,7 @@ func loadJekyllConfig(jekyllRoot string) map[string]interface{} {
|
||||||
|
|
||||||
func createConfigFromJekyll(inpath string, kind string, jekyllConfig map[string]interface{}) (err error) {
|
func createConfigFromJekyll(inpath string, kind string, jekyllConfig map[string]interface{}) (err error) {
|
||||||
title := "My New Hugo Site"
|
title := "My New Hugo Site"
|
||||||
baseurl := "http://replace-this-with-your-hugo-site.com/"
|
baseurl := "http://example.org/"
|
||||||
|
|
||||||
for key, value := range jekyllConfig {
|
for key, value := range jekyllConfig {
|
||||||
lowerKey := strings.ToLower(key)
|
lowerKey := strings.ToLower(key)
|
||||||
|
|
|
@ -332,7 +332,7 @@ func newContentPathSection(path string) (string, string) {
|
||||||
|
|
||||||
func createConfig(inpath string, kind string) (err error) {
|
func createConfig(inpath string, kind string) (err error) {
|
||||||
in := map[string]interface{}{
|
in := map[string]interface{}{
|
||||||
"baseurl": "http://replace-this-with-your-hugo-site.com/",
|
"baseurl": "http://example.org/",
|
||||||
"title": "My New Hugo Site",
|
"title": "My New Hugo Site",
|
||||||
"languageCode": "en-us",
|
"languageCode": "en-us",
|
||||||
}
|
}
|
||||||
|
|
|
@ -489,7 +489,7 @@ So, let's edit your configuration file to add the theme name:
|
||||||
```toml
|
```toml
|
||||||
$ vi config.toml
|
$ vi config.toml
|
||||||
theme = "zafta"
|
theme = "zafta"
|
||||||
baseurl = "http://replace-this-with-your-hugo-site.com/"
|
baseurl = "http://example.org/"
|
||||||
title = "My New Hugo Site"
|
title = "My New Hugo Site"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
:wq
|
:wq
|
||||||
|
@ -1047,8 +1047,8 @@ $ cat public/index.html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/article/Second/">Second</a></h4>
|
<h4><a href="http://example.org/article/Second/">Second</a></h4>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/article/First/">First</a></h4>
|
<h4><a href="http://example.org/article/First/">First</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
@ -1214,7 +1214,7 @@ Nulla facilisi.</p>
|
||||||
In quam ante, vulputate at massa et, rutrum
|
In quam ante, vulputate at massa et, rutrum
|
||||||
gravida dui. Phasellus tristique libero at ex.</p>
|
gravida dui. Phasellus tristique libero at ex.</p>
|
||||||
|
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/">Home</a></h4>
|
<h4><a href="http://example.org/">Home</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@ -1236,7 +1236,7 @@ varius sagittis turpis.</p>
|
||||||
pulvinar. Ut mattis gravida venenatis. Vivamus
|
pulvinar. Ut mattis gravida venenatis. Vivamus
|
||||||
lobortis risus id nisi rutrum, at iaculis.</p>
|
lobortis risus id nisi rutrum, at iaculis.</p>
|
||||||
|
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/">Home</a></h4>
|
<h4><a href="http://example.org/">Home</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
@ -1402,7 +1402,7 @@ $ cat public/About/index.html
|
||||||
ipsum quia dolor sit amet consectetur
|
ipsum quia dolor sit amet consectetur
|
||||||
adipisci velit.</p>
|
adipisci velit.</p>
|
||||||
|
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/">Home</a></h4>
|
<h4><a href="http://example.org/">Home</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
@ -1418,9 +1418,9 @@ $ cat public/index.html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/About/">About</a></h4>
|
<h4><a href="http://example.org/About/">About</a></h4>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/article/Second/">Second</a></h4>
|
<h4><a href="http://example.org/article/Second/">Second</a></h4>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/article/First/">First</a></h4>
|
<h4><a href="http://example.org/article/First/">First</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
@ -1476,10 +1476,10 @@ $ cat public/index.html
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<h2>Articles</h2>
|
<h2>Articles</h2>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/article/Second/">Second</a></h4>
|
<h4><a href="http://example.org/article/Second/">Second</a></h4>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/article/First/">First</a></h4>
|
<h4><a href="http://example.org/article/First/">First</a></h4>
|
||||||
<h2>Pages</h2>
|
<h2>Pages</h2>
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/About/">About</a></h4>
|
<h4><a href="http://example.org/About/">About</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
@ -1692,7 +1692,7 @@ Nulla facilisi.</p>
|
||||||
In quam ante, vulputate at massa et, rutrum
|
In quam ante, vulputate at massa et, rutrum
|
||||||
gravida dui. Phasellus tristique libero at ex.</p>
|
gravida dui. Phasellus tristique libero at ex.</p>
|
||||||
|
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/">Home</a></h4>
|
<h4><a href="http://example.org/">Home</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@ -1709,7 +1709,7 @@ $ cat public/About/index.html
|
||||||
ipsum quia dolor sit amet consectetur
|
ipsum quia dolor sit amet consectetur
|
||||||
adipisci velit.</p>
|
adipisci velit.</p>
|
||||||
|
|
||||||
<h4><a href="http://replace-this-with-your-hugo-site.com/">Home</a></h4>
|
<h4><a href="http://example.org/">Home</a></h4>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue