Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Fix lists, allow for wider content in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Lourng committed Feb 17, 2017
1 parent ce78f0b commit 0cda169
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 26 deletions.
46 changes: 24 additions & 22 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,30 @@ <h5>Follow us on:</h5>

{% if site.data.news %}
<div class="content feeds">
<div class="row">
<div class="col s12 m6">
<h2>Recent News</h2>
{% for item in site.data.news limit:4 %}
<a href="{{ item['Page Path'] }}" target="_blank" class="feed-item">
<strong>{{ item['Title'] }}</strong>
<span class="meta">{{ item['Sort Date'] }}</span>
</a>
{% endfor %}
<br>
<a class="btn btn-large waves-effect white grey-text darken-text-2" href="http://liberalarts.temple.edu/about-us/newsroom">More News <i class="material-icons">navigate_next</i></a>
</div>
<div class="col s12 m6">
<h2>Upcoming Events</h2>
{% for item in site.data.events limit:4 %}
<a href="{{ item['Page Path'] }}" target="_blank" class="feed-item">
<strong>{{ item['Title'] }}</strong>
<span class="meta">{{ item['Sort Date'] }}</span>
</a>
{% endfor %}
<br>
<a class="btn btn-large waves-effect white grey-text darken-text-2" href="http://liberalarts.temple.edu/about-us/events">More Events <i class="material-icons">navigate_next</i></a>
<div>
<div class="row">
<div class="col s12 m6">
<h2>Recent News</h2>
{% for item in site.data.news limit:4 %}
<a href="{{ item['Page Path'] }}" target="_blank" class="feed-item">
<strong>{{ item['Title'] }}</strong>
<span class="meta">{{ item['Sort Date'] }}</span>
</a>
{% endfor %}
<br>
<a class="btn btn-large waves-effect white grey-text darken-text-2" href="http://liberalarts.temple.edu/about-us/newsroom">More News <i class="material-icons">navigate_next</i></a>
</div>
<div class="col s12 m6">
<h2>Upcoming Events</h2>
{% for item in site.data.events limit:4 %}
<a href="{{ item['Page Path'] }}" target="_blank" class="feed-item">
<strong>{{ item['Title'] }}</strong>
<span class="meta">{{ item['Sort Date'] }}</span>
</a>
{% endfor %}
<br>
<a class="btn btn-large waves-effect white grey-text darken-text-2" href="http://liberalarts.temple.edu/about-us/events">More Events <i class="material-icons">navigate_next</i></a>
</div>
</div>
</div>
</div>
Expand Down
20 changes: 16 additions & 4 deletions _sass/temple/_content.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
// Content only
.content {
max-width: $content-max-width; // 1080px;
margin: auto;
& > * {
max-width: $content-max-width; // 1080px;
margin-left: auto;
margin-right: auto;
}
ol, ul {
margin-bottom: 1em;
li {
margin-bottom: .25em;
}
}
ol {
padding-left: 3em;
}
ul {
margin-left: 2em;
li {
padding-left: 2em;
&:before {
content: "";
color: $tu-cherry;
margin-left: -1.5em;
margin-left: 0;
}
}
}
Expand Down

0 comments on commit 0cda169

Please sign in to comment.