Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Name change
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Feb 12, 2024
1 parent 8c545e3 commit f9964b5
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
3 changes: 2 additions & 1 deletion _data/tutorial.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title: An Introduction to SQL for Weary Data Scientists
title: The Querynomicon
subtitle: An Introduction to SQL for Wary Data Scientists
url: https://third-bit.com/sql/
repo: https://github.com/gvwilson/sql-tutorial
release: https://github.com/gvwilson/sql-tutorial/raw/main/sql-tutorial.zip
Expand Down
10 changes: 10 additions & 0 deletions _includes/link_list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ul>
{% for entry in include.links %}
{% if entry.title %}
<li>
{{entry.title | markdownify | replace: "<p>", "" | replace: "</p>", ""}}:
<a href="{{entry.url}}">{{entry.url}}</a>
</li>
{% endif %}
{% endfor %}
</ul>
3 changes: 0 additions & 3 deletions _includes/link_list.md

This file was deleted.

6 changes: 6 additions & 0 deletions _includes/title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% if page.home %}
<h1>{{site.data.tutorial.title}}</h1>
<p class="subtitle">{{site.data.tutorial.subtitle}}</p>
{% else %}
<h1>{{page.title}}</h1>
{% endif %}
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
{% include nav.html %}
<main>
<h1>{% if page.home %}{{ site.data.tutorial.title }}{% else %}{{ page.title }}{% endif %}</h1>
{% include title.html %}
{{ content }}
</main>
{% include foot.html %}
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ I would also like to thank the following for spotting issues, making suggestions

### Links

{% include link_list.md links=site.data.links %}
{% include link_list.html links=site.data.links %}

{% include section_end.md %}

Expand Down
7 changes: 7 additions & 0 deletions res/tutorial.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
--heavyborder: 5px;

--page-width: 60rem;
--subtitle-size: x-large;
--body-size: large;
--code-size: medium;
--filename-size: small;
Expand Down Expand Up @@ -206,6 +207,12 @@ h1 {
background-color: var(--stamp-blue-light);
}

p.subtitle {
text-align: center;
font-size: var(--subtitle-size);
font-style: italic;
}

h2 {
background-color: var(--stamp-green-light);
}
Expand Down

0 comments on commit f9964b5

Please sign in to comment.