Browse Source

cosmetique sur les commentaires et ajout d'un avatar pou moi meme

master
Victor 7 years ago
parent
commit
4e4b3289c2
4 changed files with 9 additions and 5 deletions
  1. BIN
      content/images/authors/face.png
  2. +4
    -0
      pelicanconf.py
  3. +2
    -2
      theme/static/css/style.css
  4. +3
    -3
      theme/templates/pcs/comments.html

BIN
content/images/authors/face.png View File

Before After
Width: 100  |  Height: 100  |  Size: 22 KiB

+ 4
- 0
pelicanconf.py View File

@ -39,6 +39,10 @@ SITEMAP = {
PELICAN_COMMENT_SYSTEM = True
PELICAN_COMMENT_SYSTEM_IDENTICON_DATA = ('author',)
PELICAN_COMMENT_SYSTEM_DIR = 'comments'
PELICAN_COMMENT_SYSTEM_AUTHORS = {
('Victor',): "images/authors/face.png",
('victor',): "images/authors/face.png",
}
COMMENT_URL = "#comment_{slug}"
#Markdown PLUGINS

+ 2
- 2
theme/static/css/style.css View File

@ -175,12 +175,12 @@ article p a:hover, article ol a:hover, article div.article-content ul:not(.artic
.article-content ul {
list-style-type: circle;
font-size:1.3em;
font-size: 19px;
}
.article-content ol {
list-style-type: decimal;
font-size: 1.3em;
font-size: 19px;
}
.article-content li {

+ 3
- 3
theme/templates/pcs/comments.html View File

@ -27,7 +27,7 @@
#pcs-comments .comment-body {
display: table-cell;
vertical-align: top;
width: 100%;
width: 93%;
}
</style>
{% endif %}
@ -84,8 +84,8 @@
<div class="comment-left">
<img src="{{ SITEURL }}/{{ comment.avatar }}"
alt="Avatar"
height="{{ PELICAN_COMMENT_SYSTEM_IDENTICON_SIZE }}"
width="{{ PELICAN_COMMENT_SYSTEM_IDENTICON_SIZE }}">
height="{{ PELICAN_COMMENT_SYSTEM_IDENTICON_SIZE }}px"
width="{{ PELICAN_COMMENT_SYSTEM_IDENTICON_SIZE }}px">
</div>
<div class="comment-body">
<div style="float:right;">

Loading…
Cancel
Save