Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit 194f321

Browse files
committed
various fixes and cleanup
- remove shitty dumb css - fix podcast link - remove pagination - update header
1 parent 1d2df65 commit 194f321

File tree

4 files changed

+20
-57
lines changed

4 files changed

+20
-57
lines changed

_includes/header.html

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ <h1 class="text-center"><a href="/">{{ site.title }}</a></h1>
99
<div class="mx-auto col-md-8 col-md-offset-2">
1010
<div class="mx-auto tagline col-md-8 col-md-offset-2">
1111
<h2>A <a href="/authors">community-driven</a> weekly newsletter about what's happening in the Swift open source projects at <a href="https://swift.org/" target="_blank">Swift.org</a>.
12-
Curated by <a href="https://twitter.com/fassko">Kristaps Grinbergs</a>. Started by <a href="https://jessesquires.com" target="_blank">Jesse Squires</a>, continued by <a href="https://twitter.com/BasThomas" target="_blank">Bas Broek</a>. Published for free every other Thursday.</h2>
1312
</div> <!-- col -->
1413
</div> <!-- col -->
1514
</div> <!-- row -->

_includes/subscribe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a class="btn btn-outline-secondary" href="/sponsorship" title="Become a sponsor"><i class="fa fa-star" aria-hidden="true"></i> Sponsor</a>
66
<a class="btn btn-outline-secondary" href="{{ site.links.twitter }}" title="Follow us on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i> Follow</a>
77
<a class="btn btn-outline-secondary" href="/search" title="Search all issues"><i class="fa fa-search" aria-hidden="true"></i> Search all issues</a>
8-
<a class="btn btn-outline-secondary" href="https://spec.fm/podcasts/swift-unwrapped" title="Swift Unwrapped"><i class="fa fa-podcast" aria-hidden="true"></i> Podcast</a>
8+
<a class="btn btn-outline-secondary" href="https://swiftunwrapped.github.io" title="Swift Unwrapped"><i class="fa fa-podcast" aria-hidden="true"></i> Podcast</a>
99
</nav>
1010
</div> <!-- col -->
1111
</div> <!-- row -->

css/style.css

+14-21
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22

33
:root {
44
color-scheme: light dark;
5-
5+
66
--background: #ffffff;
77
--body-text: #606060;
88
--secondary-text: #666666;
9-
9+
1010
--code-fg: #c7254e;
1111
--code-bg: #f9f2f4;
12-
12+
1313
--button-fg: #666666;
1414
--button-bg: #fff;
1515
--button-bg-hover: #eee;
16-
16+
1717
--social-fg: #444444;
1818
--social-fg-hover: #666666;
19-
19+
2020
--link-fg: #DC3A1D;
2121
--link-fg-visited: #DC3A1D;
2222
--link-fg-hover: #fbaf40;
23-
23+
2424
--hr-border: #666;
25-
25+
2626
--post-title-font-weight: lighter;
27-
27+
2828
--list-background-color: #f3f3f3;
2929
}
3030

@@ -34,23 +34,23 @@
3434
--background: #1c1c1c;
3535
--body-text: #b2b2b2;
3636
--secondary-text: #878787;
37-
37+
3838
--code-fg: #000000;
3939
--code-bg: #959595;
40-
40+
4141
--button-fg: #878787;
4242
--button-bg: #1c1c1c;
4343
--button-bg-hover: #2f2f2f;
44-
44+
4545
--social-fg: #979797;
4646
--social-fg-hover: #878787;
47-
47+
4848
--link-fg: #f7492e;
4949
--link-fg-visited: #f7492e;
5050
--link-fg-hover: #f7ad2e;
51-
51+
5252
--hr-border: #999;
53-
53+
5454
--post-title-font-weight: 300; /* 400 is normal */
5555
--list-background-color: #111111;
5656
}
@@ -63,12 +63,6 @@ body {
6363
padding-top: 1rem;
6464
}
6565

66-
body p {
67-
line-height: 1.6rem;
68-
padding: 0.5rem 0rem 0.5rem 0rem;
69-
font-size: 16px;
70-
}
71-
7266
hr {
7367
border-color: var(--hr-border);
7468
width: 50%;
@@ -174,7 +168,6 @@ header h2 {
174168

175169
.post-list-item {
176170
margin-top: 20px;
177-
background-color: var(--list-background-color);
178171
padding: 12px 30px;
179172
border-radius: 15px;
180173
overflow: hidden;

index.html

+5-34
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,14 @@
33
title: Home
44
---
55

6-
<!-- post-list -->
76
<div>
8-
{% for post in paginator.posts %}
7+
{% for post in site.posts %}
98
{% assign author = site.data.authors[post.author] %}
10-
<div class="post-list-item">
11-
<article class="post">
12-
<h1 class="post-title">
9+
<div class="pt-2 pb-2">
10+
<h2 class="text-center fw-normal">
1311
<a href="{{ post.url }}">{{ post.title }}</a>
14-
<small class="post-date">{{ post.date | date_to_string }}</small>
15-
</h1>
16-
<p class="lead"><em>Written by: <a href="https://twitter.com/{{ author.twitter }}" target="_blank">{{ author.name }}</a></em></p>
17-
<div class="post-content">
18-
{{ post.excerpt }}
19-
</div>
20-
<p class="post-readmore">
21-
<a href="{{ post.url }}">Read more &raquo;</a>
22-
</p>
23-
</article>
12+
<small class="text-muted">{{ post.date | date_to_string }}</small>
13+
</h2>
2414
</div>
2515
{% endfor %}
2616
</div>
27-
28-
<!-- Pagination links -->
29-
{% if paginator.total_pages > 1 %}
30-
<div class="post-list-pagination">
31-
{% if paginator.previous_page %}
32-
<a href="{{ paginator.previous_page_path }}" class="previous">
33-
&laquo; Previous
34-
</a>
35-
{% endif %}
36-
37-
<span class="page_number ">
38-
Page: {{ paginator.page }} of {{ paginator.total_pages }}
39-
</span>
40-
41-
{% if paginator.next_page %}
42-
<a href="{{ paginator.next_page_path }}" class="next">Next &raquo;</a>
43-
{% endif %}
44-
</div>
45-
{% endif %}

0 commit comments

Comments
 (0)