Skip to content

Commit

Permalink
version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pbgnz committed Feb 16, 2019
1 parent 9c2a2d0 commit 9e2b19f
Show file tree
Hide file tree
Showing 105 changed files with 8,730 additions and 4,239 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'
gem 'jekyll'
gem 'jekyll-sitemap'
gem 'jekyll-feed'
gem "jekyll-gist"
57 changes: 57 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.4.0)
colorator (0.1)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
ffi (1.10.0)
jekyll (3.1.2)
colorator (~> 0.1)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
mercenary (~> 0.3.3)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-feed (0.4.0)
jekyll-gist (1.4.0)
octokit (~> 4.2)
jekyll-sass-converter (1.4.0)
sass (~> 3.4)
jekyll-sitemap (0.10.0)
jekyll-watch (1.5.1)
listen (~> 3.0)
kramdown (1.10.0)
liquid (3.0.6)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.5)
multipart-post (2.0.0)
octokit (4.3.0)
sawyer (~> 0.7.0, >= 0.5.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (1.10.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.4.21)
sawyer (0.7.0)
addressable (>= 2.3.5, < 2.5)
faraday (~> 0.8, < 0.10)

PLATFORMS
ruby

DEPENDENCIES
jekyll
jekyll-feed
jekyll-gist
jekyll-sitemap

BUNDLED WITH
1.16.4
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2018 pbgnz
Copyright (c) 2019 pbgnz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
### pbgnz.github.io

## pbgnz.github.io
http://pbgnz.com

### Local Setup
```sh
# bundle update
bundle update jekyll-watch

# bundle install
bundle install

# start server
bundle exec jekyll serve
```
### Credits
- Original Work: [Vangelis Tzortzis](https://github.com/srekoble)
- Sample Posts and some code examples: [Michael Rose](https://github.com/mmistakes/)
- Images: [Unsplash](https://unsplash.com/) and [Lorem Pixel](http://lorempixel.com)

### Others
- [Jekyll](http://jekyllrb.com/)
- [jQuery](http://jquery.com/)
- [Magnific Popup](http://dimsemenov.com/plugins/magnific-popup/)
- [FitVids.JS](http://fitvidsjs.com/)
65 changes: 65 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Site
title: pbgnz
description: Software Engineer @ Concordia
url: http://pbgnz.com
logo: halve.png # Site logo
locale: en_US

# Left Block Images
background:
homepage: images/home.png # this image will be shown on homepage's left block
post-list: images/unsplash-image-6.jpg # this image will be shown on post list page
default-post: images/unsplash-image-6.jpg # this image will be shown when post's front matter doesn't specify any image

# Jekyll
permalink: /:title/
markdown: kramdown
highlighter: rouge
kramdown:
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
enable_coderay: false
sass:
sass_dir: assets/_sass
style: compressed

# Google Analytics
#google-analytics: UA-XXXXX-Y

# Social Links
#email: email
#google.plus: username
twitter: pbgnz
#facebook: username
github: pbgnz
#stackoverflow: 123456/username from a "http://stackoverflow.com/users/123456/username" link
#linkedin: username
#xing: username
#instagram: username
#lastfm: username
#tumblr: username
#pinterest: username
#foursquare: username
#steam: username
#dribbble: username
#youtube: username
#soundcloud: username
#weibo: username
#flickr: username
#codepen: username
#keybase: username
#xmpp: username@server.com
#hackernews: username
#behance: username

# Gems
gems:
- jekyll-feed
- jekyll-sitemap
- jekyll-gist

# Exclude list
include: [_pages]
exclude: [README.md, Gemfile, Gemfile.lock, _site, src, vendor, CNAME, LICENSE, Rakefile, .sass-cache, .DS_Store]
9 changes: 9 additions & 0 deletions _data/projects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- title: Automatic Language Detection
url: https://automatic-language-detection.herokuapp.com/
image: https://cdn-images-1.medium.com/max/1600/0*577-u5IUpNyUtdtO.jpg
completed: true

- title: QualityDoc
url: http://qualitydoc.us-east-1.elasticbeanstalk.com/
image: https://www.maxpixel.net/static/photo/1x/Wooden-Desk-Background-Wood-Desktop-Table-Aerial-3271749.jpg
completed: false
21 changes: 21 additions & 0 deletions _includes/gallery
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% assign images = include.images | split:" " %}
{% assign caption = include.caption %}
{% assign cols = include.cols %}

{% case cols %}
{% when 1 %}
{% assign class = "" %}
{% when 2 %}
{% assign class = "half" %}
{% when 3 %}
{% assign class = "third" %}
{% else %}
{% assign class = "" %}
{% endcase %}

<figure {% if class != "" %}class="{{ class }}"{% endif %}>
{% for image in images %}
<a href="{{ image }}"><img src="{{ image }}" alt=""></a>
{% endfor %}
<figcaption>{{ caption }}</figcaption>
</figure>
64 changes: 64 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
{% if page.title %}
<title>{{ page.title | markdownify | strip_html | strip_newlines | escape_once }} &#8211; {{ site.title }}</title>
{% else %}
<title>{{ site.title }}</title>
{% endif %}
{% if page.excerpt %}
<meta name="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">
{% else %}
<meta name="description" content="{{ site.description }}">
{% endif %}
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
<!-- Twitter Cards -->
{% if page.image %}{% capture image %}{{ page.image }}{% endcapture %}{% unless image contains 'http://' or image contains 'https://' %}{% capture image %}{{ site.url }}/{{ image }}{% endcapture %}{% endunless %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ image }}">
{% else %}<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{{ site.logo }}">{% endif %}
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta name="twitter:description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
{% if site.twitter %}<meta name="twitter:site" content="@{{ site.twitter }}">
<meta name="twitter:creator" content="@{{ site.twitter }}">{% endif %}
<!-- Open Graph -->
<meta property="og:locale" content="{{ site.locale }}">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:image" content="{{ site.url }}/images/{{ site.logo }}">
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}">
<!-- Handheld -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Feed -->
{% feed_meta %}
<!-- Favicons -->
<link rel="shortcut icon" type="image/png" href="{{ site.url }}/favicon.png" />
<link rel="shortcut icon" href="{{ site.url }}/favicon.ico" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/main.css">
<!-- Left Block Image for Posts -->
{% if page.image %}
{% capture image %}{{ page.image }}{% endcapture %}
{% unless image contains 'http://' or image contains 'https://' %}{% capture image %}{{ site.url }}/{{ image }}{% endcapture %}{% endunless %}
<style type="text/css">
#posts.inner-post-page .block-left {background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url({{ image }}) no-repeat;background-size: cover;}
</style>
{% else %}
<style type="text/css">
#posts.inner-post-page .block-left {background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url({{ site.url }}/{{ site.background.default-post }}) no-repeat;background-size: cover;}
</style>
{% endif %}
<!-- Left Block Images for Home and Pages -->
<style type="text/css">
#posts .block-left {background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url({{ site.url }}/{{ site.background.post-list }}) no-repeat;background-size: cover, cover;}
.block-left {background: linear-gradient(rgba(44,45,51,0.9), rgba(44,45,51,0.9)), url({{ site.url }}/{{ site.background.homepage }}) no-repeat;background-size: cover;}
</style>
</head>
20 changes: 20 additions & 0 deletions _includes/overlay.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div class="overlay">
<ul class="projects-menu">
{% for item in site.data.projects %}
{% capture image %}{{ item.image }}{% endcapture %}
{% unless image contains 'http://' or image contains 'https://' %}
{% capture image %}{{ site.url }}/{{ image }}{% endcapture %}
{% endunless %}
<li style="background:url({{ image }}) center center no-repeat;">
<a href="{{ item.url }}" {% unless item.completed %}class="inactive"{% endunless %} target="_blank" rel="nofollow external">
<span>
{{ item.title }}
{% unless item.completed %}
<br><em>in progress</em>
{% endunless %}
</span>
</a>
</li>
{% endfor %}
</ul>
</div>
14 changes: 14 additions & 0 deletions _includes/page-pagination.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% if page.previous or page.next %}
<nav class="pagination">
{% if page.previous %}
<a href="{{ site.url }}{{ page.previous.url }}" class="pagination_pager" title="{{ page.previous.title | markdownify | strip_html }}">previous</a>
{% else %}
<a href="#" class="pagination_pager disabled">previous</a>
{% endif %}
{% if page.next %}
<a href="{{ site.url }}{{ page.next.url }}" class="pagination_pager" title="{{ page.next.title | markdownify | strip_html }}">next</a>
{% else %}
<a href="#" class="pagination_pager disabled">next</a>
{% endif %}
</nav>
{% endif %}
11 changes: 11 additions & 0 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- JS -->
<script src="{{ site.url }}/assets/js/main.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112417666-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'UA-112417666-1');
</script>
3 changes: 3 additions & 0 deletions _includes/share.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% if page.share != false %}
<a href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }}" class="btn btn_twitter" title="Share on Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span>Twitter</span></a>
{% endif %}
26 changes: 26 additions & 0 deletions _includes/social-links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<ul>
{% if site.email %}<li><a class="social-btn" href="mailto:{{ site.email }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-envelope"></i></a></li>{% endif %}
{% if site.behance %}<li><a class="social-btn" href="https://www.behance.net/{{ site.behance }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-behance"></i></a></li>{% endif %}
{% if site.twitter %}<li><a class="social-btn" href="http://twitter.com/{{ site.twitter }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-twitter"></i></a></li>{% endif %}
{% if site.facebook %}<li><a class="social-btn" href="http://facebook.com/{{ site.facebook }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-facebook"></i></a></li>{% endif %}
{% if site.google.plus %}<li><a class="social-btn" href="http://plus.google.com/+{{ site.google.plus }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-google-plus"></i></a></li>{% endif %}
{% if site.linkedin %}<li><a class="social-btn" href="http://linkedin.com/in/{{ site.linkedin }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-linkedin"></i></a></li>{% endif %}
{% if site.xing %}<li><a class="social-btn" href="http://www.xing.com/profile/{{ site.xing }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-xing"></i></a></li>{% endif %}
{% if site.instagram %}<li><a class="social-btn" href="http://instagram.com/{{ site.instagram }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-instagram"></i></a></li>{% endif %}
{% if site.tumblr %}<li><a class="social-btn" href="http://{{ site.tumblr }}.tumblr.com" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-tumblr"></i></a></li>{% endif %}
{% if site.github %}<li><a class="social-btn" href="http://github.com/{{ site.github }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-github"></i></a></li>{% endif %}
{% if site.stackoverflow %}<li><a class="social-btn" href="http://stackoverflow.com/users/{{ site.stackoverflow }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-stack-overflow"></i></a></li>{% endif %}
{% if site.lastfm %}<li><a class="social-btn" href="http://lastfm.com/user/{{ site.lastfm }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-music"></i></a></li>{% endif %}
{% if site.dribbble %}<li><a class="social-btn" href="http://dribbble.com/{{ site.dribbble }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-dribbble"></i></a></li>{% endif %}
{% if site.pinterest %}<li><a class="social-btn" href="http://www.pinterest.com/{{ site.pinterest }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-pinterest"></i></a></li>{% endif %}
{% if site.foursquare %}<li><a class="social-btn" href="http://foursquare.com/{{ site.foursquare }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-foursquare"></i></a></li>{% endif %}
{% if site.steam %}<li><a class="social-btn" href="http://steamcommunity.com/id/{{ site.steam }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-steam"></i></a></li>{% endif %}
{% if site.youtube %}<li><a class="social-btn" href="https://youtube.com/user/{{ site.youtube }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-youtube"></i></a></li>{% endif %}
{% if site.soundcloud %}<li><a class="social-btn" href="http://soundcloud.com/{{ site.soundcloud }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-soundcloud"></i></a></li>{% endif %}
{% if site.weibo %}<li><a class="social-btn" href="http://www.weibo.com/{{ site.weibo }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-weibo"></i></a></li>{% endif %}
{% if site.flickr %}<li><a class="social-btn" href="http://www.flickr.com/{{ site.flickr }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-flickr"></i></a></li>{% endif %}
{% if site.codepen %}<li><a class="social-btn" href="http://codepen.io/{{ site.codepen }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-codepen"></i></a></li>{% endif %}
{% if site.keybase %}<li><a class="social-btn" href="https://keybase.io/{{ site.keybase }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-key"></i></a></li>{% endif %}
{% if site.xmpp %}<li><a class="social-btn" href="xmpp:{{ site.xmpp }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-lightbulb-o"></i></a></li>{% endif %}
{% if site.hackernews %}<li><a class="social-btn" href="https://news.ycombinator.com/user?id={{ site.hackernews }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-hacker-news"></i></a></li>{% endif %}
</ul>
Loading

0 comments on commit 9e2b19f

Please sign in to comment.