Skip to content

U/dagaspar/add first entry #176

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 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dgaspard.com
27 changes: 26 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
Expand All @@ -13,6 +19,10 @@ GEM
ffi (1.10.0)
ffi (1.10.0-x64-mingw32)
forwardable-extended (2.6.0)
gemoji (3.0.1)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -42,16 +52,26 @@ GEM
jekyll (~> 3.3)
jekyll-watch (2.1.2)
listen (~> 3.0)
jemoji (0.12.0)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (1.17.0)
liquid (4.0.1)
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.6)
minitest (5.14.4)
nokogiri (1.11.3-arm64-darwin)
racc (~> 1.4)
nokogiri (1.11.3-x86_64-darwin)
racc (~> 1.4)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
racc (1.5.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
Expand All @@ -63,6 +83,10 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
thread_safe (0.3.6)
tzinfo (1.2.9)
thread_safe (~> 0.1)
zeitwerk (2.4.2)

PLATFORMS
ruby
Expand All @@ -74,8 +98,9 @@ DEPENDENCIES
jekyll-paginate
jekyll-seo-tag
jekyll-sitemap
jemoji
kramdown
rouge

BUNDLED WITH
2.0.1
2.2.15
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# Mediumish - Jekyll Theme
# David Gaspard Blog Site

[Live Demo](https://wowthemesnet.github.io/mediumish-theme-jekyll/) &nbsp; | &nbsp; [Download](https://github.com/wowthemesnet/mediumish-theme-jekyll/archive/master.zip) &nbsp; | &nbsp; [Documentation](https://bootstrapstarter.com/bootstrap-templates/template-mediumish-bootstrap-jekyll/) &nbsp; | &nbsp; [Buy me a coffee](https://www.wowthemes.net/donate/)
My blog/resume website where I'll be hosting many tutorials

![mediumish](assets/images/mediumish-jekyll-template.png)


### Copyright

Copyright (C) 2019 Sal, https://www.wowthemes.net

**Mediumish for Jekyll** is designed and developed by [Sal](https://www.wowthemes.net) and it is *free* under MIT license.

<a href="https://www.wowthemes.net/donate/" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>

### Contribute

1. [Fork the repo](https://github.com/wowthemesnet/mediumish-theme-jekyll).
2. Clone a copy of your fork on your local
3. Create a branch off of master and give it a meaningful name (e.g. my-new-mediumish-feature).
4. Make necessary changes, commit, push and open a pull request on GitHub.

Thank you!
To run localy, run `bundle exec jekyll serve`
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&amp;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&amp;id=8c3d2d214b'
include: ["_pages"]
permalink: /:title/
baseurl: "" # 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
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: post
title: "Inception Movie"
author: john
hidden: true
author: david
categories: [ Jekyll, tutorial ]
tags: [red, yellow]
image: assets/images/11.jpg
description: "My review of Inception movie. Acting, plot and something else in this short description."
featured: true
hidden: true
rating: 4.5
---
Expand All @@ -21,7 +21,8 @@ It's actually really simple! Add the rating in your YAML front matter. It also s
---
layout: post
title: "Inception Movie"
author: john
hidden: true
author: david
categories: [ Jekyll, tutorial ]
tags: [red, yellow]
image: assets/images/11.jpg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: post
title: "Let's test spoilers"
author: sal
hidden: true
author: david
categories: [ Jekyll, tutorial ]
image: assets/images/12.jpg
featured: true
Expand Down
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
Loading