mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Reverted GitHub stars rounding method
This commit is contained in:
parent
3f61b651a6
commit
323f83808a
@ -1,3 +1,8 @@
|
||||
mkdocs-material-2.x.x (2018-02-xx)
|
||||
|
||||
* Replaced package manager yarn with npm 5.6
|
||||
* Reverted GitHub stars rounding method
|
||||
|
||||
mkdocs-material-2.6.3 (2018-02-18)
|
||||
|
||||
* Added Vietnamese translations
|
||||
|
File diff suppressed because one or more lines are too long
@ -172,7 +172,7 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ base_url }}/assets/javascripts/application.5e40439f.js"></script>
|
||||
<script src="{{ base_url }}/assets/javascripts/application.e437c97b.js"></script>
|
||||
{% if lang.t("search.language") != "en" %}
|
||||
{% set languages = lang.t("search.language").split(",") %}
|
||||
{% if languages | length and languages[0] != "" %}
|
||||
|
@ -90,8 +90,10 @@ export default class Abstract {
|
||||
* @return {string} Formatted number
|
||||
*/
|
||||
format_(number) {
|
||||
if (number >= 1000)
|
||||
return `${(number / 1000).toFixed(number % 1000 > 99)}k`
|
||||
if (number > 10000)
|
||||
return `${(number / 1000).toFixed(0)}k`
|
||||
else if (number > 1000)
|
||||
return `${(number / 1000).toFixed(1)}k`
|
||||
return `${number}`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user