项目作者: geighei

项目描述 :
Scripts used to construct the GEIGHEI website
高级语言: HTML
项目地址: git://github.com/geighei/homepage.git
创建时间: 2018-04-19T10:05:03Z
项目社区:https://github.com/geighei/homepage

开源协议:MIT License

下载


Homepage

Overview

This page contains all of the scripts used to construct the GEIGHEI website.

Set up

The homepage was build with the open-source static site generator framework Hugo. For more information see the following link. Ananke GoHugo Theme is the theme that was used to build the GEIGHEI homepage. Netlify automatically deploys the homepage whenever changes are pushed to the Git repository.

The content folder contains the */_index.md files that create the different pages. Each subfolder (e.g. /content/people/_index.md) is related to a different sub-page (e.g. http://gene-environment.com/people/)

Hugo

If you want to install hugo you need to run the following command line

  1. brew install hugo

Verify the installed version

  1. hugo version

If you made some changes to the homepage and you want to view them on your local server before pushing them online use the following command

  1. hugo server -D

Now you can open http://localhost:1313/ in your browser and the homepage should appear there.

Notice: If you push the changes to the Git repository the homepage will automatically deploy and be updated.

Git

The commands listed below can be useful for using GitHub. Check this Git cheat sheet for more information.

Notice: Always git pull the recent version from GitHub before starting to work on the code.

Start a new Git repository on the command line

  1. git init
  2. git add .
  3. git commit -m "First commit"
  4. git remote add origin https://github.com/geighei/yourgit.git
  5. git push -u origin master

Pull the most recent version on GitHub

  1. git pull

Check changed files in your working directory and track differences

  1. git status
  2. git diff

Add all the files in a folder, commmit and push it

  1. git add .
  2. git commit -m " descriptive message"
  3. git push <shortname> master

Initialize a git repository

  1. git init

Add a new remote

  1. git remote add <shortname> <url>

Show the shortnames that are stored

  1. git remote -v

Markdown

The pages are based on Markdown. So, in order to change or add a page you might need some basic understanding of Markdown. Check this Markdown cheat sheet for more information.