change file path

This commit is contained in:
liuboaibc 2020-08-17 17:09:23 +08:00
parent 3487692745
commit 13b91892a9
5 changed files with 8 additions and 9 deletions

View File

@ -387,18 +387,17 @@ body {
.content-div {
.md-body {
font-size: 16px;
line-height: 2.29;
line-height: 1.71;
color: #36435c;
}
.md-body h2 {
font-size: 24px;
font-weight: 500;
line-height: 64px;
line-height: 40px;
color: #171c34;
text-shadow: none;
text-align: left;
margin-bottom: 20px;
}
.md-body h3 {

View File

@ -106,8 +106,8 @@
.md-body h4,
.md-body h5,
.md-body h6 {
margin-top: 30px;
margin-bottom: 20px;
margin-top: 20px;
margin-bottom: 5px;
font-weight: 600;
line-height: 1.5;
color: #171c34;
@ -170,7 +170,6 @@
text-align: center;
color: #171c34;
text-shadow: 0 4px 8px rgba(35, 45, 65, 0.1);
margin-bottom: 60px;
@media only screen and (max-width: $mobile-max-width) {
margin-bottom: 20px;

View File

@ -43,7 +43,7 @@
- id: Read More
translation: Read More
- id: We cant find the page that youre looking for :(
translation: We cant find the page that youre looking for :(
translation: 没有你想找的页面 :(
- id: Go To Home
translation: 返回首页
- id: icon

View File

@ -139,6 +139,7 @@
<script src='{{ "js/aside.js" | relURL }}'></script>
{{ end }}
<script>
var languageCode = '{{.Site.Language.Lang}}'
var filePath = '{{ .File.Path }}'
// var filePath = 'README.md'
@ -163,7 +164,7 @@
return arr
}
var getFileContributors = function() {
var url = 'https://api.github.com/repos/kubesphere/website/commits?path=' + filePath
var url = 'https://api.github.com/repos/kubesphere/website/commits?path=content/' + languageCode + '/' + filePath
$.getJSON(url, function(data) {
if (!data || data.length === 0) {
$('.contributor-div').hide()

View File

@ -14,7 +14,7 @@
</li>
{{ else}}
<li>
<a href="{{ .p1.Permalink }}">{{ .p1.LinkTitle }} / </a>
<a href="{{ .p1.Permalink }}">{{ .p1.LinkTitle }}&nbsp;/&nbsp;</a>
</li>
{{ end }}