Made with React and served statically and dynamically
./build-prod.sh //for production build
run both build-dev and npm run jekyll in different terminals
npm run jekyll // in one terminal
./build-dev.sh //in another
Dark Theme with Push out menu active
./react-dev/pages
./react-dev/helpers.js
http://www.example.com/posts/this-is-a-post.html
you just need "/posts/"
this makes the loading of some parts of the site seem almost 'instant', while preserving the SEO of your site since Google can crawl the static content./react-dev/components/menu_items.js
const menuItems = { Home: '/', About: '/about/', Projects: '/projects/' };
and you want another entry, "Coding", with a path '/coding/' from the root url the object should look something like this :
const menuItems = { Home: '/', About: '/about/', Projects: '/projects/', Coding: '/coding'};
./react-dev/actions/index.js
ROOT_URL
variable
EX:
if your site is at http://www.example.com
change
const ROOT_URL = 'http://test_domain.com:4000';
to
const ROOT_URL = 'http://example.com';
any site configuration that you want to let React use, put under 'react' in your _config.yml
. This will be grabbed by the siteInfo action creator and put through it's corresponding reducer
_layouts
Want to contribute? Found an issue? Jump right in! I welcome any help I can get, and will work with you to fix any issues.