Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 6 files changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 06, 2012
@mbrochh mbrochh Added better Google Analytics Snippet
Added Flattr Support
40f0b0a
View
9 README.rst
@@ -1,3 +1,12 @@
+About this fork
+###############
+
+I am keeping this fork in order to maintain some slight changes to the
+notmyidea theme. I will make sure to keep the master branch in sync with
+the original master branch and rebase often into this branch. If anyone knows
+a better solution for maintaining a few changes, please let me know.
+
+
Pelican
=======
View
9 pelican/themes/notmyidea/static/css/main.css
@@ -429,3 +429,12 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
#add-comment input[type='submit'] {float: right; margin: 0 .5em;}
#add-comment * {margin-bottom: .5em;}
+
+
+/********/
+/* MISC */
+/********/
+#socialButtons {
+ margin-bottom: 1em;
+}
+
View
14 pelican/themes/notmyidea/templates/analytics.html
@@ -1,12 +1,16 @@
{% if GOOGLE_ANALYTICS %}
- <script type="text/javascript">
+<script type="text/javascript">
+
var _gaq = _gaq || [];
- _gaq.push(['_setAccount', '{{GOOGLE_ANALYTICS}}']);
+ _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
_gaq.push(['_trackPageview']);
+ _gaq.push(['_gat._anonymizeIp']);
+
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
- </script>
-{% endif %}
+
+</script>
+{% endif %}
View
3 pelican/themes/notmyidea/templates/base.html
@@ -21,6 +21,8 @@
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]-->
+ {% include "analytics.html" %}
+ {% include "flattr.js.html" %}
</head>
<body id="index" class="home">
@@ -79,7 +81,6 @@
<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 -->
-{% include 'analytics.html' %}
{% include 'piwik.html' %}
{% include 'disqus_script.html' %}
</body>
View
9 pelican/themes/notmyidea/templates/flattr.html
@@ -0,0 +1,9 @@
+{% if FLATTR %}
+ <a class="FlattrButton" style="display:none;"
+ title="{{ article.title }}"
+ data-flattr-uid="mbrochh"
+ data-flattr-tags="{% if article.tags %}{% for tag in article.tags %}{{ tag }}, {% endfor %}{% endif %}"
+ data-flattr-category="text"
+ href="{{ SITE_URL }}/{{ article.url }}">
+ </a>
+{% endif %}
View
12 pelican/themes/notmyidea/templates/flattr.js.html
@@ -0,0 +1,12 @@
+{% if FLATTR %}
+ <script type="text/javascript">
+ /* <![CDATA[ */
+ (function() {
+ var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
+ s.type = 'text/javascript';
+ s.async = true;
+ s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto&button=compact';
+ t.parentNode.insertBefore(s, t);
+ })();
+ /* ]]> */</script>
+{% endif %}

No commit comments for this range

Something went wrong with that request. Please try again.