Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

tlezotte/jekyll-homemenu

Repository files navigation

Jekyll Home Menu

Department website to organize applications and services

This project will help display and organize your content. The website you create useing jekyll-homemenu, can be run on your server or github. Jekyll will generate a static website and github will do this automatically. Github does the automatic build with a gh-pages branch.

Features

  • Bootstrap
    • Responsive
    • Mobile
  • FontAwesome
  • fullPage
  • eModal



Setup your workstation

Run the setup script to make sure you have the required software.

  • RVM and Ruby (if required)
  • Install Jekyll and Bundler
  • Install node with Homebrew (if required)
  • Install global NPMs
  • Generating Apache vhost
  • Generating package.json
  • Clone jekyll-homemenu (if approved)
  • Install dependencies with Bundler and NPM
mkdir <project>
cd <project>
./setup.sh

Main Configuration

Location: _config.yml

This is the main configuration file for your website.

Here are some of the site variables you need to update.

  • title: Department
  • email: you@domain.net
  • description: > Department Home Page
  • baseurl: "" (the subpath of your site, e.g. /blog)
  • url: "https://you.domain.net"
  • domain: "domain.net" (used for google site search)
  • name: Department
  • icon: "fa fa-building-o" (FontAwsome example)
  • logo: department.png
  • ns: "dept" (javascript namespace)
  • google_analytics: UA-XXXXXXXX-X
  • google_search: false (Do you want google site search in the navbar)
  • twitter_username:
  • github_username:

Changing Data

Location: _data

The two main configuration files will update the thumbnails menu. The JavaScript library fullPage uses these to build different pages.

  • one.json
  • two.json

The next two data files will edit the projects JavaScript and CSS files.

  • javascript.json
  • css.json

Images Specs for Thumbnails [logo]

Location: assets\img
Size: 100px x 100px

Changing navbar

The top navbar is configured with the following file.

  • _includes/menu.html
  • _includes/menu-right.html

Other Configuration Files

  • .editorconfig
  • .eslintrc.json
    • ECMAScript Linting configuration - eslint
  • .jsbeautifyrc
    • Configuration file to cleanup minimized files - jsbeautifier
  • .rsync-exclude
    • Files and Directories that you don't want synced to server - rsync
  • Gemfile
    • Bundler configuration file - Bundler
  • jsdoc-conf.json
    • Configuration file for jsdoc - jsdoc
  • kss-config.json
    • Configuration file for KSS - KSS


Run your website

Deploy to Server

The package.json does the following to deploy your website.

  • Generate Style Sheet with KSS
  • Generate JavaScript Documentation with jsDoc
  • Build the website with Jekyll
  • Minimize JavaScript and generate Source Map with uglifyjs
  • Rsync _site to server
npm run deploy

Run Local

This command will start a local server and uses LiveReload. Open http://localhost:4000/ in Chrome to view website.

jekyll serve -L

or

npm run serve


Example Files

  • iframe.html.example
    • a themed template for iframe content
  • jsdocs.html.example
    • a themed template for jsdocs - jsdoc
  • styleguide.html.example
    • a themed template for css styleguide - KSS

About

Department website to organize applications and services

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published