diff options
| author | Martin Fischer <martin@push-f.com> | 2025-08-16 19:10:21 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2025-08-16 20:52:56 +0200 | 
| commit | f5613007297731d12f65ef81e1abacafe1f38cec (patch) | |
| tree | bff774bfb996e0605ee9309c8cfe77037d103f50 /wiki | |
| parent | 47ad2d183c2487539c07918763ccce3daee2b665 (diff) | |
fork: Typo as Tastefejl
Diffstat (limited to 'wiki')
| -rw-r--r-- | wiki/contributors.md | 95 | ||||
| -rw-r--r-- | wiki/features/homepage.md | 17 | ||||
| -rw-r--r-- | wiki/setup.md | 31 | 
3 files changed, 4 insertions, 139 deletions
| 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. | 
