mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-16 23:07:05 +01:00
Adding pdf generation capabilities
This commit is contained in:
19
_layouts/default_print.html
Normal file
19
_layouts/default_print.html
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html>
|
||||
<head>
|
||||
{% include head_print.html %}
|
||||
</head>
|
||||
|
||||
<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">
|
||||
<!-- Content Column -->
|
||||
<div class="col-md-9">
|
||||
{{content}}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</body>
|
||||
</html>
|
18
_layouts/page_print.html
Normal file
18
_layouts/page_print.html
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: default_print
|
||||
comments: false
|
||||
---
|
||||
|
||||
|
||||
|
||||
<div class="post-header">
|
||||
<h1 class="post-title-main" id="{{page.permalink | replace: '/', '' }}">{{ page.excerpt }}</h1>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
{% if page.summary %}
|
||||
<div class="summary">{{page.summary}}</div>
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
</div>
|
@ -14,6 +14,11 @@ layout: default
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
|
||||
<script type="text/javascript" async
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
|
||||
</script>
|
||||
|
||||
|
||||
<div id="main" role="main">
|
||||
{% include sidebar.html %}
|
||||
|
||||
|
Reference in New Issue
Block a user