-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
added blog styling #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,16 +7,30 @@ | |
|
|
||
| <main> | ||
| <div class="container"> | ||
|
|
||
| <ul> | ||
| {{#each collections.blog}} | ||
| {{#if title}} | ||
| <li> | ||
| <a href="/{{../../site.locale}}/{{ path }}">{{ title }}</a> | ||
| </li> | ||
| {{/if}} | ||
| {{/each}} | ||
| </ul> | ||
|
|
||
| <article> | ||
| {{#with collections.blog.[0]}} | ||
| <h3 class="blog-title"><a href="/{{../site.locale}}/{{path}}">{{title}}</a></h3> | ||
| <div class="blog-blurb"> | ||
| {{{ contents }}} | ||
| </div> | ||
| <p class="blog-ellipses">...</p> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use … (…). |
||
| <a href="/{{../site.locale}}/{{path}}">Read the full post</a> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. … so we don't really need the link here (you have already read the full post). And it also appears in the list below.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, this was just posting a blurb of the most recent post. I added the blurb because the entries were long. I can change it to be the full post in, or leave the blurb. |
||
| {{/with}} | ||
| </article> | ||
|
|
||
| <article> | ||
| <h5 class="header-label">Previous Posts</h5> | ||
| <ul class="blog-list"> | ||
| {{#each collections.blog}} | ||
| {{#if title}} | ||
| <li class="blog-list-item"> | ||
| <a href="/{{../../site.locale}}/{{path}}">{{title}}</a><br /> | ||
| </li> | ||
| {{/if}} | ||
| {{/each}} | ||
| </ul> | ||
| </article> | ||
|
|
||
| </div> | ||
| </main> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,4 @@ body | |
| margin 0 | ||
|
|
||
| main | ||
| flex 1 | ||
|
|
||
| footer | ||
| padding 0 20px | ||
| flex 1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ul.blog-list | ||
| list-style-type none | ||
| padding 0 | ||
| margin 0 | ||
|
|
||
| .blog-list-item | ||
| margin-bottom 10px | ||
| font-size .9em | ||
|
|
||
| > time | ||
| font-size .8 em | ||
|
|
||
| .blog-title | ||
| margin-bottom 5px | ||
|
|
||
| .blog-blurb | ||
| font-size .8em | ||
| max-height 300px | ||
| overflow hidden | ||
|
|
||
| .blog-ellipses | ||
| font-weight bold |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| .linuxfoundation-footer | ||
| width 100% | ||
| padding-bottom 1em | ||
| padding 1em | ||
| font-size 14px | ||
| color #fff | ||
| background #404042 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will display the entire first blog post …