Permalink
Browse files

Blog set up

  • Loading branch information...
1 parent 2a25c1d commit 9bfac65cf2d15ad6ff28d0151590bdff1a1aff08 R. Saravanan committed Oct 9, 2012
View
@@ -0,0 +1,3 @@
+.DS_Store
+*~
+*.pyc
View
@@ -0,0 +1,77 @@
+PELICAN=pelican
+PELICANOPTS=
+
+BASEDIR=$(PWD)
+INPUTDIR=$(BASEDIR)/content
+OUTPUTDIR=$(BASEDIR)/blog
+CONFFILE=$(BASEDIR)/blogconf.py
+PUBLISHCONF=$(BASEDIR)/blogconf.py
+
+FTP_HOST=localhost
+FTP_USER=anonymous
+FTP_TARGET_DIR=/
+
+SSH_HOST=localhost
+SSH_PORT=22
+SSH_USER=root
+SSH_TARGET_DIR=/var/www
+
+DROPBOX_DIR=~/Dropbox/Public/
+
+help:
+ @echo 'Makefile for a pelican Web site '
+ @echo ' '
+ @echo 'Usage: '
+ @echo ' make html (re)generate the web site '
+ @echo ' make clean remove the generated files '
+ @echo ' make regenerate regenerate files upon modification '
+ @echo ' make publish generate using production settings '
+ @echo ' make serve serve site at http://localhost:8000'
+ @echo ' make devserver start/restart develop_server.sh '
+ @echo ' ssh_upload upload the web site via SSH '
+ @echo ' rsync_upload upload the web site via rsync+ssh '
+ @echo ' dropbox_upload upload the web site via Dropbox '
+ @echo ' ftp_upload upload the web site via FTP '
+ @echo ' git_upload upload the web site via Github pages'
+ @echo ' '
+
+
+html: clean $(OUTPUTDIR)/index.html
+ @echo 'Done'
+
+$(OUTPUTDIR)/%.html:
+ $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
+
+clean:
+ find $(OUTPUTDIR) -mindepth 1 -delete
+
+regenerate: clean
+ $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
+
+serve:
+ cd $(OUTPUTDIR) && python -m SimpleHTTPServer
+
+devserver:
+ $(BASEDIR)/develop_server.sh restart
+
+publish:
+ $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
+
+ssh_upload: publish
+ scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
+
+rsync_upload: publish
+ rsync -e "ssh -p $(SSH_PORT)" -P -rvz --delete $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
+
+dropbox_upload: publish
+ cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
+
+ftp_upload: publish
+ lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"
+
+git_upload: publish
+ git add $(OUTPUTDIR)
+ git commit -a -m "Publishing $(PKGNAME) at `date`"
+ git push origin master
+
+.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload github
View
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <title>code.mindmeldr.com</title>
+ <title>code.mindmeldr.com/blog</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
- <link href="http://code.mindmeldr.com/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="code.mindmeldr.com Atom Feed" />
+ <link href="http://code.mindmeldr.com/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="code.mindmeldr.com/blog Atom Feed" />
@@ -24,46 +24,33 @@
<body id="index" class="home">
<header id="banner" class="body">
- <h1><a href=".">code.mindmeldr.com </a></h1>
+ <h1><a href=".">code.mindmeldr.com/blog </a></h1>
<nav><ul>
+ <li><a href="./pages/about.html">about</a></li>
- <li ><a href="./category/content.html">content</a></li>
+
+ <li ><a href="./category/general.html">general</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
-<h1>Archives for code.mindmeldr.com</h1>
+<h1>Archives for code.mindmeldr.com/blog</h1>
<dl>
- <dt>Fri 05 October 2012</dt>
- <dd><a href="./first-post.html">First Post</a></dd>
+ <dt>Oct 06, 2012</dt>
+ <dd><a href="./posts/2012/10/06/title/">Title</a></dd>
</dl>
</section>
<section id="extras" class="body">
- <div class="blogroll">
- <h2>blogroll</h2>
- <ul>
-
- <li><a href="http://docs.notmyidea.org/alexis/pelican/">Pelican</a></li>
-
- <li><a href="http://python.org">Python.org</a></li>
-
- <li><a href="http://jinja.pocoo.org">Jinja2</a></li>
-
- <li><a href="#">You can modify those links in your config file</a></li>
-
- </ul>
- </div><!-- /.blogroll -->
-
<div class="social">
<h2>social</h2>
@@ -72,9 +59,9 @@ <h2>social</h2>
- <li><a href="#">You can add links in your config file</a></li>
+ <li><a href="http://github.com/mitotic">GitHub</a></li>
- <li><a href="#">Another social link</a></li>
+ <li><a href="http://twitter.com/rsarava">Twitter</a></li>
</ul>
</div><!-- /.social -->
@@ -90,10 +77,20 @@ <h2>social</h2>
</footer><!-- /#contentinfo -->
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-35342722-1");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
+
<script type="text/javascript">
- var disqus_shortname = 'mindcoder';
+ var disqus_shortname = 'codemindmeldr';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
View
@@ -0,0 +1,138 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>code.mindmeldr.com/blog - Saravanan</title>
+ <meta charset="utf-8" />
+ <link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
+
+ <link href="http://code.mindmeldr.com/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="code.mindmeldr.com/blog Atom Feed" />
+
+
+
+ <!--[if IE]>
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+
+ <!--[if lte IE 7]>
+ <link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
+ <script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
+
+ <!--[if lt IE 7]>
+ <link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
+
+</head>
+
+<body id="index" class="home">
+
+ <header id="banner" class="body">
+ <h1><a href="../.">code.mindmeldr.com/blog </a></h1>
+ <nav><ul>
+
+
+
+ <li><a href=".././pages/about.html">about</a></li>
+
+
+
+ <li ><a href=".././category/general.html">general</a></li>
+
+ </ul></nav>
+ </header><!-- /#banner -->
+
+
+
+
+
+
+ <aside id="featured" class="body">
+ <article>
+ <h1 class="entry-title"><a href=".././posts/2012/10/06/title/">Title</a></h1>
+ <footer class="post-info">
+ <abbr class="published" title="2012-10-06T09:03:14">
+ Oct 06, 2012
+ </abbr>
+
+
+ <address class="vcard author">
+ By <a class="url fn" href=".././author/saravanan.html">Saravanan</a>
+ </address>
+
+<p>In <a href=".././category/general.html">general</a>. </p>
+
+
+
+</footer><!-- /.post-info --><p>First post</p>
+<p>There are <a href=".././posts/2012/10/06/title/#disqus_thread">comments</a>.</p>
+ </article>
+
+
+<p class="paginator">
+
+ Page 1 / 1
+
+</p>
+
+
+ </aside><!-- /#featured -->
+
+
+
+
+ </ol><!-- /#posts-list -->
+
+ </section><!-- /#content -->
+
+
+
+
+ <section id="extras" class="body">
+
+
+ <div class="social">
+ <h2>social</h2>
+ <ul>
+ <li><a href="http://code.mindmeldr.com/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate">atom feed</a></li>
+
+
+
+ <li><a href="http://github.com/mitotic">GitHub</a></li>
+
+ <li><a href="http://twitter.com/rsarava">Twitter</a></li>
+
+ </ul>
+ </div><!-- /.social -->
+
+ </section><!-- /#extras -->
+
+ <footer id="contentinfo" class="body">
+ <address id="about" class="vcard body">
+ Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
+ </address><!-- /#about -->
+
+ <p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
+ </footer><!-- /#contentinfo -->
+
+
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-35342722-1");
+ pageTracker._trackPageview();
+ } catch(err) {}</script>
+
+
+
+<script type="text/javascript">
+ var disqus_shortname = 'codemindmeldr';
+ (function () {
+ var s = document.createElement('script'); s.async = true;
+ s.type = 'text/javascript';
+ s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
+ }());
+</script>
+
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 9bfac65

Please sign in to comment.