Skip to content

Conversation

@siddhpant
Copy link

I started to use this theme but the development was stopped, so I made some changes in my fork to add some features and do some fixes.

Now that you are back, I would like to merge those changes. I pulled new master and redid my changes (and some new fixes) since the current master of the fork is based on the old one.

Please take a look at all the commits.

The font version used is old. Let's use the latest version (6.2).
Source: https://github.com/tonsky/FiraCode/releases/tag/6.2

Let's use WOFF2 versions as their sizes are smaller so website load can
be faster.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Seems to be erroneously added in c779a70, but that commit actually
seems to "fix" the issue where a random "::" was in between when it was
seemingly supposed to be one colon.

But anyways, we don't need a colon as the context is clear by being in
the bracket.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…is set.

In c779a70, we copied the rest of the stuff but not for the top
conditional. Fix that up.

Fixes: c779a70 ("Add configurable timestamping for posts (panr#494)")
Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…horter.

It is unnecessarily verbose.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…instead of brackets.

"<date> [Updated: <date>] :: ..." v/s "<date> :: Updated <date> :: ..."

The latter seems to be more in line with the theme.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…rent from post date.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…letely.

For example, an about page need not have a date since that isn't really
a "blog post".

To use this, add `hideDate: True` in the frontmatter.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
With this, one can set prefix for creation date from the config using
"createdDatePrefix".

In case it's not set, no prefix is set, which preserves the existing
behaviour.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
So the logic is more clear.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Allow using LaTeX by setting `latex: true` on the page.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Adding custom parameters to the top level language configuration is
deprecated. So after moving the parameters to languages.xx.params,
Site.Title does not work as we define title under langauges.

See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Make it match the other titles + subtitle is meant to be showed.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…able via partial.

Let's allow overriding just the copyright section, as HTML in a string
in the config file can get unwieldy very soon. It also allows linking
to a custom credits page and license text.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Copyrights belong to the author, not hugo.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
…ear.

When content is from, say, 2020 for example, then the copyright line
having "© 2025" is misleading. Let's allow making it "© 2020-2025"
instead upon generation.

Set CopyrightStartYear in site config to use this.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
It is the natural intuition for a user that crawlers like Google won't
index pages linked by pages which are marked as noindex.

But it turns out crawlers are snarky and will follow the links in a
noindex page. We need to set nofollow too to stop that from happening.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
This improves SEO for the page.

While at it, we add a new boolean config key "nsfw" which tells whether
the website is nsfw or not.

Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>
@siddhpant siddhpant mentioned this pull request Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant