Add avatar round & opacity & animation feature#267
Add avatar round & opacity & animation feature#267sli1989 merged 4 commits intotheme-next:masterfrom
Conversation
_config.yml
Outdated
| # in site directory(source/uploads): /uploads/avatar.gif | ||
| #avatar: /images/avatar.gif | ||
| avatar: | ||
| rul: |
There was a problem hiding this comment.
omg... Used to remaining useful life...
There was a problem hiding this comment.
Don't understand here. It is just mistake, right?
There was a problem hiding this comment.
yes, it is a mistake.
| #avatar: /images/avatar.gif | ||
| avatar: | ||
| rul: | ||
| rounded: false |
_config.yml
Outdated
| rounded: false | ||
| # The value of opacity should be choose from 0 to 1 | ||
| opacity: 1 | ||
| animated: false |
There was a problem hiding this comment.
Comments on all this parameters. As for me, IDK what mean animated. Is it round on 360 with cursor in or what?
There was a problem hiding this comment.
Just mean the rotation of the avatar with cursor.
layout/_macro/sidebar.swig
Outdated
| <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person"> | ||
| {% if theme.avatar %} | ||
| {% if theme.avatar.url %} | ||
| <a href="/" class="site-author-image" rel="start" style="border:none"> |
There was a problem hiding this comment.
Ok, what about a href? Is it needed or mb not? And if yes, mb need to add additional option to redefine this url?
There was a problem hiding this comment.
I prefer to add the function clicking the avatar to homepage as the inherent function. Besides, i don't know how to add this in if condition. 😢
There was a problem hiding this comment.
url, path, click, href, link mb one of this can be clicking on avatar.
Also, this coption must be disable by default (empty string) and if user want, he can add any link he want.
There was a problem hiding this comment.
You mean
- the default to homepage?
- the custom to custom linking?
There was a problem hiding this comment.
No, i mean:
- the default for nothing (as it for now)
- custom - is custom; if user want, he can define link
There was a problem hiding this comment.
How about this one?
- the default for nothing, but linking to the present page. (it's seems redundancy to add enable option working seem as the master branch.)
- user can custom the external url of avatar.
There was a problem hiding this comment.
No need to use exturl option.
There was a problem hiding this comment.
well, I delete the linking function of avatar.
* Add avatar round & opacity & animation feature * Update grammatical meaning * Add external url of avatar * Delete the linking option of avatar
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number(s): N/A
What is the new behavior?
How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?