Skip to content

Commit 3f419d7

Browse files
committed
update github workflow file
1 parent fa1dcdf commit 3f419d7

12 files changed

+57
-47
lines changed

.github/workflows/deploy-site.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- name: Setup Hugo
1717
uses: peaceiris/actions-hugo@v2.6.0
1818
with:
19-
hugo-version: 'latest'
19+
# hugo-version: 'latest'
20+
hugo-version: '0.134.0'
2021
extended: true
2122

2223
- name: Update Hugo Modules

public/application.b8d579ded1d4d0c2638ff1714de8350b0359062bf3c9e13cd56dae6ad787b82e.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/cn/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,22 +278,22 @@
278278
<style>
279279

280280
#homePageBackgroundImageDivStyled {
281-
background-image: url('/images/site/background_hu9593155258630519533.png');
281+
background-image: url('/images/site/background_hu18287576098317575145.png');
282282
}
283283

284284
@media (min-width: 500px) and (max-width: 800px) {
285285
#homePageBackgroundImageDivStyled {
286-
background-image: url('/images/site/background_hu14048986478963258335.png');
286+
background-image: url('/images/site/background_hu6926140781362231879.png');
287287
}
288288
}
289289
@media (min-width: 801px) and (max-width: 1200px) {
290290
#homePageBackgroundImageDivStyled {
291-
background-image: url('/images/site/background_hu9045924997149105114.png');
291+
background-image: url('/images/site/background_hu7109894133186154845.png');
292292
}
293293
}
294294
@media (min-width: 1201px) and (max-width: 1500px) {
295295
#homePageBackgroundImageDivStyled {
296-
background-image: url('/images/site/background_hu11017360211869279869.png');
296+
background-image: url('/images/site/background_hu5182901387210250461.png');
297297
}
298298
}
299299
@media (min-width: 1501px) {

public/cn/search/index.html

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Initial setup Search depends on additional output content type of JSON in config.toml ``` [outputs] home = [“HTML”, “JSON”] ```">
3434
<meta property="og:locale" content="cn">
3535
<meta property="og:type" content="article">
36-
<meta property="article:section" content="notes">
36+
<meta property="article:section" content="search">
3737
<meta property="article:published_time" content="2010-06-08T08:06:25+06:00">
3838
<meta property="article:modified_time" content="2010-06-08T08:06:25+06:00">
3939

@@ -77,7 +77,7 @@
7777
</script>
7878
</head>
7979

80-
<body class="type-notes kind-page" data-spy="scroll" data-target="#TableOfContents" data-offset="80">
80+
<body class="type-search kind-page" data-spy="scroll" data-target="#TableOfContents" data-offset="80">
8181
<div class="container-fluid bg-secondary wrapper">
8282

8383

@@ -244,7 +244,7 @@
244244
</form>
245245
<div class="sidebar-tree">
246246
<ul class="tree" id="tree">
247-
<li id="list-heading"><a href="/cn/notes" data-filter="all">Notes</a></li>
247+
<li id="list-heading"><a href="/cn/search" data-filter="all">Search</a></li>
248248
<div class="subtree">
249249

250250

@@ -258,43 +258,44 @@
258258

259259

260260

261+
<script>
262+
document.body.classList.replace('kind-page', 'kind-section');
263+
</script>
261264
<section class="content-section" id="content-section">
262265
<div class="content container-fluid" id="content">
263-
<div class="container-fluid note-card-holder" id="note-card-holder">
264-
<p>This file exists solely to respond to /search URL with the related <code>search</code> layout template.</p>
265-
<p>No content shown here is rendered, all content is based in the template layouts/page/search.html</p>
266-
<p>Setting a very low sitemap priority will tell search engines this is not important content.</p>
267-
<p>This implementation uses Fusejs and mark.js</p>
268-
<h2 id="initial-setup">Initial setup</h2>
269-
<p>Search depends on additional output content type of JSON in config.toml
270-
```
271-
[outputs]
272-
home = [&ldquo;HTML&rdquo;, &ldquo;JSON&rdquo;]
273-
```</p>
274-
<h2 id="searching-additional-fileds">Searching additional fileds</h2>
275-
<p>To search additional fields defined in front matter, you must add it in 2 places.</p>
276-
<h3 id="edit-layouts_defaultindexjson">Edit layouts/_default/index.JSON</h3>
277-
<p>This exposes the values in /index.json
278-
i.e. add <code>category</code>
279-
```
280-
&hellip;
281-
&ldquo;contents&rdquo;:{{ .Content | plainify | jsonify }}
282-
{{ if .Params.tags }},
283-
&ldquo;tags&rdquo;:{{ .Params.tags | jsonify }}{{end}},
284-
&ldquo;categories&rdquo; : {{ .Params.categories | jsonify }},
285-
&hellip;
286-
```</p>
287-
<h3 id="edit-fusejs-options-to-search">Edit fuse.js options to Search</h3>
288-
<p><code>assets/scripts/pages/search.js</code>
289-
```
290-
keys: [
291-
&ldquo;title&rdquo;,
292-
&ldquo;contents&rdquo;,
293-
&ldquo;tags&rdquo;,
294-
&ldquo;categories&rdquo;
295-
]
296-
```</p>
266+
<div class="container-fluid post-card-holder" id="post-card-holder">
267+
<div id="search-results" style="display: flex; flex-wrap: wrap;">
268+
269+
<script id="search-result-template" type="text/x-js-template">
270+
<div class="post-card">
271+
<div class="card">
272+
<div class="card-head">
273+
<a href="${link}" class="post-card-link">
274+
<img class="card-img-top" src="${hero}" alt="Card Heading Image">
275+
</a>
276+
</div>
277+
<div class="card-body">
278+
<a href="${link}" class="post-card-link">
279+
<h5 class="card-title">${title}</h5>
280+
<p class="card-text post-summary">${summary}</p>
281+
</a>
282+
283+
<div class="tags">
284+
<ul style="padding-left: 0;">
285+
${tags}
286+
</ul>
287+
</div>
288+
289+
</div>
290+
<div class="card-footer">
291+
<span class="float-left">${date}</span>
292+
<a href="${link}" class="float-right btn btn-outline-info btn-sm">Read</a>
293+
</div>
294+
</div>
295+
</div>
296+
</script>
297297

298+
</div>
298299
</div>
299300
</div>
300301
</section>

public/files/Yang_Hu_Resume.pdf

295 Bytes
Binary file not shown.
98.3 KB
Binary file not shown.

public/images/site/background.png

8.56 MB
Loading
189 KB
Loading
1.49 MB
Loading
467 KB
Loading

0 commit comments

Comments
 (0)