ECE3SAT / ece3sat.github.io

ECE³SAT's static website

Home Page:http://www.ece3sat.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README.md

For an explanation of the internals, read README_dev.md

Prerequisite

You can read some doc on the following topics, it is not required, but will help you:

Install And Configure

# make sure you have the basic dependencies
apt-get update
apt-get install git vim ca-certificates wget

# From this page, find the appropriate version https://github.com/gohugoio/hugo/releases
# Note: ubuntu's and debian's repository have an outdated version (0.18), please use at least 0.30.
wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.deb
dpkg -i hugo_0.31.1_Linux-64bit.deb

# clone the wiki
git clone https://github.com/ECE3SAT/ece3satwiki

Note: the branch used to write the content is dev and the published branch (HTML) is master.

Write And Deploy a New Blog Post

The steps are basically:

  1. Work: most probably you will write a markdown file in content/Blog/
  2. Check your work:
    1. Run hugo server -D. Note that once hugo is running, it will auto-reload when you edit a file.
    2. Open http://localhost:1313/
  3. If it's all good, deploy your changes:
    1. Commit your changes
    2. Run the build: ./build_wiki.sh
    3. Push the sources and the generated wiki: git push origin master && git push origin dev

Writing Instructions

Where to write what kind of articles:

  • The Home page should shortly present the project
  • The category The Project should contain project-wide articles
  • The category CubeSat Modules should contain Wikipedia-style articles (timeless articles)
  • The category Blog should contain updates and announcements (timed articles)

An article should be formatted like this:

{
    "title": "This is the article title",
    "date": "2017-11-14T18:58:44+01:00"
}

Lorem Ipsum, Markdown formatted. You can also add *shortcode* that add additional features, such as include a youtube video: {{< youtube "video_id" >}}

You can also include raw HTML code, but this is <span style="color:red;">strongly</span> discouraged (really, HTML is the worst).

---

The first part is a JSON header. Most fields are optionals:

* title
* date: optional. If the date is in the future, Hugo won't publish the article, unless you pass `--buildFuture` when running hugo.
* summary: shows in the page listing, instead of an auto-generated one that just takes the beginning text
* image: the URL of an image that will be shown on the listing page
* alias: optional. This is usefull if you published an article and shared it, but the auto-generated URL changed (because you changed the date or the title)

Custom shortcodes:

A shortcode is a mini template. Custom shortcode are in layouts/shortcodes/.

About

ECE³SAT's static website

http://www.ece3sat.com

License:Other


Languages

Language:CSS 69.1%Language:HTML 21.7%Language:JavaScript 5.8%Language:Shell 3.4%