Skip to content

Commit

Permalink
update materials
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoxin committed Sep 15, 2021
1 parent 0746f8d commit 48fb5eb
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 14 deletions.
44 changes: 44 additions & 0 deletions materials.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,49 @@
]
}
]
},
{
"电子书": [
{
"理财投资": [
{
"name": "《小狗钱钱》",
"desc": "链接: https://pan.baidu.com/s/14Vj3dHpkAvILk9apzXfQtQ 提取码: 8brg",
"download_url": "https://pan.baidu.com/s/14Vj3dHpkAvILk9apzXfQtQ"

},
{
"name": "《指数基金投资指南》",
"desc": "链接: https://pan.baidu.com/s/1YUQYgbIfA-77HHvjwyNwiQ 提取码: ccht",
"download_url": "https://pan.baidu.com/s/1YUQYgbIfA-77HHvjwyNwiQ"

},
{
"name": "《投资最重要的事》",
"desc": "链接: https://pan.baidu.com/s/1B9GRJCdcRBqndI82CnB73Q 提取码: e7p7",
"download_url": "https://pan.baidu.com/s/1B9GRJCdcRBqndI82CnB73Q"

},
{
"name": "《基金长青:范勇宏讲述华夏基金15周年》",
"desc": "链接: https://pan.baidu.com/s/1Maj4yKZ4fEtCvzm7l-ACCQ 提取码: jrk6",
"download_url": "https://pan.baidu.com/s/1Maj4yKZ4fEtCvzm7l-ACCQ"

},
{
"name": "《股市稳赚》",
"desc": "链接: https://pan.baidu.com/s/1Zj1TYZwkS-3BI7Iqotfugg 提取码: qb4h",
"download_url": "https://pan.baidu.com/s/1Zj1TYZwkS-3BI7Iqotfugg"

},
{
"name": "《不落俗套的成功:最好的个人投资方法》",
"desc": "链接: https://pan.baidu.com/s/1CA3TIxvNgCjwbGdUUhut6A 提取码: dgn3",
"download_url": "https://pan.baidu.com/s/1CA3TIxvNgCjwbGdUUhut6A"

}
]
}
]
}
]
29 changes: 15 additions & 14 deletions statics/html/materials.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
{{ range $TypedMaterialSeries := .AllMaterialsList }}
<div class="section">
{{ range $TypeName, $MaterialSeriesList := $TypedMaterialSeries }}
<h2 class="header">{{ $TypeName }}</h2>
<div class="divider"></div>
{{ range $MaterialSeries := $MaterialSeriesList }}
<div class="section">
{{ range $SeriesName, $MaterialItemList := $MaterialSeries }}
<h4 class="header">{{ $SeriesName }}</h4>
<div class="section">
{{ range $MaterialItem := $MaterialItemList }}
<div class="card-panel">
<p><a href="{{ $MaterialItem.DownloadURL }}" target="_blank">{{ $MaterialItem.Name }}</a></p>
<p>{{ $MaterialItem.Desc }}</p>
<h3 class="header">{{ $TypeName }}</h3>
<ul class="collapsible">
{{ range $i, $MaterialSeries := $MaterialSeriesList }}
<li {{ if eq $i 0 }}class="active"{{ end }}>
{{ range $SeriesName, $MaterialItemList := $MaterialSeries }}
<div class="collapsible-header">{{ $SeriesName }}</div>
<div class="collapsible-body collection">
{{ range $MaterialItem := $MaterialItemList }}
<div class="collection-item">
<p><a href="{{ $MaterialItem.DownloadURL }}" target="_blank">{{ $MaterialItem.Name }}</a></p>
<p>{{ $MaterialItem.Desc }}</p>
</div>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
</div>
</li>
</ul>
{{ end }}
{{ end }}
</div>
Expand Down

0 comments on commit 48fb5eb

Please sign in to comment.