Merge branch 'main' into canonical
This commit is contained in:
commit
f728c195a4
7 changed files with 63 additions and 32 deletions
2
.github/workflows/autoprefixer.yml
vendored
2
.github/workflows/autoprefixer.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout to latest commit
|
- name: Checkout to latest commit
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.2.1
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.2.1
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
6
.github/workflows/pull-request.yml
vendored
6
.github/workflows/pull-request.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# checkout to the commit that has been pushed
|
# checkout to the commit that has been pushed
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.1
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.1
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
@ -78,6 +78,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# checkout to latest commit
|
# checkout to latest commit
|
||||||
- uses: actions/checkout@v4.1.7
|
- uses: actions/checkout@v4.2.1
|
||||||
# run markdown linter
|
# run markdown linter
|
||||||
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
|
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
box-shadow: $box-shadow;
|
box-shadow: $box-shadow;
|
||||||
border: 1px solid get-light-color('bg-primary');
|
border: 1px solid get-light-color('bg-primary');
|
||||||
@include transition();
|
@include transition();
|
||||||
|
.card-img-top {
|
||||||
|
transform: scale(1.2);
|
||||||
|
object-fit: cover;
|
||||||
|
@include transition();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-head {
|
.card-head {
|
||||||
|
@ -17,6 +22,10 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: large;
|
||||||
|
}
|
||||||
|
|
||||||
.card-body {
|
.card-body {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,3 +124,7 @@ other = "免责声明"
|
||||||
|
|
||||||
[search]
|
[search]
|
||||||
other = "搜索"
|
other = "搜索"
|
||||||
|
|
||||||
|
[minute]
|
||||||
|
one = "分钟"
|
||||||
|
other = "分钟"
|
||||||
|
|
|
@ -124,3 +124,7 @@ other = "免責聲明"
|
||||||
|
|
||||||
[search]
|
[search]
|
||||||
other = "搜尋"
|
other = "搜尋"
|
||||||
|
|
||||||
|
[minute]
|
||||||
|
one = "分鐘"
|
||||||
|
other = "分鐘"
|
||||||
|
|
|
@ -4,7 +4,20 @@
|
||||||
>
|
>
|
||||||
<div class="card mt-1">
|
<div class="card mt-1">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<a class="card-header" href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
|
<a href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
|
||||||
|
{{ if .image }}
|
||||||
|
<div class="card-head">
|
||||||
|
{{ $imageImage:= resources.Get .image}}
|
||||||
|
{{ if $imageImage }}
|
||||||
|
{{/* svg don't support "Fit" operation */}}
|
||||||
|
{{ if ne $imageImage.MediaType.SubType "svg" }}
|
||||||
|
{{ $imageImage = $imageImage.Fit "1000x1000" }}
|
||||||
|
{{ end }}
|
||||||
|
<img class="card-img-top" src="{{ $imageImage.RelPermalink }}" alt="{{ .name }}" />
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
<div class="card-header">
|
||||||
<div>
|
<div>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
{{ if .logo }}
|
{{ if .logo }}
|
||||||
|
@ -34,6 +47,7 @@
|
||||||
<span>{{ .timeline }}</span>
|
<span>{{ .timeline }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="card-body text-justify pt-1 pb-1">
|
<div class="card-body text-justify pt-1 pb-1">
|
||||||
<p>{{ .summary | markdownify }}</p>
|
<p>{{ .summary | markdownify }}</p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue