Unit 7: single/list/home refactor + shared icons + print partial#9
Open
stradichenko wants to merge 1 commit intomainfrom
Open
Unit 7: single/list/home refactor + shared icons + print partial#9stradichenko wants to merge 1 commit intomainfrom
stradichenko wants to merge 1 commit intomainfrom
Conversation
- single.html: drop the in-template asset bundler (now lives in head/styles.html). Replace inline metadata SVGs with calls to a new partials/icons.html. i18n Created / Updated / TableOfContents. Add loading=lazy + decoding=async + responsive srcset to the header image. Move inline <style media=print> into a partials/print-vars.html partial. - list.html: i18n TableOfContents; reuse the shared truncation partial. - home.html: verify recent-posts-grid + filters partial dict args. - NEW partials/icons.html: reusable icon partial (calendar, clock, share, social icons) keyed by name; centralizes inline SVGs that were scattered across templates. - NEW partials/print-vars.html: extracted from single.html.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
single.html: drop the in-template asset bundler (now lives inhead/styles.html). Replace inline metadata SVGs with calls to a newpartials/icons.html. i18nCreated/Updated/TableOfContents. Addloading=lazy+decoding=async+ responsivesrcsetto the header image. Move inline<style media=print>intopartials/print-vars.html.list.html: i18nTableOfContents; reuse the shared truncation pattern.home.html: verifyrecent-posts-grid+filterspartial dict args.partials/icons.html: reusable icon partial keyed byname(calendar, clock, share, social icons) — centralizes ~20 inline SVGs scattered across templates.partials/print-vars.html: extracted fromsingle.html.Test plan
exampleSite/content/posts/example.md— verifyCreated:is i18n'd, no duplicate CSS bundle.srcset.partials/icons.html.Part of the PKB-theme modernization batch (15 units).