version 3.0 of the theme -- complete overhaul
This commit is contained in:
@ -5,6 +5,11 @@
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
</script>
|
||||
{% if page.video == true %}
|
||||
<link href="https://vjs.zencdn.net/4.12/video-js.css" rel="stylesheet">
|
||||
<script src="https://vjs.zencdn.net/4.12/video.js"></script>
|
||||
@ -13,6 +18,15 @@
|
||||
{% if page.datatable == true %}
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.5/css/jquery.dataTables.css">
|
||||
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.5/js/jquery.dataTables.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$('table.datatable').DataTable( {
|
||||
paging: false,
|
||||
stateSave: true
|
||||
}
|
||||
);
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
@ -24,24 +38,17 @@
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="container">
|
||||
<div class="col-lg-12"> </div>
|
||||
<div class="col-lg-12"> </div>
|
||||
|
||||
|
||||
|
||||
{% unless page.sidebar == "none" %}
|
||||
|
||||
{% include sidebar.html %}
|
||||
|
||||
{% endunless %}
|
||||
|
||||
<!-- Content Column -->
|
||||
<div class="col-md-9">
|
||||
|
||||
{{content}}
|
||||
</div><!-- /.row -->
|
||||
|
||||
<hr>
|
||||
|
||||
</div> <!-- /.container -->
|
||||
|
||||
</body>
|
||||
|
@ -2,24 +2,15 @@
|
||||
<html lang="en">
|
||||
<html>
|
||||
<head>
|
||||
{% include head.html %}
|
||||
{% include head_print.html %}
|
||||
|
||||
<link rel="stylesheet" href="{{ "/css/customstyles.css" | prepend:site.baseurl }}" type='text/css'>
|
||||
<link rel="stylesheet" type="text/css" href="css/customstyles.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/{{site.theme_file}}">
|
||||
<link rel="stylesheet" type="text/css" href="css/printstyles.css">
|
||||
|
||||
<link rel="stylesheet" href="{{ "/css/printstyles.css" | prepend:site.baseurl }}" type='text/css'>
|
||||
</head>
|
||||
|
||||
{% if site.audience == "fe" %}
|
||||
<link rel="stylesheet" href="{{ "/css/print-header-fe.css" | prepend:site.baseurl }}" type='text/css'>
|
||||
{% elsif site.audience == "customer" %}
|
||||
<link rel="stylesheet" href="{{ "/css/print-header-customer.css" | prepend:site.baseurl }}" type='text/css'>
|
||||
|
||||
{% elsif site.audience == "sales" %}
|
||||
<link rel="stylesheet" href="{{ "/css/print-header-sales.css" | prepend:site.baseurl }}" type='text/css'>
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
|
||||
<body class="print">
|
||||
<body class="{% if page.type == "title"%}title{% elsif page.type == "frontmatter" %}frontmatter{% elsif page.type == "first_page" %}first_page{% endif %} print">
|
||||
|
||||
<!-- Page Content -->
|
||||
<div class="container">
|
||||
@ -29,8 +20,6 @@
|
||||
{{content}}
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
</div> <!-- /.container -->
|
||||
|
||||
</body>
|
||||
|
@ -4,20 +4,34 @@ layout: default
|
||||
|
||||
<div class="post-header">
|
||||
<h1 class="post-title-main">{% if page.homepage == true %} {{site.homepage_title}} {% else %}{{ page.title }}{% endif %}</h1>
|
||||
{% include pagemetadata.html %}
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
<div class="post-content">
|
||||
|
||||
{% if page.summary %}
|
||||
<div class="summary">{{page.summary}}</div>
|
||||
{% endif %}
|
||||
{% include toc.html %}
|
||||
|
||||
{{content}}
|
||||
{% include linkrefs.html %}
|
||||
|
||||
{% include disqus.html %}
|
||||
<div class="tags">
|
||||
{% if page.tags != null %}
|
||||
<b>Tags: </b>
|
||||
{% include custom/conditions.html %}
|
||||
{% for tag in page.tags %}
|
||||
{% if projectTags contains tag %}
|
||||
<a href="{{site.project}}_tag-{{tag}}.html"><button type="button" class="btn btn-primary navbar-btn cursorNorm">{{page.tagName}}{{tag}}</button></a>{% unless forloop.last %}{% endunless%}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% include disqus.html %}
|
||||
|
||||
</div>
|
||||
|
||||
{{hr_shaded}}
|
||||
|
||||
<!-- Footer -->
|
||||
{% include footer.html %}
|
||||
{% include footer.html %}
|
@ -10,7 +10,6 @@ comments: true
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
{% include toc.html %}
|
||||
{% if page.summary %}
|
||||
<div class="summary">{{page.summary}}</div>
|
||||
{% endif %}
|
||||
|
@ -1,59 +0,0 @@
|
||||
---
|
||||
layout: default
|
||||
comments: true
|
||||
---
|
||||
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }} {% if page.author %} • by {{ page.author }} {% endif %} {% if page.tags %} • {{ page.tags | array_to_sentence_string }}{% endif %} {% if page.meta %} • {{ page.meta }}{% endif %}</p>
|
||||
|
||||
<div class="post-summary">{{page.excerpt}}</div>
|
||||
|
||||
|
||||
{% include {{site.includes_directory}}/toc.html %}
|
||||
|
||||
|
||||
{{ content }}
|
||||
|
||||
|
||||
{% include {{site.includes_directory}}/related_posts.html %}
|
||||
|
||||
|
||||
<div class="well well-sm">
|
||||
|
||||
<div class="nextPost">Next post: <a href="{{ page.next.url | prepend:site.baseurl }}">{{ page.next.title }}</a>.
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
{% if page.previous or page.next %}
|
||||
<div class="post-navs row">
|
||||
{% if page.previous %}
|
||||
<div class="col-md-6 post-nav">
|
||||
<h3 class="section-header">
|
||||
Older
|
||||
<span class="text-muted"> · </span>
|
||||
<a href="{{ "/blogarchive" | prepend:site.baseurl }}">View Archive ({{ site.posts.size }})</a>
|
||||
</h3>
|
||||
<h2 class="post-title-link"><a href="{{ page.previous.url | prepend:site.baseurl }}">{{ page.previous.title }}</a></h2>
|
||||
{{ page.previous.excerpt | markdownify }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.next %}
|
||||
<div class="col-md-6 post-nav">
|
||||
<h3 class="section-header">
|
||||
Newer
|
||||
{% unless page.previous %}
|
||||
<span class="text-muted"> · </span>
|
||||
<a href="{{ "/archive" | prepend:site.baseurl }}">View Archive ({{ site.posts.size }})</a>
|
||||
{% endunless %}
|
||||
</h3>
|
||||
<h2 class="post-title-link"><a href="{{ page.next.url | prepend:site.baseurl }}">{{ page.next.title }}</a></h2>
|
||||
{{ page.next.excerpt | markdownify }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<h3>Related posts</h3>
|
||||
{% include related_posts.html %}
|
||||
|
||||
{% if site.disqus %} {% include disqus.html %} {% endif %}
|
Reference in New Issue
Block a user