Skip to content

Commit

Permalink
[theme][m]: implement basic theme for the site.
Browse files Browse the repository at this point in the history
  • Loading branch information
rufuspollock committed Aug 15, 2014
1 parent a58fa64 commit a6e0d49
Show file tree
Hide file tree
Showing 7 changed files with 264 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
_site
4 changes: 3 additions & 1 deletion _config.yml
@@ -1 +1,3 @@
permalink: /:year/:month/:day/:title/
title: Open Definition
markdown: kramdown
googleanalytics:
37 changes: 37 additions & 0 deletions _includes/translations.md
@@ -0,0 +1,37 @@
<a href="/od/albanian/">Shqip</a> |
<a href="/od/arabic/">العربية</a> |
<a href="/od/bielaruskaja/">Беларуская</a> |
<a href="/od/bulgarian/">Български</a> |
<a href="/od/catala">Català</a> |
<a href="/od/chinese">中文</a> |
<a href="/od/croatian">Croatian</a> |
<a href="/od/czech/">Czech</a> |
<a href="/od/dansk">Dansk</a> |
<a href="/od/deutsch">Deutsch</a> |
<a href="/od/ellinika">Ελληνικά</a> |
<a href="/od/">English</a> |
<a href="/od/espanol">Español</a> |
<a href="/od/euskara">Euskara</a> |
<a href="/od/francais">Français</a> |
<a href="/od/galego">Galego</a> |
<a href="/od/hebrew">עברית</a> |
<a href="/od/indonesian">Indonesian</a> |
<a href="/od/islenska">Íslenska</a> |
<a href="/od/italiano">Italiano</a> |
<a href="/od/japanese">Japanese</a> |
<a href="/od/korean">한국어</a> |
<a href="/od/kannada">ಕನ್ನಡ</a> |
<a href="/od/magyar">Magyar</a> |
<a href="/od/makedonski_jazik">македонски јазик</a> |
<a href="/od/norsk_bokmaal/">Norsk (bokmål)</a> |
<a href="/od/polszczyzna">Polszczyzna</a> |
<a href="/od/portugues">Português</a> |
<a href="/od/portugues-brasileiro">Português Brasileiro </a> |
<a href="/od/russkiy">Русский</a> |
<a href="/od/simplified-chinese">简化中国</a> |
<a href="/od/srpski">Srpski</a> |
<a href="/od/suomi">Suomi</a> |
<a href="/od/svenska">Svenska</a> |
<a href="/od/telugu">తెలుగు</a> |
<a href="/od/tr">Türkçe</a>

141 changes: 141 additions & 0 deletions _layouts/default.html
@@ -0,0 +1,141 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
{{page.title}} - {{site.title}} - Defining Open in Open Data, Open Content and Open Knowledge
</title>
<meta name="author" content="Open Knowledge Open Definition Group" />
<meta name="description" content="{{page.title}} - {{site.title}} - Defining Open in Open Data, Open Content and Open Knowledge" />

<!-- okf ribbon -->
<link rel="stylesheet" href="http://assets.okfn.org/themes/okfn/okf-panel.css"/>

<link href="//netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="http://dataprotocols.org/css/style.css" />
<link rel="stylesheet" href="/css/style.css" />
</head>
<body class="{{page.bodyclass}}">
<!-- OKF Panel -->
<div class="absolute-okf-panel">
<div id="okf-panel" class="collapse">
<iframe src="http://assets.okfn.org/themes/okfn/okf-panel.html" scrolling="no"></iframe>
</div>
<div class="container">
<div class="okfn-ribbon">
<a href="http://okfn.org/" data-toggle="collapse" data-target="#okf-panel" title="Part of the Open Knowledge Foundation Network">An Open Knowledge Foundation Site</a>
</div>
</div>
</div>
<!-- End OKF Panel -->
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="{{site.baseurl}}">
{{site.title}}
</a>
<ul class="nav pull-right">
<li class="divider-vertical"></li>
<li>
<a href="/od/">The Definition</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="/licenses/">Conformant Licenses</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="/guide/">Guide</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="/about/">About</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="/news/">News</a>
</li>
<li class="divider-vertical"></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="span7 main offset1">
{% if page.notitle != true %}
<div class="page-header">
<h1>
{{page.title}}
{% if page.subtitle %}
<br />
<small>{{page.subtitle}}</small>
{% endif %}
</h1>
</div>
{% endif %}

{{content}}
</div>
<div class="span3 sidebar">
<div class="widget">
<h3>The Open Definition in Your Language</h3>
<div>
<p class="od-languages">
{% include translations.md %}
</p>
</div>
</div>
</div>
</div>

</div>
</div><!-- /container -->

<footer>
<div class="container">
<p>
Open Definition is a project of <a href="http://okfn.org">Open
Knowledge</a>
&ndash;
<a href="{{site.github}}">Source Code</a>
</p>
<p>
<a href="http://opendefinition.org/ossd/" title="Open Online Software Service">
<img src="http://assets.okfn.org/images/ok_buttons/os_80x15_orange_grey.png" alt="" border="" />
</a>
<a href="http://opendefinition.org/" title="Open Content">
<img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" alt="" border="" />
</a>
&ndash;
<a href="http://creativecommons.org/licenses/by/3.0/">Content Licensed under a CC Attribution</a>
</p>
<p>
<a href="http://okfn.org/terms-of-use/">Terms of use</a>
|
<a href="http://okfn.org/privacy-policy/">Privacy policy</a>
|
<a href="http://okfn.org/ip-policy/">IP Policy</a>
</p>
</div>
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="http://assets.okfn.org/themes/okfn/collapse.min.js" type="text/javascript"></script>
<script src="http://assets.okfn.org/themes/okfn/okf-panel.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{site.googleanalytics}}']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>

5 changes: 5 additions & 0 deletions _layouts/page.html
@@ -0,0 +1,5 @@
---
layout: default
---

{{content}}
73 changes: 73 additions & 0 deletions css/style.css
@@ -0,0 +1,73 @@
@import url(http://fonts.googleapis.com/css?family=OpenSans:400,700);

body {
background-color: white;
}

h1, h2, h3, h4, h5, h6, .navbar, form, .btn, input, button, select, textarea {
font-family: OpenSans,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

.navbar-inner .brand {
padding-top: 10px;
}

.navbar ul.nav.pull-right {
margin-right: 42px;
}

.page-header {
margin-top: 0;
}

.page-header h1 {
text-align: left;
color: #333;
font-size: 40px;
margin-top: 0;
}

.sidebar .widget {
border: 1px solid #e9eaea;
margin-left: 15px;
margin-bottom: 10px;
padding: 0 10px;
}

.sidebar .widget h3 {
line-height: 125%;
border-bottom: solid 1px #22998b;
margin-left: 10px;
margin-right: 10px;
margin-top: 10px;
padding-left: 0;
padding-right: 0;
padding-bottom: 5px;
text-transform: uppercase;
font-size: 16px;
font-weight: normal;
letter-spacing: 1px;
}

.sidebar .widget > div {
padding: 0 10px 10px 10px;
}

.sidebar .widget p {
font-size: 12px;
line-height: 16px;
}

.sidebar .od-languages {
text-align: center;
}


/** Front page **/

.frontpage .main p {
font-size: 20px;
line-height: 24px;
margin-bottom: 20px;
}

29 changes: 4 additions & 25 deletions index.markdown
Expand Up @@ -4,40 +4,19 @@ comments: false
date: 2009-11-26 15:46:03+00:00
layout: page
slug: 20-2
title: Home
title: The Open Definition
bodyclass: frontpage
wordpress_id: 20
---

[notitle]






The **[Open Definition](/od/)** sets out principles that define "openness" in relation to **data and content**.





It makes **precise** the meaning of "open" in the terms **"open data"** and **"open content"** and thereby ensures **interoperability** between different pools of open material.





It can be summed up in the statement that:

> "A piece of data or content is open if **anyone** is **free to use, reuse, and redistribute** it -- subject only, at most, to the requirement to attribute and/or share-alike."
<a href="{{site.url}}/od/" class="btn btn-primary btn-large">Read the full Open Definition »</a>



<blockquote>"A piece of data or content is open if **anyone** is **free to use, reuse, and redistribute** it -- subject only, at most, to the requirement to attribute and/or share-alike."
</blockquote>





[Read the full Open Definition »]({{ site.url }}/od/)

0 comments on commit a6e0d49

Please sign in to comment.