M changelog.md => changelog.md +12 -0
@@ 1,3 1,15 @@
+## 2023 design simplification
+
+- Use a single layout file to simplify overall style and structure
+- Unify post, page and tag specific style and structure
+- Remove unneeded layouts
+- Inject compressed styles into layout via style tag
+- Use specific styles for a template via its head block
+- Cleanup extraneous model properties
+- Update associated content as much as possible
+
+[Reference #1](https://git.sr.ht/~animesh/anmsh.net/commit/586c5a6b3a2d809191cb852c309e3b42fc2414d2)
+
## Migrate to Sourcehut
- Move blog from Gitlab to Sourcehut
A content/changelog/2020-redesign/contents.lr => content/changelog/2020-redesign/contents.lr +20 -0
@@ 0,0 1,20 @@
+_model: page
+---
+title: 2020 redesign
+---
+modified_date: 2020-10-01
+---
+body:
+
+## Added
+
+- RSS feed
+
+## Changed
+
+- HTML structure
+- UI design
+- Header and footer (links and text)
+- Page content (about, now)
+
+[Reference](/blog-redesign-2020/)<
\ No newline at end of file
A content/changelog/2022-redesign/contents.lr => content/changelog/2022-redesign/contents.lr +43 -0
@@ 0,0 1,43 @@
+_model: page
+---
+title: 2022 redesign
+---
+modified_date: 2022-06-25
+---
+body:
+
+## Added
+
+- Atom feed
+- Year grouping items on posts model
+- Reintroduce sub-posts on notes
+- Show unpublished posts in a tag listing
+- Breadcrumbs on post template
+
+## Changed
+
+- Accent colors
+- Heading styles
+- Footer content
+- Post and posts macros
+- Feed config
+
+## Fixed
+
+- Date format on posts
+- Draft link styles
+- Header spacing issues
+- Post specific JS includes
+- Current design
+- Mobile-first design
+- TOC style
+
+## Removed
+
+- Draft date logic
+
+## Unreleased/Wontfix
+
+- Implement a single tags page **Closed as not possible**
+
+[Reference](/blog-redesign-2022/)<
\ No newline at end of file
M content/changelog/contents.lr => content/changelog/contents.lr +9 -76
@@ 8,81 8,14 @@ metadesc: This blog's changelog
---
body:
-## Migrate to Sourcehut
+## 2023 design simplification
-- Move blog from Gitlab to Sourcehut
-- Replace Gitlab Pages with VPS
+- Use a single layout file to simplify overall style and structure
+- Unify post, page and tag specific style and structure
+- Remove unneeded layouts
+- Inject compressed styles into layout via style tag
+- Use specific styles for a template via its head block
+- Cleanup extraneous model properties
+- Update associated content as much as possible
-### Added
-
-- SourceHut build definition
-
-### Changed
-
-- Blog URL
-- Atom feed URL
-- Favicon
-- Index page
-
-### Fixed
-
-- Atom feed absolute URL
-
-### Removed
-
-- Gitlab CI definition
-
-[Reference #1](/gitlab-to-sourcehut/), [Reference #2](/deploy-to-vps-with-sourcehut-builds/)
-
-## 2022 redesign
-
-### Added
-
-- Atom feed
-- Year grouping items on posts model
-- Reintroduce sub-posts on notes
-- Show unpublished posts in a tag listing
-- Breadcrumbs on post template
-
-### Changed
-
-- Accent colors
-- Heading styles
-- Footer content
-- Post and posts macros
-- Feed config
-
-### Fixed
-
-- Date format on posts
-- Draft link styles
-- Header spacing issues
-- Post specific JS includes
-- Current design
-- Mobile-first design
-- TOC style
-
-### Removed
-
-- Draft date logic
-
-### Unreleased/Wontfix
-
-- Implement a single tags page **Closed as not possible**
-
-[Reference](/blog-redesign-2022/)
-
-## 2020 redesign
-
-### Added
-
-- RSS feed
-
-### Changed
-
-- HTML structure
-- UI design
-- Header and footer (links and text)
-- Page content (about, now)
-
-[Reference](/blog-redesign-2020/)>
\ No newline at end of file
+[Reference #1](https://git.sr.ht/~animesh/anmsh.net/commit/586c5a6b3a2d809191cb852c309e3b42fc2414d2)<
\ No newline at end of file
A content/changelog/migrate-to-sourcehut/contents.lr => content/changelog/migrate-to-sourcehut/contents.lr +33 -0
@@ 0,0 1,33 @@
+_model: page
+---
+title: Migrate to sourcehut
+---
+modified_date: 2022-08-22
+---
+body:
+
+Intent:
+
+- Move blog from Gitlab to Sourcehut
+- Replace Gitlab Pages with VPS
+
+## Added
+
+- SourceHut build definition
+
+## Changed
+
+- Blog URL
+- Atom feed URL
+- Favicon
+- Index page
+
+## Fixed
+
+- Atom feed absolute URL
+
+## Removed
+
+- Gitlab CI definition
+
+[Reference #1](/gitlab-to-sourcehut/), [Reference #2](/deploy-to-vps-with-sourcehut-builds/)<
\ No newline at end of file
M models/page.ini => models/page.ini +2 -1
@@ 19,4 19,5 @@ type = date
width = 1/4
[children]
-model = page>
\ No newline at end of file
+model = page
+order_by = -modified_date<
\ No newline at end of file
M templates/page.html => templates/page.html +4 -4
@@ 7,11 7,11 @@
{{ this.body }}
{% set children = this.children %}
{%if children%}
-<p>Previous:</p>
-<ol>
+<span>Previous:</span>
+<ul>
{% for child in children %}
- <li><a href="{{child|url}}">{{ child.title }}</a></li>
+ <li><small>{{child.modified_date}}</small> <a href="{{child|url}}">{{ child.title }}</a></li>
{% endfor %}
-</ol>
+</ul>
{%endif%}
{% endblock %}=
\ No newline at end of file