diff --git a/README.md b/README.md index 18e9f82..d64a2f0 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ * Highlight pre * Next & Previous Post * Disqus comment +* Projects +* Project page +* Share on social media +* Google analytics #### Screenshot diff --git a/_config.yml b/_config.yml index 5b34234..4a52f44 100644 --- a/_config.yml +++ b/_config.yml @@ -3,16 +3,49 @@ 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 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 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..2113f35 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -12,6 +12,69 @@ + + + {% 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 +86,12 @@ + + + + + {% include analytics.html %} @@ -37,7 +105,8 @@ {% endif %} -
+ {% include social_links.html %} +