Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
first commit added basic directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinesh Kumar Ravikumar committed Aug 30, 2021
1 parent 7543e0a commit 298bc3b
Show file tree
Hide file tree
Showing 21 changed files with 933 additions and 0 deletions.
72 changes: 72 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Example123</title>
<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.">

<link rel="canonical" href="/404.html">

<meta name="description" content="">
<meta name="author" content="">
<meta property="og:title" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.">
<meta property="og:type" content="website">
<meta property="og:url" content="FIXME">
<meta property="og:image" content="FIXME">

<!-- Favicon -->
<link rel="shortcut icon" href="img/favicon.png" type="image/png">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<script src="/assets/main.js"></script>
<link rel="stylesheet" href="/assets/main.css">
</head>


<body id="page-top">
<header>
<h1>Example123</h1>
</header>

<!-- <div class="page-content" id="page-wrap" role="main">
<div class="wrapper">
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
</div>
</div>
-->
</body>

</html>
33 changes: 33 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Jekyll redirect for homepage
gem 'jekyll-redirect-from'

# Happy Jekylling!
gem "jekyll", "~> 4.2.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

83 changes: 83 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.9)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.15.3)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jekyll (4.2.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.7.1)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.7.0)

PLATFORMS
x86_64-linux

DEPENDENCIES
jekyll (~> 4.2.0)
jekyll-feed (~> 0.12)
jekyll-redirect-from
minima (~> 2.5)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)

BUNDLED WITH
2.2.25
63 changes: 63 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
#
# If you need help with YAML syntax, here are some quick references for you:
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
# https://learnxinyminutes.com/docs/yaml/
#
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Example123
email: your-email@example.com
description: >- # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: jekyll

# Build settings
theme: minima
markdown: kramdown
plugins:
- jekyll-feed
- jekyll-redirect-from


sass:
sass_dir: assets/
add_charset: true
style: :compressed

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
# the internal "default list".
#
# Excluded items can be processed by explicitly listing the directories or
# their entries' file path in the `include:` list.
#
# exclude:
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/
# - Gemfile
# - Gemfile.lock
# - node_modules/
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
5 changes: 5 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- title: home
url: "/"

- title: documentation
url: "/documentation"
80 changes: 80 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{% assign navs = include.nav | default: site.data.navigation %}

{% unless include.wrap == false %}
<nav role="{{ include.role }}" class="{{ include.class }}">
{% endunless %}


<ul class="nav-menu" role="menubar">
{% for nav in navs %}
{% capture vars %}
{% if nav.url == page.url | replace: ".html", "/" %}
{% assign active = " active" %}
{% elsif nav.url == page.url | remove: ".html" %}
{% assign active = " active" %}
{% else %}
{% assign active = "" %}
{% endif %}

{% assign protocol = nav.url | split: ':' | first | downcase %}
{% if protocol == 'https' %}
{% assign baseurl = '' %}
{% elsif protocol == 'http' %}
{% assign baseurl = '' %}
{% elsif protocol == 'ftps' %}
{% assign baseurl = '' %}
{% elsif protocol == 'ftp' %}
{% assign baseurl = '' %}
{% elsif protocol == 'mailto' %}
{% assign baseurl = '' %}
{% else %}
{% assign baseurl = site.baseurl %}
{% endif %}

{% if nav.nav %}
{% assign navgroup = " nav-group" %}
{% else %}
{% assign navgroup = "" %}
{% endif %}

{% if nav.icon-only == true %}
{% assign nav_label = '' %}
{% assign nav_title = nav.title | prepend: ' title="' | append: '"' %}
{% assign nav_alt = nav.title %}
{% else%}
{% assign nav_label = nav.title | prepend: '<span class="label">' | append: '</span>' %}
{% assign nav_title = '' %}
{% assign nav_alt = '' %}
{% endif %}

{% if nav.icon %}
{% assign nav_class = nav.class | append: " nav-icon" %}
{% capture nav_icon %}
<img src="{{ site.baseurl }}/images/{{ nav.icon }}.svg" alt="{{ nav_alt }}"{{ nav_title }}>
{% endcapture %}
{% else %}
{% assign nav_class = nav.class %}
{% endif %}
{% endcapture %}{% assign vars = nil %}

<li class="nav--{{ nav.title | slugify | default: "home" }}{{ nav_class }}{{ navgroup }}{{ active }}" role="menuitem">
{% if nav.url %}
<a href="{{ nav.url | prepend: baseurl }}">{{
nav_icon | strip
}}{{
nav_label | strip
}}</a>
{% else %}
<span class="not-a-link">{{ nav.title }}</span>
{% endif %}
{% if nav.nav %}
{% include nav.html nav=nav.nav wrap=false %}
{% endif %}
</li>
{% endfor %}

</ul>

{% unless include.wrap == false %}
</nav>
{% endunless %}
10 changes: 10 additions & 0 deletions _includes/nav_dir.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% comment %}
This builds upon nav.html, but feeds it the current directory as the
navigation source. It's intended for use in special layouts that are
assigned by directories, but also can be used in individual files.

TODO: Add filtering and weighted sorting.
{% endcomment %}

{% assign current_dir = site.html_pages | where: "dir", page.dir %}
{% include nav.html nav=current_dir %}
Empty file added _includes/page_footer.html
Empty file.
13 changes: 13 additions & 0 deletions _includes/page_header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

<header class="masthead hidden-print" id="branding" role="banner">
<section class="hgroup">

</section>
{% if site.data.navigation %}

<div class="nav-wrap">
{% include nav.html role="navigation" %}
</div>

{% endif %}
</header>
12 changes: 12 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: essential
---
{% include page_header.html %}

<!-- <div class="page-content" id="page-wrap" role="main">
<div class="wrapper">
{{ content }}
</div>
</div>
{% include page_footer.html %} -->
Loading

0 comments on commit 298bc3b

Please sign in to comment.