Skip to content

Commit 3288dcc

Browse files
committed
update list page
1 parent 7df9c24 commit 3288dcc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

themes/hugo-coder/layouts/money/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
{{ define "content" }}
55
<section class="container list">
66
{{$scratch := newScratch}}
7-
{{ range (where .Site.RegularPages "Section" "==" "dev") }}
7+
{{ range (where .Site.RegularPages "Section" "==" "money") }}
88
{{$scratch.Add "total" (countwords .Content)}}
99
{{ end }}
1010
<h1 class="title" style="font-size: 1.6rem !important;border-bottom:1px dotted #bf7326;padding-bottom:20px;">
1111
{{ .Description }}
1212
<br>
13-
<div style="text-align:left;font-size: 1.2rem !important;">共{{ len (where .Site.RegularPages "Section" "==" "dev") }}篇文章/总计{{$scratch.Get "total" }}字/浏览量<span id="money-page-views"></span></div>
13+
<div style="text-align:left;font-size: 1.2rem !important;">共{{ len (where .Site.RegularPages "Section" "==" "money") }}篇文章/总计{{$scratch.Get "total" }}字/浏览量<span id="money-page-views"></span></div>
1414
</h1>
1515

1616
<ul>

themes/hugo-coder/layouts/self/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
{{ define "content" }}
55
<section class="container list">
66
{{$scratch := newScratch}}
7-
{{ range (where .Site.RegularPages "Section" "==" "dev") }}
7+
{{ range (where .Site.RegularPages "Section" "==" "self") }}
88
{{$scratch.Add "total" (countwords .Content)}}
99
{{ end }}
1010
<h1 class="title" style="font-size: 1.6rem !important;border-bottom:1px dotted #bf7326;padding-bottom:20px;">
1111
{{ .Description }}
1212
<br>
13-
<div style="text-align:left;font-size: 1.2rem !important;">共{{ len (where .Site.RegularPages "Section" "==" "dev") }}篇文章/总计{{$scratch.Get "total" }}字/浏览量<span id="self-page-views"></span></div>
13+
<div style="text-align:left;font-size: 1.2rem !important;">共{{ len (where .Site.RegularPages "Section" "==" "self") }}篇文章/总计{{$scratch.Get "total" }}字/浏览量<span id="self-page-views"></span></div>
1414
</h1>
1515

1616
<ul>

0 commit comments

Comments
 (0)