i
This commit is contained in:
26
docs/_layouts/center.html
Normal file
26
docs/_layouts/center.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% include head.html %}
|
||||
<body class="site{% if site.animated %} animated fade-in-down{% endif %}">
|
||||
{% if site.google_tag_manager %}
|
||||
<noscript><iframe src="//www.googletagmanager.com/ns.html?id={{ site.google_tag_manager }}"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{{ site.google_tag_manager }}');</script>
|
||||
{% endif %}
|
||||
<div class="site-wrap center">
|
||||
{% include header.html %}
|
||||
|
||||
<div class="post p2 p-responsive wrap" role="main">
|
||||
<div class="measure">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
</body>
|
||||
</html>
|
||||
40
docs/_layouts/default.html
Normal file
40
docs/_layouts/default.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% include head.html %}
|
||||
<body class="site{% if site.animated %} animated fade-in-down{% endif %}">
|
||||
{% if site.google_tag_manager %}
|
||||
|
||||
<noscript><iframe src="//www.googletagmanager.com/ns.html?id={{ site.google_tag_manager }}"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{{ site.google_tag_manager }}');</script>
|
||||
|
||||
{% endif %}
|
||||
{% if site.facebook_comments %}
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId={{ site.facebook_appid }}";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
{% endif %}
|
||||
|
||||
<div class="site-wrap">
|
||||
{% include header.html %}
|
||||
|
||||
<div class="post p2 p-responsive wrap" role="main">
|
||||
<div class="measure">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
docs/_layouts/page.html
Normal file
11
docs/_layouts/page.html
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<div class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="h2">{{ page.title }}</h1>
|
||||
</header>
|
||||
<article class="post-content">
|
||||
{{ content }}
|
||||
</article>
|
||||
</div>
|
||||
71
docs/_layouts/post.html
Normal file
71
docs/_layouts/post.html
Normal file
@@ -0,0 +1,71 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% assign minutes = content | strip_html | number_of_words | divided_by: 180 %}
|
||||
{% if minutes == 0 %}
|
||||
{% assign minutes = 1 %}
|
||||
{% endif %}
|
||||
|
||||
<div class="post-header mb2">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<span class="post-meta">{{ page.date | date: site.date_format }}</span><br>
|
||||
{% if page.update_date %}
|
||||
<span class="post-meta">{{ site.text.post.updated }}: {{ page.update_date | date: site.date_format }}</span><br>
|
||||
{% endif %}
|
||||
<span class="post-meta small">
|
||||
{% if page.minutes %}
|
||||
{{ page.minutes }} {{ site.text.post.minute_read }}
|
||||
{% else %}
|
||||
{{ minutes }} {{ site.text.post.minute_read }}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<article class="post-content">
|
||||
{{ content }}
|
||||
</article>
|
||||
|
||||
{% if site.show_sharing_icons %}
|
||||
{% include share_buttons.html %}
|
||||
{% endif %}
|
||||
|
||||
{% if site.show_post_footers %}
|
||||
{% include post_footer.html %}
|
||||
{% endif %}
|
||||
|
||||
{% if txtpen.txtpen_sitename %}
|
||||
<script src="https://txtpen.com/embed.js?site={{txtpen.txtpen_sitename}}" />
|
||||
{% endif %}
|
||||
|
||||
{% if site.disqus_shortname %}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ site.disqus_shortname }}';
|
||||
var disqus_identifier = '{{ page.id }}';
|
||||
var disqus_title = {{ page.title | jsonify }};
|
||||
|
||||
(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);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
{% endif %}
|
||||
|
||||
{% if site.facebook_comments %}
|
||||
<div class="fb-comments" data-href="{{ site.url }}{{ page.url }}" data-width="100%" data-numposts="{{ site.facebook_comments_number }}"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if site.show_related_posts %}
|
||||
<h3 class="related-post-title">{{ site.text.post.related_posts }}</h3>
|
||||
{% for post in site.related_posts %}
|
||||
<div class="post ml2">
|
||||
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
|
||||
<h4 class="post-title">{{ post.title }}</h4>
|
||||
<p class="post-summary">{{ post.summary }}</p>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user