This commit is contained in:
chipset 2015-11-22 10:46:20 +05:30
commit ea7f3cbd6a
20 changed files with 107 additions and 51 deletions

View file

@ -30,6 +30,7 @@ You can watch it in action [here](https://panossakkos.github.io/personal-jekyll-
* Disqus comments
* Facebook, Twitter, Reddit, LinkedIn, Google+, Pinterest and VKontakte share buttons
* RSS feed
* Sitemap
* Cool (anti-procrastinating) 404 page
* iOS and Android Web App mode
* Forcing of https protocol

View file

@ -1,12 +1,16 @@
# Site settings
# NB! Set your site's url, otherwise stuff will break :)
url: "https://panossakkos.github.io"
# If you're hosting your site at a Project repository on GitHub pages
# (https://yourusername.github.io/repository-name)
# and NOT your user repository (https://yourusername.github.io)
# then add in the baseurl here, like this: "/repository-name"
#
# NB! Without this *nothing* will work, because it's used in every path :)
baseurl: /personal-jekyll-theme
@ -32,7 +36,7 @@ pages_list:
web-app-mode: True
# Icons for Web App mode
# Icons for Web App mode
icon-36p: "/img/web-app/icon-36p.png"
icon-48p: "/img/web-app/icon-48p.png"
@ -53,7 +57,7 @@ description: "Blog and website of John Smith, blogging mainly for tech. Opinions
keywords: "smith, jones, personal, jekyll, theme"
################
# Intro layout #
# Header layout #
################
black-favicon: "/img/black-lab-glass.ico"
@ -61,17 +65,17 @@ background-img: "../img/intro-bg.jpg"
me-img: "/img/jetpacktocat.png"
##############################
# Dynamic Text on the header #
# Dynamic Text on the Header #
##############################
dynamic-typing: True
shuffle: True # Shuffle the lines.
shuffle: True # Shuffle the lines.
loop: True
loop-count: False # Set False for infinite loop, or set any number for finite loop.
type-speed: 10 # Default 10
start-delay: 200 # Default 200
delete-delay: 5000 # Default 5000
lines: # You can add HTML Tags in the Text
loop-count: False # Set False for infinite loop, or set any number for finite loop.
type-speed: 10
start-delay: 200
delete-delay: 5000
lines: # You can add HTML Tags in the Text
- text: "The lower you fall, the higher you'll fly."
- text: "Wheres your will to be weird?"
@ -97,15 +101,16 @@ disqus-shortname: "panossakkos"
###############
events:
- image: "/img/career/spidertocat.png"
- image: "/img/timeline/spidertocat.png"
date: "September 2013 - Today"
description: "Saving the neighborhood!"
- image: "/img/career/baracktocat.jpg"
- image: "/img/timeline/baracktocat.jpg"
date: "September 2007 - August 2013"
description: "Started coding"
# First image of the Career timeline
career-img: "/img/career/default.png"
# First image of the Timeline
timeline-img: "/img/timeline/default.png"
##################
# Contact layout #
@ -137,7 +142,7 @@ social:
################################################################################
# Tread carefully if you want to change the variables below this point!
# NB! Tread carefully if you want to change the variables below this point!
# Exclusion list from the generated _site

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}
</div>
</div>

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}
@ -16,7 +16,7 @@
{{ post.content | truncatewords: site.post-preview-words | strip_html | markdownify }}
<a href="{{site.baseurl}}/blog/"><h4><strong>View more posts</strong></h4></a>
<h4><a href="{{site.baseurl}}/blog/">View more posts</a></h4>
</div>
</div>

View file

@ -35,7 +35,7 @@
{% for p in site.pages_list %}
<li>
{% if p[1] == "latest-post" %}
{% if page.url == "/blog/" | prepend: {{site.baseurl}} %}
{% if page.url == "/blog/index.html" | prepend: {{site.baseurl}} %}
<a class="page-scroll" href="#page"> {{p[0]}} </a>
{% else %}
<a href="{{site.baseurl}}/blog/"> {{p[0]}} </a>

15
_includes/post-list.html Normal file
View file

@ -0,0 +1,15 @@
<!-- Post List Start -->
<h4 align="left">
<strong>{{ post.date | date_to_string }}</strong>
<small>. {{ post.category }} .</small>
<br class="visible-xs-block">
<a href="{{site.baseurl}}{{post.url}}">
<strong>{{ post.title }}</strong>
</a>
<br class="visible-xs-block">
<small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small>
</h4>
<!-- Post List End -->

View file

@ -3,7 +3,7 @@
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}
@ -34,7 +34,7 @@
<li class="timeline-inverted">
<div class="timeline-image">
<img class="img-circle img-responsive" src="{{site.baseurl}}{{ site.career-img }}" alt="">
<img class="img-circle img-responsive" src="{{site.baseurl}}{{ site.timeline-img }}" alt="">
</div>
</li>
</ul>

View file

@ -12,13 +12,13 @@
<section id="page" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
{{ page.content | markdownify }}
<div class="col-lg-10 col-lg-offset-2 col-md-10 col-md-offset-2">
<div>
{% for post in paginator.posts %}
<h4 align="left"><strong>{{ post.date | date_to_string }}</strong> <small>. {{ post.category }} .</small> <br class="visible-xs-block visible-sm-block"><a href="{{site.baseurl}}{{post.url}}"> <strong>{{ post.title }}</strong> </a> <br class="visible-xs-block visible-sm-block"><small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small></h4>
{% include post-list.html%}
{% endfor %}
</div>

View file

@ -12,7 +12,7 @@
<section class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
<h1><strong>{{ page.title }}</strong></h1>
@ -20,9 +20,6 @@
<img class="img-responsive center-block" src="{{site.baseurl}}{{ site.404-img }}" alt="">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
{% include social-buttons.html %}
</div>

View file

@ -12,7 +12,7 @@
<section id="post" class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
<h1><strong>{{ page.title }}</strong></h1>
<h4><strong>{{ page.date | date_to_string }}</strong>

View file

@ -12,19 +12,16 @@
<section class="container content-section text-center">
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div id="archives">
<div>
<div class="col-md-10 col-md-offset-1 col-xs-10 col-xs-offset-1">
{% assign tag = page.title %}
<h3 id="#{{ tag }}">#{{ tag }}</h3>
<div class="col-lg-10 col-lg-offset-2 col-md-10 col-md-offset-2">
<div>
{% for post in site.posts %}
{% if post.tags contains tag %}
<h4 align="left"><strong>{{ post.date | date_to_string }}</strong> <small>. {{ post.category }} .</small> <a href="{{site.baseurl}}{{post.url}}"> <strong>{{ post.title }} </a> </strong> <small><a href="{{site.baseurl}}{{post.url}}#disqus_thread">Comments</a></small></h4>
{% include post-list.html%}
{% endif %}
{% endfor %}
</div>

View file

@ -2,5 +2,7 @@
layout: blog
section-type: blog
title: Blog
sitemap:
priority: 1.0
---
##Blog

View file

@ -59,12 +59,6 @@ a {
}
}
div {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}
.navbar-custom {
margin-bottom: 0;
border-bottom: 1px solid rgba($light, 0.3);
@ -241,6 +235,22 @@ div {
line-height: 1.5;
list-style-position: inside;
}
p {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}
pre {
padding: 0;
> code {
text-align: left;
}
}
img.emoji {
/* Override any img styles to ensure Emojis are displayed inline */
margin: 0px !important;
display: inline !important;
}
}
/* Added in { Personal } */
@ -321,11 +331,3 @@ body {
100% { opacity:1; }
}
/* END Added in { Personal } for Typed Cursor in Header */
code { text-align: left; }
img.emoji {
// Override any img styles to ensure Emojis are displayed inline
margin: 0px !important;
display: inline !important;
}

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 5 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Before After
Before After

View file

@ -1,6 +1,8 @@
---
layout: index
section-type: index
sitemap:
priority: 1.0
---
<!--
If you want to have a static message in your intro layout, disable the dynamic-typing in the _config.yml and write here your text

View file

@ -7,14 +7,13 @@ require 'fileutils'
personal = ARGV[0]
repoDirectories = [ '_includes', '_layouts', '_sass', 'blog', 'css', 'js' ]
repoFiles = [ 'feed.xml' ]
repoFiles = [ 'feed.xml', 'manifest.json', 'sitemap.xml' ]
# Delete local resources of { Personal }
repoDirectories.each{ |directory| FileUtils.rm_rf(directory) }
repoFiles.each{ |file| FileUtils.rm(file) }
puts '[+] Deleted local { Personal } resources'
# Create the { Personal } directories again
repoDirectories.each{ |directory| FileUtils.mkdir(directory) }
puts '[+] Created empty directory resources'

36
sitemap.xml Normal file
View file

@ -0,0 +1,36 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for page in site.pages %}
{% if page.sitemap != null and page.sitemap != empty %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
{% if page.sitemap %}
{% if page.sitemap.lastmod %}
<lastmod>{{ page.sitemap.lastmod | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.sitemap.changefreq %}
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
{% endif %}
{% if page.sitemap.priority %}
<priority>{{ page.sitemap.priority }}</priority>
{% endif %}
{% endif %}
</url>
{% endif %}
{% endfor %}
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ site.baseurl }}{{ post.url }}</loc>
{% if post.lastmod == null %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ post.lastmod | date_to_xmlschema }}</lastmod>
{% endif %}
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
{% endfor %}
</urlset>