mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
Show the blog image with the content as well as in the hero
- @tungfa Requested the blog post default image be shown along with the content. Not just as the hero image. - Updated the post layout file. We can’t pass along a translated title, so we need to output the <title> as set in each individual blog post.
This commit is contained in:
parent
fb7c34de88
commit
71d43e17a5
1 changed files with 81 additions and 31 deletions
|
@ -1,15 +1,34 @@
|
||||||
---
|
<!doctype html>
|
||||||
layout: default
|
<html>
|
||||||
---
|
<head>
|
||||||
|
{% include base.html %}
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>{% if page.title %}{{ page.title }} — {% endif %}Dash</title>
|
||||||
|
<meta name="description" content="{% t page.description %}">
|
||||||
|
|
||||||
{% include hero/post.html %}
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
|
|
||||||
<div class="page page--post">
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon/favicon-16x16.png">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="/dist/css/main.min.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{% include hero/post.html %}
|
||||||
|
|
||||||
|
<div class="page page--post">
|
||||||
|
|
||||||
<div class="section section--post">
|
<div class="section section--post">
|
||||||
<div class="section__content content">
|
<div class="section__content content">
|
||||||
<div class="section__main">
|
<div class="section__main">
|
||||||
<div class="postcontent">
|
<div class="postcontent">
|
||||||
|
{% if page.image %}
|
||||||
|
<img src="/assets/img/blog/{{ page.image }}">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -37,4 +56,35 @@ layout: default
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
{% include footer.html %}
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Mobile Nav -->
|
||||||
|
<div class="overlay" id="overlay" data-js-overlay-menu>
|
||||||
|
<a href="/"><img src="/assets/img/logo-white.png" alt="Dash" class="logo"></a>
|
||||||
|
{% include nav-mobile.html %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- JavaScript -->
|
||||||
|
<script src="//cdn.jsdelivr.net/lodash/4.12.0/lodash.min.js"></script>
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js"></script>
|
||||||
|
<script src="/dist/js/main.min.js"></script>
|
||||||
|
<script>
|
||||||
|
function formatNumber (num) {
|
||||||
|
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatCurrency (num,decimal) {
|
||||||
|
var _decimal;
|
||||||
|
_decimal = typeof decimal !== "undefined" ? decimal : 2;
|
||||||
|
return parseFloat(num).toFixed(_decimal).replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue