Commit graph

254 commits

Author SHA1 Message Date
Francesco
024ed63f65 Add disable comment wiki 2025-01-01 18:15:36 +01:00
Francesco Tomaselli
4c30e4fb66
Merge pull request #59 from Senophyx/main
Adding parameter `disableComment` to disable Giscus comment on specific post.
2025-01-01 18:13:11 +01:00
Francesco
35f4186cde Modified wiki 2025-01-01 18:10:18 +01:00
Francesco
3d6d2498cf Removed hardcoded contributors 2025-01-01 18:06:00 +01:00
Francesco
2adf635926 Add wiki source 2025-01-01 18:03:30 +01:00
Francesco
159eef8f49 update readme 2024-12-31 12:31:49 +01:00
Francesco
d7d2532792 Readme 2024-12-31 12:22:01 +01:00
Senophyx
1cf30d5ee1 Re-order if statement 2024-12-25 16:37:08 +07:00
Senophyx
b3c35f92dd Adding features to disable comment on specific post 2024-12-25 14:01:41 +07:00
Francesco
1eea39761e Update README 2024-12-24 13:38:16 +01:00
Francesco
8abf342095 Updated README 2024-12-24 13:35:44 +01:00
Francesco Tomaselli
5d84a799e9
Merge pull request #57 from crnh/main
Add support for installing theme as Hugo module
2024-12-24 12:37:49 +01:00
crnh
335293b25c
Change GitHub user 2024-12-23 13:58:40 +01:00
crnh
f515908906
Add go module file 2024-12-23 13:29:58 +01:00
Francesco
8db773b556 Replace existing social icons definition with 3227 icons from Simple Icons 2024-11-27 21:40:02 +01:00
Francesco Tomaselli
5d7fb94edd
Merge pull request #52 from jpvg10/fix-footer-math
Fix: overwriting footer.html breaks math
2024-11-23 15:02:31 +01:00
Juan Pablo Valencia
241671f2b9 move math block to baseof.html 2024-11-23 13:07:57 +02:00
Francesco Tomaselli
b9c6d8f3f7
Merge pull request #50 from jpvg10/translate-dates 2024-11-19 09:30:04 +01:00
Francesco
3618437a1c Increased max image height, heading anchor tag to monospace 2024-11-18 22:26:37 +01:00
Francesco Tomaselli
5ee19e964c
Merge pull request #49 from runofthemillgeek/feat/heading-anchors
Add article heading anchors
2024-11-18 22:17:01 +01:00
Francesco Tomaselli
afd36b256e
Merge pull request #48 from runofthemillgeek/feat/img-width-height-attrs
Add width and height attrs for local images
2024-11-18 22:14:35 +01:00
Juan Pablo Valencia
3e7e8a78f6 adding support for translating dates 2024-11-18 20:10:31 +02:00
Sangeeth Sudheer
47ba12bd1c
Add width and height attrs for local images
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.
2024-11-17 17:21:02 +05:30
Sangeeth Sudheer
62972cfe7a
Add article heading anchors
Adds heading anchors (#) that appear when user hovers over headings in
articles. Clicking the anchor will scroll viewport until heading is
aligned to top and update the address bar with the hash. This makes it
easy to copy URLs that link to a specific heading in the article.
2024-11-17 16:27:18 +05:30
Francesco Tomaselli
4e760d1c8d
Merge pull request #43 from runofthemillgeek/feat/md-img-relative-links
Support relative paths in markdown images
2024-11-05 22:04:54 +01:00
Sangeeth Sudheer
9f5b8e8059
Support relative paths in markdown images
Adds code from Hugo's built-in render-image hook
and modifies it slightly to support relative image
paths in markdown files.

Previously, we'd have to spell the absolute path
from root of the hugo site or make directories for
each individual post which is what Hugo recommend.
But this was very inefficient. This change allows
us to use editors like Obsidian, VSCode and have
them render the images correctly. It also supports
Hugo's page bundles for rendering images as a
result. Based on the order, I believe page bundles
are given priority so that works out.

i.e, if you have the following tree:

```
content
└── posts
   ├── _index.md
   ├── hello.md
   ├── images
   │  └── test.png
   └── test.png
```

You can now include images in `hello.md` in the
following ways:

```
![](test.png)
![](images/test.png)
![](./test.png)
![](./images/test.png)
```
2024-10-31 03:33:47 +05:30
Francesco Tomaselli
c80f6e2898 Merge pull request #40 from runofthemillgeek/chore/optimize-readme-images
Optimize images in README
2024-10-30 21:21:48 +01:00
Sangeeth Sudheer
f58697e326 Optimize images in README 2024-10-31 01:09:38 +05:30
Francesco
dc50e46aa9 Updated Readme 2024-10-30 19:41:33 +01:00
Francesco
5ee75c5f4f Add small to header p 2024-10-30 18:53:46 +01:00
Francesco Tomaselli
66e189aa04 Merge pull request #36 from runofthemillgeek/fix/font-family-fallback
Add font-family fallback and optimize font loading
2024-10-30 18:44:24 +01:00
Sangeeth Sudheer
6a5dd619d5 Add font-family fallback and optimize font loading
Optimized font loading by adding `font-display: swap`. Additionally,
moved font-family values into CSS variables.
2024-10-29 23:33:04 +05:30
Francesco Tomaselli
a3a29cf470 Merge pull request #38 from runofthemillgeek/feat/link-main-title-to-home-page 2024-10-29 17:04:10 +01:00
Francesco Tomaselli
b643cb2df9 Merge pull request #37 from runofthemillgeek/chore/update-gitignore 2024-10-29 17:03:46 +01:00
Francesco Tomaselli
2cb6f832c9 Merge pull request #35 from runofthemillgeek/patch-1 2024-10-29 17:00:31 +01:00
Sangeeth Sudheer
a405e509ec Make header title a link to base URL (home page)
This is a common pattern found in many sites. I've also added styling
to remove the underline.
2024-10-28 14:10:57 +05:30
Sangeeth Sudheer
7edddef3dd Update .gitignore
Used https://www.toptal.com/developers/gitignore to update the
.gitignore file with go, hugo, macos, linux and windows specific
entries.
2024-10-28 13:59:39 +05:30
Sangeeth Sudheer
e1c2bf3313 Add support for Open Graph tags
This change will allow us to use the `images` property in frontmatter to display a cover image when sharing links to content in social media.

Open Graph support is provided out of the box with Hugo and is a one-line change. See docs: https://gohugo.io/templates/embedded/#open-graph
2024-10-28 11:33:32 +05:30
Francesco Tomaselli
56f4a62fc5 Merge pull request #34 from smdp26/patch-1 2024-10-18 19:48:19 +02:00
smdp26
18a4fd4e89 Update USERS.md 2024-10-18 21:03:39 +05:30
Francesco Tomaselli
43cf01d7cb Merge pull request #33 from baragoon/main 2024-10-14 17:00:55 +02:00
Serhiy
c4623fa071 Update USERS.md
add https://as215887.net
2024-10-14 12:15:34 +03:00
Francesco Tomaselli
ece172127f Merge pull request #31 from Frankkkkk/patch-1
single view: markdownify summary
2024-10-10 19:44:36 +02:00
Frank Villaro-Dixon
3dbee5b30d single view: markdownify summary
The summary is not markdownified, and thus we see the md content on the summary. This fixes that
2024-10-10 13:57:36 +02:00
Francesco Tomaselli
5edbb3335a Merge pull request #29 from khalidzohaib/patch-1
Update USERS.md
2024-10-05 22:40:14 +02:00
Zohaib Khalid
befb4a18dd Update USERS.md
Added myself as a user.
2024-10-05 17:49:39 +05:00
Francesco Tomaselli
548d67bb03 Merge pull request #26 from simon-siggaard/main
add support for Mermaid diagrams
2024-09-21 21:33:39 +02:00
simon-siggaard
7a7c68d177 add support for Mermaid diagrams 2024-09-20 14:41:06 +02:00
Francesco Tomaselli
598717df84 Merge pull request #24 from arunmathaisk/main
feat: Content License and Copyright holder as Footer
2024-09-17 22:48:28 +02:00
Arun
9f5d10de22 fix: set deaflt value of showFooter as true 2024-09-15 21:30:25 +05:30