Update README.md

This commit is contained in:
MeiK
2020-05-09 15:01:36 +08:00
parent f7c7cbb24c
commit 0cd41e0e15
9 changed files with 13 additions and 36 deletions

View File

@@ -53,4 +53,5 @@ copyright = "© 2019. Theme by <a href=\"https://github.com/MeiK2333/github-styl
utterances = "example/example.github.io"
avatar = "https://example.com/images/avatar.png"
url = "https://example.com"
contributions = "post"
```

View File

@@ -11,7 +11,7 @@
<a aria-current="page" class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ .Site.BaseURL }}">
Overview
</a>
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ absURL "posts/" }}">
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ absURL "post/" }}">
Posts
<span class="Counter hide-lg hide-md hide-sm">
{{ $section_count}}

View File

@@ -8,7 +8,7 @@
<a aria-current="page" class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 selected " href="{{ .Site.BaseURL }}">
Overview
</a>
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ absURL "posts/" }}">
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ absURL "post/" }}">
Posts
<span class="Counter hide-lg hide-md hide-sm">
{{ $section_count}}
@@ -42,7 +42,9 @@
<span class="repo js-pinnable-item" title="{{ .Title }}">{{ .Title }}</span>
</a>
</div>
{{ .Summary | safeHTML }}
<div class="pinned-item-desc text-gray text-small d-block mt-2 mb-3">
{{ .Summary | safeHTML }}
</div>
<div class="f6 text-gray mt-2">
Updated <relative-time datetime="{{ .PublishDate.Format "2006-01-02" }}"
class="no-wrap" title="Modify at {{ .Lastmod.Format "2006/01/02" }}">

View File

@@ -11,7 +11,7 @@
<a aria-current="page" class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 " href="{{ .Site.BaseURL }}">
Overview
</a>
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 selected" href="{{ absURL "posts/" }}">
<a class="UnderlineNav-item mr-0 mr-md-1 mr-lg-3 selected" href="{{ absURL "post/" }}">
Posts
<span class="Counter hide-lg hide-md hide-sm">
{{ $section_count}}
@@ -35,7 +35,7 @@
</h3>
</div>
<div name="posts-post">
<div name="posts-post" class="text-gray mb-2 pr-4">
{{ .Summary | safeHTML }}
</div>

View File

@@ -3,25 +3,3 @@
<script crossorigin="anonymous" async="async"
type="application/javascript" src="{{ "js/github-bootstrap.js" | absURL }}"></script>
<script>
let classs = ['pinned-item-desc', 'text-gray', 'text-small', 'd-block', 'mt-2', 'mb-3'];
const pinned_posts = document.getElementsByName('pinned-post');
for (let i = 0; i < pinned_posts.length; i++) {
for (let j = 0; j < classs.length; j++) {
const ps = pinned_posts[i].getElementsByTagName('p');
for (let k = 0; k < ps.length; k++) {
ps[k].classList.add(classs[j]);
}
}
}
classs = [/*'col-9', */'d-inline-block', 'text-gray', 'mb-2', 'pr-4'];
const posts_posts = document.getElementsByName('posts-post');
for (let i = 0; i < posts_posts.length; i++) {
for (let j = 0; j < classs.length; j++) {
const ps = posts_posts[i].getElementsByTagName('p');
for (let k = 0; k < ps.length; k++) {
ps[k].classList.add(classs[j]);
}
}
}
</script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long