Skip to content
Snippets Groups Projects
Commit 55b24567 authored by Josh Borrow's avatar Josh Borrow
Browse files

Added hyperlinks to cards at the top of the content.

parent 48bf8a78
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ def parse_headings(headings): ...@@ -90,7 +90,7 @@ def parse_headings(headings):
if sidebar_content != "": if sidebar_content != "":
sidebar_content += "</ul>" sidebar_content += "</ul>"
sidebar_content += f"<h3>{heading[2]}</h3><ul>" sidebar_content += f"<h2>{heading[2]}</h2><ul>"
elif heading[0] == "h2": elif heading[0] == "h2":
sidebar_content += f"<li><a href=\"#{heading[1]}\">{heading[2]}</a></li>" sidebar_content += f"<li><a href=\"#{heading[1]}\">{heading[2]}</a></li>"
......
...@@ -89,6 +89,15 @@ html, body { ...@@ -89,6 +89,15 @@ html, body {
margin-top: 1em; /* Spacing Between Navbar */ margin-top: 1em; /* Spacing Between Navbar */
} }
.cards a {
text-decoration: none;
color: inherit;
}
.cards b {
color: #298BDF;
}
.card { .card {
width: 30%; width: 30%;
...@@ -162,8 +171,13 @@ html, body { ...@@ -162,8 +171,13 @@ html, body {
color: white; color: white;
} }
.sidebar ul li a {
color: inherit;
text-decoration: none;
}
.sidebar h2 { .sidebar h2 {
color: #145289; color: #298BDF;
text-align: right; text-align: right;
float: right; float: right;
width: 100%; width: 100%;
......
...@@ -11,13 +11,15 @@ ...@@ -11,13 +11,15 @@
<div class="cards"> <div class="cards">
{% for card in meta_data["files"] %} {% for card in meta_data["files"] %}
<div class="card"> <div class="card">
<div class="card-content"> <a href="#{{ card.slug }}">
<h3>{{ card.title }}</h3> <div class="card-content">
<p>{{ card.subtitle }}</p> <h1>{{ card.title }}</h1>
<div class='caret'> <p>{{ card.subtitle }}</p>
<i class="fa fa-chevron-circle-down" aria-hidden="true"></i> <div class='caret'>
<i class="fa fa-chevron-circle-down" aria-hidden="true"></i>
</div>
</div> </div>
</div> </a>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment