Skip to content

Commit

Permalink
New style
Browse files Browse the repository at this point in the history
  • Loading branch information
zzh8829 committed Mar 6, 2019
1 parent 0101bdc commit eb5d721
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ <h3>{{ .Key }}</h3>
<ul>
{{ range where .Pages "Params.hidden" "ne" "true" }}
<div class="post-item">
<div class="post-time">{{ .Date.Format "Jan 2" }}</div>
<a href="{{ .Permalink }}" class="post-link">
<a href="{{ .RelPermalink }}" class="post-link">
<div class="post-time">{{ .Date.Format "Jan 2" }}</div>
{{ if .Site.Params.useDescriptionAsTitle }}
{{ .Description }}
{{ else }}
Expand Down
20 changes: 10 additions & 10 deletions layouts/partials/post-list.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<ul id="post-list">
{{ range where .Paginator.Pages "Params.hidden" "ne" "true" }}
<li style="clear:both;">
<a href='{{ .RelPermalink }}'><aside class="dates">{{ .Date.Format "Jan 2, 06" }}</aside></a>
<a href='{{ .RelPermalink }}'>
{{ .Title }}
<div class="summary"> {{ .Summary }} </div>
</a>
<a href='{{ .RelPermalink }}'><aside class="read-more" style="float:left;">Read more →</aside></a>
</li>
{{ end }}
{{ range where .Paginator.Pages "Params.hidden" "ne" "true" }}
<li style="clear:both;">
<a href='{{ .RelPermalink }}'>
<aside class="dates">{{ .Date.Format "Jan 2, 06" }}</aside>
{{ .Title }}
<div class="summary"> {{ .Summary }} </div>
<aside class="read-more" style="float:left;">Read more →</aside>
</a>
</li>
{{ end }}
</ul>
21 changes: 14 additions & 7 deletions static/css/common.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.wrapper:first-of-type {
padding-top: 100px;
padding-top: 60px;
}

#footer {
Expand All @@ -17,7 +17,6 @@
}

.post h2 {
margin-left: -5px;
font-weight: bold;
color: #333;
}
Expand All @@ -26,22 +25,30 @@ ul {
margin-bottom: 20px;
}

code {
pre {
font-family: Menlo, Monaco, Courier;
font-size: 14px;
font-weight: normal;
background-color: #F1F1F1;
padding: 0.3em;
background-color: #f5f2f0;
padding: .5rem;
box-shadow: inset 0 0 0 1px #E4EBF2;
border-radius: 3px;
margin: .5em 0;
}

.post h2 {
margin-bottom: 1em;
code {
font-family: Menlo, Monaco, Courier;
font-size: 14px;
font-weight: normal;
background-color: #f5f2f0 !important;
border-radius: 3px;
padding: 0.4rem;
}


.post h2.headline {
color: #555;
font-size: 1rem;
}

.archive .post-link {
Expand Down
5 changes: 1 addition & 4 deletions static/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
color: #111;
max-width: 500px;
margin-top: 2px;
margin-left: 10px;
}

#post-list .summary p {
Expand All @@ -28,13 +27,11 @@
float: left;
position: relative;
font: 300 17px/1.8 "Helvetica Neue", helvetica, Arial, sans-serif;
color: #888;
color: #5badf0;
}

#post-list li:hover .read-more {
text-decoration: none;
color: #5badf0;
color: #5694f1;
}

.scroll-down {
Expand Down
2 changes: 1 addition & 1 deletion themes/cactus-plus-plus

0 comments on commit eb5d721

Please sign in to comment.