Skip to content

Commit f1f7ec2

Browse files
committed
edit page link, hide logo grid
1 parent d6e0395 commit f1f7ec2

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

site/_core/BlogLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var BlogLayout = React.createClass({
1616
var page = this.props.page;
1717
var site = this.props.site;
1818
return (
19-
<Site section="blog" title={page.title}>
19+
<Site section="blog" title={page.title} page={page}>
2020
<section>
2121
<div className="documentationContent">
2222
<BlogPost post={page} isPermalink={true} />

site/_core/DocsLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var Marked = require('./Marked');
1313
var DocsSidebar = require('./DocsSidebar');
1414

1515
export default ({ page, site }) =>
16-
<Site section="docs" title={page.title}>
16+
<Site section="docs" title={page.title} page={page}>
1717
<section>
1818
<div className="documentationContent">
1919
<div className="inner-content">

site/_core/GraphQLJSLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var Marked = require('./Marked');
1313
var DocsSidebar = require('./DocsSidebar');
1414

1515
export default ({ page, site }) =>
16-
<Site title={page.title} category={page.category}>
16+
<Site title={page.title} category={page.category} page={page}>
1717
<section>
1818
<div className="documentationContent">
1919
<div className="inner-content">

site/_core/Site.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var SiteData = require('./SiteData');
1313

1414
var Site = React.createClass({
1515
render: function() {
16+
var page = this.props.page;
1617
var suffix = this.props.category || 'GraphQL';
1718
var pageTitle = this.props.title ?
1819
`${this.props.title} | ${suffix}` :
@@ -77,6 +78,7 @@ var Site = React.createClass({
7778
<a href="/blog">GraphQL Team Blog</a>
7879
<a href="http://facebook.github.io/graphql/" target="_blank">Read the Spec</a>
7980
<a href="https://github.com/graphql" target="_blank">GitHub</a>
81+
{page && <a href={'https://github.com/graphql/graphql.github.io/edit/source/site/' + page.relPath} target="_blank">&#x270E; Edit this page</a>}
8082
</div>
8183
</section>
8284
<a href="https://code.facebook.com/projects/" target="_blank" className="fbOpenSource">

site/code/index.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Code = React.createClass({
1515
var page = this.props.page;
1616
var site = this.props.site;
1717
return (
18-
<Site section="code" title="Code">
18+
<Site section="code" title="Code" page={page}>
1919

2020
<section>
2121
<div className="documentationContent">

site/community/Community-Resources.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Here are a list of notable blog posts to help you better understand GraphQL:
5050

5151
Developers inside and outside of Facebook have given talks about GraphQL at conferences and meetups around the world. Here are some of our favorites:
5252

53+
- [Exploring GraphQL](https://www.youtube.com/watch?v=WQLzZf34FJ8) - Lee Byron, React Europe 2015
5354
- [From Zero to GraphQL in 30 Minutes](https://www.youtube.com/watch?v=UBGzsb2UkeY) - Steve Luscher
5455
- [Exploring GraphQL](https://www.youtube.com/watch?v=_9RgHXqH8J0) - Nick Schrock, @Scale 2015
5556
- [GraphQL Servers](https://www.youtube.com/watch?v=KOudxKJXsjc) - Nick Schrock, React Rally 2015

site/index.html.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var Search = require('./_core/Search');
99
var index = React.createClass({
1010
render: function() {
1111
return (
12-
<Site className="index" noSearch={true}>
12+
<Site className="index" noSearch={true} page={this.props.page}>
1313
<section className="fixedSearch">
1414
<Search />
1515
</section>
@@ -525,6 +525,7 @@ public class Character {
525525
</div>
526526
</section>
527527

528+
{/*
528529
<section className="powered-by">
529530
<div className="prose">
530531
<h2>Who&rsquo;s using GraphQL?</h2>
@@ -534,7 +535,7 @@ public class Character {
534535
many environments and used by teams of all sizes.</p>
535536
</div>
536537
<div className="logos">
537-
{/* Waiting for permission from some of the below */}
538+
{/* Waiting for permission from some of the below * /}
538539
<a href="https://www.facebook.com/" target="_blank">
539540
<img src="/img/logos/facebook.png" title="Facebook" />
540541
</a>
@@ -554,12 +555,13 @@ public class Character {
554555
<a href="https://www.intuit.com/" target="_blank">
555556
<img src="/img/logos/intuit.png" title="Intuit" />
556557
</a>
557-
{/**/}
558+
{/** /}
558559
<a href="https://www.coursera.org/" target="_blank">
559560
<img src="/img/logos/coursera.png" title="Coursera" />
560561
</a>
561562
</div>
562563
</section>
564+
*/}
563565

564566
</Site>
565567
);

0 commit comments

Comments
 (0)