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