Skip to content

Commit

Permalink
fix #77 horizontal scrolling, fix console error, fix blurry hr, add p…
Browse files Browse the repository at this point in the history
…ost count to recent list on home
  • Loading branch information
KyleMit committed Dec 18, 2019
1 parent ff752fc commit c8c8034
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/scripts/settings-display-density.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function setDisplayDensity(val) {
var displayDensitySetting = localStorage.getItem('settings-display-density') || "card"

// immediately set style to prevent FOUC
setDisplayDensity(siteThemeVal)
setDisplayDensity(displayDensitySetting)


// wait for the dom load to parse remaining elements
Expand Down
4 changes: 2 additions & 2 deletions assets/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ aside.toc { grid-area: toc }

main.content {
position: relative;
overflow-x: auto;
overflow-x: hidden;
}

/* sidenav */
Expand Down Expand Up @@ -318,7 +318,6 @@ blockquote strong {
}
hr {
box-shadow: 1px 1px 2px 0px #cec7b8;
border: 1px solid #cec7b8;
}
Expand Down Expand Up @@ -626,6 +625,7 @@ section.intro {
.posts {
padding-left: 0;
list-style: none;
clear: both;
}
.post {
Expand Down
6 changes: 5 additions & 1 deletion pages/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ A Collection of Overviews, Guidelines, Strategies, Standards, Technologies, and
{% include "_partials/search.njk" %}

<h1 class="page-title mt-2">
Recent posts <small><a href="/archive/">(view all)</a></small>
Recent posts
</h1>

{% set postList = collections.post | reverse | take(10) %}
{% include "_partials/postList.njk" %}

{% if collections.post.length > 10 %}
<hr>
<h3>Showing latest 10 of {{collections.post.length}} - <a href="/archive/">View All Archives</a></h3>
{% endif %}
2 changes: 2 additions & 0 deletions posts/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ OR three Underscore: \___

### Tables

Here's an awesome [markdown table generator](https://www.tablesgenerator.com/markdown_tables) if you're copying data from another source

<div class="split">
<span>

Expand Down

0 comments on commit c8c8034

Please sign in to comment.