-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from holysoles/implement-sidebar-timeline
Implement a sidebar timeline
- Loading branch information
Showing
5 changed files
with
191 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Style for contact page */ | ||
div.contact-container { | ||
margin-top: 10px; | ||
text-align: center; | ||
} | ||
ul.contact-links { | ||
list-style-type: none; | ||
line-height: 1.75; | ||
} | ||
.link-with-logo { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
white-space: pre; | ||
} | ||
.link-with-logo img { | ||
width: 24px; /* Adjust the width as needed */ | ||
height: 24px; /* Adjust the height as needed */ | ||
margin-right: 8px; | ||
} | ||
.link-with-logo span { | ||
font-weight: bold; | ||
} | ||
.link-with-logo a { | ||
text-decoration: none; | ||
color: #333; /* Change the color as needed */ | ||
} | ||
.link-with-logo a:hover { | ||
color: #0251ef; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,78 @@ | ||
{% extends 'layout.html' %} | ||
{% block content %} | ||
<div> | ||
<table> | ||
{% for post in post_array %} | ||
<tr> | ||
<td> | ||
<article> | ||
{% if post['title'] %} | ||
<h2> | ||
{{ post['title'] }} - {{ post['date'] }} | ||
</h2> | ||
{% endif %} | ||
{% for paragraph in post['body'] %} | ||
<div> | ||
{% if paragraph['section_title'] %} | ||
<h3> | ||
{{ paragraph['section_title'] }} | ||
</h3> | ||
{% endif %} | ||
{% if paragraph['text'] %} | ||
<p> | ||
{{ paragraph['text'] }} | ||
</p> | ||
{% endif %} | ||
{% if paragraph['code'] %} | ||
<div class="code-container"> | ||
<div class="line-numbers line-numbers-background"> | ||
{% for line in paragraph['code'].splitlines() %} | ||
<span>{{ loop.index }}</span> | ||
<div class="main-wrapper"> | ||
<div class="sidebar-container"> | ||
<aside class="sidebar"> | ||
<div class="sidebar-header"> | ||
Blog Posts | ||
</div> | ||
<div class="sidebar-body"> | ||
<ol> | ||
{% for year in date_dict %} | ||
<li class="sidebar-section"> {{ year }} </li> | ||
{% for month in date_dict[year] %} | ||
{% for day in date_dict[year][month] %} | ||
<li> | ||
<a href="{{ date_dict[year][month][day] }}"> | ||
{{ month }}/{{ day }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
</ol> | ||
</div> | ||
</aside> | ||
</div> | ||
<div class="posts"> | ||
<table> | ||
{% for post in post_array %} | ||
<tr> | ||
<td> | ||
<article> | ||
{% if post['title'] %} | ||
<h2> | ||
{{ post['title'] }} - {{ post['date'] }} | ||
</h2> | ||
{% endif %} | ||
{% for paragraph in post['body'] %} | ||
<div> | ||
{% if paragraph['section_title'] %} | ||
<h3> | ||
{{ paragraph['section_title'] }} | ||
</h3> | ||
{% endif %} | ||
{% if paragraph['text'] %} | ||
<p> | ||
{{ paragraph['text'] }} | ||
</p> | ||
{% endif %} | ||
{% if paragraph['code'] %} | ||
<div class="code-container"> | ||
<div class="line-numbers line-numbers-background"> | ||
{% for line in paragraph['code'].splitlines() %} | ||
<span>{{ loop.index }}</span> | ||
{% endfor %} | ||
</div> | ||
<code> | ||
{% for line in paragraph['code'].splitlines() %} | ||
<span class="line-highlight"> | ||
<pre class="code-text">{{line}}</pre> | ||
</span> | ||
{% endfor %} | ||
</code> | ||
</div> | ||
<code> | ||
{% for line in paragraph['code'].splitlines() %} | ||
<span class="line-highlight"> | ||
<pre class="code-text">{{line}}</pre> | ||
</span> | ||
{% endfor %} | ||
</code> | ||
{% endif %} | ||
{% if paragraph['image'] %} | ||
<img class="blog-image" src="{{ url_for('static', filename=paragraph['image']) }}" /> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
{% if paragraph['image'] %} | ||
<img class="blog-image" src="{{ url_for('static', filename=paragraph['image']) }}" /> | ||
{% endif %} | ||
</div> | ||
{% endfor %} | ||
</article> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endfor %} | ||
</article> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters