Skip to content

Commit 15bcf3e

Browse files
Add a minimal home page
1 parent 16a02b3 commit 15bcf3e

33 files changed

Lines changed: 152 additions & 54 deletions

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
# nit-dgp
1+
NIT DGP Open Source
2+
===================
3+
made with :heart: via [GitHub Pages][1]
4+
5+
Curious how it works?
6+
---------------------
7+
Prerequisites:
8+
1. Ruby[2] with [jekyll][3] and [bundler][4] gems installed.
9+
> `$ gem install jekyll bundler`
10+
11+
**Follow the steps to test it on your local browser.**
12+
13+
1. Clone this repository. :smile:
14+
> `$ git clone https://github.com/NIT-dgp/nit-dgp.github.io`
15+
16+
2. Run `$ bundle install` to install the dependencies. ( Grab a :coffee: and :sunglasses:, cuz' it takes a while.)
17+
18+
3. `$ bundle exec jekyll serve` to run the server. You're all set.
19+
20+
4. Navigate to `http://localhost:4000/`to view the site.
21+
22+
[1]:https://pages.github.com
23+
[2]:https://www.ruby-lang.org/en/
24+
[3]:https://jekyllrb.com
25+
[4]:http://bundler.io/

_config.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
1414
# You can create any custom variable you would like, and they will be accessible
1515
# in the templates via {{ site.myvariable }}.
16-
title: Your awesome title
17-
email: your-email@domain.com
16+
title: NIT DGP FOSS
17+
email: nitdopensource@googlegroups.com
1818
description: > # this means to ignore newlines until "baseurl:"
19-
Write an awesome description for your new site here. You can edit this
20-
line in _config.yml. It will appear in your document head meta (for
21-
Google search results) and in your feed.xml site description.
19+
An Open source organization maintained by the students of NIT Durgapur, India.
2220
baseurl: "" # the subpath of your site, e.g. /blog
23-
url: "" # the base hostname & protocol for your site, e.g. http://example.com
21+
url: "nit-dgp.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2422
twitter_username: jekyllrb
25-
github_username: jekyll
23+
github_username: NIT-dgp
2624

2725
# Build settings
2826
markdown: kramdown
@@ -32,3 +30,8 @@ gems:
3230
exclude:
3331
- Gemfile
3432
- Gemfile.lock
33+
- README.md
34+
- .gitignore
35+
sass:
36+
sass_dir: css
37+
style: compressed

_includes/assets.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--Stylesheets-->
2+
<link rel="stylesheet" href={{ "/css/materialize.min.css" | relative_url }} />
3+
<link rel="stylesheet" href={{ "/css/styles.css" | relative_url }} />
4+
5+
<!--Scripts-->
6+
<script type="text/javascript" src={{ "/js/jquery.min.js" | relative_url }}></script>
7+
<script type="text/javascript" src={{ "/js/materialize.min.js" | relative_url }}></script>

_includes/header.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="col s12">
2+
<ul id="main-nav" class="center-align tabs">
3+
<li class="tab"><a class="active" href="#home">Home</a></li>
4+
<li class="tab"><a href="#get-involved">Get involved!</a></li>
5+
<li class="tab"><a href="#about-us">About us</a></li>
6+
<li class="tab"><a href="#projects">Projects</a></li>
7+
</ul>
8+
</div>

_layouts/home.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
5+
<title>
6+
{% if page.title %}
7+
{{ site.title }} | {{ page.title }}
8+
{% else %}
9+
{{ site.title }}
10+
{% endif %}
11+
</title>
12+
{% include assets.html %}
13+
</head>
14+
<body>
15+
{% include header.html %}
16+
<div class="center-align">
17+
<h1 class="title">NIT DGP Open Source</h1>
18+
</div>
19+
<div class="page-content center-align">
20+
<div class="main">{{ content }}</div>
21+
</div>
22+
</body>
23+
</html>

_posts/2017-01-21-welcome-to-jekyll.markdown

Lines changed: 0 additions & 25 deletions
This file was deleted.

about.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

css/materialize.min.css

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/styles.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# Frontmatter
3+
---
4+
5+
.title {
6+
padding: 5%;
7+
font-size: 6.5em;
8+
font-weight: lighter;
9+
}

fonts/roboto/Roboto-Bold.eot

20.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)