Compare commits

..

9 Commits
main ... v1.4.0

Author SHA1 Message Date
James Panther
f6bb3b4223
🔖 Release v1.4.0
All checks were successful
Test Build / Build Example Site (push) Successful in 6s
2024-05-01 15:20:01 +10:00
James Panther
0dd9772171
🔖 Release v1.3.1
Some checks failed
Test Build / Build Example Site (push) Failing after 7s
2023-09-10 11:02:11 +10:00
James Panther
d3527e6a96
🔖 Release v1.3.0
Some checks failed
Test Build / Build Example Site (push) Failing after 10s
2023-06-04 11:05:14 +10:00
James Panther
14ff75f663
🔖 Release v1.2.4
Some checks failed
Test Build / Build Example Site (push) Failing after 6s
2023-01-18 10:03:17 +11:00
James Panther
5aa33a10e9
🔖 Release v1.2.3
Some checks failed
Test Build / Build Example Site (push) Failing after 7s
2023-01-09 15:12:36 +11:00
James Panther
0180ec02a6
🔖 Release v1.2.2
Some checks failed
Test Build / Build Example Site (push) Failing after 6s
2022-11-22 11:27:17 +11:00
James Panther
24552a7df2
🔖 Release v1.2.1
Some checks failed
Test Build / Build Example Site (push) Failing after 8s
2022-08-19 09:19:05 +10:00
James Panther
2dc3128a6d
🔖 Release v1.2.0
Some checks failed
Test Build / Build Example Site (push) Failing after 7s
2022-06-17 12:04:55 +10:00
James Panther
02593c926c
🔖 Release v1.1.0
Some checks failed
Test Build / build (push) Failing after 6s
2021-11-06 17:55:02 +11:00
22 changed files with 419 additions and 10 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1 @@
github: jpanther

47
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View File

@ -0,0 +1,47 @@
name: 🐛 Bug Report
description: Report a new problem encountered using the theme
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Before proceeding, please check that a similar issue has not already been reported. [View open issues](https://github.com/jpanther/lynx/issues)
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Describe the issue and how to reproduce it, including what you expected to happen.
validations:
required: true
- type: input
id: theme-version
attributes:
label: Theme version
description: What version of the theme are you using?
placeholder: eg. v1.1.0
validations:
required: true
- type: input
id: hugo-version
attributes:
label: Hugo version
description: What version of Hugo are you using?
placeholder: eg. v0.86.1
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- type: textarea
id: logs
attributes:
label: Relevant Hugo log output
description: Please copy and paste any relevant Hugo log output. This will be automatically formatted into code, so no need for backticks.
render: shell

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 💡 Feature Request
url: https://github.com/jpanther/lynx/discussions
about: Request and discuss enhancements using GitHub Discussions
- name: 🙋‍♀️ Question
url: https://github.com/jpanther/lynx/discussions
about: Please ask and answer general questions using GitHub Discussions

45
.github/ISSUE_TEMPLATE/i18n-issue.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: 💬 i18n Issue
description: Report an issue with i18n or translations
labels: [i18n]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this issue report!
- type: input
id: language
attributes:
label: Language
description: Which language are you using?
placeholder: eg. English
validations:
required: true
- type: textarea
id: issue
attributes:
label: What's the issue?
description: Describe the translation issue and how to reproduce it.
validations:
required: true
- type: input
id: theme-version
attributes:
label: Theme version
description: What version of the theme are you using?
placeholder: eg. v1.1.0
validations:
required: true
- type: input
id: hugo-version
attributes:
label: Hugo version
description: What version of Hugo are you using?
placeholder: eg. v0.86.1
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant Hugo log output
description: Please copy and paste any relevant Hugo log output. This will be automatically formatted into code, so no need for backticks.
render: shell

26
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,26 @@
# GitHub Dependabot
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "09:00"
timezone: "Australia/Melbourne"
commit-message:
prefix: "📌"
labels:
- "dependencies"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "09:00"
timezone: "Australia/Melbourne"
commit-message:
prefix: "👷"
labels:
- "dependencies"

7
.github/labeller.yml vendored Normal file
View File

@ -0,0 +1,7 @@
i18n:
- changed-files:
- any-glob-to-any-file: i18n/*
documentation:
- changed-files:
- any-glob-to-any-file: ["*.md", "exampleSite/content/*"]

2
.github/pull_request_template.md vendored Normal file
View File

@ -0,0 +1,2 @@
<!-- IMPORTANT! Before submitting, ensure you have followed the Contributing guidelines. -->
<!-- https://github.com/jpanther/lynx/blob/dev/CONTRIBUTING.md -->

25
.github/workflows/build-theme.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Build Theme
on: [pull_request_target]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "${{ github.head_ref }}"
- name: Install dependencies and Build Theme
uses: actions/setup-node@v4
- run: npm install
- run: npm run build
- name: Commit CSS changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: "${{ github.head_ref }}"
push_options: "--dry-run"
file_pattern: "assets/css/compiled/main.css"
commit_message: "💄 Rebuild CSS"
- run: git push

36
.github/workflows/gh-pages.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: GitHub Pages
on:
push:
branches:
- stable
jobs:
build-deploy:
name: Build and Deploy
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest"
- name: Build
working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/lynx/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/stable' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./exampleSite/public

18
.github/workflows/label.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Labeller
on: [pull_request_target]
jobs:
label:
name: Label
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Label
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeller.yml

30
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: "Close stale issues and PRs"
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-stale: 30
days-before-close: 14
stale-issue-label: "stale"
stale-pr-label: "stale"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had any recent activity.
If you are still experiencing this issue, please review the issue history and add a reply with any requested and/or additional information in order to keep the issue open.
This issue will automactically close in 14 days if no further activity occurs.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had any recent activity.
Please review the PR history and add a reply with any requested information. If no information has been requested, it may be that this contribution does not fit with the project objectives, or does not adhere to the [contributing guidelines](https://github.com/jpanther/lynx/blob/dev/CONTRIBUTING.md). If this is in error, please add a reply with further details.
This PR will automactically close in 14 days if no further activity occurs.

25
.github/workflows/test-build.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Test Build
on: [push]
jobs:
build:
name: Build Example Site
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest"
- name: Build
working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/lynx/

View File

@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Support for Bandcamp, Bluesky, Spotify and Threads
- Support for Bandcamp, Blueksy, Spotify and Threads
- Support for X (Twitter) ([#107](https://github.com/jpanther/lynx/pull/107))
### Changed

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

View File

@ -1,22 +1,62 @@
# baseURL = "https://your_domain.com/"
languageCode = "zh-cn"
defaultContentLanguage = "zh-cn"
languageCode = "en"
defaultContentLanguage = "en"
title = "xiushen"
title = "Lynx"
# copyright = "Copy, _right?_ :thinking_face:"
enableEmoji = true
disableKinds = ["taxonomy", "term"]
[params.author]
name = "xiushen"
headline = "有趣的灵魂只此一人"
image = "avatar.jpeg"
# name = "Your name here"
# headline = "An awesome person"
# image = "img/author.jpg" # path relative to static directory
links = [
{ email = "mailto:alyenc@outlook.com" },
{ github = "https://github.com/alyenc" },
{ gitlab = "https://gitlab.com/alyenc" }
# { email = "mailto:hello@your_domain.com" },
# { link = "https://link-to-some-website.com/" },
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
# { apple = "https://www.apple.com" },
# { bandcamp = "https://username.bandcamp.com" },
# { bluesky = "https://bsky.app/profile/username" },
# { codepen = "https://codepen.io/username" },
# { dev = "https://dev.to/username" },
# { discord = "https://discord.gg/invitecode" },
# { dribbble = "https://dribbble.com/username" },
# { facebook = "https://facebook.com/username" },
# { flickr = "https://www.flickr.com/photos/username/" },
# { foursquare = "https://foursquare.com/username" },
# { github = "https://github.com/username" },
# { gitlab = "https://gitlab.com/username" },
# { google = "https://www.google.com/" },
# { instagram = "https://instagram.com/username" },
# { keybase = "https://keybase.io/username" },
# { kickstarter = "https://www.kickstarter.com/profile/username" },
# { lastfm = "https://last.fm/user/username" },
# { linkedin = "https://linkedin.com/in/username" },
# { mastodon = "https://mastodon.instance/@username" },
# { medium = "https://medium.com/username" },
# { microsoft = "https://www.microsoft.com/" },
# { patreon = "https://www.patreon.com/username" },
# { pinterest = "https://pinterest.com/username" },
# { reddit = "https://reddit.com/user/username" },
# { slack = "https://workspace.url/team/userid" },
# { snapchat = "https://snapchat.com/add/username" },
# { soundcloud = "https://soundcloud.com/username" },
# { spotify = "https://spotify.com/user/username" },
# { stack-exchange = "https://stackexchange.com/users/userid/username" },
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
# { steam = "https://steamcommunity.com/profiles/userid" },
# { telegram = "https://t.me/username" },
# { threads = "https://threads.com/username" },
# { tiktok = "https://tiktok.com/@username" },
# { tumblr = "https://username.tumblr.com" },
# { twitch = "https://twitch.tv/username" },
# { twitter = "https://twitter.com/username" },
# { whatsapp = "https://wa.me/phone-number" },
# { x = "https://x.com/username" },
# { youtube = "https://youtube.com/username" },
]
[module]

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -0,0 +1,9 @@
.link-font-awesome {
background: rgb(131, 58, 180);
background: linear-gradient(
90deg,
rgba(131, 58, 180, 1) 0%,
rgba(253, 29, 29, 1) 50%,
rgba(252, 176, 69, 1) 100%
);
}

View File

@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="font-awesome-flag" class="svg-inline--fa fa-font-awesome-flag fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M448 48V384c-63 23-82 32-119 32-63 0-87-32-150-32-20 0-36 4-51 8V328c15-4 31-8 51-8 63 0 87 32 150 32 20 0 35-3 55-9V135c-20 6-35 9-55 9-63 0-87-32-150-32-51 0-75 21-115 29V448a31.6 31.6 0 0 1-32 32A31.6 31.6 0 0 1 0 448V64A31.6 31.6 0 0 1 32 32 31.6 31.6 0 0 1 64 64V77c40-8 64-29 115-29 63 0 87 32 150 32C366 80 385 71 448 48Z"></path></svg>

After

Width:  |  Height:  |  Size: 582 B

24
exampleSite/config.toml Normal file
View File

@ -0,0 +1,24 @@
theme = "lynx"
title = "Lynx"
enableEmoji = true
disableKinds = ["taxonomy", "term"]
[params.author]
name = "Lynx"
headline = "A simple links theme for Hugo built with Tailwind CSS"
image = "author.jpg"
links = [
{ link = { href = "https://github.com/jpanther/lynx/blob/stable/README.md", text = "View the readme", icon = "github" } },
{ link = { href = "styles/", text = "All the link styles", target = "_self" } },
{ github = "https://github.com/jpanther/lynx" },
{ x = "https://x.com/jpanther" },
{ font-awesome = { href = "https://fontawesome.com/", text = "FontAwesome" } },
]
[markup.highlight]
noClasses = false
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true

View File

@ -0,0 +1,5 @@
---
description: "This is a demo of the Lynx theme for Hugo."
---
View the readme or check out all the link styles available using the links below.

View File

@ -0,0 +1,52 @@
---
title: Link styles
---
These are all the built-in link styles available in Lynx. Don't forget that you can also create your own styles --- check the [readme](https://github.com/jpanther/lynx/blob/stable/README.md) for more details.
<br><br>
</section>
<section class="flex flex-col flex-wrap min-w-full mt-4 sm:min-w-0">
{{< link email >}}
{{< link link >}}
{{< link amazon >}}
{{< link apple >}}
{{< link bandcamp >}}
{{< link bluesky >}}
{{< link codepen >}}
{{< link dev >}}
{{< link discord >}}
{{< link dribbble >}}
{{< link facebook >}}
{{< link flickr >}}
{{< link foursquare >}}
{{< link github >}}
{{< link gitlab >}}
{{< link google >}}
{{< link instagram >}}
{{< link keybase >}}
{{< link kickstarter >}}
{{< link lastfm >}}
{{< link linkedin >}}
{{< link mastodon >}}
{{< link medium >}}
{{< link microsoft >}}
{{< link patreon >}}
{{< link pinterest >}}
{{< link reddit >}}
{{< link slack >}}
{{< link snapchat >}}
{{< link soundcloud >}}
{{< link spotify >}}
{{< link stack-exchange >}}
{{< link stack-overflow >}}
{{< link steam >}}
{{< link telegram >}}
{{< link threads >}}
{{< link tiktok >}}
{{< link tumblr >}}
{{< link twitch >}}
{{< link twitter >}}
{{< link whatsapp >}}
{{< link x >}}
{{< link youtube >}}

View File

@ -0,0 +1,8 @@
<a
class="link link-{{ .Get 0 }} mb-3 min-w-full rounded py-2 text-center text-lg sm:px-24"
href="#"
onclick="navigator.clipboard.writeText({{ .Get 0 }})"
>
<span class="mr-1">{{ partial "icon.html" (.Get 0) }}</span>
{{ .Get 0 }}
</a>