Skip to content

Commit

Permalink
Add all articles to index page.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Jun 1, 2024
1 parent 04ad9e0 commit 5176ea5
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = "Matt Layman"
theme = "tailwind-site"
canonifyURLs = true
enableRobotsTXT = true
paginate = 4
paginate = 2
pygmentsCodeFences = true
defaultContentLanguage = "en"

Expand Down
4 changes: 2 additions & 2 deletions content/blog/2019-09-12-python-testing-201-with-pytest.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ tags:

---

<iframe width="560" height="315" src="https://www.youtube.com/embed/fv259R38gqc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

For Python Frederick's September presentation,
I presented on Python testing.
In the presentation,
Expand All @@ -34,6 +32,8 @@ of pytest
that went beyond the basics
that we explored in March.

<iframe width="560" height="315" src="https://www.youtube.com/embed/fv259R38gqc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

The recording from the talk is available
on YouTube.
{{< extlink "https://www.youtube.com/watch?v=fv259R38gqc&list=PLFcKEo4b_n1wMFhbiedpMgh2VRT5uICuF&index=2" "Check it out!" >}}
Expand Down
4 changes: 2 additions & 2 deletions content/blog/2019-11-04-godot.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ tags:

---

<iframe width="560" height="315" src="https://www.youtube.com/embed/4o63V0AdrHk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

What is Godot?
It's an open source game engine for making high quality 2D or 3D videogames!
At this Frederick Linux User Group (KeyLUG) presentation,
I explained how Godot works, compared it with other popular engines,
and showed off some of its features.

<iframe width="560" height="315" src="https://www.youtube.com/embed/4o63V0AdrHk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

The recording from the talk is available
on YouTube.
{{< extlink "https://www.youtube.com/watch?v=4o63V0AdrHk" "Check it out!" >}}
Expand Down
13 changes: 12 additions & 1 deletion themes/tailwind-site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,23 @@ <h2 class="font-semibold text-2xl tracking-wide pb-4">Want to learn Django from
</div>
</div>

<h1 class="font-light tracking-wide text-xl border-b-2 border-red-600 my-2 sm:my-8">Recent</h1>
<h2 class="font-light tracking-wide text-xl border-b-2 border-red-600 my-2 sm:my-8">Recent</h2>

{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Type" "post") }}
{{ partial "articles-list" $paginator }}

{{ partial "paginator" . }}

<h2 class="font-light tracking-wide text-xl border-b-2 border-red-600 my-8">All Articles</h2>

<ul class="mx-4 sm:mx-4 list-disc">
{{ range where .Site.RegularPages "Type" "==" "post" }}
<li class="mb-2">
<a class="border-b border-blue-200 hover:text-blue-400" href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>

{{ end }}

{{ define "grid" }}mx-auto w-full sm:w-2/3{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion themes/tailwind-site/layouts/partials/articles-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{{ if eq $index 1 }}
<div class="w-full flex flex-col sm:flex-row justify-center items-center">
<div class="w-full pb-8 pt-4">
<div class="w-full pt-4">
<a href="https://www.patreon.com/mblayman" target="_blank" rel="noopener">
<div class="bg-red-500 p-2 mx-auto w-full flex flex-col sm:flex-row shadow-md justify-center items-center">
<div class="w-full sm:w-2/5">
Expand Down
34 changes: 34 additions & 0 deletions themes/tailwind-site/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,16 @@ aside {
margin-bottom: 2rem;
}

.mx-2 {
margin-left: 0.5rem;
margin-right: 0.5rem;
}

.mx-4 {
margin-left: 1rem;
margin-right: 1rem;
}

.-mt-20 {
margin-top: -5rem;
}
Expand Down Expand Up @@ -1022,6 +1032,10 @@ aside {
flex-grow: 1;
}

.list-disc {
list-style-type: disc;
}

.appearance-none {
-webkit-appearance: none;
-moz-appearance: none;
Expand Down Expand Up @@ -1087,6 +1101,11 @@ aside {
border-color: rgb(190 227 248 / var(--tw-border-opacity));
}

.border-blue-400 {
--tw-border-opacity: 1;
border-color: rgb(99 179 237 / var(--tw-border-opacity));
}

.border-blue-700 {
--tw-border-opacity: 1;
border-color: rgb(43 108 176 / var(--tw-border-opacity));
Expand Down Expand Up @@ -1480,6 +1499,16 @@ aside {
color: rgb(45 55 72 / var(--tw-text-opacity));
}

.hover\:text-blue-200:hover {
--tw-text-opacity: 1;
color: rgb(190 227 248 / var(--tw-text-opacity));
}

.hover\:text-blue-400:hover {
--tw-text-opacity: 1;
color: rgb(99 179 237 / var(--tw-text-opacity));
}

.hover\:underline:hover {
text-decoration-line: underline;
}
Expand Down Expand Up @@ -1514,6 +1543,11 @@ aside {
margin-bottom: 2rem;
}

.sm\:mx-4 {
margin-left: 1rem;
margin-right: 1rem;
}

.sm\:-mt-20 {
margin-top: -5rem;
}
Expand Down
1 change: 1 addition & 0 deletions themes/tailwind-site/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
content: [
'./layouts/**/*.html',
'./themes/tailwind-site/layouts/**/*.html',
'../../content/about.md',
],
theme: {
Expand Down

0 comments on commit 5176ea5

Please sign in to comment.