Skip to content

Commit

Permalink
feat: support hide Pubs and motto
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirrito-k423 committed Jan 23, 2024
1 parent 8673ab8 commit f208d6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions layouts/people/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@


<div class="stick-motto-bar">
{{ $motto := .Params.motto }}
{{ with $motto}}
<h1 class="stick-motto-column motto">
{{ with .Params.motto }}
{{ with $motto }}
{{ . }}
{{ else }}
“红专并进,理实交融”
{{ end }}
</h1>
{{ end }}
<div class="stick-motto-column">

<div class="person">
Expand Down Expand Up @@ -140,9 +143,14 @@ <h1 class="stick-motto-column motto">
<!-- 论文 -->

<!-- 一作论文 -->
{{- partial "paper1.html" . -}}
{{ with .Params.hidePubs }}
{{ else}}
{{- partial "paper1.html" . -}}
{{ end }}
<!-- 其余参与论文 -->
<!-- {{- partial "paper2.html" . -}} -->
{{ with .Params.otherPubs}}
{{- partial "paper2.html" . -}}
{{ end }}

</div>
{{ if .Param "aplayer" }}
Expand Down
2 changes: 1 addition & 1 deletion static/css/style3People.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ img:hover {

.stick-motto-bar{
position: relative;
top:40px;
/* top:40px; */
/* height: 100vh; */
background-color: rgb(247, 247, 247);
/* display: flex; */
Expand Down

0 comments on commit f208d6b

Please sign in to comment.