- Development:
npm start- Example:
npm start -- --themeId=ios
- Example:
- Build:
npm run build
CLI:
--themeId=[ios|macos|watchos]- Determines which site you're trying to build
--limit=40- Limits the number of posts in the build.
From the root of the parent repo (i.e. iosicongallery.com/) run ./shared/scripts/create-post.sh
Unique content is stored in the root directory of the site repo. The following are files/folders that are unique to site and it's respective repo (iosicongallery, watchosicongallery, macosicongallery):
.
├── _config.json
├── netlify.toml
├── _drafts/
├── _posts/
└── img
├── _src/
├── 32 // watchos
├── 64
├── 128
├── 256
├── 512 // ios, macos
└── 1024 // ios, macos
The following files/folders in each respective site repo are shared in the sense that they share templates that are in the theme repo. You can easily copy/paste these specific files between projects. The reason we cannot put them in the shared directory is because of how we integrate with github pages.
.
├── 404.html
├── api.json
├── feed/
| ├── index.html
| └── index.xml
├── feed.xml
├── feed.json
├── index.html
└── search/
└── index.html
Theme files are shared across all site projects and can be found in shared/. This folder is a submodule of each site repository. It includes styles, scripts, automation scripts, and images shared across all three sites. Everything in _src is used during compilation. Everything in static doesn’t need processing from any build tool and is just copied over verbatim. Examples:
.
├── _src/ // prefixed with underline so jekyll watches changes
| ├── jekyll/ // shared jekyll templates
| | ├── includes/
| | └── layouts/
| └── scripts/ // source .js files
├── scripts/ // automated and build scripts
└── static/
├── img/ // shared image files
├── scripts/ // shared js files, both compiled and not
└── styles/ // shared CSS files that don't need processing
RSS feeds are published through feedburner. The old addresses, however, were transfered. They use to live at /feed/ (which means, I assume, a /feed/index.xml file at that address as we used to host on wordpress). Now, however, the feed lives at /feed.xml. This means we need redirects for the old feed.
(OLD) Because S3 serves index.html files only, we will leave a blank file at /feed/index.html which has a 301 redirect through the AWS console to /feed.xml. This means anyone who hits /feed/ in the browser will go to the new feed. Additionally, anyone who hits /feed/index.xml, we have an RSS XML redirect which sends them to /feed.xml.