Skip to content

Commit e2552bf

Browse files
committed
Website update
* Generate news from posts * Some style optimizations
1 parent ddb4935 commit e2552bf

6 files changed

Lines changed: 63 additions & 23 deletions

File tree

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<head>
22
<meta http-equiv="content-type" content="text/html; charset=utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4-
<title>{{ site.compass.author }} &#8226; {{ site.compass.tagline | strip_html }}</title>
4+
<title>Open SoC Debug</title>
55

66
<link rel="apple-touch-icon" href="{{ site.compass.logo }}"/>
77
<link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64" href="{{ site.url }}/favicon.ico" />

_layouts/post.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
{% include head.html %}
4+
<body>
5+
6+
{{ content }}
7+
8+
</body>
9+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: post
3+
title: Test
4+
type: slideshow
5+
6+
---
7+
8+
You can find the basic ideas and components of Open SoC Debug in an <a
9+
href="http://opensocdebug.org/slides/2015-11-12-overview/">Online
10+
Overview Presentation</a>.
11+
12+

_posts/2016-01-13-rampup.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: post
3+
title: Test
4+
type: project
5+
---
6+
7+
We have started intensifying the specification of the interfaces and
8+
components. To follow it or contribute visit the <a
9+
href="https://github.com/opensocdebug/documentation">documentation</a>
10+
and <a href="https://github.com/opensocdebug/hardware">modules</a>
11+
repository.
12+
13+
14+

assets/main.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ a:link,
1010
a:visited,
1111
a:hover,
1212
a:active {
13-
color: #888888;
14-
text-decoration: none;
13+
color: #888888;
14+
text-decoration: none;
1515
}
1616

1717
a:hover {
18-
text-decoration: underline;
18+
text-decoration: underline;
1919
}
2020

2121
.github-org {
@@ -26,6 +26,7 @@ a:hover {
2626

2727
.logo-container {
2828
text-align: right;
29+
margin-right: 3em;
2930
}
3031

3132
.logo {
@@ -39,12 +40,14 @@ a:hover {
3940
font-size: 2.8em;
4041
margin-top: 0;
4142
margin-bottom: 0;
42-
text-align: right;
4343
}
4444

4545
.osd-tagline p {
4646
font-size: 1.3em;
47-
text-align: right;
4847
margin-bottom: 2em;
4948
}
5049

50+
.news {
51+
margin-left: 0.5em;
52+
display: block;
53+
}

index.html renamed to index.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
<div class="col-md-6">
77
<div class="logo-container">
88
<a class="logo" href="{{ page.baseurl }}" style="background-image: url('{{ site.baseurl }}/images/logo.png')"></a>
9-
</div>
10-
11-
<div class="osd-title"><h1>Open SoC Debug</h1></div>
9+
<div class="osd-title"><h1>Open SoC Debug</h1></div>
1210
13-
<div class="osd-tagline"><p>Building blocks for your SoC debug infrastructure</p></div>
11+
<div class="osd-tagline"><p>Building blocks for your SoC debug infrastructure</p></div>
12+
</div>
1413
</div>
1514
<div class="col-md-6">
16-
<h2>About Open SoC Debug</h2>
15+
<h2>About</h2>
1716
<p>Open SoC Debug is a new project co-managed by
1817
the <a href="http://www.optimsoc.org">OpTiMSoC</a>
1918
and <a href="http://www.lowrisc.org">lowRISC</a> projects with
@@ -28,18 +27,21 @@ <h2>About Open SoC Debug</h2>
2827
<div class="col-md-6">
2928
<h2>News</h2>
3029
<ul class="fa-ul">
31-
<li><i class="fa-li fa fa-github fa-lg"></i><i>(2016.01.13)</i> We
32-
have started intensifying the specification of the interfaces
33-
and components. To follow it or contribute visit
34-
the <a href="https://github.com/opensocdebug/documentation">documentation</a>
35-
and <a href="https://github.com/opensocdebug/hardware">modules</a>
36-
repository.</li>
37-
<li><i class="fa-li glyphicon
38-
glyphicon-blackboard fa-lg"></i><i>(2015.11.12)</i> We have assembled
39-
the basic ideas and components of Open SoC Debug in
40-
an <a href="http://opensocdebug.org/slides/2015-11-12-overview/">Overview
41-
Presentation</a></li>
42-
<!-- <li><i class="fa-li fa fa-file"></i>New Document</li>-->
30+
{% for post in site.posts %}
31+
<li>
32+
{% if post.type == "slideshow" %}
33+
<i class="fa-li fa fa-desktop"></i>
34+
{% else if post.type == "project" %}
35+
<i class="fa-li fa fa-github fa-lg"></i>
36+
{% else if post.type == "document" %}
37+
<i class="fa-li fa fa-file-text-o fa-lg"></i>
38+
{% else if post.type == "event" %}
39+
<i class="fa-li fa fa-calendar fa-lg"></i>
40+
{% endif %}
41+
<span class="news"><i>({{post.date | date: "%F"}})</i>
42+
{{post.excerpt | remove: '<p>' | remove: '</p>'}}</span>
43+
</li>
44+
{% endfor %}
4345
</ul>
4446
</div>
4547
<div class="col-md-6">

0 commit comments

Comments
 (0)