Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major change in UI and added functionalities #5

Merged
merged 6 commits into from
Oct 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.sass-cache
_site
130 changes: 18 additions & 112 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
layout: error
current: error
title: "404 - Page Not Found"
permalink: 404.html
---
<!--
This error template is used for all 404 errors, which might occur on your site.
It's a good idea to keep this template as minimal as possible in terms of both file size and complexity.
Expand All @@ -8,82 +14,25 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>404 - Page Not Found</title>
<title>{{ page.title }}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="/assets/built/screen.css" />
<link rel="stylesheet" type="text/css" href="/assets/built/screen.edited.css" />
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}assets/built/screen.css" />
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}assets/built/screen.edited.css" />
<!-- This tag outputs SEO meta+structured data and other important settings -->
<meta name="description" content="The official website of InfoSecIITR" />
<link rel="shortcut icon" href="http://localhost:4000/assets/images/small-logo.jpg" type="image/png" />
<link rel="canonical" href="http://localhost:4000/404.html" />
<meta name="referrer" content="no-referrer-when-downgrade" />

<!--title below is coming from _includes/dynamic_title-->
<meta property="og:site_name" content="InfoSecIITR" />
<meta property="og:type" content="website" />
<meta property="og:title" content="404 - Page Not Found" />
<meta property="og:description" content="The official website of InfoSecIITR" />
<meta property="og:url" content="http://localhost:4000/404.html" />
<meta property="og:image" content="http://localhost:4000/assets/images/blog-cover.jpg" />
<meta property="article:publisher" content="https://www.facebook.com/ghost" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="404 - Page Not Found" />
<meta name="twitter:description" content="The official website of InfoSecIITR" />
<meta name="twitter:url" content="http://localhost:4000/" />
<meta name="twitter:image" content="http://localhost:4000/assets/images/blog-cover.jpg" />
<meta name="twitter:label1" content="Written by" />
<meta name="twitter:data1" content="InfoSecIITR" />
<meta name="twitter:site" content="@infoseciitr" />
<meta name="twitter:creator" content="@infoseciitr" />
<meta property="og:image:width" content="2000" />
<meta property="og:image:height" content="666" />

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Website",
"publisher": {
"@type": "Organization",
"name": "InfoSecIITR",
"logo": "http://localhost:4000/assets/images/blog-icon.png"
},
"url": "http://localhost:4000/404.html",
"image": {
"@type": "ImageObject",
"url": "http://localhost:4000/assets/images/blog-cover.jpg",
"width": 2000,
"height": 666
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "http://localhost:4000/404.html"
},
"description": "The official website of InfoSecIITR"
}
</script>

<!-- <script type="text/javascript" src="https://demo.ghost.io/public/ghost-sdk.min.js?v=724281a32e"></script>
<script type="text/javascript">
ghost.init({
clientId: "ghost-frontend",
clientSecret: "f84a07a72b17"
});
</script> -->

<meta name="generator" content="Jekyll 3.6.2" />
<link rel="alternate" type="application/rss+xml" title="404 - Page Not Found" href="/feed.xml" />

{% include head.html %}
</head>
<body class="error-template">
<div class="site-wrapper">

<header class="site-header outer no-cover">
<header class="site-header outer {% if page.cover %}" style="background-image: url({{ page.cover | prepend: site.baseurl | replace: '//','/'}})){% else %}no-cover{% endif %}">
<div class="inner">
<nav class="site-nav-center">

<a class="site-nav-logo" href="/"><img src="/assets/images/blog-icon.png" alt="InfoSecIITR" /></a>

{% if site.logo %}
<a class="site-nav-logo" href="{{ site.baseurl }}"><img src="{{site.baseurl | append: site.logo | replace:'//','/' }}" alt="{{ site.title }}" /></a>
{% else %}
<a class="site-nav-logo" href="{{ site.baseurl }}">{{ site.title }}</a>
{% endif %}
</nav>
</div>
</header>
Expand All @@ -94,7 +43,7 @@
<section class="error-message">
<h1 class="error-code">404</h1>
<p class="error-description">Page not found</p>
<a class="error-link" href="/">Go to the front page →</a>
<a class="error-link" href="{{ site.baseurl }}">Go to the front page →</a>
</section>
</div>
</main>
Expand All @@ -104,47 +53,7 @@ <h1 class="error-code">404</h1>
<div class="inner">
<div class="post-feed">
<!-- The tag below includes the markup for each post - partials/post-card.hbs -->




<article class="post-card no-image">

<div class="post-card-content">
<a class="post-card-content-link" href="/welcome">
<header class="post-card-header">



<span class="post-card-tags">Blog</span>




<h2 class="post-card-title">Welcome</h2>
</header>
<section class="post-card-excerpt">
<p>Hack The Planet!
</p>
</section>
</a>
<footer class="post-card-meta">



<img class="author-profile-image" src="/assets/images/ghost.png" alt="Ghost" />

<span class="post-card-author">
<a href="/author/ghost/">Ghost</a>
</span>


</footer>
</div>
</article>



{% include post-card-error.html %}
</div>
</div>
</aside>
Expand All @@ -153,6 +62,3 @@ <h2 class="post-card-title">Welcome</h2>
</div>
</body>
</html>



22 changes: 22 additions & 0 deletions GHOST.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2013-2017 Ghost Foundation - Released under The MIT License.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Fábio Madeira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## Adding new posts
* Create a new file under \_posts folder. Name it according to `YYYY-MM-DD-name-of-post.md`
* Paste following content in the created file(Change relevant field)
```
---
layout: post
current: post
cover: False # Use URL here if you want to add any image as cover
navigation: True
title: POST-TITLE-HERE
date: YYYY-MM-DD HH:MM:SS
tags: ['POST-TAG-1','POST-TAG-2']
class: post-template
subclass: 'post tag'
author: 'AUTHOR-USERNAME'
---
```
* Happy bloging
* If adding new tag or author in a post. Check relevant instructions

## Adding new tag
* Create a new file under \_tag by name `tag-name.html`
* Paste following content in the created file(Change relevant field)
```
---
layout: tag
current: tag
tagname: tag-name-here # Must be only alphanum and hypen. Same as used in new file
class: page-template
subclass: 'post page'
---
```
* Fillup new tag's information in \_data/tags.yml file. Use template-tag for the same

## Adding new author
* Create a new file under \_author by name `author-username.html`
* Paste following content in the created file(Change relevant field)
```
---
layout: author
current: author
author: AUTHOR-USERNAME-HERE #Must be only alphanum and hypen. Same as used in new file
class: page-template
subclass: 'post page'
---
```
* Fillup new tag's information in \_data/authors.yml file. Use template-author for the same
95 changes: 95 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Jekyll configuration
markdown: kramdown
highlighter: rouge
paginate: 10 # it will paginate after this number
paginate_path: "/blog/page:num/"
language: 'en-uk'

# edit baseurl to simply '/' if using as your personal page (instead of a project page)
url: "https://infoseciitr.github.io/" #Value gets overwritten at time of deployment by jekyll in CNAME file used
baseurl: "/l33t/../" # This value is replaced to empty string by github if set to '/'

# Website info
title: InfosecIITR
description: The official website of InfosecIITR
# cover: /assets/images/infosec.jpeg
logo: /assets/images/infosec.jpeg
logo_dark: /assets/images/small-logo.jpg
favicon: /assets/images/small-logo.jpg
production_url: https://jekyller.github.io/jasper2/
source_url: https://github.com/jekyller/jasper2/

# Social info
navigation: True # show the navbar links
subscribers: False # you need to connect an external service for this to work,
# if 'True' the submit button is disabled for now, but you can change that
# by editing `_includes/subscribe-form.html`
twitter: infoseciitr # replace by your username
facebook: InfoSecIITR # replace by your username

# Disqus
disqus: False
disqus_shortname: # replace with your disqus username

# Google Analytics
google_analytics: # replace with your GA tracking identifier

# Permalinks
# permalink: /:title
# permalink: /author/:author
# permalink: /tag/:tag

# Authors' info in `_data/authors.yml`
# Tags' info in `_data/tags_info.yml`

# gems and other configs
plugins: [jekyll-paginate, jekyll-feed, jekyll-sitemap]

feed:
path: feed.xml

# Additional settings available on the front-matter
# Site logo in the index.html (as in demo.ghost.io)
# Author's page cover in _layouts/author.html
# The same for page.html and tag.html layouts
# Post's page cover as a per-post basis _posts/...
# Disqus comments as a per-post basis
# ...

# Settings for builing master branch with travis-ci
# with jekyll-travis

# Settings for deploy rake task
# Username and repo of Github repo, e.g.
# https://github.com/USERNAME/REPO.git
# username defaults to ENV['GIT_NAME'] used by Travis
# repo defaults to USERNAME.github.io
# Branch defaults to "source" for USERNAME.github.io
# or "master" otherwise
# safe: False
# lsi: False
# username: jekyller
# repo: jasper2
# branch: master
# relative_source: ../jasper2/
# destination: ../jasper2-pages/
# production_url: https://jekyller.github.io/jasper2/
# source_url: https://github.com/jekyller/jasper2/

# exclude:
# - assets/css
# - node_modules
# - vendor
# - .travis.yml
# - Gemfile
# - Gemfile.lock
# - GHOST.txt
# - gulpfile.js
# - LICENSE
# - package.json
# - Rakefile
# - README.md
# - script.py
# - changelog.md
# - "*.Rmd"
# - .git*
23 changes: 23 additions & 0 deletions _data/authors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
template-author:
username: template-author # same as above
name: AUTHOR NAME
location: False # Roorkee, IN
url_full: False #http://example.com
url: False #example.com
bio: False # My bio
picture: False #assets/images/authors/xyz.jpg
facebook: False #user.name
twitter: False # handel
cover: False #assets/images/authors/xyz-cover.jpg

InfoSecIITR:
username: InfoSecIITR # same as above
name: InfoSecIITR Team
location: False # Roorkee, IN
url_full: https://infoseciitr.github.io
url: False #example.com
bio: Team of InfoSecIITR
picture: /assets/images/authors/infoseciitr.png
facebook: InfoSecIITR
twitter: infoseciitr
cover: False #/assets/images/authors/infoseciitr-cover.png
13 changes: 13 additions & 0 deletions _data/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
template-tag:
name: Display name here
description: Tag description
cover: False # url to cover if any image

reading-material:
name: Reading Material
description: Posts regarding reading material
cover: False
beginner:
name: Beginner
description: Beginner related posts
cover: "/assets/images/tags/beginner-cover.jpeg"
Loading