Giter VIP home page Giter VIP logo

seshwebsite's Introduction

shefesh-site

Static site for the Sheffield Ethical Student Hackers Society

Live site at https://www.shefesh.com

Built with Jekyll

Setup

The simple way (Docker-compose)

Install Docker and Docker-Compose

Download the repository

git clone [email protected]:ShefESH/SeshWebsite.git

Navigate into the repository

cd SeshWebsite

Run the docker-compose script

docker-compose up

You're done! You should now be able to live edit the website on your host machine and have the container live update the website.

The manual way

To host this website locally, follow these steps

Clone this repository:

git clone [email protected]:ShefESH/SeshWebsite.git

Install Ruby:

Skip this step if you have it already. Tested with Ruby Version 2.6.2

sudo apt-get install ruby-full

Install Jekyll:

Skip this step if you have it already. Tested with Jekyll Version 4.1.1

gem install bundler jekyll

Navigate to website folder:

cd SeshWebsite

Launch Server:

bundle exec jekyll serve

The serve command builds the site automatically. You can build it manually without serving the site by running

bundle exec jekyll build

If bundler is set up correctly, you should be able to omit 'bundle exec' from these commands

Serve Alias

To run the above with one command, add the following alias to your .bashrc (or equivalent)

alias serve='cd /path/to/SeshWebsite; jekyll build; jekyll serve'

Navigate to site in browser

Site is hosted at the following address by default - Jekyll will tell you if this is different when you run jekyll serve

http://localhost:4000

Using Jekyll

_site and jekyll-cache directories are excluded by gitignore - these will be generated locally when running jekyll serve

pages

Pages are stored in the top level of the shefesh-site/shefesh-site directory, and can be written in either HTML or Markdown

_includes

Content to be included in pages. Similar to partials in Rails

Include the HTML/Markdown content in a HTML/Markdown page using {% include filename.extension %}

_layouts

Liquid page templates. Can contain liquid logic as well as objects

Layouts specify the general template of the page, and can be reused. The {{ content }} liquid variable refers to the content of the top-level page (e.g. index.html)

Use a layout in a top-level page by referencing it in the front matter e.g.

---
layout: default
---

_posts

Content for blog posts

assets

css directory contains styles.scss, which serves as the main stylesheet for the site

Other stylesheets in the _sass folder can be imported into here e.g. by

@import "main";

_sass

Stylesheets for site, to be imported into assets/css/main.scss

Using Liquid

Variables

Use double curly brackets {{ }} to reference variables

Ruby Code (I think)

Write Ruby code contained in brackets as so {% %}

seshwebsite's People

Contributors

cjambor99 avatar dependabot[bot] avatar echodevg avatar ellasestan avatar foldingmango avatar hegde-atri avatar jibbyjibbysound avatar kile avatar luca0414 avatar ogladian avatar primitheus avatar sasouthwell1 avatar sebasouthwell avatar sohpark avatar soup666 avatar thedarthmole avatar thelostlambda avatar twigonometry avatar vladcranga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

seshwebsite's Issues

Search function

A search function for the whole site, probably using Google would be the best option

Make main pages clearer on subnavs

For wiki and careers page, which have dropdown subnavs, it is not clear that they have a 'home' page - add a 'home' entry in the dropdown that takes the user to this page

Docker compose unsupported config option

Running docker-compose up gives the following error on WSL:

$ docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'jekyll'

See this post

Add footer

Include copyright details, meeting times, social media icon links, link to github repository, and link to code of conduct

Not Mobile First

Navigation needs adjusting as well as size of h2 and logo on the home screen to make the site mobile first.

Elements in the footer could also be aligned for an improved UI

Add mobile nav

Make navbar collapse and open with a hamburger button on mobile

Add page for GIAG

Include event details and ticket registration, and link to Juice Shop setup article

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.