Skip to content

Commit

Permalink
Removing pesky date labels on blog posts; experimenting with header l…
Browse files Browse the repository at this point in the history
…inks; adding layout templates for basic items
  • Loading branch information
TimothyFDavison committed Oct 29, 2024
1 parent 4876179 commit b7b1687
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 34 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ title: Timothy F. Davison
author: Timothy F. Davison
description: >- # this means to ignore newlines until "baseurl:"
And now I am become blog, writer of trash thought pieces.
baseurl: "/whiteglass-template" # the subpath of your site, e.g. /blog
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://yous.github.io" # the base hostname & protocol for your site, e.g. http://example.com
lang: en
timezone: UTC
Expand Down
50 changes: 50 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
layout: default
---

<div class="home">

{{ content }}

{% capture site_lang %}{{ site.lang | default: "en" }}{% endcapture %}

<ul class="post-list">
{% for post in paginator.posts %}
{% capture post_lang %}{{ post.lang | default: site_lang }}{% endcapture %}
{% capture lang %}{% if post_lang != site_lang %}{{ post_lang }}{% endif %}{% endcapture %}

<li{% if lang != empty %} lang="{{ lang }}"{% endif %}>
<header class="post-header">
<h1 class="post-title">
{% if post.external-url %}
<a class="post-link" href="{{ post.external-url }}">{{ post.title | escape }} &rarr;</a>
{% else %}
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
{% endif %}
</h1>

<p class="post-meta">
{% if post.categories != empty or post.tags != empty %}
{% include category_links.html categories=post.categories tags=post.tags %}
{% endif %}
{% if post.external-url %}
<a href="{{ post.url | relative_url }}">Permalink</a>
{% endif %}
</p>
</header>

<div class="post-content">
{{ post.excerpt }}
</div>
{% if post.content contains site.excerpt_separator %}
<p class="post-continue">
<a href="{{ post.url | relative_url }}">{% include i18n.html lang=lang value="morelink" default="Read on" %} &rarr;</a>
</p>
{% endif %}
</li>
{% endfor %}
</ul>

{% include pagination.html %}

</div>
24 changes: 24 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: default
---
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
{% if page.external-url %}
<h1 class="post-title" itemprop="name headline"><a href="{{ page.external-url }}">{{ page.title | escape }} &rarr;</a></h1>
{% else %}
<h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
{% endif %}
</header>

<div class="post-content" itemprop="articleBody">
{{ content }}
</div>

{% if site.comments == true and page.comments != false %}
<div class="post-comments" itemprop="comment">
{% include custom_comments_provider.html %}
</div>
{% endif %}

</article>
29 changes: 0 additions & 29 deletions _posts/2020-04-24-welcome-to-jekyll.markdown

This file was deleted.

6 changes: 6 additions & 0 deletions _posts/2020-04-25-test.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: page
title: ""
---

Landing page for my stream of consciousness.
1 change: 0 additions & 1 deletion about.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: page
title: About
permalink: /about/
---

Expand Down
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
---
# You don't need to edit this file, it's empty on purpose.
# Edit whiteglass' home layout instead if you want to make some changes.
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
---

0 comments on commit b7b1687

Please sign in to comment.