Skip to content

Commit e8ca9e7

Browse files
committed
solutions.html created
1 parent 38b0fa1 commit e8ca9e7

File tree

5 files changed

+55
-9
lines changed

5 files changed

+55
-9
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name: ACM@UIUC ICPC
22
markdown: redcarpet
33
redcarpet:
44
extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
5-
highlighter: pygments
5+
highlighter: rogue
66

_includes/navbar.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ <h1 class="brand {% if page.title == 'ICPC'%}active{% endif %}">
1919
</div>
2020
</div>
2121

22-
<div class="navitem {% if page.title == 'Practices' or page.category == 'practices' %}active{% endif %}">
22+
<div class="navitem {% if page.title == 'Solutions' or page.category == 'solutions' %}active{% endif %}">
2323
<div class="navlink"
2424
style="width:100px;">
25-
<a href="{{ site.baseurl }}/practices.html">
25+
<a href="{{ site.baseurl }}/solutions.html">
2626
Solutions
2727
</a>
2828
</div>

_layouts/post.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
</script>
99

1010
<header class="post-header">
11-
{% if page.category == "announcements" %}
12-
<a href="{{ site.baseurl }}/announcements.html">
11+
{% if page.category == "solutions" %}
12+
<a href="{{ site.baseurl }}/solutions.html">
1313
<div class="fa fa-comment fa-3x"></div>
1414
</a>
15-
{% else if page.category == "practices" %}
16-
<a href="{{ site.baseurl }}/practices.html">
17-
<div class="fa fa-code fa-3x"></div>
18-
</a>
1915
{% endif %}
2016

2117
<h1 class="title">{{ page.title }}</h1>

css/main.css

+17
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,23 @@ a.contact {
450450
color: #3c763d;
451451
}
452452

453+
/* Solutions */
454+
455+
.solution {
456+
margin-bottom: 3em;
457+
color: #3c763d;
458+
border: solid 1px #d6e9c6;
459+
background-color: #dff0d8;
460+
}
461+
462+
.solution > .head {
463+
border-bottom: solid 1px #d6e9c6;
464+
}
465+
466+
.solution > .head > .fa {
467+
color: #3c763d;
468+
}
469+
453470
/* Hero Image */
454471

455472
.warbanner {

solutions.html

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default
3+
title: Solutions
4+
---
5+
6+
{% if site.categories["solutions"] | size > 0 %}
7+
{% for solution in site.categories["solutions"] %}
8+
<div class="item">
9+
<a href="{{ site.baseurl }}{{ solution.url }}">
10+
<h2 class="title">{{ solution.title }}</h2>
11+
<div class="link">
12+
{{ solution.time }} • {{ solution.date | date: "%b %-d, %Y" }}
13+
</div>
14+
<div class="fa fa-code"></div>
15+
<div>
16+
{% if solution.description %}
17+
{{ solution.description }}
18+
{% else %}
19+
{{ solution.content | strip_html | truncatewords:30 }}
20+
{% endif %}
21+
</div>
22+
</a>
23+
</div>
24+
{% endfor %}
25+
{% else %}
26+
<div class="alert solution">
27+
<div class="head" style="border-bottom: none;">
28+
<p>There's nothing here right now...</p>
29+
<div class="fa fa-code fa-lg"></div>
30+
</div>
31+
<div class="body"></div>
32+
</div>
33+
{% endif %}

0 commit comments

Comments
 (0)