diff --git a/.gitignore b/.gitignore index d1d387a03..ede4ad0ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ _site* .sass-cache .jekyll-metadata +*backup/ diff --git a/Gemfile.lock b/Gemfile.lock index ba9295d8a..3bdf23f02 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,127 +1,195 @@ GEM remote: https://rubygems.org/ specs: - RedCloth (4.2.9) - activesupport (4.2.6) + activesupport (4.2.7) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - addressable (2.4.0) + addressable (2.5.0) + public_suffix (~> 2.0, >= 2.0.2) coffee-script (2.4.1) coffee-script-source execjs - coffee-script-source (1.10.0) - colorator (0.1) - ethon (0.8.1) + coffee-script-source (1.12.2) + colorator (1.1.0) + ethon (0.10.1) ffi (>= 1.3.0) - execjs (2.6.0) - faraday (0.9.2) + execjs (2.7.0) + faraday (0.11.0) multipart-post (>= 1.2, < 3) - ffi (1.9.10) + ffi (1.9.17) + forwardable-extended (2.6.0) gemoji (2.1.0) - github-pages (71) - RedCloth (= 4.2.9) - github-pages-health-check (= 1.1.0) - jekyll (= 3.0.3) + github-pages (117) + activesupport (= 4.2.7) + github-pages-health-check (= 1.3.0) + jekyll (= 3.3.1) + jekyll-avatar (= 0.4.2) jekyll-coffeescript (= 1.0.1) - jekyll-feed (= 0.5.1) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.8.0) jekyll-gist (= 1.4.0) - jekyll-github-metadata (= 1.11.0) - jekyll-mentions (= 1.1.2) + jekyll-github-metadata (= 2.3.1) + jekyll-mentions (= 1.2.0) + jekyll-optional-front-matter (= 0.1.2) jekyll-paginate (= 1.1.0) - jekyll-redirect-from (= 0.10.0) - jekyll-sass-converter (= 1.3.0) - jekyll-seo-tag (= 1.3.3) - jekyll-sitemap (= 0.10.0) - jekyll-textile-converter (= 0.1.0) - jemoji (= 0.6.2) - kramdown (= 1.10.0) + jekyll-readme-index (= 0.0.3) + jekyll-redirect-from (= 0.11.0) + jekyll-relative-links (= 0.2.1) + jekyll-sass-converter (= 1.5.0) + jekyll-seo-tag (= 2.1.0) + jekyll-sitemap (= 0.12.0) + jekyll-swiss (= 0.4.0) + jekyll-theme-architect (= 0.0.3) + jekyll-theme-cayman (= 0.0.3) + jekyll-theme-dinky (= 0.0.3) + jekyll-theme-hacker (= 0.0.3) + jekyll-theme-leap-day (= 0.0.3) + jekyll-theme-merlot (= 0.0.3) + jekyll-theme-midnight (= 0.0.3) + jekyll-theme-minimal (= 0.0.3) + jekyll-theme-modernist (= 0.0.3) + jekyll-theme-primer (= 0.1.7) + jekyll-theme-slate (= 0.0.3) + jekyll-theme-tactile (= 0.0.3) + jekyll-theme-time-machine (= 0.0.3) + jekyll-titles-from-headings (= 0.1.4) + jemoji (= 0.7.0) + kramdown (= 1.11.1) liquid (= 3.0.6) + listen (= 3.0.6) mercenary (~> 0.3) - rdiscount (= 2.1.8) - redcarpet (= 3.3.3) - rouge (= 1.10.1) + minima (= 2.0.0) + nokogiri (= 1.6.8.1) + rouge (= 1.11.1) terminal-table (~> 1.4) - github-pages-health-check (1.1.0) + github-pages-health-check (1.3.0) addressable (~> 2.3) net-dns (~> 0.8) octokit (~> 4.0) - public_suffix (~> 1.4) + public_suffix (~> 2.0) typhoeus (~> 0.7) - html-pipeline (2.4.0) - activesupport (>= 2, < 5) + html-pipeline (2.5.0) + activesupport (>= 2) nokogiri (>= 1.4) i18n (0.7.0) - jekyll (3.0.3) - colorator (~> 0.1) + jekyll (3.3.1) + addressable (~> 2.4) + colorator (~> 1.0) jekyll-sass-converter (~> 1.0) jekyll-watch (~> 1.1) kramdown (~> 1.3) liquid (~> 3.0) mercenary (~> 0.3.3) + pathutil (~> 0.9) rouge (~> 1.7) safe_yaml (~> 1.0) + jekyll-avatar (0.4.2) + jekyll (~> 3.0) jekyll-coffeescript (1.0.1) coffee-script (~> 2.2) - jekyll-feed (0.5.1) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.8.0) + jekyll (~> 3.3) jekyll-gist (1.4.0) octokit (~> 4.2) - jekyll-github-metadata (1.11.0) - octokit (~> 4.0) - jekyll-mentions (1.1.2) + jekyll-github-metadata (2.3.1) + jekyll (~> 3.1) + octokit (~> 4.0, != 4.4.0) + jekyll-mentions (1.2.0) + activesupport (~> 4.0) html-pipeline (~> 2.3) jekyll (~> 3.0) + jekyll-optional-front-matter (0.1.2) + jekyll (~> 3.0) jekyll-paginate (1.1.0) - jekyll-redirect-from (0.10.0) - jekyll (>= 2.0) - jekyll-sass-converter (1.3.0) - sass (~> 3.2) - jekyll-seo-tag (1.3.3) + jekyll-readme-index (0.0.3) jekyll (~> 3.0) - jekyll-sitemap (0.10.0) - jekyll-textile-converter (0.1.0) - RedCloth (~> 4.0) - jekyll-watch (1.3.1) - listen (~> 3.0) - jemoji (0.6.2) + jekyll-redirect-from (0.11.0) + jekyll (>= 2.0) + jekyll-relative-links (0.2.1) + jekyll (~> 3.3) + jekyll-sass-converter (1.5.0) + sass (~> 3.4) + jekyll-seo-tag (2.1.0) + jekyll (~> 3.3) + jekyll-sitemap (0.12.0) + jekyll (~> 3.3) + jekyll-swiss (0.4.0) + jekyll-theme-architect (0.0.3) + jekyll (~> 3.3) + jekyll-theme-cayman (0.0.3) + jekyll (~> 3.3) + jekyll-theme-dinky (0.0.3) + jekyll (~> 3.3) + jekyll-theme-hacker (0.0.3) + jekyll (~> 3.3) + jekyll-theme-leap-day (0.0.3) + jekyll (~> 3.3) + jekyll-theme-merlot (0.0.3) + jekyll (~> 3.3) + jekyll-theme-midnight (0.0.3) + jekyll (~> 3.3) + jekyll-theme-minimal (0.0.3) + jekyll (~> 3.3) + jekyll-theme-modernist (0.0.3) + jekyll (~> 3.3) + jekyll-theme-primer (0.1.7) + jekyll (~> 3.3) + jekyll-theme-slate (0.0.3) + jekyll (~> 3.3) + jekyll-theme-tactile (0.0.3) + jekyll (~> 3.3) + jekyll-theme-time-machine (0.0.3) + jekyll (~> 3.3) + jekyll-titles-from-headings (0.1.4) + jekyll (~> 3.3) + jekyll-watch (1.5.0) + listen (~> 3.0, < 3.1) + jemoji (0.7.0) + activesupport (~> 4.0) gemoji (~> 2.0) html-pipeline (~> 2.2) jekyll (>= 3.0) json (1.8.6) - kramdown (1.10.0) + kramdown (1.11.1) liquid (3.0.6) listen (3.0.6) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9.7) mercenary (0.3.6) - mini_portile2 (2.0.0) - minitest (5.4.3) + mini_portile2 (2.1.0) + minima (2.0.0) + minitest (5.10.1) multipart-post (2.0.0) net-dns (0.8.0) - nokogiri (1.6.7.2) - mini_portile2 (~> 2.0.0.rc2) - octokit (4.3.0) - sawyer (~> 0.7.0, >= 0.5.3) - public_suffix (1.5.3) - rb-fsevent (0.9.7) - rb-inotify (0.9.7) + nokogiri (1.6.8.1) + mini_portile2 (~> 2.1.0) + octokit (4.6.2) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.14.0) + forwardable-extended (~> 2.6) + public_suffix (2.0.5) + rb-fsevent (0.9.8) + rb-inotify (0.9.8) ffi (>= 0.5.0) - rdiscount (2.1.8) - redcarpet (3.3.3) - rouge (1.10.1) + rouge (1.11.1) safe_yaml (1.0.4) - sass (3.4.22) - sawyer (0.7.0) - addressable (>= 2.3.5, < 2.5) - faraday (~> 0.8, < 0.10) - terminal-table (1.5.2) + sass (3.4.23) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) + terminal-table (1.7.3) + unicode-display_width (~> 1.1.1) thread_safe (0.3.5) typhoeus (0.8.0) ethon (>= 0.8.0) tzinfo (1.2.2) thread_safe (~> 0.1) + unicode-display_width (1.1.3) PLATFORMS ruby @@ -130,4 +198,4 @@ DEPENDENCIES github-pages BUNDLED WITH - 1.11.2 + 1.13.7 diff --git a/README.md b/README.md index d64a2f058..78207f0cc 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ ## My Stack Problems -> This project forked and has been modified from [A simple grey theme for Jekyll](https://github.com/liamsymonds/simplygrey-jekyll), and the search posts using [Super Search](https://github.com/chinchang/super-search) +> This project forked and has been modified from [A simple grey theme for Jekyll](https://github.com/liamsymonds/simplygrey-jekyll), +> and the search posts using [Super Search](https://github.com/chinchang/super-search) ### Demo * [https://agusmakmun.github.io](https://agusmakmun.github.io) -#### Feature +#### Features * Sitemap and XML Feed * Paginations in homepage @@ -15,10 +16,10 @@ * Highlight pre * Next & Previous Post * Disqus comment -* Projects -* Project page +* Projects page & Detail Project page * Share on social media * Google analytics +* HTML Minify _(Compress HTML)_ using [Jekyll Compress HTML](https://github.com/penibelst/jekyll-compress-html) #### Screenshot diff --git a/_config.yml b/_config.yml index ba9ecd031..29c7dceae 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ title: Stack Problems 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. +about: I am freelance developer. Currently doing more in backend, focused in Python and Django. disqus_shortname: stackproblems google_analytics: UA-XXXXXXXX-Y @@ -17,14 +17,14 @@ collections: social: - icon: fa-facebook link: "#" - - icon: fa-skype - link: "#" - icon: fa-twitter link: "https://twitter.com/agusmakmun6" - icon: fa-linkedin - link: "#" + link: "https://www.linkedin.com/in/summonagus" - icon: fa-stack-exchange link: "#" + - icon: fa-github + link: "https://github.com/agusmakmun" share: twitter_username: agusmakmun6 @@ -33,10 +33,8 @@ share: urls: - text: About Me url: /about/ - - text: Projects + - text: My Projects url: /projects/ - - text: Github - url: https://github.com/agusmakmun - text: XML Feed url: /feed.xml @@ -48,4 +46,9 @@ paginate_path: "/page:num/" markdown: kramdown gems: - jekyll-paginate - - jekyll-gist \ No newline at end of file + - jekyll-gist + +compress_html: + clippings: all + comments: [""] + endings: all diff --git a/_includes/project_tags.html b/_includes/project_tags.html index de11b902b..5a5abc40d 100644 --- a/_includes/project_tags.html +++ b/_includes/project_tags.html @@ -1,25 +1,26 @@ -{% if site.enableTags == true %} +{% 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 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 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 %} + {% assign taglist = tags | split: '|' | sort %} + {% for tag in taglist %} + {{ tag }} + {% endfor %}
-{% endif %} \ No newline at end of file +{% endif %} diff --git a/_includes/share-page.html b/_includes/share-page.html index 9f623a64c..8c4198eb6 100644 --- a/_includes/share-page.html +++ b/_includes/share-page.html @@ -1,17 +1,18 @@
- Share this on →   - - - Tweet - + Share this on →   - -
- + + Tweet + - -
+ +
+ + + +
+
\ No newline at end of file +}(document, 'script', 'facebook-jssdk')); diff --git a/_layouts/compress.html b/_layouts/compress.html new file mode 100644 index 000000000..ffcc7c2da --- /dev/null +++ b/_layouts/compress.html @@ -0,0 +1,11 @@ +--- +# Jekyll layout that compresses HTML +# v3.0.2 +# http://jch.penibelst.de/ +# https://github.com/penibelst/jekyll-compress-html +# © 2014–2015 Anatol Broder +# MIT License +--- + +{% capture _LINE_FEED %} +{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "" %}{% endif %}{% unless _pre_before contains "" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " ;; ;" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %}
Step Bytes
raw {{ content | size }}{% if _profile_endings %}
endings {{ _profile_endings }}{% endif %}{% if _profile_startings %}
startings {{ _profile_startings }}{% endif %}{% if _profile_comments %}
comments {{ _profile_comments }}{% endif %}{% if _profile_collapse %}
collapse {{ _profile_collapse }}{% endif %}{% if _profile_clippings %}
clippings {{ _profile_clippings }}{% endif %}
{% endif %}{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index 4047fc438..18ee33bd1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,166 +1,169 @@ +--- +layout: compress +--- - - - - - - - {% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.author }}{% endif %} - - - - - - - - {% 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 %} - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- -

{{ site.author }}

- {% if site.about %} -
- {{ site.about }} -
- {% endif %} - - - - -
- - Navigation
-  » Home
- {% for i in site.urls %} -  » {{ i.text }}
- {% endfor %} -
+ + + + + + {% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site.author }}{% 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 %} + + + + + + + + + + + + + + + + + + + +
+
+
+ +

{{ site.author }}

+ {% if site.about %} +
+ {{ site.about }}
- -
- {{ content }} - -
- © {{ site.author }} - {% if site.github %} - - {{ site.github }} - Powered by Jekyll. - {% endif %} - -
- - -
-
-
-
- - - - - - - - - - + {% endif %} + + +
+ +
+ +
+
+ {{ content }} +
+ © {{ site.author }} + {% if site.github %} + - {{ site.github }} - Powered by Jekyll. + {% endif %} +
+ + +
+
+
+ +
+ + + + + + + + + + + diff --git a/_layouts/page.html b/_layouts/page.html index 100f176da..31e420c8f 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -2,14 +2,11 @@ layout: default ---
-

{{ page.title }}


-
{{ content }}
-
diff --git a/_layouts/post.html b/_layouts/post.html index 1cd9e101b..3f59b32da 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,45 +1,48 @@ --- layout: default --- -

{{ page.title }}

+
+

{{ page.title }}

+
+ {{ page.date | date_to_string }} {% if page.categories %} - + » {% for category in page.categories %}{{ category }}{% if forloop.last == false %}, {% endif %}{% endfor %} - + {% endif %}
-
{{ content }}
- {% include share-page.html %} +
{{ content }}
+ {% include share-page.html %}
{% assign hasSimilar = '' %} -{% for post in site.posts %} + {% for post in site.posts %} {% assign postHasSimilar = false %} - {% for tag in post.categories %} + {% for tag in post.categories %} {% for thisTag in page.categories %} - {% if postHasSimilar == false and hasSimilar.size < 6 and post != page and tag == thisTag %} - {% if hasSimilar.size == 0 %} -
-

Related Posts

-
    - {% endif %} + {% if postHasSimilar == false and hasSimilar.size < 6 and post != page and tag == thisTag %} + {% if hasSimilar.size == 0 %} +
    +

    Related Posts

    +
      + {% endif %}
    • - {{ post.title }} - {% if post.categories %} - (Categories: {% for category in post.categories %}{{ category }}{% if forloop.last == false %}, {% endif %}{% endfor %}) - {% endif %} + {{ post.title }} + {% if post.categories %} + (Categories: {% for category in post.categories %}{{ category }}{% if forloop.last == false %}, {% endif %}{% endfor %}) + {% endif %}
    • - {% capture hasSimilar %}{{ hasSimilar }}*{% endcapture %} - {% assign postHasSimilar = true %} - {% endif %} - {% endfor %} + {% capture hasSimilar %}{{ hasSimilar }}*{% endcapture %} + {% assign postHasSimilar = true %} + {% endif %} + {% endfor %} {% endfor %} -{% endfor %} -{% if hasSimilar.size > 0 %} -
    -
    + {% endfor %} + {% if hasSimilar.size > 0 %} +
+
{% endif %} -
-
- -
\ No newline at end of file + +
diff --git a/_layouts/posts_by_category.html b/_layouts/posts_by_category.html index 6268c20c4..70709a984 100644 --- a/_layouts/posts_by_category.html +++ b/_layouts/posts_by_category.html @@ -1,49 +1,49 @@ --- layout: default --- - -
-

Articles by category: {{ page.categories }}

+
+

Articles by category: {{ page.categories }}

-
-
- {% for category in site.categories %} - {% capture category_slug %}{{ category | first }}{% endcapture %} - {% for c_slug in category_slug %} - {% if c_slug == page.categories %} - - {% else %} - {{ c_slug }} - {% endif %} - {% endfor %} +
+
+ {% for category in site.categories %} + {% capture category_slug %}{{ category | first }}{% endcapture %} + {% for c_slug in category_slug %} + {% if c_slug == page.categories %} + + {% else %} + {{ c_slug }} + {% endif %} {% endfor %} -
+ {% endfor %} - {% if site.categories[page.categories] %} - {% for post in site.categories[page.categories] %} - {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} - {% if forloop.first %} -

{{ post_year }}

- {% endif %} - - {% if forloop.first == false %} - {% assign previous_index = forloop.index0 | minus: 1 %} - {% capture previous_post_year %}{{ site.categories[page.categories][previous_index].date | date: '%Y' }}{% endcapture %} - {% if post_year != previous_post_year %} -

{{ post_year }}

- {% endif %} - {% endif %} - - +
+ {% if site.categories[page.categories] %} + {% for post in site.categories[page.categories] %} + {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% if forloop.first %} +

{{ post_year }}

+
+ {% endif %} - {% if forloop.last %} -
- {% endif %} - {% endfor %} - {% else %} -

There are no posts in this categories.

- {% endif %} -
\ No newline at end of file + {% if forloop.first == false %} + {% assign previous_index = forloop.index0 | minus: 1 %} + {% capture previous_post_year %}{{ site.categories[page.categories][previous_index].date | date: '%Y' }}{% endcapture %} + {% if post_year != previous_post_year %} +
+

{{ post_year }}

+
+ {% endif %} + {% endif %} + + {% if forloop.last %} +
+ {% endif %} + {% endfor %} + {% else %} +

There are no posts in this categories.

+ {% endif %} +
diff --git a/_layouts/project.html b/_layouts/project.html index 9705b4377..30ab9fa8c 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -2,7 +2,6 @@ layout: default ---
-

{{ page.title }}


@@ -13,51 +12,55 @@

{{ page.title }}

{% assign p_array = "" | split:"|" %} {% for project in site.project %} - {% capture p_slug %}{{ project.url | split:"/" | last }},{{ project.url }}{% endcapture %} - {% assign p_slug_arr = p_slug | split:"," %} - {% assign p_array = p_array | push: p_slug_arr %} + {% capture p_slug %}{{ project.url | split:"/" | last }},{{ project.url }}{% endcapture %} + {% assign p_slug_arr = p_slug | split:"," %} + {% assign p_array = p_array | push: p_slug_arr %} {% endfor %}
- {% include project_tags.html %} - {% for i in site.data.projects %} -
-
- -
-
- {% assign p_url = nil %} - {% for pr in p_array %} - {% if pr contains i.slug %} - {% assign p_url = pr[1] %} - {% endif %} - {% endfor %} - {% if p_url == nil %}{% assign p_url = i.url %}{% endif %} - {% if p_url %}{% endif %} -

{{ i.name }}

- {% if p_url %}
{% endif %} -
-
- {% if i.tags %} - {% for j in i.tags %} - {{ j }} - {% endfor %} - {% endif %} -
- -
- -
-
-
+ {% include project_tags.html %} + + {% for i in site.data.projects %} +
+
+ +
+
+ {% assign p_url = nil %} + {% for pr in p_array %} + {% if pr contains i.slug %} + {% assign p_url = pr[1] %} + {% endif %} + {% endfor %} - {% endfor %} + {% if p_url == nil %}{% assign p_url = i.url %}{% endif %} + {% if p_url %} + + {% endif %} +

{{ i.name }}

+ {% if p_url %} +
+ {% endif %} + +
+
+ {% if i.tags %} + {% for j in i.tags %} + {{ j }} + {% endfor %} + {% endif %} +
+
+ +
+
+
+ {% endfor %}
-
diff --git a/_layouts/project_single.html b/_layouts/project_single.html index 760be8b7a..0733d332d 100644 --- a/_layouts/project_single.html +++ b/_layouts/project_single.html @@ -2,30 +2,27 @@ layout: default ---
-

{{ page.title }}

{% for project in site.data.projects %} - {% if project.slug == page.slug %} - {{ project.date }} » - {% for tag in project.tags %} - {{ tag }} - {% endfor %} - {% endif %} + {% if project.slug == page.slug %} + {{ project.date }} » + {% for tag in project.tags %} + {{ tag }} + {% endfor %} + {% endif %} {% endfor %}
{% for project in site.data.projects %} - {% if project.slug == page.slug %} - - {{ page.title }} - - {% endif %} + {% if project.slug == page.slug %} + + {{ page.title }} + + {% endif %} {% endfor %}
- {{ content }}
-
diff --git a/about.md b/about.md index 3cfa0c93c..1b21e0724 100644 --- a/about.md +++ b/about.md @@ -4,6 +4,6 @@ title: About permalink: /about/ --- -I am freelance developer. Currently doing more in backend, actually in Python and Django. +I am freelance developer. Currently doing more in backend, focused in Python and Django. -email: agus[at]python.web.id \ No newline at end of file +email: agus[at]python.web.id diff --git a/index.html b/index.html index 78476a693..b2ea0c846 100644 --- a/index.html +++ b/index.html @@ -3,21 +3,20 @@ ---
-

Stack Problems

-
-
    +

    {{ site.title }}

    +
    + +
      {% for post in paginator.posts %}
    1. {{ post.title }} » {{ post.date | date_to_string }}
    2. {% endfor %} -
    +
- - {% if paginator.total_pages > 1 %} + + {% if paginator.total_pages > 1 %}
    {% if paginator.previous_page %} -
  • - « -
  • +
  • «
  • {% else %}
  • {% endif %} @@ -26,27 +25,21 @@

    Stack Problems

    {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} -
  • - {{ page }}(current) -
  • +
  • {{ page }}(current)
  • {% elsif page == 1 %}
  • {{ page }}
  • {% else %} -
  • - {{ page }} -
  • +
  • {{ page }}
  • {% endif %} {% endfor %}
  • Last
  • {% if paginator.next_page %} -
  • - » -
  • +
  • »
  • {% else %}
  • »
  • {% endif %}
- {% endif %} + {% endif %}
diff --git a/projects.md b/projects.md index 7a64cdda2..75817468e 100644 --- a/projects.md +++ b/projects.md @@ -4,4 +4,4 @@ title: Projects permalink: /projects/ --- -Few of my projects. Currently doing more in backend, actually in Python and Django. \ No newline at end of file +Few of my projects. Currently doing more in backend, focused in Python and Django. diff --git a/static/css/main.css b/static/css/main.css old mode 100755 new mode 100644 index 1aabaf46c..0687301db --- a/static/css/main.css +++ b/static/css/main.css @@ -1,219 +1,172 @@ -/** - * Master styling - */ body { - font-family: "Roboto Condensed", Arial, sans-serif; - background-color: #fff; - font-size: 16px; - line-height: 1.5em; - color: #666; - font-weight: 300; + font-family: "Roboto Condensed", Arial, sans-serif; + background: url("/static/img/subtle_dots.png"); + line-height: 1.5em; + font-weight: 300; + font-size: 16px; + color: #666; } hr { - margin-top: 20px; - margin-bottom: 20px; - border: 0; - border-top: 1px solid #F7F1F1; - border-bottom: 1px solid #fff; + margin-top: 20px; + margin-bottom: 20px; + border: 0; + border-top: 1px solid #F7F1F1; + border-bottom: 1px solid #fff; } - -/** - * Font and link declarations - */ span.time, span.categories { - color: #ADADAD; - margin-bottom: 5px; - font-size: 11px; + color: #ADADAD; + margin-bottom: 5px; + font-size: 11px; } - -h1 { - font-weight: normal; - color: #696969; - margin-bottom: 10px; - font-size: 25px; +h1, h2, h3 { + color: #696969; + font-weight: normal; } - -h2 { - font-weight: normal; - margin-bottom: 5px; - color: #666666; +h1 { + margin-bottom: 10px; + font-size: 25px; } - -h3 { - font-weight: normal; - margin-bottom: 5px; - color: #666666; +h2, h3 { + margin-bottom: 5px; } - a, a:link, a:active { - text-decoration: none; - color: #8C8C8C; + text-decoration: none; + color: #3fa757; } - a:hover { - color: #B3B3B3; - text-decoration: underline; + color: #B3B3B3; + text-decoration: underline; } -/** - * ///////////////// - * Container element - * ///////////////// - */ -div#container { - width: 700px; - margin: auto; +/* Layout */ +.main-layout { + background: #fff; } - -/** - * ////////////////////////////////// - * Right aka content column formatting - * ////////////////////////////////// - */ -div.right { - width: 500px; - float: left; -} - -div.content { - border-top: 1px solid #E6E6E6; - margin-top: 5px; - padding-top: 5px; +.sidebar-nav { + margin: 0; + padding: 0; +} +.sidebar-nav li { + margin: 0; + list-style: none; +} +.sidebar-nav li::before { + content: "»"; + margin-right: .5em; } +/* Content */ div.content pre { - background: #333333; - padding: 10px; - color: #FFF; - overflow-x: auto; - font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; - font-size: 12px; - border: none; + background: #333333; + padding: 10px; + color: #FFF; + overflow-x: auto; + font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; + font-size: 12px; + border: none; } - div.content .highlight { background: #333333; } - footer { - border-top: 1px solid #F7F1F1; - width: 100%; - height: 10px; - margin-top: 10px; - margin-bottom: 3em; - padding-top: 10px; - color: #C2C2C2; - font-size: 11px; - bottom: 0; - padding-bottom: 10px; -} - -footer div#github { - text-align: right; -} - -div.right h1 { - margin-bottom: -2px; -} - -div.right ul { - list-style: none; - margin-left: 0; - padding: 0; -} - -div.right ul li { - margin-top: 5px; - margin-left: 0; - padding: 0; -} - -div.right .post ul { - list-style: square; - margin-left: 15px; -} - -/** - * Left column aka nav bar formatting - */ + border-top: 1px solid #F7F1F1; + width: 100%; + height: 10px; + margin-top: 10px; + margin-bottom: 3em; + padding-top: 10px; + color: #C2C2C2; + font-size: 11px; + bottom: 0; + padding-bottom: 10px; +} + +/* Left column */ div.col-sm-3 { - margin-top: 100px; - font-size: 11px; - color: #666; + margin-top: 100px; + font-size: 11px; + color: #666; } - div.col-sm-3 strong { - font-size: 16px; - color: #4A4A4A; - font-weight: normal; + font-size: 16px; + color: #4A4A4A; + font-weight: normal; } - -div.col-sm-3 div#about { - margin-top: 10px; - color: #8C8C8C; +div.col-sm-3 div.profile-about { + margin-top: 10px; + color: #8C8C8C; } - -div.col-sm-3 img#about { - -webkit-border-radius: 150px; - margin-bottom: 10px; - margin-left: auto; - margin-right: auto; +div.col-sm-3 img.profile-avatar { + border-radius: 150px; + -webkit-border-radius: 150px; + -moz-border-radius: 150px; + -ms-border-radius: 150px; + -o-border-radius: 150px; + margin-left: auto; + margin-right: auto; } +/* Pagination */ .PageNavigation { - font-size: 14px; - display: block; - width: auto; - overflow: hidden; + font-size: 14px; + display: block; + width: auto; + overflow: hidden; } - .PageNavigation a { - display: block; - width: 50%; - float: left; - margin: 1em 0; + display: block; + width: 50%; + float: left; + margin: 1em 0; } - .PageNavigation .next { - text-align: right; + text-align: right; } .PageNavigation .prev { - text-align: left; + text-align: left; } +/* Social Icons */ .social{ - display: block; - margin: 10px 0; + display: block; + margin: 10px 0; } .social ul { - list-style-type: none; - margin: 0; - padding: 0; + list-style-type: none; + margin: 0; + padding: 0; } .social ul li { - display: inline-block; - margin: 0 5px; + display: inline-block; + margin: 0 5px; } .social li a { - font-size: 16px; + font-size: 16px; + color: #969394; +} +.social li a:hover { + color: #6D6D6D; } .share-page { - padding: 10px 10px 5px; - border-top: 1px solid #f0f0f0; - border-bottom: 1px solid #f0f0f0; + padding: 10px 10px 5px; + border-top: 1px solid #f0f0f0; + border-bottom: 1px solid #f0f0f0; +} +.post-content img, +.content img { + max-width: 100% } -.post-content img, .content img {max-width: 100%} /* Responsive Conditional */ @media (min-width: 1024px) { - .fixed-condition { - position: fixed; - max-width: 255px; - } + .fixed-condition { + position: fixed; + max-width: 255px; + } } @media (max-width: 768px) { - div.col-sm-3 { - margin-top: 30px; - } -} \ No newline at end of file + div.col-sm-3 { + margin-top: 30px; + } +} diff --git a/static/css/projects.css b/static/css/projects.css index f0d8ba29b..a355db8ab 100644 --- a/static/css/projects.css +++ b/static/css/projects.css @@ -1,72 +1,80 @@ -/* - * Project Elements -*/ +/* Project Elements */ .project-outer { - display: inline-block; - width: 30%; - vertical-align: top; - margin: 0 10px; + display: inline-block; + width: 30%; + vertical-align: top; + margin: 0 10px; } .project-img img { - width: 100%; + width: 100%; } h3.project-headlines { - margin: 5px 0; - font-size: 20px; + margin: 5px 0; + font-size: 20px; } + span.tags { - font-size: 10px; - border-bottom: 1px #888 dotted; - margin: 0 5px; + font-size: 10px; + border-bottom: 1px #888 dotted; + margin: 0 5px; +} +span.tags:first-child { + margin-left: 0; +} +span.tags:last-child { + margin-right: 0; } -span.tags:first-child{ margin-left: 0; } -span.tags:last-child{ margin-right: 0; } - .project-footer { - clear: both; - display: inline-block; - width: 100%; + clear: both; + display: inline-block; + width: 100%; } .project-footer .project-link { - display: inline-block; - position: relative; - float: left; - text-decoration: none; + display: inline-block; + position: relative; + float: left; + text-decoration: none; } .project-footer .project-timeline { - display: inline-block; - position: relative; - float: right; - font-size: 13px; - font-style: italic; + display: inline-block; + position: relative; + float: right; + font-size: 13px; + font-style: italic; } .project-inner > a { - display: block; + display: block; } .project-img { - width: 230px; - height: 200px; - display: block; - background-size: cover; - background-repeat: no-repeat; - background-position: center center; + width: 230px; + height: 200px; + display: block; + background-size: cover; + background-repeat: no-repeat; + background-position: center center; } + /** Project Tag Filters **/ -.tag-group{ - margin: 0 0 25px 0; +.tag-group { + margin: 0 0 25px 0; } span.tag-cloud { - margin: 0 2px; - cursor: pointer; - font-size: 75%; - padding: .2em .6em .3em; - font-weight: 700; - display: inline; + margin: 0 2px; + cursor: pointer; + font-size: 75%; + padding: .2em .6em .3em; + font-weight: 700; + display: inline; } -.tag-cloud.active{ - background: #ccc; +.tag-cloud.active { + background: #ccc; +} +.project-item.not-show { + display: none; +} +a.project-detail:hover { + text-decoration: none; +} +a.project-detail:hover h3 { + color: #62A253; } -.project-item.not-show{ display: none; } - -a.project-detail:hover {text-decoration: none;} -a.project-detail:hover h3 {color: #62A253;} \ No newline at end of file diff --git a/static/css/super-search.css b/static/css/super-search.css index a08def83c..f0f7b391d 100644 --- a/static/css/super-search.css +++ b/static/css/super-search.css @@ -4,37 +4,37 @@ */ input#js-search__input { - font-size: 12px; - font-family: "Roboto Condensed", Arial, sans-serif; + font-size: 12px; + font-family: "Roboto Condensed", Arial, sans-serif; } .is-active .search__input { - transform: translateY(0); + transform: translateY(0); } .search__results { - list-style: none; - padding: 0; - overflow-x: hidden; - height: calc(100% - 110px); - transition: 0.2s ease; + list-style: none; + padding: 0; + overflow-x: hidden; + height: calc(100% - 110px); + transition: 0.2s ease; } .search__results.is-hidden { - opacity: 0; - transform: translateY(-1vh); - display: none; + opacity: 0; + transform: translateY(-1vh); + display: none; } .search__results > li { - border-top: 1px solid #f0f0f0; + border-top: 1px solid #f0f0f0; } .search__results > li > a { - display: block; - padding: 10px; + display: block; + padding: 10px; } .search__result-date { - color: #BBB; - position: absolute; - right: 12px; + color: #BBB; + position: absolute; + right: 12px; } .search.is-active { - opacity: 1; - visibility: visible; -} \ No newline at end of file + opacity: 1; + visibility: visible; +} diff --git a/static/img/screenshot-post-page.png.png b/static/img/screenshot-post-page.png.png new file mode 100644 index 000000000..932be6278 Binary files /dev/null and b/static/img/screenshot-post-page.png.png differ diff --git a/static/img/screenshot-post-page.png b/static/img/screenshot-post-page_old.png similarity index 100% rename from static/img/screenshot-post-page.png rename to static/img/screenshot-post-page_old.png diff --git a/static/img/subtle_dots.png b/static/img/subtle_dots.png new file mode 100644 index 000000000..2118921bd Binary files /dev/null and b/static/img/subtle_dots.png differ