📘
Lab Website Template docs
  • Introduction
    • Overview
    • Is this right for me?
    • Gallery
    • Support
  • Getting Started
    • Set up your site
    • Set up your URL
    • Tidy up your repo
    • Change your site
    • Preview your site
  • Basics
    • Repo structure
    • Configure your site
    • Edit pages
    • Write basic content
    • Use your logo
    • Customize your theme
    • Team members
    • Blog posts
    • Citations
    • Components
      • Section
      • Figure
      • Button
      • Icon
      • Feature
      • List
      • Citation
      • Card
      • Portrait
      • Post Excerpt
      • Alert
      • Tags
      • Float
      • Grid
      • Cols
      • Search
      • Site Search
  • Advanced
    • Update your template
    • Embeds
    • Math, diagrams, videos, etc.
    • Analytics
    • Data and collections
    • Jekyll plugins
    • Custom components
    • Background knowledge
Powered by GitBook
On this page
  • On GitHub (remotely)
  • On your computer (locally)
  1. Getting Started

Change your site

PreviousTidy up your repoNextPreview your site

Last updated 2 years ago

There are two main ways you can save changes to your site: on GitHub and on your computer. Choose which one best suits you, or you can mix and match as appropriate.

Since the template is , this page really just describes the different ways to make Git changes (commits).

On GitHub (remotely)

This is the easiest and most convenient method to edit your site. GitHub has a very nice and always-improving graphical web interface. If you wanted to, you could edit and manage your site entirely from the GitHub website.

There is a for changing single files at a time, and with multiple files, syntax highlighting, sophisticated controls, etc. Use one of these interfaces to make the changes you want, then either commit directly to your main branch (to publish your changes immediately) or create a new branch and pull request (to preview/review your changes before publishing them).

On your computer (locally)

This approach requires experience with Git and using command-line interfaces, but is better for when you're doing larger edits, when you want to work on your changes privately before pushing them, and when you want to iterate rapidly and not wait for pull request previews to update.

on your command line. In summary:

  1. Decide how you'll be making changes:

    1. Make changes directly to the main branch of your website repo (publishes changes immediately).

    2. Make changes to a branch (e.g. add-sarah-bio) of your website repo (allows previewing changes before publishing).

    3. Make changes to a fork of your website repo (allows previewing changes before publishing).

  2. the appropriate repo to your computer and switch to the appropriate branch.

  3. Edit the cloned site on your computer with your favorite .

  4. Commit and push the changes.

  5. If working from a branch or fork, make a pull request to your main website repo and merge when ready to publish.

based on Git
basic interface
more advanced interfaces
Make changes with Git
Clone
text/code editor