Skip to content

Commit afb6275

Browse files
New website announcement post (#20)
* New website announcement post * Add author names to pages * Apply Hank's suggestions for announcement post Co-authored-by: Henry Wilkinson <[email protected]> * Additional tweaks as per Hank's suggestions * Spelling fixes, link clarification, and minor casing fix * Spelling fix * Added alt-text as per Hank's suggestion * Optimized images with Oxipng --------- Co-authored-by: Henry Wilkinson <[email protected]>
1 parent ec40e0d commit afb6275

File tree

14 files changed

+140
-5
lines changed

14 files changed

+140
-5
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ vendor/
1313
*.temp
1414
*.tmp
1515
*.vscode
16-
*.idea
16+
*.idea
17+
18+
# Other
19+
.trunk/

_includes/image-gallery.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!-- modified from https://dmnfarrell.github.io/software/jekyll-galleries -->
2+
<div class ="image-gallery">
3+
{% assign sorted = site.static_files | sort: 'date' | reverse %}
4+
{% for file in sorted %}
5+
{% if file.path contains include.folder %}
6+
{% if file.extname == '.png' %}
7+
{% assign filenameparts = file.path | split: "/" %}
8+
{% assign filename = filenameparts | last | replace: file.extname,"" %}
9+
<div class="box">
10+
<a href="{{ file.path | relative_url }}" title="{{ filename }}">
11+
<img src="{% base %}{{ file.path | relative_url }} " target="_blank" alt="{{ filename }}" class="img-gallery" />
12+
</a>
13+
</div>
14+
{% endif %}
15+
{% endif %}
16+
{% endfor %}
17+
</div>

_includes/news-img.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- Jekyll template specifically for standalone images on the news page -->
2+
<img src="{% base %}/img/news/{{ include.img }}" alt="{{ include.alt }}" />

_layouts/post.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
<div class="newspost-header">
1111
<img src="{% base %}{{ page.postimg }}" alt="{{ page.postimgalttext }}"/>
1212
<h1>{{ page.title }}</h1>
13-
<time class="text-uppercase" datetime="{{ page.date | date: "%Y-%m-%d" }}">{{ page.date | date: "%B %d, %Y" }}</time>
13+
<div>
14+
<time class="text-uppercase" datetime="{{ page.date | date: "%Y-%m-%d" }}">{{ page.date | date: "%B %d, %Y" }}</time>
15+
<span>&middot;</span>
16+
<span rel="author">{{ page.author }}</span>
17+
</div>
1418
<p>{{ page.description }}</p>
1519
<div class="horizontal-rule"></div>
1620
</div>
@@ -23,4 +27,4 @@ <h1>{{ page.title }}</h1>
2327
{% include footer.html %}
2428
</body>
2529

26-
</html>
30+
</html>

_sass/_textpost.scss

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@
2020
}
2121

2222
time {
23-
padding: 0 8vw 0 8vw;
23+
padding: 0 0 0 8vw;
24+
}
25+
26+
span {
27+
color: var(--purple);
28+
line-height: 1.5;
2429
}
2530

2631
p {
32+
text-wrap: pretty;
2733
font-variation-settings: 'wght' 500;
2834
font-size: 1.4rem;
2935
margin-bottom: 4rem;
@@ -69,14 +75,15 @@
6975
article {
7076
padding-left: 8vw;
7177
padding-right: 8vw;
78+
max-width: 100ch;
7279

7380
h1 {
7481
font-size: 3.5rem;
7582
}
7683

7784
h2 {
7885
font-size: 2.5rem;
79-
margin-top: 6rem;
86+
margin-top: 4rem;
8087
}
8188

8289
h3 {
@@ -191,3 +198,30 @@
191198
}
192199
}
193200
}
201+
202+
/* from: https://dmnfarrell.github.io/software/jekyll-galleries */
203+
.image-gallery {
204+
width: 100%;
205+
display: grid;
206+
grid-template-columns: repeat(auto-fill,minmax(200px, 1fr));
207+
justify-content: center;
208+
padding: 4px;
209+
}
210+
211+
.box {
212+
flex-basis: 25%;
213+
width: 100%;
214+
padding: 10px;
215+
margin: 2px;
216+
}
217+
218+
.img-gallery {
219+
width: 100%;
220+
height: 200px;
221+
object-fit: cover;
222+
transform: scale(1);
223+
transition: all 0.3s ease-in-out;
224+
&:hover {
225+
transform: scale(1.05);
226+
}
227+
}

img/news/website-launch/cover.png

298 KB
Loading
44 KB
Loading
40.3 KB
Loading
247 KB
Loading
201 KB
Loading

0 commit comments

Comments
 (0)