mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
07.00.2021 10028fbd15b7ebded29fde6a272a94c476dacf24
Merge branch 'master' into sidebar

1 files added
3 files modified
99 ■■■■■ changed files
README.md 35 ●●●●● patch | view | raw | blame | history
assets/css/style.css 14 ●●●●● patch | view | raw | blame | history
assets/css/style.rtl.css 14 ●●●●● patch | view | raw | blame | history
i18n/ja.toml 36 ●●●●● patch | view | raw | blame | history
README.md
@@ -59,7 +59,7 @@
## Modifying the config.toml
Ìn this section I'll discuss the custom parameters available within the `config.toml`. The complete [sample](https://github.com/lxndrblz/anatole/blob/master/exampleSite/config.toml) can be found in the exampleSite folder.
Ìn this section, I'll discuss the custom parameters available within the `config.toml`. The complete [sample](https://github.com/lxndrblz/anatole/tree/master/exampleSite/config/_default) can be found in the exampleSite folder.
### Profile picture and slogan
@@ -70,6 +70,7 @@
description = "Call me Jane"
profilePicture = "images/profile.jpg"
```
Please note that the tile under the `[params]` only adjust the page title in the sidebar. If you wish to adjust the HTML title (i.e. name of the tab), you will have to adjust the Hugo's title variable, as shown in the `config.toml`.
Please note that the slogan can be multi-lined (note the three quotes at the beginning and end):
```toml
@@ -174,7 +175,7 @@
  postSectionName = "blog"
```
If the parameter is not set, it will default to `post`.
If the parameter is not set, it will default to `post`. Be sure to check the name of the folder containing your post files and change it accordingly in order for links to reflect the new post section name.
### Show full post content on the home page
If you prefer the full content of your posts to appear on the home page rather than a summary of each post, then set the parameter `fullPostContent` to `true`.
@@ -507,6 +508,34 @@
customCss = ["css/syntax.css"]
```
### Socials
You can add social media based icon links under your profile picture by using the `socialIcons` parameter.
[Font Awesome](https://fontawesome.com/) is used for the icons.
If you are using brand icons, prefix the icon value with `fab` if you are using a standard icon use `fas` instead.
Ordering in the `config.toml` will determine the display order on the webpage.
#### Example branded social entry
```toml
[[params.socialIcons]]
icon = "fab fa-linkedin"
title = "Linkedin"
url = "https://de.linkedin.com/"
```
#### Example standard social entry
```toml
[[params.socialIcons]]
icon = "fas fa-envelope"
title = "e-mail"
url = "mailto:mail@example.com"
```
## License
Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE).
@@ -526,4 +555,4 @@
- Go to [Cai Cai](https://github.com/hi-caicai), for the great Anatole Farbox theme that formed the foundation for this theme.
- Go to [Kareya Saleh](https://unsplash.com/photos/tLKOj6cNwe0) for providing the profile picture in the exampleSite.
- Go to [Ales Krivec](https://unsplash.com/photos/4miBe6zg5r0) for providing the thumbnail picture in the exampleSite post.
- Go to [Ales Krivec](https://unsplash.com/photos/4miBe6zg5r0) for providing the thumbnail picture in the exampleSite post.
assets/css/style.css
@@ -50,7 +50,7 @@
body {
    color: var(--body-color);
    font-family: 'PingHei', 'PingFang SC', Helvetica Neue, 'Work Sans', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif;
    font-family: 'PingHei', 'PingFang SC', 'Helvetica Neue', 'Work Sans', 'Hiragino Sans GB', sans-serif;
    font-size: 15px;
    width: 100%;
    margin: 0 auto 30px auto;
@@ -411,6 +411,18 @@
    max-width: 100%;
}
.post .post-content ul {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
.post .post-content ol {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
.post .post-footer {
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--border-color);
assets/css/style.rtl.css
@@ -50,7 +50,7 @@
body {
    color: var(--body-color);
    font-family: 'Verdana', sans-serif;
    font-family: 'PingHei', 'PingFang SC', 'Helvetica Neue', 'Work Sans', 'Hiragino Sans GB', sans-serif;
    font-size: 15px;
    width: 100%;
    margin: 0 auto 30px auto;
@@ -411,6 +411,18 @@
    max-width: 100%;
}
.post .post-content ul {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
.post .post-content ol {
    line-height: 1.9em;
    font-weight: 400;
    font-size: 14px;
}
.post .post-footer {
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--border-color);
i18n/ja.toml
New file
@@ -0,0 +1,36 @@
[category]
other = "カテゴリー"
[tag]
other = "タグ"
[reading_time]
one = "読む時間 1 分間"
other = "読む時間 {{ .Count }} 分間"
[page_not_found]
other = "ページが見つかりません。"
[page_does_not_exist]
other = "指定されたページは存在しません。"
[head_back]
other = "<a href=\"{{ . }}\">ホーム</a>に戻る。"
[comments]
other = "コメント"
[send]
other = "送信"
[read_more]
other = "もっと読む"
[name]
other = "お名前"
[email]
other = "メールアドレス"
[message]
other = "メッセージ"