new index.md

master
Jay 2 years ago
parent 8c6bcfd917
commit b017922b36

@ -8,7 +8,6 @@ excerpt_separator: <!--more-->
# Converting to Jekyll
As many of you probably noticed, our layout got more simplistic, smaller, and reminiscent of the 90's. I could make a joke about I'm a ham so I'm legally obligated to build websites like it's 1992; but that's not the truth. The truth is I like this minimalistic terminal inspired design. Is it the one I wanted? No. I found several terminal themed Hugo themes that were better. But Hugo was a pain. So...here we are.
<!--more-->
{% raw %}
# "It's all static sites now."

@ -0,0 +1,14 @@
---
title: New Index Tweaks
layout: post
date: 2022-08-25 04:00:00
excerpt_separator: <!--more-->
---
I've made a couple of tweaks to the index of the site. One you see, one you don't. But this post is just a trap to show off the fact the "Read More" link now only renders when there's actually more content; and has moved.
<!--more-->
The other minor tweak to the layout is how the titles are shown. The date is now up there, along with links to the section the post was put in. This makes it all look a bit tidier. The Read More thing will probably work until I find some reason it doesn't.
The behind the scenes tweak was figuring out I could specify an offset and a limit to the for loop; which is the proper way to do it. Still neat to see the hack method worked.

@ -14,23 +14,23 @@ I will slowly work on getting the original content over to the new site. I will
<ul>
{% for post in site.posts limit:3 %}
<li>
<a href="{{ post.url }}">{{ post.title }} - /{{ post.categories }}</a>
{{ post.excerpt }}
<a href="{{ post.url }}">Posted: {{ post.date | date: "%d-%^b-%Y" }} | Read More...</a>
</li><br>
<a href="{{ post.url }}">{{ post.title }}</a> in: <a href="/{{ post.categories }}">/{{ post.categories }}</a> on {{ post.date | date: "%d-%^b-%Y" }}
{% if post.excerpt == post.content %}
{{ post.content }}
{% else %}
<br>
{{ post.excerpt | strip_html }} | <a href="{{ post.url }}">Read More...</a>
{% endif %}
</li><br>
{% endfor %}
</ul>
# *Less Recent Posts:*
<ul>
{% assign counter = 0 %}
{% for post in site.posts limit:6 %}
{% assign counter = counter | plus: 1 %}
{% if counter > 3 %}
{% for post in site.posts offset:3 limit:3 %}
<li>
/{{ post.categories }}: <a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a>
<a href="/{{ post.categories }}">/{{ post.categories }}</a>: <a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a>
</li>
{% endif %}
{% endfor %}
</ul>

@ -0,0 +1,36 @@
---
title: pickmy.org:~$
layout: default
permalink: /
list:
---
# Welcome to the new pickmy.org
We've ditched Wordpress and are now running Jekyll. I tried Hugo but I couldn't get it to do what I wanted easily. I still had to make some consessions with this site, but nothing that I can't work around. Everything is now static generated everytime I push a post to the repository.
I will slowly work on getting the original content over to the new site. I will likely be archiving the old site in some fashion as well. I have everything exported to Jekyll, but I have a lot of manual editing and checking to do.
# ***Recent Posts:***
<ul>
{% for post in site.posts limit:3 %}
<li>
<a href="{{ post.url }}">{{ post.title }} - /{{ post.categories }}</a>
{{ post.excerpt }}
{% if post.excerpt == post.content %}
<a href="{{ post.url }}">Posted: {{ post.date | date: "%d-%^b-%Y" }}</a>
{% else %}
<a href="{{ post.url }}">Posted: {{ post.date | date: "%d-%^b-%Y" }} | Read More...</a>
{% endif %}
</li><br>
{% endfor %}
</ul>
# *Less Recent Posts:*
<ul>
{% for post in site.posts offset:3 limit:3 %}
<li>
/{{ post.categories }}: <a href="{{ post.url }}">{{ post.title }} | {{ post.date | date: "%d-%^b-%Y" }}</a>
</li>
{% endfor %}
</ul>
Loading…
Cancel
Save