Support setting an article as "wide"
This commit is contained in:
parent
3e0e0beb0f
commit
21c25413fc
|
@ -32,8 +32,19 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p><a href="/">← Return to Home</a></p>
|
||||
<header>
|
||||
|
||||
{% if article.wide %}
|
||||
<div class="content content-wide">
|
||||
{% else %}
|
||||
<div class="content">
|
||||
{% endif %}
|
||||
|
||||
<div class="topbar">
|
||||
{{ info() }}
|
||||
</div>
|
||||
|
||||
<p><a href="/">← Return to Home</a></p>
|
||||
<header>
|
||||
<h1>{{ article.title }}</h1>
|
||||
<div class="summary">
|
||||
{{ article.summary }}
|
||||
|
@ -44,9 +55,10 @@
|
|||
— updated {{ article.locale_modified }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</header>
|
||||
<hr />
|
||||
<article>
|
||||
</header>
|
||||
<hr />
|
||||
<article>
|
||||
{{ article.content }}
|
||||
</article>
|
||||
</article>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -44,28 +44,24 @@
|
|||
</noscript>
|
||||
</head>
|
||||
|
||||
{% if PROD %}
|
||||
{% if PROD %}
|
||||
<body class="<?php echo $themeClass; ?>">
|
||||
{% else %}
|
||||
{% else %}
|
||||
<body>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{%- macro info() -%}
|
||||
{%- macro info() -%}
|
||||
{% block info %}{% endblock %}
|
||||
{%- endmacro -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
<div class="container">
|
||||
<div class="sidebar">
|
||||
{{ info() }}
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="topbar">
|
||||
{{ info() }}
|
||||
</div>
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="copyright">
|
||||
© 2012–2021 Tanner Collin
|
||||
|
|
|
@ -23,42 +23,48 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>
|
||||
<div class="content">
|
||||
|
||||
<div class="topbar">
|
||||
{{ info() }}
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Hi, I'm Tanner! I do firmware and web development in Calgary.
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<h2>Contact Info</h2>
|
||||
<h2>Contact Info</h2>
|
||||
|
||||
<p>
|
||||
<p>
|
||||
Email: <a href="mailto:site2@tannercollin.com">site2@tannercollin.com</a> <br />
|
||||
Telegram: <a href="https://t.me/tannercollin" target="_blank" rel="noreferrer noopener">@tannercollin</a>
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<h2>Resume</h2>
|
||||
<h2>Resume</h2>
|
||||
|
||||
<ul>
|
||||
<ul>
|
||||
<li>Firmware Engineer at <a href="https://cabanablockchain.com" target="_blank" rel="noreferrer noopener">Cabana Blockchain</a>, 2018–</li>
|
||||
<li>Lead Hardware Engineer at <a href="https://criticalcontrol.com/" target="_blank" rel="noreferrer noopener">Critical Control</a>, 2016–2018</li>
|
||||
<li>Electrical Engineer at <a href="https://www.opener.aero/" target="_blank" rel="noreferrer noopener">Opener Aero</a>, 2016–2016</li>
|
||||
<li>Electrical Engineer Intern at <a href="https://www.pason.com/" target="_blank" rel="noreferrer noopener">Pason Systems</a>, 2014–2015</li>
|
||||
<li>BSc. Electrical Engineering from University of Calgary</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<h2>Projects</h2>
|
||||
<h2>Projects</h2>
|
||||
|
||||
<p>
|
||||
<p>
|
||||
My main hobby is working on technical projects. I typically design websites or
|
||||
build tools that make my life easier. Sometimes art.
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<p>
|
||||
You can find my code on <a href="https://github.com/tannercollin" target="_blank" rel="noreferrer noopener">GitHub</a>.
|
||||
</p>
|
||||
</p>
|
||||
|
||||
{% for article in articles_page.object_list if article.category.name == 'Projects' %}
|
||||
<h3><a href="{{ article.url }}">{{ article.title }}</a></h3>
|
||||
<div class="summary">
|
||||
{% for article in articles_page.object_list if article.category.name == 'Projects' %}
|
||||
<h3><a href="{{ article.url }}">{{ article.title }}</a></h3>
|
||||
<div class="summary">
|
||||
{{ article.summary }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -135,6 +135,10 @@ pre {
|
|||
max-width: 36rem;
|
||||
}
|
||||
|
||||
.content-wide {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.content p {
|
||||
font: 1.2rem/1.5 Apparatus SIL,serif;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user