Browse Source

Move travel items to separate collection

master
Matthew Jorgensen 1 month ago
parent
commit
d780ea6664

+ 3
- 0
_config.yml View File

@@ -14,3 +14,6 @@ collections:
14 14
   projects:
15 15
     output: true
16 16
     permalink: /projects/:name:output_ext
17
+  travel:
18
+    output: true
19
+    permalink: /travel/:name:output_ext

+ 5
- 0
_travel/2017-02-Trip-to-Tampa.md View File

@@ -0,0 +1,5 @@
1
+---
2
+title: Trip to Tampa
3
+dest: Tampa, FL
4
+_date: 2017-02
5
+---

_posts/2017-11-11-Trip-to-Chicago.md → _travel/2017-11-11-Trip-to-Chicago.md View File

@@ -1,6 +1,8 @@
1 1
 ---
2 2
 layout: post
3 3
 title: Trip to Chicago
4
+dest: Chicago, IL
5
+_date: 2017-11
4 6
 ---
5 7
 
6 8
 *I went to Chicago over the weekend of 3 November 2017 to see the Used
@@ -207,4 +209,4 @@ there someday, but that day isn't today, and I doubt it will be that day
207 209
 for some time yet. I was very impressed at the amount of strictly vegan
208 210
 restaurants that exist in Chicago (at least in the neighborhood I was
209 211
 in), and the options at not-strictly-vegan places were mighty tasty
210
-also.
212
+also.

+ 5
- 0
_travel/2018-05-Trip-to-Austin-TX.md View File

@@ -0,0 +1,5 @@
1
+---
2
+title: Trip to Austin, TX
3
+dest: Austin, TX
4
+_date: 2018-05
5
+---

+ 7
- 0
_travel/2018-10-Trip-to-Knoxville.md View File

@@ -0,0 +1,7 @@
1
+---
2
+layout: page
3
+title: Trip to Knoxville
4
+dest: Knoxville, TN
5
+_date: 2018-10
6
+---
7
+

+ 5
- 0
_travel/2019-01-Trip-to-Tampa-FL.md View File

@@ -0,0 +1,5 @@
1
+---
2
+title: Trip to Tampa, FL
3
+dest: Tampa, FL
4
+_date: 2019-01
5
+---

+ 5
- 0
_travel/2019-03-Trip-to-Knoxville.md View File

@@ -0,0 +1,5 @@
1
+---
2
+title: Trip to Knoxville
3
+dest: Knoxville, TN
4
+_date: 2019-03
5
+---

+ 12
- 0
css/style.css View File

@@ -389,6 +389,18 @@ h1 {
389 389
   min-width: 3rem;
390 390
 }
391 391
 
392
+/* #. Travel
393
+/* ---------------------------------------------------------- */
394
+.trip-title h2 {
395
+    font-size: unset;
396
+    display: inline;
397
+}
398
+
399
+.trip-title .date {
400
+    display: inline-block;
401
+    min-width: 4.5rem;
402
+}
403
+
392 404
 /* #. Special Formatting
393 405
 /* ---------------------------------------------------------- */
394 406
 .alert, .tip {

+ 24
- 0
travel.html View File

@@ -0,0 +1,24 @@
1
+---
2
+layout: page
3
+title: Travel
4
+permalink: /travel/
5
+---
6
+
7
+{% assign travel = site.travel | sort: '_date' | reverse %}
8
+{% for trip in travel %}
9
+<div class="trip-title">
10
+    <h2>
11
+        <span class="date hidden-xs">
12
+            {{ trip._date | date: "%Y-%m" }}
13
+        </span>
14
+        <span class="title">
15
+            {% assign content = trip.content | strip_newlines %}
16
+            {% if content == "" or content == nil or content == blank %}
17
+                {{ trip.dest }}
18
+            {% else %}
19
+                <a href="{{ trip.url }}">{{ trip.dest }}</a>
20
+            {% endif %}
21
+        </span>
22
+    </h2>
23
+</div>
24
+{% endfor %}

Loading…
Cancel
Save