Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit f52c1da

Browse files
Rename i10n to l10n
Fixes a naming issue. Read the CHANGELOG for more information.
1 parent d9b46b9 commit f52c1da

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Icarus
22

3-
Icarus is a responsive and customizable theme for bloggers. It's a port of the same-named theme for [Hexo](//hexo.io) made by [Ruipeng Zhang](https://github.com/ppoffice). Noteworthy features of this Hugo theme are the integration of a comment-system powered by Disqus, localization (i10n) support, syntax highlighting for source code, optional widgets for the sidebar and a handful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier.
3+
Icarus is a responsive and customizable theme for bloggers. It's a port of the same-named theme for [Hexo](//hexo.io) made by [Ruipeng Zhang](https://github.com/ppoffice). Noteworthy features of this Hugo theme are the integration of a comment-system powered by Disqus, localization (l10n) support, syntax highlighting for source code, optional widgets for the sidebar and a handful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier.
44

55
![](https://raw.githubusercontent.com/digitalcraftsman/hugo-icarus-theme/master/images/screenshot.png)
66

@@ -30,12 +30,12 @@ In the next step navigate to the `exampleSite` folder at `themes/hugo-icarus-the
3030
│   ├── linked-post.md
3131
│   └── migrate-from-jekyll.md
3232
├── data
33-
│   └── i10n.toml
33+
│   └── l10n.toml
3434
└── static
3535
└── banners
3636
└── placeholder.png
3737

38-
In order to get your site running, you need to copy `config.toml` and `data/i10n.toml` into the root folders.
38+
In order to get your site running, you need to copy `config.toml` and `data/l10n.toml` into the root folders.
3939

4040

4141
## The config file
@@ -93,9 +93,9 @@ You can deactivate them under `params.widgets`:
9393

9494

9595

96-
## Localization (i10n)
96+
## Localization (l10n)
9797

98-
You don't blog in english and you want to translate the theme into your native locale? No problem. Take a look in the `data` folder and you'll find a file `i10n.toml` that we've copied at the beginning. It contains all strings related to the theme. Just replace the original strings with your own.
98+
You don't blog in english and you want to translate the theme into your native locale? No problem. Take a look in the `data` folder and you'll find a file `l10n.toml` that we've copied at the beginning. It contains all strings related to the theme. Just replace the original strings with your own.
9999

100100

101101
## Linking thumbnails

exampleSite/content/post/introducing-icarus-and-its-features.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ banner = "banners/placeholder.png"
77
categories = ["Lorem"]
88
+++
99

10-
Icarus is a responsive and customizable theme for bloggers. It's a port of the same-named theme for [Hexo](//hexo.io) made by [Ruipeng Zhang](https://github.com/ppoffice). Noteworthy features of this Hugo theme are the integration of a comment-system powered by Disqus, localization (i10n) support, syntax highlighting for source code, optional widgets for the sidebar and a handful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier.
10+
Icarus is a responsive and customizable theme for bloggers. It's a port of the same-named theme for [Hexo](//hexo.io) made by [Ruipeng Zhang](https://github.com/ppoffice). Noteworthy features of this Hugo theme are the integration of a comment-system powered by Disqus, localization (l10n) support, syntax highlighting for source code, optional widgets for the sidebar and a handful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier.
1111

1212

1313
## Get the theme
@@ -36,12 +36,12 @@ In the next step navigate to the `exampleSite` folder at `themes/hugo-icarus-the
3636
│   ├── linked-post.md
3737
│   └── migrate-from-jekyll.md
3838
├── data
39-
│   └── i10n.toml
39+
│   └── l10n.toml
4040
└── static
4141
└── banners
4242
└── placeholder.png
4343

44-
In order to get your site running, you need to copy `config.toml` and `data/i10n.toml` into the root folders.
44+
In order to get your site running, you need to copy `config.toml` and `data/l10n.toml` into the root folders.
4545

4646

4747
## The config file
@@ -90,9 +90,9 @@ On the right, you can see some useful widgets that you can activate as you like.
9090
tag_cloud = true
9191

9292

93-
## Localization (i10n)
93+
## Localization (l10n)
9494

95-
You don't blog in english and you want to translate the theme into your native locale? No problem. Take a look in the `data` folder and you'll find a file `i10n.toml` that we've copied at the beginning. It contains all strings related to the theme. Just replace the original strings with your own.
95+
You don't blog in english and you want to translate the theme into your native locale? No problem. Take a look in the `data` folder and you'll find a file `l10n.toml` that we've copied at the beginning. It contains all strings related to the theme. Just replace the original strings with your own.
9696

9797

9898
## Linking thumbnails

layouts/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<p>
1212
<center>
1313
<h1>
14-
{{with .Site.Data.i10n.page_not_found.title}}{{.}}{{end}}
14+
{{with .Site.Data.l10n.page_not_found.title}}{{.}}{{end}}
1515
</h1>
1616
<h3>
17-
{{with .Site.Data.i10n.page_not_found.subtitle}}{{.}}{{end}}
17+
{{with .Site.Data.l10n.page_not_found.subtitle}}{{.}}{{end}}
1818
</h3>
1919
</center>
2020
</p>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<footer class="article-footer">
22
<a data-url="{{ .Permalink }}" data-id="{{ .UniqueID }}" class="article-share-link">
3-
{{with .Site.Data.i10n.articles.share}}{{.}}{{end}}
3+
{{with .Site.Data.l10n.articles.share}}{{.}}{{end}}
44
</a>
55
{{ if not (eq .Site.DisqusShortname "") }}
66
<a href="{{ .Permalink }}/#disqus_thread" class="article-comment-link">
7-
{{with .Site.Data.i10n.articles.comments}}{{.}}{{end}}
7+
{{with .Site.Data.l10n.articles.comments}}{{.}}{{end}}
88
</a>
99
{{end}}
1010
</footer>

layouts/partials/article_header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ <h1 class="article-title" itemprop="name">
1010
<time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
1111
&middot;
1212
{{ .WordCount }}
13-
{{ with .Site.Data.i10n.articles.words }}{{.}}{{end}}
13+
{{ with .Site.Data.l10n.articles.words }}{{.}}{{end}}
1414
&middot;
1515
{{ .ReadingTime }}
16-
{{ with .Site.Data.i10n.articles.readingtime }}{{.}}{{end}}
16+
{{ with .Site.Data.l10n.articles.readingtime }}{{.}}{{end}}
1717
</div>
1818
<div class="article-category">
1919
{{ range .Params.categories }}

layouts/partials/article_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</p>
1717
<p class="article-more-link">
1818
<a href="{{ .Permalink }}">
19-
{{with .Site.Data.i10n.articles.read_more}}{{.}}{{end}}
19+
{{with .Site.Data.l10n.articles.read_more}}{{.}}{{end}}
2020
</a>
2121
</p>
2222
</div>

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</nav>
2727
<div id="search-form-wrap">
2828
<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form">
29-
<input type="search" name="q" results="0" class="search-form-input" placeholder="{{with .Site.Data.i10n.search.placeholder}}{{.}}{{end}}">
29+
<input type="search" name="q" results="0" class="search-form-input" placeholder="{{with .Site.Data.l10n.search.placeholder}}{{.}}{{end}}">
3030
<button type="submit" class="search-form-submit">
3131
</button>
3232
<input type="hidden" name="q" value="site:{{ .Site.BaseURL }}">

layouts/partials/pagination.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
33
{{ if .Paginator.HasPrev }}
44
<a class="extend prev" rel="prev" href="{{.Paginator.Prev.URL}}">
5-
« {{with.Site.i10n.pagination.previous}}{{.}}{{end}}
5+
« {{with.Site.l10n.pagination.previous}}{{.}}{{end}}
66
</a>
77
{{ end }}
88
{{ if .Paginator.HasNext }}
99
<a class="extend next" rel="next" href="{{.Paginator.Next.URL}}">
10-
« {{with.Site.i10n.pagination.next}}{{.}}{{end}} »
10+
« {{with.Site.l10n.pagination.next}}{{.}}{{end}} »
1111
</a>
1212
{{ end }}
1313
{{ end }}

layouts/partials/prev_next_post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{ if .PrevInSection }}
44
<a href="{{ .PrevInSection.Permalink }}" id="article-nav-older" class="article-nav-link-wrap">
55
<strong class="article-nav-caption">
6-
{{with .Site.Data.i10n.articles.linked_posts.older}}{{.}}{{end}}
6+
{{with .Site.Data.l10n.articles.linked_posts.older}}{{.}}{{end}}
77
</strong>
88
<div class="article-nav-title">{{ .PrevInSection.Title }}</div>
99
</a>
@@ -12,7 +12,7 @@
1212
{{ if .NextInSection }}
1313
<a href="{{ .NextInSection.Permalink }}" id="article-nav-newer" class="article-nav-link-wrap">
1414
<strong class="article-nav-caption">
15-
{{with .Site.Data.i10n.articles.linked_posts.newer}}{{.}}{{end}}
15+
{{with .Site.Data.l10n.articles.linked_posts.newer}}{{.}}{{end}}
1616
</strong>
1717
<div class="article-nav-title">{{ .NextInSection.Title }}</div>
1818
</a>

0 commit comments

Comments
 (0)