aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2020-10-05 10:29:00 -0500
committerYihui Xie <xie@yihui.name>2020-10-05 10:29:00 -0500
commit2ad5f22b1497eb77729ca312613460e478be142b (patch)
tree9a1ed3d9abeacc5799fa124bbd25a2d584d8252f
parentaeaa9637cb85c553d5def4356de612d6206ffe38 (diff)
downloadzk-theme-2ad5f22b1497eb77729ca312613460e478be142b.tar.gz
zk-theme-2ad5f22b1497eb77729ca312613460e478be142b.zip
yihui.name -> yihui.org
-rw-r--r--README.md4
-rw-r--r--exampleSite/config.toml2
-rw-r--r--exampleSite/content/_index.Rmarkdown2
-rw-r--r--exampleSite/content/_index.markdown2
-rw-r--r--exampleSite/content/about.md8
-rw-r--r--exampleSite/content/post/2016-02-14-hello-markdown.md2
-rw-r--r--exampleSite/layouts/partials/foot_custom.html4
-rw-r--r--theme.toml4
8 files changed, 14 insertions, 14 deletions
diff --git a/README.md b/README.md
index 3cd9a40..2cd5279 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
## _Keep it simple, but not simpler_
-**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.name) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
+**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.org) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
```bash
@@ -25,4 +25,4 @@ find . -not -path '*/exampleSite/*' \( -name '*.html' -o -name '*.css' \) | xarg
I can certainly further reduce the code, for example, by eliminating the CSS, but I believe a tiny bit of CSS can greatly improve readability. You cannot really find many CSS frameworks that only contain 50 lines of code.
-[![Screenshot](https://github.com/yihui/hugo-xmin/raw/master/images/screenshot.png)](https://xmin.yihui.name)
+[![Screenshot](https://github.com/yihui/hugo-xmin/raw/master/images/screenshot.png)](https://xmin.yihui.org)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b466837..c70d7b7 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -33,7 +33,7 @@ footnotereturnlinkcontents = "↩"
[params]
description = "A website built through Hugo and blogdown."
- footer = "&copy; [Yihui Xie](https://yihui.name) 2017 -- 2019 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
+ footer = "&copy; [Yihui Xie](https://yihui.org) 2017 -- 2019 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
[markup]
[markup.goldmark]
diff --git a/exampleSite/content/_index.Rmarkdown b/exampleSite/content/_index.Rmarkdown
index 276abac..a7df6f6 100644
--- a/exampleSite/content/_index.Rmarkdown
+++ b/exampleSite/content/_index.Rmarkdown
@@ -8,7 +8,7 @@ title: Home
## _Keep it simple, but not simpler_
-**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.name) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
+**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.org) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
```{bash, comment='', echo=3, eval=Sys.which('bash') != ''}
cd ../..;
diff --git a/exampleSite/content/_index.markdown b/exampleSite/content/_index.markdown
index ac2271c..5a92003 100644
--- a/exampleSite/content/_index.markdown
+++ b/exampleSite/content/_index.markdown
@@ -8,7 +8,7 @@ title: Home
## _Keep it simple, but not simpler_
-**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.name) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
+**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.org) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
```bash
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index dd83942..210bb35 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -9,7 +9,7 @@ The theme name "XMin" can be interpreted as "**X**ie's **Min**imal theme" (Xie i
# config.toml
-For this example site, I defined permalinks for two sections, `post` and `note`, so that the links to pages under these directories will contain the date info, e.g., `https://xmin.yihui.name/post/2016/02/14/a-plain-markdown-post/`. This is optional, and it is up to your personal taste of URLs.
+For this example site, I defined permalinks for two sections, `post` and `note`, so that the links to pages under these directories will contain the date info, e.g., `https://xmin.yihui.org/post/2016/02/14/a-plain-markdown-post/`. This is optional, and it is up to your personal taste of URLs.
```
[permalinks]
@@ -47,7 +47,7 @@ The page footer can be defined in `.Params.footer`, and the text is treated as M
```
[params]
- footer = "&copy; [Yihui Xie](https://yihui.name) 2017"
+ footer = "&copy; [Yihui Xie](https://yihui.org) 2017"
```
# Custom layouts
@@ -55,11 +55,11 @@ The page footer can be defined in `.Params.footer`, and the text is treated as M
There are two layout files under `layouts/partials/` that you may want to override: `head_custom.html` and `foot_custom.html`. This is how you inject arbitrary HTML code to the head and foot areas. For example, this site has a file `layouts/partials/foot_custom.html` to support LaTeX math via MathJax and center images automatically:
```html
-<script src="//yihui.name/js/math-code.js"></script>
+<script src="//yihui.org/js/math-code.js"></script>
<script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
-<script async src="//yihui.name/js/center-img.js"></script>
+<script async src="//yihui.org/js/center-img.js"></script>
```
You can certainly enable highlight.js for syntax highlighting by yourself through `head_custom.html` and `foot_custom.html` if you want.
diff --git a/exampleSite/content/post/2016-02-14-hello-markdown.md b/exampleSite/content/post/2016-02-14-hello-markdown.md
index e06e31a..21ee28d 100644
--- a/exampleSite/content/post/2016-02-14-hello-markdown.md
+++ b/exampleSite/content/post/2016-02-14-hello-markdown.md
@@ -87,6 +87,6 @@ A table (centered by default):
An image (automatically centered when it is appropriate):
-![Happy Elmo](https://slides.yihui.name/gif/happy-elmo.gif)
+![Happy Elmo](https://slides.yihui.org/gif/happy-elmo.gif)
Looks good?
diff --git a/exampleSite/layouts/partials/foot_custom.html b/exampleSite/layouts/partials/foot_custom.html
index 270a44d..3389d46 100644
--- a/exampleSite/layouts/partials/foot_custom.html
+++ b/exampleSite/layouts/partials/foot_custom.html
@@ -1,4 +1,4 @@
-<script src="//yihui.name/js/math-code.js"></script>
+<script src="//yihui.org/js/math-code.js"></script>
<script async src="//mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
-<script async src="//yihui.name/js/center-img.js"></script>
+<script async src="//yihui.org/js/center-img.js"></script>
diff --git a/theme.toml b/theme.toml
index 8733afd..4233eb6 100644
--- a/theme.toml
+++ b/theme.toml
@@ -2,11 +2,11 @@ name = "XMin"
license = "MIT"
licenselink = "https://github.com/yihui/hugo-xmin/blob/master/LICENSE.md"
description = "eXtremely Minimal Hugo theme: about 150 lines of code in total, including HTML and CSS"
-homepage = "https://xmin.yihui.name"
+homepage = "https://xmin.yihui.org"
tags = ["minimal", "blog", "personal", "clean", "simple", "starter", "minimalist"]
features = ["blog"]
min_version = "0.18"
[author]
name = "Yihui Xie"
- homepage = "https://yihui.name"
+ homepage = "https://yihui.org"