Skip to content

Commit

Permalink
Add redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
browniefed committed Mar 5, 2018
1 parent 2f7f274 commit d45d8db
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 48 deletions.
2 changes: 1 addition & 1 deletion content/lessons/Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type: "lesson"

If you don't care about anything just jump to the [Basic Animation Examples](BASICS.md) which will eventually guide you from basic to advanced animations and allow you to experience the capabilities of React Native animations.

Check out the raw markdown here, follow along, and report issues for things you're interested in learning about. [https://github.com/browniefed/react-native-animation-book](https://github.com/browniefed/react-native-animation-book)
Check out the raw markdown here, follow along, and report issues for things you're interested in learning about. [https://github.com/codedailyio/animation-book](https://github.com/codedailyio/animation-book)

## THIS IS A WORK IN PROGRESS

Expand Down
45 changes: 10 additions & 35 deletions data/SiteConfig.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,26 @@
module.exports = {
blogPostDir: "posts", // The name of directory that contains your posts.
lessonsDir: "lessons", // The name of the directory that contains lessons or docs.
siteTitle: "Gatsby Docs Starter", // Site title.
siteTitleAlt: "Gatsby Starter Template for Creating Docs", // Alternative site title for SEO.
siteTitle: "React Native Animation Book", // Site title.
siteTitleAlt: "React Native Animation Book", // Alternative site title for SEO.
siteLogo: "/logos/logo-1024.png", // Logo used for SEO and manifest.
siteUrl: "https://ericwindmill.com", // Domain of your website without pathPrefix.
siteUrl: "https://animationbook.codedaily.io", // Domain of your website without pathPrefix.
pathPrefix: "/", // Prefixes all links. For cases when deployed to example.github.io/gatsby-advanced-starter/.
siteDescription: "A GatsbyJS stater for creating Documentation or Tutorials.", // Website description used for RSS feeds/meta description tag.
siteDescription: "A book about React Native Animations.", // Website description used for RSS feeds/meta description tag.
siteRss: "/rss.xml", // Path to the RSS file.
siteFBAppID: "1825356251115265", // FB Application ID for using app insights
googleAnalyticsID: "UA-82450300-1 ", // GA tracking ID.
siteFBAppID: "codedailyio", // FB Application ID for using app insights
googleAnalyticsID: "UA-92022203-1", // GA tracking ID.
disqusShortname: "https-ericwindmill-github-io-gatsby-advanced-starter", // Disqus shortname.
postDefaultCategoryID: "Tech", // Default category for posts.
userName: "User", // Username to display in the author segment.
userTwitter: "ericwindmill", // Optionally renders "Follow Me" in the UserInfo segment.
userName: "browniefed", // Username to display in the author segment.
userTwitter: "browniefed", // Optionally renders "Follow Me" in the UserInfo segment.
userLocation: "Portland, OR", // User location to display in the author segment.
userAvatar: "https://api.adorable.io/avatars/150/test.png", // User avatar to display in the author segment.
userDescription: "All about me!", // User description to display in the author segment.
userDescription: "", // User description to display in the author segment.
// Links to social profiles/projects you want to display in the author segment/navigation bar.
userLinks: [
{
label: "GitHub",
url: "https://github.com/ericwindmill",
iconClassName: "fa fa-github",
},
{
label: "Twitter",
url: "https://twitter.com/ericwindmill",
iconClassName: "fa fa-twitter",
},
{
label: "Messenger",
url: "https://www.messenger.com/t/eric.windmill",
iconClassName: "fa fa-message",
},
{
label: "Email",
url: "mailto:eric@ericwindmill.com",
iconClassName: "fa fa-envelope",
},
{
label: "Instagram",
url: "https://instagram.com/ericwindmill",
iconClassName: "fa fa-envelope",
},
],
copyright: "Copyright © 2017. Advanced User", // Copyright string for the footer of the website and RSS feed.
copyright: "", // Copyright string for the footer of the website and RSS feed.
themeColor: "#c62828", // Used for setting manifest and progress theme colors.
backgroundColor: "#e0e0e0", // Used for setting manifest background color.
// TODO: Move this literally anywhere better.
Expand Down
9 changes: 8 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ exports.onCreateNode = ({node, boundActionCreators, getNode}) => {
};

exports.createPages = ({graphql, boundActionCreators}) => {
const {createPage} = boundActionCreators;
const {createPage, createRedirect} = boundActionCreators;

createRedirect({
fromPath: `/`,
isPermanent: true,
redirectInBrowser: true,
toPath: `/introduction`,
})

return new Promise((resolve, reject) => {
const postPage = path.resolve("src/templates/post.jsx");
Expand Down
6 changes: 2 additions & 4 deletions src/components/Layout/nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ const Title = styled.div({

const TitleBox = styled.a({
padding: "3px 45px",
transition: "all ease .3s",
cursor: "pointer",
textDecoration: "none",
color: "#FFF",
borderBottom: "0",
});

const RightNav = styled.div({
Expand Down Expand Up @@ -131,9 +132,6 @@ class TopNav extends Component {
<HeaderLink href="https://codedaily.io/tutorials">Tutorials</HeaderLink>
<HeaderLink href="https://codedaily.io/screencasts">Screencasts</HeaderLink>
<HeaderLink href="https://codedaily.io/courses">Courses</HeaderLink>
<HeaderLink href="https://codedaily.io/freebies">
Freebies <span></span>
</HeaderLink>
</LeftNav>
<Title>
<TitleBox href="https://codedaily.io/">
Expand Down
1 change: 0 additions & 1 deletion src/favicon.png

This file was deleted.

2 changes: 1 addition & 1 deletion src/html.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint import/extensions:"off" */
/* eslint global-require:"off" */
import React from "react";
import favicon from "./favicon.png";
import favicon from "./favicon.ico";

let inlinedStyles = "";
if (process.env.NODE_ENV === "production") {
Expand Down
5 changes: 0 additions & 5 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ class Index extends React.Component {
<main>
<IndexHeadContainer>
<Navigation />
<Hero>
<img src={config.siteLogo} width='150px' />
<h1>{config.siteTitle}</h1>
<h4>{config.siteDescription}</h4>
</Hero>
</IndexHeadContainer>
<BodyContainer>

Expand Down
Binary file added static/logos/favicon.ico
Binary file not shown.
Binary file modified static/logos/logo-1024.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/logos/logo-48.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d45d8db

Please sign in to comment.