From a8616702791469f5ea559804b361d98952dc8611 Mon Sep 17 00:00:00 2001 From: Ashutosh <216.ashutosh@gmail.com> Date: Wed, 8 Jun 2016 19:48:18 +0530 Subject: [PATCH 1/4] added gems --- _config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 5b34234..1a55c28 100644 --- a/_config.yml +++ b/_config.yml @@ -15,4 +15,7 @@ baseurl: "" paginate: 20 per_page: 20 paginate_path: "/page:num/" -markdown: kramdown \ No newline at end of file +markdown: kramdown +gems: + - jekyll-paginate + - jekyll-gist \ No newline at end of file From 8176e8ffd21ea78597355b1d2379c5e7d245735f Mon Sep 17 00:00:00 2001 From: Ashutosh <216.ashutosh@gmail.com> Date: Wed, 8 Jun 2016 20:10:04 +0530 Subject: [PATCH 2/4] added project,social share,google analytics --- _config.yml | 30 ++++++ _data/projects.json | 31 ++++++ _includes/analytics.html | 10 ++ _includes/project_tags.html | 25 +++++ _includes/share-page.html | 20 ++++ _includes/social_links.html | 7 ++ _layouts/default.html | 69 +++++++++++++ _layouts/post.html | 3 +- _layouts/project.html | 63 ++++++++++++ _layouts/project_single.html | 15 +++ _project/cool-project.md | 5 + projects.md | 7 ++ static/css/projects.css | 71 ++++++++++++++ static/css/thickbox.css | 163 +++++++++++++++++++++++++++++++ static/img/loadingAnimation.gif | Bin 0 -> 5886 bytes static/img/macFFBgHack.png | Bin 0 -> 207 bytes static/js/projects.js | 41 ++++++++ static/js/thickbox-compressed.js | 10 ++ static/projects/placeholder.jpg | Bin 0 -> 139227 bytes 19 files changed, 569 insertions(+), 1 deletion(-) create mode 100644 _data/projects.json create mode 100644 _includes/analytics.html create mode 100644 _includes/project_tags.html create mode 100644 _includes/share-page.html create mode 100644 _includes/social_links.html create mode 100644 _layouts/project.html create mode 100644 _layouts/project_single.html create mode 100644 _project/cool-project.md create mode 100644 projects.md create mode 100644 static/css/projects.css create mode 100644 static/css/thickbox.css create mode 100644 static/img/loadingAnimation.gif create mode 100644 static/img/macFFBgHack.png create mode 100644 static/js/projects.js create mode 100644 static/js/thickbox-compressed.js create mode 100644 static/projects/placeholder.jpg diff --git a/_config.yml b/_config.yml index 1a55c28..4a52f44 100644 --- a/_config.yml +++ b/_config.yml @@ -3,13 +3,43 @@ description: My Personal Stack Problems author: Agus Makmun github: https://github.com/agusmakmun about: I am freelance developer. Currently doing more in backend, actually in Python and Django. +disqus_shortname: aboutashu +google_analytics: UA-XXXXXXXX-Y + +enableTags: true +tagarray: [] + +collections: + project: + output: true + permalink: /project/:path/ + +social: + - icon: fa-facebook + link: "#" + - icon: fa-skype + link: "#" + - icon: fa-twitter + link: "#" + - icon: fa-linkedin + link: "#" + - icon: fa-stack-exchange + link: "#" + +share: + twitter_username: 216ashutosh + fb_appid: 0000000000000 + urls: - text: About Me url: /about/ + - text: Projects + url: /projects/ - text: Github url: https://github.com/agusmakmun - text: XML Feed url: /feed.xml + url: "https://agusmakmun.github.io" baseurl: "" paginate: 20 diff --git a/_data/projects.json b/_data/projects.json new file mode 100644 index 0000000..c52980c --- /dev/null +++ b/_data/projects.json @@ -0,0 +1,31 @@ +[ + { + "slug": "cool-project", + "name": "Cool project 1", + "image": "placeholder.jpg", + "url": "#", + "date": "Jan 2014", + "tags": ["Angular JS","API"] + }, + { + "name": "Cool project 2", + "image": "placeholder.jpg", + "url": "#", + "date": "May 2014", + "tags": ["Android","PHP"] + }, + { + "name": "Cool project 3", + "image": "placeholder.jpg", + "url": "#", + "date": "June 2014", + "tags": ["HTML","JQuery","PHP"] + }, + { + "name": "Cool project 4", + "image": "placeholder.jpg", + "date": "Oct 2016", + "tags": ["Android","nodejs"] + } + +] \ No newline at end of file diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..bb6b281 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/_includes/project_tags.html b/_includes/project_tags.html new file mode 100644 index 0000000..de11b90 --- /dev/null +++ b/_includes/project_tags.html @@ -0,0 +1,25 @@ +{% if site.enableTags == true %} +
+ All + {% assign tagarray = site.tagarray %} + {% for project in site.data.projects %} + {% for tag in project.tags %} + {% assign tagarray = tagarray | push: tag %} + {% endfor %} + {% endfor %} + + {% assign tags = tagarray[1] %} + {% for item in tagarray %} + {% assign tagDown = item | downcase %} + {% assign tagComp = tags | downcase %} + {% unless tagComp contains tagDown %} + {% capture tags %}{{ tags }}|{{ item }}{% endcapture %} + {% endunless %} + {% endfor %} + + {% assign taglist = tags | split: '|' | sort %} + {% for tag in taglist %} + {{ tag }} + {% endfor %} +
+{% endif %} \ No newline at end of file diff --git a/_includes/share-page.html b/_includes/share-page.html new file mode 100644 index 0000000..53355c7 --- /dev/null +++ b/_includes/share-page.html @@ -0,0 +1,20 @@ +
+ Share this on → + Tweet + + + +
+ + + +
+
+
+ \ No newline at end of file diff --git a/_includes/social_links.html b/_includes/social_links.html new file mode 100644 index 0000000..a8aa9af --- /dev/null +++ b/_includes/social_links.html @@ -0,0 +1,7 @@ +
+ +
\ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 1a1287c..cfa8c7e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -12,6 +12,67 @@ + + + {% if page.title %} + + {% else %} + + {% endif %} + {% if page.title %} + + {% else %} + + {% endif %} + {% if page.description %} + + {% else %} + + {% endif %} + {% if page.url %} + + {% endif %} + {% if page.date %} + + + {% endif %} + {% if page.image %} + + {% else %} + + {% endif %} + {% if page.categories %} + {% for category in page.categories limit:1 %} + + {% endfor %} + {% endif %} + {% if page.tags %} + {% for tag in page.tags %} + + {% endfor %} + {% endif %} + + + + + {% if page.title %} + + {% else %} + + {% endif %} + {% if page.url %} + + {% endif %} + {% if page.description %} + + {% else %} + + {% endif %} + {% if page.header-img %} + + {% endif %} + + @@ -23,7 +84,12 @@ + + + + + {% include analytics.html %} @@ -72,7 +138,10 @@ ================================================== --> + + + diff --git a/_layouts/post.html b/_layouts/post.html index 7644718..1cd9e10 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -11,6 +11,7 @@ layout: default
{{ content }}
+ {% include share-page.html %}
{% assign hasSimilar = '' %} @@ -56,7 +57,7 @@ layout: default