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

David Grevink
19.07.2021 548b8eaddfb1d78b6bd978abc63c14dd7a976c97
Slogans on the sidebar can be multiline (#164)

* Slogans on the sidebar can be multiline
3 files modified
19 ■■■■ changed files
README.md 16 ●●●● patch | view | raw | blame | history
assets/css/style.css 1 ●●●● patch | view | raw | blame | history
layouts/partials/sidebar.html 2 ●●● patch | view | raw | blame | history
README.md
@@ -70,12 +70,22 @@
profilePicture = "images/profile.jpg"
```
Please note that the slogan can be multi-lined (note the three quotes at the beginning and end):
```toml
[params]
description = """
Call me Jane
Blogging from Texas
"""
```
### Favicon
Add you own favicon in `static/favicons/favicon.ico`.
Add your own favicon in `static/favicons/favicon.ico`.
### Copyright
By default the copyright, will show the current year, but you can change this by configuring the `copyright` parameter.
By default, the copyright will show the current year, but you can change this by configuring the `copyright` parameter.
```toml
copyright = "2020-2021"
```
@@ -157,7 +167,7 @@
### Multilingual support
Anatole supports multilingual page setups. All you need to do is to add the languages to your 'config.toml'. For each Language you can set the custom options like title or description. It's important to include a `LanguageName`, as it will be displayed in the main menu.
Anatole supports multilingual page setups. All you need to do is to add the languages to your 'config.toml'. For each language you can set the custom options like title or description. It's important to include a `LanguageName`, as it will be displayed in the main menu.
```toml
[Languages]
assets/css/style.css
@@ -279,6 +279,7 @@
.sidebar .logo-title .description {
    font-size: 14px;
    margin: 0 1em;
}
.sidebar .logo-title .logo {
layouts/partials/sidebar.html
@@ -4,7 +4,7 @@
            <img src="{{ .Site.Params.profilePicture | absURL }}" alt="profile picture">
            <h3 title=""><a href="/">{{ .Site.Params.Title }}</a></h3>
            <div class="description">
                <p>{{ .Site.Params.description }}</p>
                <p>{{ replace .Site.Params.description "\n" "<br>" | safeHTML }}</p>
            </div>
        </div>
    </div>