-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bring in generic updates from my personal instance
- Loading branch information
Showing
26 changed files
with
118 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
// NOTE: you really should override _all_ of these fields! | ||
// ...except maybe the language one if you're mostly writing in English I suppose | ||
module.exports = { | ||
title: "Eleventy Base Blog v8", | ||
url: "https://example.com/", | ||
title: "Octobug Template", | ||
url: "https://github.com/top-ghost/octobug", | ||
language: "en", | ||
description: "I am writing about my experiences as a naval navel-gazer.", | ||
description: "Just setting up my Octobug", | ||
author: { | ||
name: "Your Name Here", | ||
email: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
--- | ||
layout: layouts/base.njk | ||
--- | ||
<!-- Delete this message, it will also remove the component CSS from the bundle --> | ||
{%- css %}{% include "public/css/message-box.css" %}{% endcss %} | ||
<div class="message-box"> | ||
<ol> | ||
<li>Edit the <code>_data/metadata.js</code> with your blog’s information.</li> | ||
<li>(Optional) Edit <code>eleventy.config.js</code> with your <a href="https://www.11ty.dev/docs/config/">configuration preferences</a>.</li> | ||
<li>Delete this message from <code>_includes/layouts/home.njk</code>.</li> | ||
</ol> | ||
<p><em>This is an <a href="https://www.11ty.dev/">Eleventy project</a> created from the <a href="https://github.com/11ty/eleventy-base-blog"><code>eleventy-base-blog</code> repo</a>.</em></p> | ||
</div> | ||
<!-- Stop deleting --> | ||
|
||
{{ content | safe }} | ||
{{ content | safe }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{%set item = post | d(collections.all | getCollectionItem(page))%} | ||
|
||
<div class="post"> | ||
<div class="metadata"> | ||
<div class="author">{{item.data.author}}</div> | ||
<div class="timestamp">{{item.data.timestamp}}</div> | ||
</div> | ||
<a href={{item.url}}> | ||
<h1 class="title">{{item.data.title}}</h1> | ||
</a> | ||
<div class="postbody">{{item.content | safe }}</div> | ||
<div class="tags"> | ||
{%- for tag in item.tags | filterTagList %}{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} | ||
<li> | ||
<a href="{{ tagUrl }}" class="post-tag">{{ tag }}</a> | ||
{%- if not loop.last %}, {% endif %} | ||
</li> | ||
{%- endfor %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
{%- css %}.postlist { counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }} }{% endcss %} | ||
<ol reversed class="postlist"> | ||
{% for post in postslist | reverse %} | ||
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}"> | ||
<a href="{{ post.url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a> | ||
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("LLLL yyyy") }}</time> | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
{% for post in postslist | reverse %} | ||
{% include "partials/post.njk" %} | ||
{% endfor %} | ||
</ol> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
--- | ||
layout: layouts/home.njk | ||
eleventyNavigation: | ||
key: Home | ||
order: 1 | ||
numberOfLatestPostsToShow: 3 | ||
eleventyExcludeFromCollections: true | ||
pagination: | ||
data: collections.all | ||
size: 10 | ||
permalink: "/{% if pagination.pageNumber > 0 %}/{{ pagination.pageNumber }}{% endif %}/index.html" | ||
--- | ||
{% set postsCount = collections.posts | length %} | ||
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %} | ||
<h1>Latest {{ latestPostsCount }} Post{% if latestPostsCount != 1 %}s{% endif %}</h1> | ||
|
||
{% set postslist = collections.posts | head(-1 * numberOfLatestPostsToShow) %} | ||
{% set postslistCounter = postsCount %} | ||
{%set postslist = pagination.items %} | ||
{% include "postslist.njk" %} | ||
|
||
{% set morePosts = postsCount - numberOfLatestPostsToShow %} | ||
{% if morePosts > 0 %} | ||
<p>{{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} can be found in <a href="/blog/">the archive</a>.</p> | ||
{% endif %} | ||
|
||
{# List every content page in the project #} | ||
{# | ||
<ul> | ||
{%- for entry in collections.all %} | ||
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li> | ||
{%- endfor %} | ||
</ul> | ||
#} | ||
<ol> | ||
<li> | ||
{% if pagination.href.previous %} | ||
<a href="{{ pagination.href.previous }}">Previous</a> | ||
{% else %}Previous{% endif %} | ||
</li> | ||
<li> | ||
{% if pagination.href.next %} | ||
<a href="{{ pagination.href.next }}">Next</a> | ||
{% else %}Next{% endif %} | ||
</li> | ||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
---json | ||
{"author":"@topghost","date":"git Created","title":"oh hello","timestamp":1726960359167,"tags":["octobug meta"],"layout":"layouts/post.njk"} | ||
--- | ||
|
||
You've come across the generated site for Octobug, an Eleventy-based GitHub-hosted blogging tool. You should probably go read about it on [its GitHub repo](https://github.com/top-ghost/octobug) instead. | ||
|
||
Bye! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
--- | ||
permalink: /tags/ | ||
layout: layouts/home.njk | ||
eleventyExcludeFromCollections: true | ||
--- | ||
<h1>Tags</h1> | ||
|
||
<ul> | ||
{% for tag in collections.all | getAllTags | filterTagList %} | ||
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} | ||
<li><a href="{{ tagUrl }}" class="post-tag">{{ tag }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% for tag in collections.all | getAllTags | filterTagList %} | ||
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %} | ||
<li> | ||
<a href="{{ tagUrl }}" class="post-tag">{{ tag }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> |
Oops, something went wrong.