1
0
mirror of https://github.com/arsenetar/arsenetar.github.io.git synced 2026-03-16 10:31:38 +00:00

Update blog style templates and configuration.

This commit is contained in:
2014-01-07 18:36:14 -05:00
parent 0d1a8bee77
commit d2fcf71162
21 changed files with 487 additions and 221 deletions

21
_includes/disqus.html Normal file
View File

@@ -0,0 +1,21 @@
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>

View File

@@ -4,5 +4,20 @@
</div>
</div>
<script src="{{ site.url }}/assets/js/app-concat.js"></script>
{% if site.ga %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.ga.code }}', '{{ site.ga.domain }}');
ga('send', 'pageview');
</script>
{% endif %}
{% if page.comments %}
{% include disqus.html %}
{% endif %}
</body>
</html>
</html>

View File

@@ -24,11 +24,6 @@
<!-- Modernizr -->
<script src="{{ site.url }}/assets/js/modernizr.js"></script>
<!-- Capture a header image -->
{% if page.feature or site.feature %}
{% capture feature %}{% if page.feature %}{{ page.feature }}{% else %}{{ site.feature }}{% endif %}{% endcapture %}
{% unless feature.url contains 'http://' or feature.url contains 'https://' %}{% capture feature %}{{ site.url }}/images/{{ feature.url }}{% endcapture %}{% endunless %}
{% endif %}
</head>
<body>
<div class="contain-to-grid">
@@ -43,7 +38,15 @@
<section class="top-bar-section">
<!-- Left Nav Section -->
<ul class="left">
<li><a href="{{ site.url }}/About/">About</a></li>
{% for item in site.data.menu %}
<li><a href="
{% if item.link contains 'http' %}
{{ item.link }}
{% else %}
{{ site.url }}{{ item.link }}
{% endif %}
">{{ item.name }}</a></li>
{% endfor %}
</ul>
<!-- Right Nav Section -->
@@ -59,4 +62,5 @@
</ul>
</section>
</nav>
</div>
</div>