Skip to content

Commit

Permalink
USG-Website-Templates#9 - Replace generic Agency references with vari…
Browse files Browse the repository at this point in the history
…ables from config.yml.
  • Loading branch information
Shawn Johnson committed Aug 16, 2014
1 parent e03d3f1 commit 395b0c2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
10 changes: 10 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ baseurl: /
exclude: ['.ruby-version', 'node_modules', 'package.json', 'bower.json']
sass:
sass_dir: static/_sass

defaults:
-
scope:
path: "" # an empty string here means all files in the project
values:
organization-name: "Agency"
organization-url: "http://agency.gov"
organization-email: [email protected]
source-code-policy.url:
15 changes: 6 additions & 9 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<section class="footer-oss">
<h4>Open source</h4>
<p>
As a work of the United States Government, source code released by the [Agency] is in the public
As a work of the United States Government, source code released by the {{ page.organization-name }} is in the public
domain by default within the United States.
<a href="URLofRepo">
<a href="{{ page.source-code-policy }}">
View our full source code policy.
</a>
</p>
Expand All @@ -14,16 +14,13 @@ <h4>Open source</h4>
<section class="footer-links">
<ul>
<li>
<a href="http://www.agency.gov/">[agency].gov</a>
<a href="{{ page.organization-url }}">{{ page.organization-url }}</a>
</li>
<li>
<a href="http://github.com/agency">github.com/[agency]</a>
<a href="{{ site.github.owner_url }}">github.com/{{ site.github.owner_name }}</a>
</li>
<li>
<a href="mailto:">Contact us</a>
<a href="mailto:{{ page.organization-email }}">Contact us</a>
</li>
</ul>
</section>



</section>
5 changes: 2 additions & 3 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<div class="wrap">

<a href="http://agency.github.io/" target="_blank"><h1><span>[Agency]</span> Open Tech</h1></a>
<h1><a href="{{ site.github.url }}" target="_blank"><span>{{ page.organization-name }}</span> Open Tech</a></h1>

<a href="http://www.agency.gov/" target="_blank">
<img class="logo" src="http://usg-website-templates.github.io/developer-hub/static/img/logo_211.png" alt="Agency logo">
<img class="logo" src="{{ site.baseurl }}/static/img/logo.png" alt="{{ page.organization-name }} logo">
</a>

</a>
</div>
4 changes: 2 additions & 2 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<h1 class="page-title"><a href="index.html">Agency <br>API docs</a></h1>
<p class="intro">Build your own tools using our API to access [Agency] public data.</p>
<h1 class="page-title"><a href="index.html">{{ page.organization-name }} <br>API docs</a></h1>
<p class="intro">Build your own tools using our API to access {{ page.organization-name }} public data.</p>
<nav>
<ul>
<li><a href="index.html" class="overview">Overview</a></li>
Expand Down

0 comments on commit 395b0c2

Please sign in to comment.