mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 10:04:04 +00:00
F: .URL --> .Permalink
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
<path fill-rule="evenodd"
|
<path fill-rule="evenodd"
|
||||||
d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z" />
|
d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z" />
|
||||||
</svg>
|
</svg>
|
||||||
<a href="{{ .URL }}" class="text-bold flex-auto min-width-0 ">
|
<a href="{{ .Permalink }}" class="text-bold flex-auto min-width-0 ">
|
||||||
<span class="repo js-pinnable-item" title="{{ .Title }}">{{ .Title }}</span>
|
<span class="repo js-pinnable-item" title="{{ .Title }}">{{ .Title }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -8,10 +8,10 @@
|
|||||||
<a class="avatar mr-1" href="{{ .Site.BaseURL }}about/"><img
|
<a class="avatar mr-1" href="{{ .Site.BaseURL }}about/"><img
|
||||||
src="{{ "images/avatar.png" | absURL }}" width="26" height="26"></a>
|
src="{{ "images/avatar.png" | absURL }}" width="26" height="26"></a>
|
||||||
<span class="author"><a
|
<span class="author"><a
|
||||||
href="{{ .Site.BaseURL }}about/">{{ .Site.Params.author }}</a></span>
|
href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a></span>
|
||||||
<span class="path-divider">/</span>
|
<span class="path-divider">/</span>
|
||||||
<strong itemprop="name" class="css-truncate-target" style="max-width: 410px"><a
|
<strong itemprop="name" class="css-truncate-target" style="max-width: 410px"><a
|
||||||
href="{{ .URL }}">{{ .Title }}</a></strong>
|
href="{{ .Permalink }}">{{ .Title }}</a></strong>
|
||||||
|
|
||||||
<div class="d-block text-small text-gray">
|
<div class="d-block text-small text-gray">
|
||||||
Created <time-ago datetime="{{ .PublishDate.Format "2006-01-02" }}" class="no-wrap"
|
Created <time-ago datetime="{{ .PublishDate.Format "2006-01-02" }}" class="no-wrap"
|
||||||
@@ -36,8 +36,8 @@
|
|||||||
<div class="Box-header py-2 d-flex flex-column flex-shrink-0 flex-md-row flex-md-items-center">
|
<div class="Box-header py-2 d-flex flex-column flex-shrink-0 flex-md-row flex-md-items-center">
|
||||||
<div class="text-mono f6 flex-auto pr-3 flex-order-2 flex-md-order-1 mt-2 mt-md-0">
|
<div class="text-mono f6 flex-auto pr-3 flex-order-2 flex-md-order-1 mt-2 mt-md-0">
|
||||||
{{ countwords .Content }} Words
|
{{ countwords .Content }} Words
|
||||||
<span class="file-info-divider"></span>
|
<!-- <span class="file-info-divider"></span>
|
||||||
{{ .ReadingTime }} min
|
{{ .ReadingTime }} min -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
<div class="col-12 col-lg-12 d-inline-block">
|
<div class="col-12 col-lg-12 d-inline-block">
|
||||||
<div class="d-inline-block mb-1">
|
<div class="d-inline-block mb-1">
|
||||||
<h3>
|
<h3>
|
||||||
<a href="{{ .URL }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -10,18 +10,20 @@
|
|||||||
const pinned_posts = document.getElementsByName('pinned-post');
|
const pinned_posts = document.getElementsByName('pinned-post');
|
||||||
for (let i = 0; i < pinned_posts.length; i++) {
|
for (let i = 0; i < pinned_posts.length; i++) {
|
||||||
for (let j = 0; j < classs.length; j++) {
|
for (let j = 0; j < classs.length; j++) {
|
||||||
try {
|
const ps = pinned_posts[i].getElementsByTagName('p');
|
||||||
pinned_posts[i].getElementsByTagName('p')[0].classList.add(classs[j]);
|
for (let k = 0; k < ps.length; k++) {
|
||||||
} catch {}
|
ps[k].classList.add(classs[j]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
classs = [/*'col-9', */'d-inline-block', 'text-gray', 'mb-2', 'pr-4'];
|
classs = [/*'col-9', */'d-inline-block', 'text-gray', 'mb-2', 'pr-4'];
|
||||||
const posts_posts = document.getElementsByName('posts-post');
|
const posts_posts = document.getElementsByName('posts-post');
|
||||||
for (let i = 0; i < posts_posts.length; i++) {
|
for (let i = 0; i < posts_posts.length; i++) {
|
||||||
for (let j = 0; j < classs.length; j++) {
|
for (let j = 0; j < classs.length; j++) {
|
||||||
try {
|
const ps = posts_posts[i].getElementsByTagName('p');
|
||||||
posts_posts[i].getElementsByTagName('p')[0].classList.add(classs[j]);
|
for (let k = 0; k < ps.length; k++) {
|
||||||
} catch {}
|
ps[k].classList.add(classs[j]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Reference in New Issue
Block a user