1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 21:00:10 +01:00

Merge pull request #97 from github/even-dryer-templating

Even DRYer templating
This commit is contained in:
Phil Haack 2013-07-13 13:28:25 -07:00
commit 947c2541f9
6 changed files with 61 additions and 65 deletions

View File

@ -0,0 +1,11 @@
{% unless page.hide_breadcrumbs == true %}
<ol class='breadcrumbs'>
<li>
{% if page.layout == "license" %}
<a href="/">Home</a> / <a href="/licenses/">Licenses</a>
{% else %}
<a href="/">Home</a>
{% endif %}
</li>
</ol>
{% endunless %}

View File

@ -27,10 +27,8 @@
<body class="{{ page.layout }} {{ page.class }}"> <body class="{{ page.layout }} {{ page.class }}">
<div class='container'> <div class='container'>
{% if page.layout == "default" and page.hide_breadcrumbs != true %} {% include breadcrumbs.html %}
<ol class='breadcrumbs'>
<li> {% if page.title %}
<a href="/">Home</a> <h1>{{ page.title }}</h1>
</li> {% endif %}
</ol>
{% endif %}

View File

@ -1,13 +1,5 @@
{% include header.html %} {% include header.html %}
<ol class='breadcrumbs'>
<li>
<a href="/">Home</a> / <a href="/licenses/">Licenses</a>
</li>
</ol>
<h1>{{ page.title }}</h1>
<div class="cf"> <div class="cf">
<div class='license-body'> <div class='license-body'>
<pre id="license-text"> <pre id="license-text">

View File

@ -2,10 +2,9 @@
title: About title: About
layout: default layout: default
permalink: /about/ permalink: /about/
title: What&#8217;s this about?
--- ---
# What&#8217;s this about?
We want to help developers choose a license for their source code. We want to help developers choose a license for their source code.
If you already know what you&#8217;re doing and have a license you prefer to use, that&#8217;s great! We&#8217;re not here to change your mind. But if you are bewildered by the large number of OSS license choices, maybe we can help. If you already know what you&#8217;re doing and have a license you prefer to use, that&#8217;s great! We&#8217;re not here to change your mind. But if you are bewildered by the large number of OSS license choices, maybe we can help.

View File

@ -2,15 +2,15 @@
layout: default layout: default
class: home class: home
hide_breadcrumbs: true hide_breadcrumbs: true
title: Choosing an OSS license doesnt need to be scary
--- ---
<div id='home'>
<h1>Choosing an OSS license doesnt need to be scary.</h1> <h2>
<h2>
<span>{</span> <span>{</span>
Which of the following best describes your situation? Which of the following best describes your situation?
<span>}</span> <span>}</span>
</h2> </h2>
<ul class="situations cf"> <ul class="situations cf">
<li class='whatever'> <li class='whatever'>
<a href="licenses/mit"><img height='57' src='images/three-arrows@2x.png' width='72'></a> <a href="licenses/mit"><img height='57' src='images/three-arrows@2x.png' width='72'></a>
<h3><a href="licenses/mit">I want it simple and permissive.</a></h3> <h3><a href="licenses/mit">I want it simple and permissive.</a></h3>
@ -41,12 +41,9 @@ hide_breadcrumbs: true
<strong>Linux</strong> and <strong>Git</strong> use the GPL. <strong>Linux</strong> and <strong>Git</strong> use the GPL.
</p> </p>
</li> </li>
</ul> </ul>
<div class="see-more callout"> <div class="see-more callout">
<p>What if none of these work for me or I want to retain all of my rights? <a href="licenses">More licenses are available</a>.</p> <p>What if none of these work for me or I want to retain all of my rights? <a href="licenses">More licenses are available</a>.</p>
<p>What if I don't want to choose a license</a>? <a href="no-license">You don't have to</a>.</p> <p>What if I don't want to choose a license</a>? <a href="no-license">You don't have to</a>.</p>
</div> </div>
</div>
</body>
</html>

View File

@ -1,10 +1,9 @@
--- ---
layout: default layout: default
permalink: no-license/ permalink: no-license/
title: No License
--- ---
# No License
You're under no obligation to choose a license and it's your right not to include one with your code or project. But please note that opting out of open source licenses doesn't mean you're opting out of copyright law. You're under no obligation to choose a license and it's your right not to include one with your code or project. But please note that opting out of open source licenses doesn't mean you're opting out of copyright law.
You'll have to check with your own legal counsel regarding your particular project, but generally speaking, the absence of a license means that default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend. You'll have to check with your own legal counsel regarding your particular project, but generally speaking, the absence of a license means that default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend.