-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from bwangel23/add_tags_page
添加了标签页 V2
- Loading branch information
Showing
8 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ define "title" }} | ||
{{ if isset .Site.Params "seotitle" }}{{ .Site.Params.seotitle }}{{ else }}{{ .Site.Title }}{{ end }} | ||
→ Tags | ||
{{ end }} | ||
|
||
{{ define "main" }} | ||
{{ partial "header.html" . }} | ||
<section class="main term-list"> | ||
{{ $data := .Data }} | ||
<header class="term-header"> | ||
<h2>Tags</h2> | ||
</header> | ||
|
||
<div class="term-tags"> | ||
{{ range $key,$value := .Data.Terms.ByCount }} | ||
<a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}" style="font-size: {{ add (mul $value.Count 3.17) 12.83 }}px;"> {{ $value.Name }}</a> | ||
{{ end }} | ||
</div> | ||
</section> | ||
{{ partial "footer.html" . }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
@import 'partials/syntax'; | ||
@import 'partials/links'; | ||
@import 'partials/misc'; | ||
@import 'partials/terms'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.term-list { | ||
.term-header { | ||
h2 { | ||
font-size: 48px; | ||
} | ||
} | ||
.term-tags { | ||
max-width: 60em; | ||
margin: 2em auto; | ||
margin-top: 0em; | ||
a { | ||
margin-right: 1em; | ||
line-height: 65px; | ||
border-bottom: 1px solid gray; | ||
white-space: nowrap; | ||
transition: border-bottom .5s; | ||
|
||
&:hover { | ||
border-bottom: 3px dotted gray; | ||
text-decoration: none; | ||
color: #404040; | ||
} | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.