Repos / hi.imnhan.com / 16724fb782
commit 16724fb7829c6cbeab8b26a4dd359fe02f7b787c
Author: nhanb <nhan@nerdyweekly.com>
Date:   Sat Apr 23 10:27:43 2016 +0700

    update proper ARTICLE_PATHS, remove cruft
    
    Limit article parsing to `posts/` only, effectively prevents pelican
    from parsing static stuff from `extras/` (it previously tried to do so
    which eventually failed to copy the *.html static files altogether)
    
    Also remove unnecessary PLUGIN_PATH and cal.html.

diff --git a/content/extra/cal.html b/content/extra/cal.html
deleted file mode 100644
index 9eacd24..0000000
--- a/content/extra/cal.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<style type="text/css">
-
-iframe {
-    width: 100%;
-    height: 95%;
-}
-
-</style>
-
-<iframe src="https://www.google.com/calendar/embed?title=Nhan's%20Calendar&amp;mode=WEEK&amp;height=600&amp;wkst=2&amp;bgcolor=%23FFFFFF&amp;src=6sa929h4a1h7o000g28f5eaq4c%40group.calendar.google.com&amp;color=%23875509&amp;src=thanhnhan483%40gmail.com&amp;color=%232952A3&amp;src=hei267e0fnqprtcla140cdu46o%40group.calendar.google.com&amp;color=%2328754E&amp;src=8eo4ra1qfujf31niqa3bdnoaro%40group.calendar.google.com&amp;color=%23711616&amp;ctz=Asia%2FSaigon" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>
diff --git a/content/bypass-rmit-domain-blocker-to-watch-hdviet.md b/content/posts/bypass-rmit-domain-blocker-to-watch-hdviet.md
similarity index 100%
rename from content/bypass-rmit-domain-blocker-to-watch-hdviet.md
rename to content/posts/bypass-rmit-domain-blocker-to-watch-hdviet.md
diff --git a/content/fix-rmit-wifi-issue-with-ubuntu-13-04.md b/content/posts/fix-rmit-wifi-issue-with-ubuntu-13-04.md
similarity index 100%
rename from content/fix-rmit-wifi-issue-with-ubuntu-13-04.md
rename to content/posts/fix-rmit-wifi-issue-with-ubuntu-13-04.md
diff --git a/content/have-you-built-anything-cool-.md b/content/posts/have-you-built-anything-cool-.md
similarity index 100%
rename from content/have-you-built-anything-cool-.md
rename to content/posts/have-you-built-anything-cool-.md
diff --git a/content/how-to-install-pyqt5-on-virtualenv-on-ubuntu-14.04.md b/content/posts/how-to-install-pyqt5-on-virtualenv-on-ubuntu-14.04.md
similarity index 100%
rename from content/how-to-install-pyqt5-on-virtualenv-on-ubuntu-14.04.md
rename to content/posts/how-to-install-pyqt5-on-virtualenv-on-ubuntu-14.04.md
diff --git a/content/i-did-not-sign-that-stupid-petition.md b/content/posts/i-did-not-sign-that-stupid-petition.md
similarity index 100%
rename from content/i-did-not-sign-that-stupid-petition.md
rename to content/posts/i-did-not-sign-that-stupid-petition.md
diff --git a/content/ibus-is-dead-to-me-use-fcitx-instead.md b/content/posts/ibus-is-dead-to-me-use-fcitx-instead.md
similarity index 100%
rename from content/ibus-is-dead-to-me-use-fcitx-instead.md
rename to content/posts/ibus-is-dead-to-me-use-fcitx-instead.md
diff --git a/content/installing-programs-in-ubuntu.md b/content/posts/installing-programs-in-ubuntu.md
similarity index 100%
rename from content/installing-programs-in-ubuntu.md
rename to content/posts/installing-programs-in-ubuntu.md
diff --git a/content/introducing-pytaku.md b/content/posts/introducing-pytaku.md
similarity index 100%
rename from content/introducing-pytaku.md
rename to content/posts/introducing-pytaku.md
diff --git a/content/italic-text-in-vim-tmux-gnome-terminal.md b/content/posts/italic-text-in-vim-tmux-gnome-terminal.md
similarity index 100%
rename from content/italic-text-in-vim-tmux-gnome-terminal.md
rename to content/posts/italic-text-in-vim-tmux-gnome-terminal.md
diff --git a/content/look-ma-no-stock-theme.md b/content/posts/look-ma-no-stock-theme.md
similarity index 100%
rename from content/look-ma-no-stock-theme.md
rename to content/posts/look-ma-no-stock-theme.md
diff --git a/content/modern-vim-plugin-management-pathogen-vs-vundle.md b/content/posts/modern-vim-plugin-management-pathogen-vs-vundle.md
similarity index 100%
rename from content/modern-vim-plugin-management-pathogen-vs-vundle.md
rename to content/posts/modern-vim-plugin-management-pathogen-vs-vundle.md
diff --git a/content/modern-vim-plugin-management-pathogen-vs-vundle_vi.md b/content/posts/modern-vim-plugin-management-pathogen-vs-vundle_vi.md
similarity index 100%
rename from content/modern-vim-plugin-management-pathogen-vs-vundle_vi.md
rename to content/posts/modern-vim-plugin-management-pathogen-vs-vundle_vi.md
diff --git a/content/my-first-diy-fightstick-2.md b/content/posts/my-first-diy-fightstick-2.md
similarity index 100%
rename from content/my-first-diy-fightstick-2.md
rename to content/posts/my-first-diy-fightstick-2.md
diff --git a/content/my-first-diy-fightstick.md b/content/posts/my-first-diy-fightstick.md
similarity index 100%
rename from content/my-first-diy-fightstick.md
rename to content/posts/my-first-diy-fightstick.md
diff --git a/content/set-up-node-webkit-development-environment.md b/content/posts/set-up-node-webkit-development-environment.md
similarity index 100%
rename from content/set-up-node-webkit-development-environment.md
rename to content/posts/set-up-node-webkit-development-environment.md
diff --git a/content/virtualenvwrapper-with-python2-python3.md b/content/posts/virtualenvwrapper-with-python2-python3.md
similarity index 100%
rename from content/virtualenvwrapper-with-python2-python3.md
rename to content/posts/virtualenvwrapper-with-python2-python3.md
diff --git a/content/what-i-did-after-installing-manjaro.md b/content/posts/what-i-did-after-installing-manjaro.md
similarity index 100%
rename from content/what-i-did-after-installing-manjaro.md
rename to content/posts/what-i-did-after-installing-manjaro.md
diff --git a/content/why-i-use-linux-automation.md b/content/posts/why-i-use-linux-automation.md
similarity index 100%
rename from content/why-i-use-linux-automation.md
rename to content/posts/why-i-use-linux-automation.md
diff --git a/pelicanconf.py b/pelicanconf.py
index a063325..ed7ad91 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -26,17 +26,18 @@
     'extra/README.markdown': {'path': 'README.markdown'},
     'extra/favicon.ico': {'path': 'favicon.ico'},
     'extra/favicon.png': {'path': 'favicon.png'},
-    'extra/cal.html': {'path': 'calendar/index.html'},
     'extra/404.html': {'path': '404.html'},
     'extra/google3f40dbd543a603fa.html':
     {'path': 'google3f40dbd543a603fa.html'}
 }
 
+ARTICLE_PATHS = ['posts']
 ARTICLE_URL = 'posts/{slug}/'
 ARTICLE_SAVE_AS = 'posts/{slug}/index.html'
 ARTICLE_LANG_URL = 'posts/{slug}-{lang}/'
 ARTICLE_LANG_SAVE_AS = 'posts/{slug}-{lang}/index.html'
 
+PAGE_PATHS = ['pages']
 PAGE_URL = ('pages/{slug}/')
 PAGE_SAVE_AS = ('pages/{slug}/index.html')
 PAGE_LANG_URL = ('pages/{slug}-{lang}/')
@@ -62,7 +63,6 @@
     ('Blog', '/'),
 )
 
-PLUGIN_PATH = '/home/nhanb/open-source/pelican-plugins'
 PLUGINS = ['minify']
 
 MINIFY = {