diff --git a/_config.yml b/_config.yml index 06e30b87..17c0362c 100644 --- a/_config.yml +++ b/_config.yml @@ -5,20 +5,46 @@ # For technical reasons, this file is *NOT* reloaded automatically when you use # 'jekyll serve'. If you change this file, please restart the server process. -# Site settings -locale : en_US -title : Your awesome title -description : "Write an awesome description for your new site here." -url : "" # the base hostname & protocol for your site -baseurl : "" # the subpath of your site, e.g. /blog -email : your-email@domain.com +# Site Settings +locale : en_US +title : "Your awesome site" +name : &name "Your Name" +title_separator : "-" +description : &description "Write an awesome description for your new site here." +url : "http://localhost:4000" # the base hostname & protocol for your site +baseurl : "/test" # the subpath of your site, e.g. /blog +email : "your-email@domain.com" +logo : "site-logo.png" +twitter: + username : &twitter "site_twitter" +facebook: + username : &facebook "site_facebook" + app_id : + publisher : +disqus_shortname : "mmistakes-dev" # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- +google_site_verification : +bing_site_verification : +alexa_site_verification : +yandex_site_verification : +google_analytics : # Universal Analytics tracking ID +google_ad_client : +google_ad_slot : -# Handling Reading -safe : false -include : +# For specifying social profiles. +# https://developers.google.com/structured-data/customize/social-profiles +social: + type : # Person or Organization (defaults to Person) + name : # If the user or organization name differs from the site's name + links: # An array of links to social media profiles + - "https://twitter.com/site_twitter" + - "https://facebook.com/site_facebook" + +# Reading Files +safe: false +include: - .htaccess - _pages -exclude : +exclude: - "*.sublime-project" - "*.sublime-workspace" - .asset-cache @@ -52,6 +78,29 @@ lsi: false excerpt_separator: "\n\n" incremental: false +# Markdown Processing +kramdown: + input: GFM + hard_wrap: false + auto_ids: true + footnote_nr: 1 + entity_output: as_char + toc_levels: 1..6 + smart_quotes: lsquo,rsquo,ldquo,rdquo + enable_coderay: false + +# Defaults +defaults: + + # _posts + - scope: + path: "" + type: posts + values: + layout: post + comments: true + share: true + # Plugins gems: - jekyll-paginate @@ -63,37 +112,26 @@ permalink: /:categories/:title/ paginate_path: /page:num timezone: America/New_York # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones -# Markdown Processors -kramdown: - input: GFM - hard_wrap: false - auto_ids: rue - footnote_nr: 1 - entity_output: as_char - toc_levels: 1..6 - smart_quotes: lsquo,rsquo,ldquo,rdquo - enable_coderay: false +# HTML Compression +# http://jch.penibelst.de/ +compress_html: + clippings: all + ignore: + envs: development -# Site owner -owner: - name : Your Name - avatar : bio-photo.jpg - bio : "Describe your self." - email : - disqus-shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- - bing-verify : +# Site Author +author: + name : *name + avatar : "bio-photo.jpg" + bio : *description + email : *email codepen : dribbble : flickr : - facebook : + facebook : *facebook foursquare : github : - google : - plus : - analytics : - verify : - ad-client : - ad-slot : + google_plus : instagram : lastfm : linkedin : @@ -102,7 +140,7 @@ owner: stackoverflow : # http://stackoverflow.com/users/123456/username steam : tumblr : - twitter : + twitter : *twitter weibo : xing : youtube : diff --git a/_data/authors.yml b/_data/authors.yml index d49d88bf..108118c4 100644 --- a/_data/authors.yml +++ b/_data/authors.yml @@ -1,20 +1,18 @@ # Authors billy_rick: - name: Billy Rick - web: http://thewhip.com - email: billy@rick.com - bio: "What do you want, jewels? I am a very extravagant man." - avatar: bio-photo-2.jpg - twitter: extravagantman - google: - plus: BillyRick + name : "Billy Rick" + web : "http://thewhip.com" + email : "billy@rick.com" + bio : "What do you want, jewels? I am a very extravagant man." + avatar : "bio-photo-2.jpg" + twitter : "extravagantman" + google_plus : "BillyRick" cornelius_fiddlebone: - name: Cornelius Fiddlebone - email: cornelius@thewhip.com - bio: "I ordered what?" - avatar: bio-photo.jpg - twitter: rhymeswithsackit - google: - plus: CorneliusFiddlebone \ No newline at end of file + name : "Cornelius Fiddlebone" + email : "cornelius@thewhip.com" + bio : "I ordered what?" + avatar : "bio-photo.jpg" + twitter : "rhymeswithsackit" + google_plus : "CorneliusFiddlebone" \ No newline at end of file diff --git a/_includes/_author-bio.html b/_includes/_author-bio.html deleted file mode 100644 index 7fd24e34..00000000 --- a/_includes/_author-bio.html +++ /dev/null @@ -1,35 +0,0 @@ -{% if page.author %} - {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %} -{% endif %} - -
- -{% if author.avatar contains 'http' %} - {{ author.name }} bio photo -{% else %} - {{ author.name }} bio photo -{% endif %} - -

{{ author.name }}

-

{{ author.bio }}

- {% if author.email %} Email{% endif %} - {% if author.twitter %} Twitter{% endif %} - {% if author.facebook %} Facebook{% endif %} - {% if author.google.plus %} Google+{% endif %} - {% if author.linkedin %} LinkedIn{% endif %} - {% if author.xing %} XING{% endif %} - {% if author.instagram %} Instagram{% endif %} - {% if author.tumblr %} Tumblr{% endif %} - {% if author.github %} Github{% endif %} - {% if author.stackoverflow %} Stackoverflow{% endif %} - {% if author.lastfm %} Last.fm{% endif %} - {% if author.dribbble %} Dribbble{% endif %} - {% if author.pinterest %} Pinterest{% endif %} - {% if author.foursquare %} Foursquare{% endif %} - {% if author.steam %} Steam{% endif %} - {% if author.youtube %} Youtube{% endif %} - {% if author.soundcloud %} Soundcloud{% endif %} - {% if author.weibo %} Weibo{% endif %} - {% if author.flickr %} Flickr{% endif %} - {% if author.codepen %} CodePen{% endif %} -
diff --git a/_includes/_disqus_comments.html b/_includes/_disqus_comments.html deleted file mode 100644 index 12e8fefb..00000000 --- a/_includes/_disqus_comments.html +++ /dev/null @@ -1,22 +0,0 @@ -{% if site.owner.disqus-shortname %} - - -{% endif %} diff --git a/_includes/_feed-footer.html b/_includes/_feed-footer.html deleted file mode 100644 index 02a94f6a..00000000 --- a/_includes/_feed-footer.html +++ /dev/null @@ -1 +0,0 @@ -<p><a href="{{ site.url }}{{ post.url }}">{{ post.title | xml_escape }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site.url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p> \ No newline at end of file diff --git a/_includes/_head.html b/_includes/_head.html deleted file mode 100644 index d8d07542..00000000 --- a/_includes/_head.html +++ /dev/null @@ -1,52 +0,0 @@ - -{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }} -{% if page.excerpt %}{% endif %} - -{% if page.author %} - {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %} -{% endif %} - -{% include _open-graph.html %} - -{% if site.owner.google.verify %} -{% endif %} -{% if site.owner.bing-verify %}{% endif %} - -{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/_includes/_open-graph.html b/_includes/_open-graph.html deleted file mode 100644 index 2e1db2cf..00000000 --- a/_includes/_open-graph.html +++ /dev/null @@ -1,24 +0,0 @@ - - -{% if page.excerpt %}{% endif %} -{% if site.owner.twitter %}{% endif %} -{% if author.twitter %}{% endif %} -{% if page.image.feature %} - - -{% else %} - - -{% endif %} - - - - -{% if page.excerpt %}{% endif %} - - -{% if page.image.feature %} - -{% else %} - -{% endif %} \ No newline at end of file diff --git a/_includes/_scripts.html b/_includes/_scripts.html deleted file mode 100644 index 42d75b3e..00000000 --- a/_includes/_scripts.html +++ /dev/null @@ -1,23 +0,0 @@ - - - -{% if site.owner.google.analytics %} - - -{% endif %} -{% if page.comments %} - {% include _disqus_comments.html %} -{% endif %} diff --git a/_includes/_social-share.html b/_includes/_social-share.html deleted file mode 100644 index 3c68277c..00000000 --- a/_includes/_social-share.html +++ /dev/null @@ -1,14 +0,0 @@ -
-

Share on

- -
\ No newline at end of file diff --git a/_includes/absolute-url.liquid b/_includes/absolute-url.liquid new file mode 100644 index 00000000..7809e996 --- /dev/null +++ b/_includes/absolute-url.liquid @@ -0,0 +1 @@ +{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %} \ No newline at end of file diff --git a/_includes/author-profile.html b/_includes/author-profile.html new file mode 100644 index 00000000..4c9cff8a --- /dev/null +++ b/_includes/author-profile.html @@ -0,0 +1,75 @@ +{% if page.author %} + {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.author %} +{% endif %} + +
+ + {% if author.avatar contains "http" %} + {{ author.name }} photo + {% else %} + {{ author.name }} photo + {% endif %} + +

{{ author.name }}

+ {% if author.bio %}

{{ author.bio }}

{% endif %} + {% if author.email %} + Email + {% endif %} + {% if author.twitter %} + Twitter + {% endif %} + {% if author.facebook %} + Facebook + {% endif %} + {% if author.google_plus %} + Google+ + {% endif %} + {% if author.linkedin %} + LinkedIn + {% endif %} + {% if author.xing %} + XING + {% endif %} + {% if author.instagram %} + Instagram + {% endif %} + {% if author.tumblr %} + Tumblr + {% endif %} + {% if author.github %} + Github + {% endif %} + {% if author.stackoverflow %} + Stackoverflow + {% endif %} + {% if author.lastfm %} + Last.fm + {% endif %} + {% if author.dribbble %} + Dribbble + {% endif %} + {% if author.pinterest %} + Pinterest + {% endif %} + {% if author.foursquare %} + Foursquare + {% endif %} + {% if author.steam %} + Steam + {% endif %} + {% if author.youtube %} + Youtube + {% endif %} + {% if author.soundcloud %} + Soundcloud + {% endif %} + {% if author.weibo %} + Weibo + {% endif %} + {% if author.flickr %} + Flickr + {% endif %} + {% if author.codepen %} + CodePen + {% endif %} +
diff --git a/_includes/_browser-upgrade.html b/_includes/browser-upgrade.html similarity index 100% rename from _includes/_browser-upgrade.html rename to _includes/browser-upgrade.html diff --git a/_includes/disqus-comments.html b/_includes/disqus-comments.html new file mode 100644 index 00000000..721316a1 --- /dev/null +++ b/_includes/disqus-comments.html @@ -0,0 +1,22 @@ +{% if site.disqus_shortname %} + + +{% endif %} diff --git a/_includes/feed-footer.html b/_includes/feed-footer.html new file mode 100644 index 00000000..59faf918 --- /dev/null +++ b/_includes/feed-footer.html @@ -0,0 +1,4 @@ +{% capture feed_footer %} +

{{ post.title }} was originally published by {{ site.owner.name }} on {{ site.title }}

+{% endcapture %} +{{ feed_footer | markdownify | xml_escape }} \ No newline at end of file diff --git a/_includes/_footer.html b/_includes/footer.html similarity index 54% rename from _includes/_footer.html rename to _includes/footer.html index 90d904df..4bb814e4 100644 --- a/_includes/_footer.html +++ b/_includes/footer.html @@ -1,7 +1,7 @@ {% if site.owner.google.ad-client and site.owner.google.ad-slot %}