Skip to content

U/dagaspar/init #174

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
43 changes: 17 additions & 26 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,26 @@
# Site
name: "Mediumish"
title: "Mediumish"
description: "Jekyll template, Medium styled, free for bloggers."
logo: 'assets/images/logo.png'
favicon: 'assets/images/logo.png'
baseurl: /mediumish-theme-jekyll
google_analytics: 'UA-46278016-1'
disqus: 'demowebsite'
mailchimp-list: 'https://wowthemes.us11.list-manage.com/subscribe/post?u=8aeb20a530e124561927d3bd8&id=8c3d2d214b'
name: "David Gaspard"
title: "David Gaspard"
description: "Tech through David's lenses."
logo: 'assets/images/dg.png'
favicon: 'assets/images/favicon.ico'
# google_analytics: 'UA-46278016-1' # TODO: Setup google analytics
# disqus: 'demowebsite'
# mailchimp-list: 'https://wowthemes.us11.list-manage.com/subscribe/post?u=8aeb20a530e124561927d3bd8&id=8c3d2d214b'
include: ["_pages"]
permalink: /:title/
baseurl: "/dagaspard_site" # the subpath of your site, e.g. /blog

# Authors
authors:
sal:
name: Sal
display_name: Sal
gravatar: e56154546cf4be74e393c62d1ae9f9d4
email: [email protected]
web: https://www.wowthemes.net
twitter: https://twitter.com/wowthemesnet
description: "Author of Mediumish, a Bootstrap Medium styled template available for WordPress, HTML, Ghost and Jekyll. You are currently previewing Jekyll template demo."
john:
name: John
display_name: John
avatar: 'assets/images/avatar.png'
gravatar: b1cc14991db7a456fcd761680bbc8f81
email: [email protected]
web: https://www.wowthemes.net
twitter: https://twitter.com/wowthemesnet
description: "This is the author box. Write a short description of the author here. You are currently previewing Mediumish demo, a Jekyll template compatible with Github pages."
david:
name: David
display_name: David
gravatar: 4325aec5eb4d46e815e2ff2c723cb616
email: [email protected]
web: https://www.dgaspard.com
# twitter: https://twitter.com/wowthemesnet
description: "Senior Software Engineer @ Microsoft and avid technologist"

# Plugins
plugins:
Expand Down
17 changes: 4 additions & 13 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
<a class="nav-link" href="{{ site.baseurl }}/about">About</a>
</li>

<li class="nav-item">
<!-- <li class="nav-item">
<a target="_blank" class="nav-link" href="https://bootstrapstarter.com/bootstrap-templates/template-mediumish-bootstrap-jekyll/"> Docs</a>
</li>
</li> -->

<li class="nav-item">
<!-- <li class="nav-item">
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mediumish-wordpress/"><i class="fab fa-wordpress-simple"></i> WP Version</a>
</li>

Expand All @@ -89,7 +89,7 @@

<li class="nav-item">
<a target="_blank" class="nav-link" href="https://github.com/wowthemesnet/mediumish-theme-jekyll"><i class="fab fa-github"></i> Fork on Github</a>
</li>
</li> -->

{% include search-lunr.html %}

Expand All @@ -108,15 +108,6 @@

<div class="container">

<!-- Site Title
================================================== -->
<div class="mainheading">
<h1 class="sitetitle">{{ site.name }}</h1>
<p class="lead">
{{ site.description }}
</p>
</div>

<!-- Content
================================================== -->
<div class="main-content">
Expand Down
89 changes: 58 additions & 31 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
post_class: post-template
---

<!-- Site Title
================================================== -->
<div class="postheading">
<h1 class="sitetitle">
<a class="postheading" href="/dgaspard.com/">
{{ site.name }}
</a>
</h1>
<p class="lead">
{{ site.description }}
</p>
</div>

<!-- Begin Article
================================================== -->
<div class="container">
Expand All @@ -26,13 +39,17 @@
<div class="row post-top-meta">
<div class="col-xs-12 col-md-3 col-lg-2 text-center text-md-left mb-4 mb-md-0">
{% if author.avatar %}
<img class="author-thumb" src="{{site.baseurl}}/{{ author.avatar }}" alt="{{ author.display_name }}">
<img class="author-thumb" src="{{site.baseurl}}/{{ author.avatar }}"
alt="{{ author.display_name }}">
{% else %}
<img class="author-thumb" src="https://www.gravatar.com/avatar/{{ author.gravatar }}?s=250&d=mm&r=x" alt="{{ author.display_name }}">
<img class="author-thumb"
src="https://www.gravatar.com/avatar/{{ author.gravatar }}?s=250&d=mm&r=x"
alt="{{ author.display_name }}">
{% endif %}
</div>
<div class="col-xs-12 col-md-9 col-lg-10 text-center text-md-left">
<a target="_blank" class="link-dark" href="{{ author.web }}">{{ author.display_name }}</a><a target="_blank" href="{{ author.twitter }}" class="btn follow">Follow</a>
<a target="_blank" class="link-dark" href="{{ author.web }}">{{ author.display_name }}</a><a
target="_blank" href="{{ author.twitter }}" class="btn follow">Follow</a>
<span class="author-description">{{ author.description }}</span>
</div>
</div>
Expand All @@ -45,17 +62,22 @@ <h1 class="posttitle">{{ page.title }}</h1>

<!-- Adsense if enabled from _config.yml (change your pub id and slot) -->
{% if site.adsense == "enabled" %}
{% include adsense-under-header.html %}
{% include adsense-under-header.html %}
{% endif %}
<!-- End Adsense -->

<!-- Post Featured Image -->
{% if page.image %}

{% if site.lazyimages == "enabled" %}
<img class="featured-image img-fluid lazyimg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII=" data-src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}" alt="{{ page.title }}">
<img class="featured-image img-fluid lazyimg"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII="
data-src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}"
alt="{{ page.title }}">
{% else %}
<img class="featured-image img-fluid" src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}" alt="{{ page.title }}">
<img class="featured-image img-fluid"
src="{% if page.image contains "://" %}{{ page.image }}{% else %}{{ site.baseurl }}/{{ page.image }}{% endif %}"
alt="{{ page.title }}">
{% endif %}

{% endif %}
Expand All @@ -65,13 +87,13 @@ <h1 class="posttitle">{{ page.title }}</h1>
<div class="article-post">
<!-- Toc if any -->
{% if page.toc %}
{% if page.beforetoc %}
<p><em>{{page.beforetoc}}</em></p>
{% endif %}
<div class="toc mt-4 mb-4 lead">
<h3 class="font-weight-bold">Summary</h3>
{% include toc.html html=content %}
</div>
{% if page.beforetoc %}
<p><em>{{page.beforetoc}}</em></p>
{% endif %}
<div class="toc mt-4 mb-4 lead">
<h3 class="font-weight-bold">Summary</h3>
{% include toc.html html=content %}
</div>
{% endif %}
<!-- End Toc -->
{{content}}
Expand All @@ -86,11 +108,13 @@ <h3 class="font-weight-bold">Summary</h3>

<!-- Post Date -->
<p>
<small>
<span class="post-date"><time class="post-date" datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time></span>
{% if page.last_modified_at %}
(Updated: <time datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="dateModified">{{ page.last_modified_at | date: "%b %-d, %Y" }}</time>)
{% endif %}
<small>
<span class="post-date"><time class="post-date"
datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time></span>
{% if page.last_modified_at %}
(Updated: <time datetime="{{ page.last_modified_at | date_to_xmlschema }}"
itemprop="dateModified">{{ page.last_modified_at | date: "%b %-d, %Y" }}</time>)
{% endif %}
</small>
</p>

Expand All @@ -100,7 +124,8 @@ <h3 class="font-weight-bold">Summary</h3>
{% assign sortedCategories = page.categories | sort %}
{% for category in sortedCategories %}
<li>
<a class="smoothscroll" href="{{site.baseurl}}/categories#{{ category | replace: " ","-" }}">{{ category }}</a>
<a class="smoothscroll"
href="{{site.baseurl}}/categories#{{ category | replace: " ","-" }}">{{ category }}</a>
</li>
{% endfor %}
</ul>
Expand All @@ -122,13 +147,15 @@ <h3 class="font-weight-bold">Summary</h3>

<!-- Prev/Next -->
<div class="row PageNavigation d-flex justify-content-between font-weight-bold">
{% if page.previous.url %}
<a class="prev d-block col-md-6" href="{{ site.baseurl }}/{{page.previous.url}}"> &laquo; {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="next d-block col-md-6 text-lg-right" href="{{ site.baseurl }}/{{page.next.url}}">{{page.next.title}} &raquo; </a>
{% endif %}
<div class="clearfix"></div>
{% if page.previous.url %}
<a class="prev d-block col-md-6" href="{{ site.baseurl }}/{{page.previous.url}}"> &laquo;
{{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="next d-block col-md-6 text-lg-right"
href="{{ site.baseurl }}/{{page.next.url}}">{{page.next.title}} &raquo; </a>
{% endif %}
<div class="clearfix"></div>
</div>
<!-- End Categories -->

Expand All @@ -143,13 +170,13 @@ <h3 class="font-weight-bold">Summary</h3>
<!-- Begin Comments
================================================== -->
{% if page.comments != false %}
<div class="container">
<div id="comments" class="row justify-content-center mb-5">
<div class="col-md-8">
{% include disqus.html %}
</div>
<div class="container">
<div id="comments" class="row justify-content-center mb-5">
<div class="col-md-8">
{% include disqus.html %}
</div>
</div>
</div>
{% endif %}
<!--End Comments
================================================== -->
Expand Down
4 changes: 2 additions & 2 deletions _posts/2018-01-11-customer-service.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Inception Movie"
author: john
author: david
categories: [ Jekyll, tutorial ]
tags: [red, yellow]
image: assets/images/11.jpg
Expand All @@ -21,7 +21,7 @@ It's actually really simple! Add the rating in your YAML front matter. It also s
---
layout: post
title: "Inception Movie"
author: john
author: david
categories: [ Jekyll, tutorial ]
tags: [red, yellow]
image: assets/images/11.jpg
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-11-quick-start-guide.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Let's test spoilers"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/12.jpg
featured: true
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-12-is-intelligence-enough.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "External Featured Image"
author: sal
author: david
categories: [ Jekyll, tutorial, web development ]
image: "https://images.unsplash.com/photo-1541544537156-7627a7a4aa1c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=a20c472bc23308e390c8ffae3dd90c60&auto=format&fit=crop&w=750&q=80"
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Never stopped worrying or loving the bomb"
author: sal
author: david
categories: [ Jekyll ]
image: assets/images/14.jpg
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Options for creating a new site with Jekyll"
author: john
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/13.jpg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-12-press-and-education.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Press and education"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/7.jpg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-12-red-riding.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Red Riding Hood"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/1.jpg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-12-tree-of-codes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Tree of Codes"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/9.jpg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-01-12-we-all-wait-for-summer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "We all wait for summer"
author: john
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/5.jpg
rating: .5
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-05-12-about-bundler.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "About Bundler"
author: sal
author: david
categories: [ Jekyll ]
image: assets/images/2.jpg
rating: 3
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-06-12-acumulated-experience.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Accumulated experience of social living"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/15.jpg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-06-12-education.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Education must also train one for quick, resolute and effective thinking."
author: john
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/3.jpg
beforetoc: "Markdown editor is a very powerful thing. In this article I'm going to show you what you can actually do with it, some tricks and tips while editing your post."
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-06-12-first-mass-produced.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "The first mass-produced book to deviate from a rectilinear format"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/17.jpg
---
Expand Down
2 changes: 1 addition & 1 deletion _posts/2018-06-12-powerful-things-markdown-editor.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: "Powerful things you can do with the Markdown editor"
author: sal
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/16.jpg
---
Expand Down
Loading