Skip to content

Commit f3adedf

Browse files
authored
Merge pull request #831 from fliiiix/bugfix/gravatar-display-avatar-size
Bugfix/gravatar display avatar size
2 parents 76127ff + 6cb0377 commit f3adedf

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Changelog for Isso
99
This change necessitates adjusting custom CSS files to the new names.
1010
- Drop support for outdated Python version 3.5
1111
(#808, l33tname)
12+
- Fix avatar sizing, limit default gravatar images to 55px (#831, l33tname)
13+
In case of a custom gravatar URL, the ``&s=55`` size parameter will have
14+
to be added, see `Gravatar: Image requests`_.
15+
16+
.. _Gravatar: Image requests: http://en.gravatar.com/site/implement/images/
1217

1318
0.12.6 (2022-03-06)
1419
-------------------

docs/docs/configuration/server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ gravatar
107107

108108
gravatar-url
109109
Url for gravatar images. The "{}" is where the email hash will be placed.
110-
Defaults to "https://www.gravatar.com/avatar/{}?d=identicon"
110+
Defaults to "https://www.gravatar.com/avatar/{}?d=identicon&s=55"
111111

112112
latest-enabled
113113
If True it will enable the ``/latest`` endpoint. Optional, defaults

isso/css/isso.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
.isso-comment > .isso-avatar {
4848
display: block;
4949
float: left;
50-
width: 7%;
5150
margin: 3px 15px 0 0;
5251
}
5352
.isso-comment > .isso-avatar > svg {

isso/isso.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ log-file =
5757
gravatar = false
5858

5959
# default url for gravatar. {} is where the hash will be placed
60-
gravatar-url = https://www.gravatar.com/avatar/{}?d=identicon
60+
# `s=55` results in height and width of 55px.
61+
# for other options, see http://en.gravatar.com/site/implement/images/
62+
gravatar-url = https://www.gravatar.com/avatar/{}?d=identicon&s=55
6163

6264
# enable the "/latest" endpoint, that serves comment for multiple posts (not
6365
# needing to previously know the posts URIs)

0 commit comments

Comments
 (0)