summaryrefslogtreecommitdiff
path: root/layouts
AgeCommit message (Collapse)Author
2025-08-16feat: add vscode syntax highlightingMartin Fischer
2025-08-16fix: remove render image hook breaking Markdown attrs for imagesMartin Fischer
2025-08-16change: replace default footer with generator meta tagsMartin Fischer
2025-08-16fix: remove default faviconMartin Fischer
2025-08-16change: make home template embed content/home.mdMartin Fischer
2025-08-16fix: enable dark theme via CSSMartin Fischer
2025-08-16fork: Typo as TastefejlMartin Fischer
2025-07-05Add options to hide list dates (#115)crnh
Add showListDate parameter, show readTime dot if date is present
2025-05-18Update katex, add rawhtml shortcodeFrancesco
2025-05-17Fix issue where urls have single slash after protocolLinh Nguyen
2025-05-16Skip subsummary rendering if not neededFrancesco
2025-05-16Add author renderingFrancesco
2025-05-04Word break in header menu, reduced excessive margins while wrappedFrancesco
2025-04-29Merge pull request #130 from linh-n/mainFrancesco Tomaselli
fixes #129 double slash for favicons
2025-04-29Merge pull request #131 from ↵Francesco Tomaselli
runofthemillgeek/refactor/content-inside-article-header-tags Move primary content inside an <article> tag
2025-04-29Move primary content inside an <article> tagSangeeth Sudheer
Main article will now belong in an <article> tag and the title/header info will be inside a <header> tag within the <article>. Shouldn't introduce any style/functional changes besides improve the semantics. Comments section is moved outside the <article> as it doesn't directly relate to the article's contents. Other changes: - Used `{{-` to remove some of the whitespace while keeping source HTML structure looking correct
2025-04-26Fix double slash for faviconsLinh Nguyen
2025-04-26Include og-image.html in all pagesSangeeth Sudheer
Not sure why I added those checks earlier, but it's good to have og-image.html in all pages, like sections for tags/content categories.
2025-04-25Make opengraph.html a normal partialSangeeth Sudheer
Moves `opengraph.html` under `layout/partials` and updates `head.html` to include from the updated path. This change is needed to make things work with Hugo >=v0.144.0 as they moved templates like `opengraph.html` from `_internals` breaking existing usage. The doc also recommends doing this: https://gohugo.io/templates/embedded/#open-graph This change shouldn't affect existing users of Typo unless they override `head.html`.
2025-04-18Add proper table renderingFrancesco
2025-04-01Put body_end above footerCorné Haasjes
2025-04-01Fix get_hook functionCorné Haasjes
2025-04-01Add support for hooks in layouts/partials/hooksCorné Haasjes
Supported hooks: - head_start - head_end - body_end - footer_start
2025-04-01Merge pull request #102 from runofthemillgeek/fix/aspect-ratio-layout-shiftFrancesco Tomaselli
Fix layout shifts by preserving aspect-ratio at responsive sizes
2025-04-01Merge pull request #100 from runofthemillgeek/feat/og-image-partialFrancesco Tomaselli
Add partial to customize og:image meta property
2025-03-26Fix layout shifts by preserving aspect-ratio at responsive sizesSangeeth Sudheer
Uses `aspect-ratio` property to constrain height and width of render image's container to allow responsive resizing while maintaining the original aspect ratio and avoiding layout shifts. Previously, even though `width` and `height` attributes were passed to the `img` element, Chrome (and probably others) weren't reserving space for the image as expected because CSS `width`/`height` were both `auto`. At least one of them needed to be a fixed value in order to maintain aspect ratio. Even with this change, it doesn't seem possible to constrain both width and height on the same element at the same time — only one or the other works. The change introduced makes the `img` element constrain width using `max-width` while the parent element constrain height using `max-height` and `aspect-ratio`. This way, we can get responsive sizing on both axes while obeying the constraints.
2025-03-19Nowrap on pagination controlFrancesco
2025-03-15Remove `px` from width/height img attributes in render-image hookSangeeth Sudheer
As per the spec, width/height attrs should be non-negative integers but currently, they are being rendered with a `px` suffix. This change removes the suffix which hopefully fixes any outstanding layout shifts. References: - https://html.spec.whatwg.org/multipage/embedded-content-other.html#dimension-attributes
2025-03-15Add partial to customize og:image meta propertySangeeth Sudheer
Adds a new partial — `head/og-image.html` — that will render the value to be used for `og:image` meta tags. The changes preserve the existing Hugo OpenGraph template's behavior of checking and using the frontmatter or specific format of image names as the `og:image` but if that doesn't work, it will delegate to the default partial which uses `assets/images/og-image.{ext}` as the image. This partial can be overriden to allow dynamic `og:image` URLs via a third-party service. `_internal/opengraph.html` source is copied from Hugo to customize and support this feature. Docs are updated to mention its usage.
2025-03-14Merge pull request #95 from runofthemillgeek/feat/breadcrumbs-customizationFrancesco Tomaselli
Add breadcrumbs config to hide current page and change home text
2025-03-14Fix error sentence in 404 pageMarko Pejić
2025-03-14Fix home anchor tag spacing in 404 pageMarko Pejić
2025-03-09Add breadcrumbs config to hide current page and change home textSangeeth Sudheer
Changes `breadcrumbs` config into an object to add customizations such as hiding current page and changing the text of the home crumb. By default, Typo will now show breadcrumbs. If breadcrumbs are enabled, the current default of showing the current page crumb is preserved. BREAKING CHANGE: `breadcrumbs` is now an object so existing `breadcrumbs = <true/false>` line in config needs to be changed.
2025-02-21Merge pull request #86 from OleMussmann/configure-mermaid-themeFrancesco Tomaselli
Configure mermaid theme
2025-02-21make mermaid themes configurableOle Mussmann
2025-02-20move inline JS to its own fileOle Mussmann
2025-02-20Cleanup breadcrumbsFrancesco
2025-02-19Update breadcrumbs styleFrancesco
2025-02-02fix disappearing header linksOle Mussmann
2025-01-25fix mermaid diagram renderingOle Mussmann
closes #69
2025-01-20fix: change property for nameEduardo Flores
2025-01-20add: fediverse meta tagEduardo Flores
2025-01-16feat(copy-code): To allow user to copy contents within code block to clipboardArun Mathai
fix(ui): corrections told by tomfran fix(ui): add more contrast to button. fix(ui): loading js as deferred
2024-12-25Re-order if statementSenophyx
2024-12-25Adding features to disable comment on specific postSenophyx
2024-11-23move math block to baseof.htmlJuan Pablo Valencia
2024-11-19Merge pull request #50 from jpvg10/translate-datesFrancesco Tomaselli
2024-11-18Merge pull request #49 from runofthemillgeek/feat/heading-anchorsFrancesco Tomaselli
Add article heading anchors
2024-11-18adding support for translating datesJuan Pablo Valencia
2024-11-17Add width and height attrs for local imagesSangeeth Sudheer
Image render hook now computes width/height of local images and adds them as attributes. This patch also adds relevant CSS changes to prevent stretchy images. The main reason for this change is to avoid content shifts when images load. Without providing width/height, browser doesn't have info to know the aspect ratio to reserve some space until the image loads. With this change, browser knows the intrinsic size and aspect-ratio to reserve space and avoid content shifts in the page. I believe this also fixes an issue I face in Safari where sometimes, an image below the fold wouldn't load and thus have zero height because it has loading="lazy". To avoid images getting stretched and images overflow/filling the entire screen when their intrinsic size is larger than the container size, I've added some CSS. A configurable `max-height` is present which is used for `figure img` elements. This especially helps when you have tall images like mobile screenshots.