summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-08-16 19:10:21 +0200
committerMartin Fischer <martin@push-f.com>2025-08-16 20:52:56 +0200
commitf5613007297731d12f65ef81e1abacafe1f38cec (patch)
treebff774bfb996e0605ee9309c8cfe77037d103f50
parent47ad2d183c2487539c07918763ccce3daee2b665 (diff)
fork: Typo as Tastefejl
-rw-r--r--CODE_OF_CONDUCT.md128
-rw-r--r--CONTRIBUTING.md19
-rw-r--r--README.md51
-rw-r--r--USERS.md15
-rw-r--r--assets/css/main.css22
-rw-r--r--assets/css/vars.css6
-rw-r--r--layouts/_default/home.html16
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/opengraph.html12
-rw-r--r--theme.toml8
-rw-r--r--wiki/contributors.md95
-rw-r--r--wiki/features/homepage.md17
-rw-r--r--wiki/setup.md31
13 files changed, 20 insertions, 404 deletions
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
deleted file mode 100644
index 18c9147..0000000
--- a/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,128 +0,0 @@
-# Contributor Covenant Code of Conduct
-
-## Our Pledge
-
-We as members, contributors, and leaders pledge to make participation in our
-community a harassment-free experience for everyone, regardless of age, body
-size, visible or invisible disability, ethnicity, sex characteristics, gender
-identity and expression, level of experience, education, socio-economic status,
-nationality, personal appearance, race, religion, or sexual identity
-and orientation.
-
-We pledge to act and interact in ways that contribute to an open, welcoming,
-diverse, inclusive, and healthy community.
-
-## Our Standards
-
-Examples of behavior that contributes to a positive environment for our
-community include:
-
-* Demonstrating empathy and kindness toward other people
-* Being respectful of differing opinions, viewpoints, and experiences
-* Giving and gracefully accepting constructive feedback
-* Accepting responsibility and apologizing to those affected by our mistakes,
- and learning from the experience
-* Focusing on what is best not just for us as individuals, but for the
- overall community
-
-Examples of unacceptable behavior include:
-
-* The use of sexualized language or imagery, and sexual attention or
- advances of any kind
-* Trolling, insulting or derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or email
- address, without their explicit permission
-* Other conduct which could reasonably be considered inappropriate in a
- professional setting
-
-## Enforcement Responsibilities
-
-Community leaders are responsible for clarifying and enforcing our standards of
-acceptable behavior and will take appropriate and fair corrective action in
-response to any behavior that they deem inappropriate, threatening, offensive,
-or harmful.
-
-Community leaders have the right and responsibility to remove, edit, or reject
-comments, commits, code, wiki edits, issues, and other contributions that are
-not aligned to this Code of Conduct, and will communicate reasons for moderation
-decisions when appropriate.
-
-## Scope
-
-This Code of Conduct applies within all community spaces, and also applies when
-an individual is officially representing the community in public spaces.
-Examples of representing our community include using an official e-mail address,
-posting via an official social media account, or acting as an appointed
-representative at an online or offline event.
-
-## Enforcement
-
-Instances of abusive, harassing, or otherwise unacceptable behavior may be
-reported to the community leaders responsible for enforcement at
-.
-All complaints will be reviewed and investigated promptly and fairly.
-
-All community leaders are obligated to respect the privacy and security of the
-reporter of any incident.
-
-## Enforcement Guidelines
-
-Community leaders will follow these Community Impact Guidelines in determining
-the consequences for any action they deem in violation of this Code of Conduct:
-
-### 1. Correction
-
-**Community Impact**: Use of inappropriate language or other behavior deemed
-unprofessional or unwelcome in the community.
-
-**Consequence**: A private, written warning from community leaders, providing
-clarity around the nature of the violation and an explanation of why the
-behavior was inappropriate. A public apology may be requested.
-
-### 2. Warning
-
-**Community Impact**: A violation through a single incident or series
-of actions.
-
-**Consequence**: A warning with consequences for continued behavior. No
-interaction with the people involved, including unsolicited interaction with
-those enforcing the Code of Conduct, for a specified period of time. This
-includes avoiding interactions in community spaces as well as external channels
-like social media. Violating these terms may lead to a temporary or
-permanent ban.
-
-### 3. Temporary Ban
-
-**Community Impact**: A serious violation of community standards, including
-sustained inappropriate behavior.
-
-**Consequence**: A temporary ban from any sort of interaction or public
-communication with the community for a specified period of time. No public or
-private interaction with the people involved, including unsolicited interaction
-with those enforcing the Code of Conduct, is allowed during this period.
-Violating these terms may lead to a permanent ban.
-
-### 4. Permanent Ban
-
-**Community Impact**: Demonstrating a pattern of violation of community
-standards, including sustained inappropriate behavior, harassment of an
-individual, or aggression toward or disparagement of classes of individuals.
-
-**Consequence**: A permanent ban from any sort of public interaction within
-the community.
-
-## Attribution
-
-This Code of Conduct is adapted from the [Contributor Covenant][homepage],
-version 2.0, available at
-https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
-
-Community Impact Guidelines were inspired by [Mozilla's code of conduct
-enforcement ladder](https://github.com/mozilla/diversity).
-
-[homepage]: https://www.contributor-covenant.org
-
-For answers to common questions about this code of conduct, see the FAQ at
-https://www.contributor-covenant.org/faq. Translations are available at
-https://www.contributor-covenant.org/translations.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 9946969..0000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# How to contribute to Typo
-
-The goal of this theme is to be as simple as possible, hence adding or changing existing
-features need some thought.
-
-Any change that is too niche or heavily tailored to a specific developer's need will be rejected, as
-that would make some features cumbersome to set up.
-To avoid unnecessary work, please start a discussion or open an issue with a proposal.
-
-Any other reasonable changes are more than welcome, keep in mind the guidelines:
-- keep the code as minimal as possible, and avoid comments in the code unless needed;
-- keep the parameters (e.g. in hugo.toml) as concise and clear as possible;
-- update the [wiki](https://github.com/tomfran/typo/tree/main/wiki) if needed, trying to maintain the current style of writing;
-- refrain from breaking existing behavior, for example, make a new feature disabled by default;
-- squash your change in a single commit.
-
-<br>
-Thank you, <br>
-Francesco
diff --git a/README.md b/README.md
index 4bf9781..0c82882 100644
--- a/README.md
+++ b/README.md
@@ -1,50 +1,15 @@
-![banner](https://raw.githubusercontent.com/tomfran/typo/main/images/banner-light.webp#gh-light-mode-only)
-![banner](https://raw.githubusercontent.com/tomfran/typo/main/images/banner-dark.webp#gh-dark-mode-only)
+# Tastefejl, a Hugo theme.
-<div align="center">
+Tastefejl is a fork of the [Typo] Hugo theme, with the following changes:
-[![wiki](https://img.shields.io/badge/doc-wiki-red?style=for-the-badge)](https://tomfran.github.io/typo-wiki/)
-[![GitHub Release](https://img.shields.io/github/v/release/tomfran/typo?style=for-the-badge)](https://github.com/tomfran/typo/releases/latest)
-[![last-commit](https://img.shields.io/github/last-commit/tomfran/typo?style=for-the-badge)](https://github.com/tomfran/typo/commits/)
-![stars](https://img.shields.io/github/stars/tomfran/typo?style=for-the-badge&color=orange)
+* Removed [Simple Icons] because I don't want to plaster brands on my website and at one point a 50MB .html file was committed
+ (I filtered the git history to reduce the size of the repository.)
-</div>
+[Typo]: https://github.com/tomfran/typo
+[Simple Icons]: https://simpleicons.org/
-# Typo, a Hugo theme.
+## Wiki
-Typo is a theme backed by simplicity, as you can see in the screenshots below. The goal was to have a website centered around content and nothing more.
-
-**Homepage**
-
-![1](https://raw.githubusercontent.com/tomfran/typo/main/images/1.webp)
-
-**Article**
-
-![2](https://raw.githubusercontent.com/tomfran/typo/main/images/2.webp)
-
-![3](https://raw.githubusercontent.com/tomfran/typo/main/images/3.webp)
-
-## 1 Wiki
-
-Typo's [Wiki](https://tomfran.github.io/typo-wiki/) is the place to find instructions on how to [setup](https://tomfran.github.io/typo-wiki/setup) the theme and an overview of the available [features](https://tomfran.github.io/typo-wiki/features).
+The [Wiki](./wiki/) is the place to find instructions on how to [setup](./wiki/setup.md) the theme and an overview of the available [features](./wiki/features).
Some of the most relevant are: heading auto-numbering, dark mode, color palettes, dark and light images, comments, etc.
-
-## 2 Support
-
-If you use the theme or found it useful you can support me by leaving a star ⭐ to Typo's Github repository.
-
-[Contributions](https://github.com/tomfran/typo/blob/main/CONTRIBUTING.md) are always welcome, feel free to open issues and PRs with fixes or new features.
-
-## 3 Typo Users
-
-If you're using Typo for your website, feel free to add your website to [the list](https://github.com/tomfran/typo/blob/main/USERS.md) alongside what you do! 😊
-
-## 4 Questions or ideas?
-
-Use the [discussion tab](https://github.com/tomfran/typo/discussions) to share ideas/tips/questions about Typo or Hugo in general!
-
-## 5 References
-
-The SVGs for social icons are taken from [Simple Icons](https://github.com/simple-icons/simple-icons).
-Every SVG present on the website is usable on the theme.
diff --git a/USERS.md b/USERS.md
deleted file mode 100644
index ee73e05..0000000
--- a/USERS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Typo Users
-
-- https://tomfran.github.io, **tomfran**, Software Engineer
-- https://arunmathaisk.in/, **Arun Mathai S K**, Software Engineer
-- https://zohaibkhalid.com, **Muhammad Zohaib Khalid**, Data Engineer
-- https://as215887.net, **Serhiy Bobrov**, Personal Autonomous System
-- https://smdp26.github.io/, **Soumyadeep Paul**, PhD
-- https://aadityathapa.github.io/, **Aaditya Thapa**, Data Analyst
-- https://automagic.blog, **Sangeeth Sudheer**, UX Engineer
-- https://kmiziz.xyz, **Vasily Negrebetskiy**, Software Engineer
-- https://nykenik24.github.io, **Nykenik24**, Hobby programmer
-- https://rahulpat1l.github.io/, **Rahul Patil**, Student
-- https://blog.borber.top, **Borber**, Software Engineer
-- https://evenlangas.no, **Even Falkenberg Langås**, Mechatronics Software Engineer
-- https://linh.nguyen.be, **Linh Nguyen**, Software Engineer
diff --git a/assets/css/main.css b/assets/css/main.css
index 9c4b39e..83c0e1f 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -298,26 +298,6 @@ footer a {
font-weight: bold;
}
-/* Social Icons */
-
-.social-icons {
- padding: 12px 0;
- margin-bottom: var(--social-icons-bottom-margin)
-}
-
-.social-icons a {
- text-decoration: none;
-}
-
-.social-icons a:not(:last-of-type) {
- margin-inline-end: 12px;
-}
-
-.social-icons a svg {
- height: 20px;
- width: 20px;
-}
-
/* Single post page */
.single-intro-container {
@@ -633,4 +613,4 @@ blockquote {
blockquote p {
margin-left: 1rem;
margin-right: 1rem;
-} \ No newline at end of file
+}
diff --git a/assets/css/vars.css b/assets/css/vars.css
index 7f9a8a9..16ebb4b 100644
--- a/assets/css/vars.css
+++ b/assets/css/vars.css
@@ -49,9 +49,6 @@
--code-border-radius: 10px;
--copy-code-button-border-radius: 7px;
- /* Social section */
- --social-icons-bottom-margin: 3rem;
-
/* Footer */
--footer-height: 3rem;
@@ -76,7 +73,6 @@
@media screen and (max-width: 640px) {
:root {
--header-top-gap: 1rem;
- --social-icons-bottom-margin: 0rem;
--caption-padding: calc(2 * var(--main-padding));
}
-} \ No newline at end of file
+}
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
index 4c8ebd7..e58a520 100644
--- a/layouts/_default/home.html
+++ b/layouts/_default/home.html
@@ -16,20 +16,6 @@
</div>
{{ end }}
-{{/* Social Icons */}}
-
-{{ with site.Params.social }}
-<div class="social-icons">
- {{- range . }}
- <a href="{{ trim .url " " | safeURL }}" target="_blank"
- rel="noopener noreferrer me"
- title="{{ (.title | default .name) | title }}">
- {{ partial "svg.html" . }}
- </a>
- {{- end }}
-</div>
-{{ end }}
-
{{/* Collection Section */}}
{{ if .Site.Params.homeCollection }}
@@ -58,4 +44,4 @@
{{ end }}
</div>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index cb20f6f..e7d754c 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,10 +7,10 @@
<p>Powered by
<a href="https://gohugo.io/">Hugo</a>
and
- <a href="https://github.com/tomfran/typo">tomfran/typo</a>
+ <a href="https://git.push-f.com/tastefejl/">tastefejl</a>
</p>
{{ end }}
-
+
{{ with .Site.Params.footerContent }}
<p>{{ . | markdownify }}</p>
{{ end }}
diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html
index d770df1..35ba416 100644
--- a/layouts/partials/opengraph.html
+++ b/layouts/partials/opengraph.html
@@ -80,15 +80,3 @@
{{- end }}
{{- end }}
{{- end }}
-
-{{- with site.Params.social }}
- {{- if reflect.IsMap . }}
- {{- with .facebook_app_id }}
- <meta property="fb:app_id" content="{{ . }}">
- {{- else }}
- {{- with .facebook_admin }}
- <meta property="fb:admins" content="{{ . }}">
- {{- end }}
- {{- end }}
- {{- end }}
-{{- end }} \ No newline at end of file
diff --git a/theme.toml b/theme.toml
index 00b2f16..b43d626 100644
--- a/theme.toml
+++ b/theme.toml
@@ -1,11 +1,10 @@
-name = 'Typo'
+name = 'Tastefejl'
license = 'MIT'
-licenselink = 'https://github.com/tomfran/typo/blob/main/LICENSE'
description = 'A simple Hugo theme'
-homepage = 'https://github.com/tomfran/typo'
+homepage = 'https://git.push-f.com/tastefejl/'
-demosite = 'https://tomfran.github.io/'
+demosite = 'https://push-f.com/'
tags = [
"responsive",
@@ -25,7 +24,6 @@ features = [
"table-of-contents",
"highlight.js",
"favicon",
- "social-icons",
"minified-assets",
"dark-light-images",
"color-palettes",
diff --git a/wiki/contributors.md b/wiki/contributors.md
deleted file mode 100644
index 37ff048..0000000
--- a/wiki/contributors.md
+++ /dev/null
@@ -1,95 +0,0 @@
----
-title: "Contributors"
-date: "2025-01-01"
-summary: "List of Typo's contributors"
-description: "List of Typo's contributors"
-toc: false
-readTime: false
-autonumber: false
-math: false
-showTags: false
-hidePagination: true
-hideBackToTop: true
----
-
-<div id="loading-message">fetching GitHub data, hang tight!</div>
-
-<div id="content" style="display: none;">
- Typo is currently on release <a href="https://github.com/tomfran/typo/releases/latest"><span id="release-number">...</span></a>,
- with <span id="star-count">over 300</span> stars, and
- <span id="contributors-count">over 20</span> contributors:
-
- <div id="contributors-list" style="display: flex; flex-wrap: wrap; gap: 15px; margin-top: 1.5rem;"></div>
-</div>
-
-<script>
- async function fetchGitHubData() {
- const cacheKey = "githubData";
- const cacheExpiryKey = "githubDataExpiry";
- const cacheExpiryTime = 3600 * 1000;
-
- const cachedData = localStorage.getItem(cacheKey);
- const cachedExpiry = localStorage.getItem(cacheExpiryKey);
- const now = new Date().getTime();
-
- if (cachedData && cachedExpiry && now < cachedExpiry) {
- const { starCount, contributors, latestRelease } = JSON.parse(cachedData);
- updateUI(starCount, contributors, latestRelease);
- return;
- }
-
- try {
- const [repoRes, releaseRes, contributorsRes] = await Promise.all([
- fetch("https://api.github.com/repos/tomfran/typo"),
- fetch("https://api.github.com/repos/tomfran/typo/releases/latest"),
- fetch("https://api.github.com/repos/tomfran/typo/contributors")
- ]);
-
- const [repoData, releaseData, contributors] = await Promise.all([
- repoRes.json(),
- releaseRes.json(),
- contributorsRes.json()
- ]);
-
- const starCount = repoData.stargazers_count;
- const latestRelease = releaseData.name;
-
- localStorage.setItem(cacheKey, JSON.stringify({ starCount, contributors, latestRelease }));
- localStorage.setItem(cacheExpiryKey, now + cacheExpiryTime);
-
- updateUI(starCount, contributors, latestRelease);
- } catch (error) {
- console.error("Error fetching GitHub data:", error);
- document.getElementById("star-count").textContent = "Failed to fetch star count.";
- document.getElementById("contributors-count").textContent = "Failed to fetch contributors.";
- document.getElementById("release-number").textContent = "Failed to fetch release.";
- }
- }
-
- function updateUI(starCount, contributors, latestRelease) {
- document.getElementById("loading-message").style.display = "none";
- document.getElementById("content").style.display = "block";
-
- document.getElementById("release-number").textContent = latestRelease;
- document.getElementById("star-count").textContent = `${starCount}`;
- document.getElementById("contributors-count").textContent = `${contributors.length}`;
-
- const contributorsList = document.getElementById("contributors-list");
- contributorsList.innerHTML = "";
-
- contributors.forEach(contributor => {
- const contributorItem = document.createElement("a");
- contributorItem.href = contributor.html_url;
- contributorItem.title = contributor.login;
- contributorItem.style.display = "inline-block";
-
- contributorItem.innerHTML = `
- <img src="${contributor.avatar_url}" alt="${contributor.login}" width="45" height="45" style="border-radius: 50%;">
- `;
-
- contributorsList.appendChild(contributorItem);
- });
- }
-
- fetchGitHubData();
-</script>
diff --git a/wiki/features/homepage.md b/wiki/features/homepage.md
index 45ff1b9..db4cb37 100644
--- a/wiki/features/homepage.md
+++ b/wiki/features/homepage.md
@@ -10,7 +10,7 @@ math: false
showTags: false
---
-The homepage offers minimal customization options, you can specify an intro, a collection to display, and social icons.
+The homepage offers minimal customization options, you can specify an intro, and a collection to display.
## Intro Section
@@ -28,21 +28,6 @@ I am interested in a range of topics, including algorithms, distributed systems,
Note that you can omit one of the two if you want.
-## Social Icons
-
-You can include social icons after the intro like follows.
-
-```toml
-[[params.social]]
-name = "linkedin"
-url = "https://www.linkedin.com/in/user/"
-
-[[params.social]]
-name = "medium"
-url = "https://medium.com/@user"
-```
-
-If some icons are missing, feel free to open a request or a PR.
## Display a Collection
You can decide to include a collection in your homepage:
diff --git a/wiki/setup.md b/wiki/setup.md
index b93f21d..16e8dd5 100644
--- a/wiki/setup.md
+++ b/wiki/setup.md
@@ -30,7 +30,7 @@ Themes are contained in the `/themes` directory, there are different ways to get
**Submodule - Recommended**
```bash
-git submodule add --depth=1 https://github.com/tomfran/typo.git themes/typo
+git submodule add --depth=1 https://git.push-f.com/tastefejl themes/tastefejl
git submodule update --init --recursive
```
@@ -55,18 +55,6 @@ path = "github.com/tomfran/typo"
Finally, remove the `theme = 'typo'` parameter from `hugo.toml`.
-**Cloning**
-
-```bash
-git clone https://github.com/tomfran/typo themes/typo --depth=1
-```
-
-You need to keep it updated manually by pulling.
-
-**Manual download a release**
-
-Finally, you can manually download a [release](https://github.com/tomfran/typo/releases) and unzip it into the appropriate folder.
-
## Sample Config
Use those to get started with the theme. You can find a complete overview of the available features [here](https://tomfran.github.io/typo-wiki/features/).
@@ -81,7 +69,7 @@ Here is a sample `hugo.toml` config to get started with the theme.
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My website'
-theme = 'typo'
+theme = 'tastefejl'
# Google analytics code
googleAnalytics = "G-xxxxxxxxx"
@@ -120,19 +108,6 @@ enabled = true
showCurrentPage = true
home = "Home"
-# Social icons
-[[params.social]]
-name = "linkedin"
-url = "https://www.linkedin.com/in/user/"
-
-[[params.social]]
-name = "medium"
-url = "https://medium.com/@user"
-
-[[params.social]]
-name = "github"
-url = "https://github.com/user"
-
# Main menu pages
[[params.menu]]
name = "home"
@@ -187,4 +162,4 @@ fediverse: "@username@instance.url"
## Support
-If you use the theme or found it useful you can support me by leaving a star :star: to Typo's Github repository or opening issues and PRs with fixes or new features. \ No newline at end of file
+If you use the theme or found it useful you can support me by leaving a star :star: to Typo's Github repository or opening issues and PRs with fixes or new features.