new index.md
parent
8c6bcfd917
commit
b017922b36
@ -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.
|
@ -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…
Reference in New Issue