SocioRelay

Help centre · Guide 26

Blog - Static sites via GitHub

Time: 15 minutes. Works with: any site built from Markdown files stored in GitHub and published by Netlify, Vercel, GitHub Pages or Cloudflare Pages. The agent adds each article as a Markdown file, and your host rebuilds the site by itself.

Step 1: Create a GitHub token

  1. On GitHub, open Settings > Developer settings > Personal access tokens > Fine-grained tokens > Generate new token.
  2. Name it "SocioRelay". Repository access: only the website's repository.
  3. Permissions > Repository permissions > Contents: Read and write.
  4. Click Generate token and copy it.

Step 2: Find your folders

Look in the repository for where existing articles live:

Site builderPosts folderFile nameImages folderImage address prefix
Hugocontent/posts (or content/blog){slug}.mdstatic/images/blog/images/blog/
Jekyll_posts{date}-{slug}.mdassets/images/blog/assets/images/blog/
Astrosrc/content/blog{slug}.mdpublic/images/blog/images/blog/
Eleventyposts (or src/posts){slug}.mdimages/blog/images/blog/
Gatsby / Next.jscontent/blog (check your project){slug}.mdpublic/images/blog/images/blog/

Step 3: Add the website in the app

  1. Blog > Add a website. Blogging system: Static site via GitHub.
  2. Website address: for example https://www.yoursite.com.
  3. Repository: owner/name (from the GitHub address). Paste the GitHub token.
  4. Fill in Posts folder, File name, Images folder and Image address prefix from Step 2.
  5. Set Article address pattern to how your posts appear, for example {url}/posts/{slug}/ or {url}/blog/{slug}/.
  6. Press Save, then Test connection.

Good to know

  1. Each article is written as Markdown with front matter: title, date, slug, description, summary, categories and image. If your theme uses different front-matter names, check one article after publishing and adjust the theme or ask your developer.
  2. The site is live once your host finishes rebuilding (usually 1 to 3 minutes).

These guides are also in the app: Step-by-step guides. Stuck? Email info@sociorelay.com.

← Blog - BigCommerce · Licence and plan →