Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2dc3128a6d | ||
![]() |
02593c926c |
1
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
github: jpanther
|
47
.github/ISSUE_TEMPLATE/bug-report.yml
vendored
Normal 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
@ -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
@ -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
@ -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"
|
6
.github/labeller.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
i18n:
|
||||||
|
- i18n/*
|
||||||
|
|
||||||
|
documentation:
|
||||||
|
- "*.md"
|
||||||
|
- exampleSite/content/*
|
2
.github/pull_request_template.md
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<!-- IMPORTANT! Before submitting, ensure you have followed the Contributing guidelines. -->
|
||||||
|
<!-- https://github.com/jpanther/lynx/blob/dev/CONTRIBUTING.md -->
|
36
.github/workflows/gh-pages.yml
vendored
Normal 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@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
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@v3
|
||||||
|
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
@ -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@v4
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
configuration-path: .github/labeller.yml
|
30
.github/workflows/stale.yml
vendored
Normal 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@v5
|
||||||
|
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
@ -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@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
with:
|
||||||
|
hugo-version: "latest"
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ./exampleSite
|
||||||
|
run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/lynx/
|
@ -1,3 +0,0 @@
|
|||||||
/assets/css/compiled/
|
|
||||||
|
|
||||||
/layouts/_default/_markup/*.html
|
|
@ -1,11 +1,9 @@
|
|||||||
{
|
{
|
||||||
"plugins": ["prettier-plugin-go-template", "prettier-plugin-tailwindcss"],
|
|
||||||
"goTemplateBracketSpacing": true,
|
"goTemplateBracketSpacing": true,
|
||||||
"htmlWhitespaceSensitivity": "css",
|
"htmlWhitespaceSensitivity": "css",
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"useTabs": false,
|
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
76
CHANGELOG.md
@ -1,77 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
All notable changes to Lynx will be documented in this file. Things that need particular attention when upgrading from a prior version are marked ⚠️.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## [1.4.0] - 2024-05-01
|
|
||||||
|
|
||||||
### Added
|
|
||||||
|
|
||||||
- Support for Bandcamp, Bluesky, Spotify and Threads
|
|
||||||
- Support for X (Twitter) ([#107](https://github.com/jpanther/lynx/pull/107))
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- ⚠️ Author param block in site config moved to `params.author` to align with recent deprecations in the Hugo project
|
|
||||||
- Upgrade to Tailwind v3.4.3 ([#138](https://github.com/jpanther/lynx/pull/138))
|
|
||||||
- Upgrade to Typography v0.5.11 ([#137](https://github.com/jpanther/lynx/pull/137))
|
|
||||||
|
|
||||||
## [1.3.1] - 2023-09-10
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Upgrade to Tailwind v3.3.3 ([#77](https://github.com/jpanther/lynx/pull/77))
|
|
||||||
- Upgrade to Typography v0.5.10 ([#90](https://github.com/jpanther/lynx/pull/90))
|
|
||||||
|
|
||||||
## [1.3.0] - 2023-06-04
|
|
||||||
|
|
||||||
### Added
|
|
||||||
|
|
||||||
- Support for Stack Exchange and Stack Overflow ([#52](https://github.com/jpanther/lynx/pull/52))
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Updated GitLab icon
|
|
||||||
- Upgrade to Tailwind v3.3.2 ([#74](https://github.com/jpanther/lynx/pull/74))
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
|
|
||||||
- Error building site when using Hugo v0.112.0 or later ([#73](https://github.com/jpanther/lynx/issues/73))
|
|
||||||
|
|
||||||
## [1.2.4] - 2023-01-18
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Upgrade to Typography v0.5.9 ([#41](https://github.com/jpanther/lynx/pull/41))
|
|
||||||
|
|
||||||
## [1.2.3] - 2023-01-09
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Updated Mastodon link colour in line with branding changes ([#36](https://github.com/jpanther/lynx/pull/36))
|
|
||||||
|
|
||||||
## [1.2.2] - 2022-11-22
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Upgrade to Tailwind v3.2.4 ([#30](https://github.com/jpanther/lynx/pull/30))
|
|
||||||
- Upgrade to Typography v0.5.8 ([#23](https://github.com/jpanther/lynx/pull/23), [#27](https://github.com/jpanther/lynx/pull/27))
|
|
||||||
|
|
||||||
## [1.2.1] - 2022-08-19
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Upgrade to Tailwind v3.1.8 ([#12](https://github.com/jpanther/lynx/pull/12), [#18](https://github.com/jpanther/lynx/pull/18))
|
|
||||||
- Upgrade to Typography v0.5.4 ([#16](https://github.com/jpanther/lynx/pull/16))
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
|
|
||||||
- Home link not pointing to correct URL when site deployed in a sub-directory
|
|
||||||
|
|
||||||
## [1.2.0] - 2022-06-17
|
## [1.2.0] - 2022-06-17
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@ -113,14 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Fathom Analytics and Google Analytics support
|
- Fathom Analytics and Google Analytics support
|
||||||
- Favicons support
|
- Favicons support
|
||||||
|
|
||||||
[Unreleased]: https://github.com/jpanther/lynx/compare/v1.4.0...HEAD
|
[unreleased]: https://github.com/jpanther/lynx/compare/v1.2.0...HEAD
|
||||||
[1.4.0]: https://github.com/jpanther/lynx/compare/v1.3.1...v1.4.0
|
|
||||||
[1.3.1]: https://github.com/jpanther/lynx/compare/v1.3.0...v1.3.1
|
|
||||||
[1.3.0]: https://github.com/jpanther/lynx/compare/v1.2.4...v1.3.0
|
|
||||||
[1.2.4]: https://github.com/jpanther/lynx/compare/v1.2.3...v1.2.4
|
|
||||||
[1.2.3]: https://github.com/jpanther/lynx/compare/v1.2.2...v1.2.3
|
|
||||||
[1.2.2]: https://github.com/jpanther/lynx/compare/v1.2.1...v1.2.2
|
|
||||||
[1.2.1]: https://github.com/jpanther/lynx/compare/v1.2.0...v1.2.1
|
|
||||||
[1.2.0]: https://github.com/jpanther/lynx/compare/v1.1.0...v1.2.0
|
[1.2.0]: https://github.com/jpanther/lynx/compare/v1.1.0...v1.2.0
|
||||||
[1.1.0]: https://github.com/jpanther/lynx/compare/v1.0.0...v1.1.0
|
[1.1.0]: https://github.com/jpanther/lynx/compare/v1.0.0...v1.1.0
|
||||||
[1.0.0]: https://github.com/jpanther/lynx/releases/tags/v1.0.0
|
[1.0.0]: https://github.com/jpanther/lynx/releases/tags/v1.0.0
|
||||||
|
@ -71,7 +71,7 @@ Acceptable link parameters are:
|
|||||||
- `title` = the HTML title of the link
|
- `title` = the HTML title of the link
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[params.author]
|
[author]
|
||||||
links = {
|
links = {
|
||||||
# Simple link
|
# Simple link
|
||||||
{ github = "https://github.com/jpanther/lynx" }
|
{ github = "https://github.com/jpanther/lynx" }
|
||||||
|
Before Width: | Height: | Size: 109 KiB |
@ -1,4 +1,4 @@
|
|||||||
/*! Lynx v1.4.0 | MIT License | https://github.com/jpanther/lynx */
|
/*! Lynx v1.2.0 | MIT License | https://github.com/jpanther/lynx */
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/* Links */
|
/* Links */
|
||||||
.link {
|
.link {
|
||||||
@apply bg-primary-700 text-white hover:brightness-90;
|
@apply text-white bg-primary-700 hover:brightness-90;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-amazon {
|
.link-amazon {
|
||||||
@ -21,13 +21,6 @@
|
|||||||
.link-apple {
|
.link-apple {
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
}
|
}
|
||||||
.link-bandcamp {
|
|
||||||
background-color: #1da0c3;
|
|
||||||
}
|
|
||||||
.link-bluesky {
|
|
||||||
background: #0084ff;
|
|
||||||
background: linear-gradient(2.35619rad, #5a72fa 0%, #0084ff 100%);
|
|
||||||
}
|
|
||||||
.link-codepen {
|
.link-codepen {
|
||||||
background-color: #1e1f26;
|
background-color: #1e1f26;
|
||||||
}
|
}
|
||||||
@ -76,7 +69,7 @@
|
|||||||
background-color: #0077b5;
|
background-color: #0077b5;
|
||||||
}
|
}
|
||||||
.link-mastodon {
|
.link-mastodon {
|
||||||
background-color: #6364ff;
|
background-color: #338cd4;
|
||||||
}
|
}
|
||||||
.link-medium {
|
.link-medium {
|
||||||
background-color: #00ab6c;
|
background-color: #00ab6c;
|
||||||
@ -110,18 +103,12 @@
|
|||||||
background-color: #ff8800;
|
background-color: #ff8800;
|
||||||
background: linear-gradient(120deg, #ff8800, #ff3300);
|
background: linear-gradient(120deg, #ff8800, #ff3300);
|
||||||
}
|
}
|
||||||
.link-spotify {
|
|
||||||
background-color: #1db954;
|
|
||||||
}
|
|
||||||
.link-steam {
|
.link-steam {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
.link-telegram {
|
.link-telegram {
|
||||||
background-color: #25a3e1;
|
background-color: #25a3e1;
|
||||||
}
|
}
|
||||||
.link-threads {
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
.link-tiktok {
|
.link-tiktok {
|
||||||
background-color: #fe2d55;
|
background-color: #fe2d55;
|
||||||
}
|
}
|
||||||
@ -138,23 +125,14 @@
|
|||||||
background-color: #45d82c;
|
background-color: #45d82c;
|
||||||
background: linear-gradient(120deg, #12990b, #45d82c);
|
background: linear-gradient(120deg, #12990b, #45d82c);
|
||||||
}
|
}
|
||||||
.link-x {
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
.link-youtube {
|
.link-youtube {
|
||||||
background-color: #ff0000;
|
background-color: #ff0000;
|
||||||
}
|
}
|
||||||
.link-stack-exchange {
|
|
||||||
background-color: #0095ff;
|
|
||||||
}
|
|
||||||
.link-stack-overflow {
|
|
||||||
background-color: #f48024;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -- Chroma Highlight -- */
|
/* -- Chroma Highlight -- */
|
||||||
/* Background */
|
/* Background */
|
||||||
.prose .chroma {
|
.prose .chroma {
|
||||||
@apply rounded-md bg-neutral-50 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200;
|
@apply rounded-md text-neutral-700 bg-neutral-50 dark:bg-neutral-700 dark:text-neutral-200;
|
||||||
}
|
}
|
||||||
|
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="currentColor" d="M256 8C119 8 8 119 8 256S119 504 256 504 504 393 504 256 393 8 256 8zm48.2 326.1h-181L207.9 178h181z"/></svg>
|
|
Before Width: | Height: | Size: 352 B |
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="currentColor" d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4 .4 6.7 .9 10 1.3zM288 227.1C261.9 176.4 190.9 81.9 124.9 35.3C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3 .5-6.6 1-10 1.4C74.3 308.6-9.1 342.8 100.3 464.5C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4 .4 6.7 .9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1z"/></svg>
|
|
Before Width: | Height: | Size: 807 B |
@ -1 +1 @@
|
|||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="gitlab" class="svg-inline--fa fa-gitlab fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M503.5 204.6L502.8 202.8L433.1 21.02C431.7 17.45 429.2 14.43 425.9 12.38C423.5 10.83 420.8 9.865 417.9 9.57C415 9.275 412.2 9.653 409.5 10.68C406.8 11.7 404.4 13.34 402.4 15.46C400.5 17.58 399.1 20.13 398.3 22.9L351.3 166.9H160.8L113.7 22.9C112.9 20.13 111.5 17.59 109.6 15.47C107.6 13.35 105.2 11.72 102.5 10.7C99.86 9.675 96.98 9.295 94.12 9.587C91.26 9.878 88.51 10.83 86.08 12.38C82.84 14.43 80.33 17.45 78.92 21.02L9.267 202.8L8.543 204.6C-1.484 230.8-2.72 259.6 5.023 286.6C12.77 313.5 29.07 337.3 51.47 354.2L51.74 354.4L52.33 354.8L158.3 434.3L210.9 474L242.9 498.2C246.6 500.1 251.2 502.5 255.9 502.5C260.6 502.5 265.2 500.1 268.9 498.2L300.9 474L353.5 434.3L460.2 354.4L460.5 354.1C482.9 337.2 499.2 313.5 506.1 286.6C514.7 259.6 513.5 230.8 503.5 204.6z"></path></svg>
|
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="gitlab" class="svg-inline--fa fa-gitlab fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M105.2 24.9c-3.1-8.9-15.7-8.9-18.9 0L29.8 199.7h132c-.1 0-56.6-174.8-56.6-174.8zM.9 287.7c-2.6 8 .3 16.9 7.1 22l247.9 184-226.2-294zm160.8-88l94.3 294 94.3-294zm349.4 88l-28.8-88-226.3 294 247.9-184c6.9-5.1 9.7-14 7.2-22zM425.7 24.9c-3.1-8.9-15.7-8.9-18.9 0l-56.6 174.8h132z"></path></svg>
|
Before Width: | Height: | Size: 997 B After Width: | Height: | Size: 506 B |
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path fill="currentColor" d="M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"/></svg>
|
|
Before Width: | Height: | Size: 890 B |
@ -1 +0,0 @@
|
|||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="stack-exchange" class="svg-inline--fa fa-stack-exchange fa-w-20" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M17.7 332.3h412.7v22c0 37.7-29.3 68-65.3 68h-19L259.3 512v-89.7H83c-36 0-65.3-30.3-65.3-68v-22zm0-23.6h412.7v-85H17.7v85zm0-109.4h412.7v-85H17.7v85zM365 0H83C47 0 17.7 30.3 17.7 67.7V90h412.7V67.7C430.3 30.3 401 0 365 0z"/></svg>
|
|
Before Width: | Height: | Size: 463 B |
@ -1 +0,0 @@
|
|||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="stack-overflow" class="svg-inline--fa fa-stack-overflow fa-w-20" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M290.7 311L95 269.7 86.8 309l195.7 41zm51-87L188.2 95.7l-25.5 30.8 153.5 128.3zm-31.2 39.7L129.2 179l-16.7 36.5L293.7 300zM262 32l-32 24 119.3 160.3 32-24zm20.5 328h-200v39.7h200zm39.7 80H42.7V320h-40v160h359.5V320h-40z"/></svg>
|
|
Before Width: | Height: | Size: 462 B |
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M331.5 235.7c2.2 .9 4.2 1.9 6.3 2.8c29.2 14.1 50.6 35.2 61.8 61.4c15.7 36.5 17.2 95.8-30.3 143.2c-36.2 36.2-80.3 52.5-142.6 53h-.3c-70.2-.5-124.1-24.1-160.4-70.2c-32.3-41-48.9-98.1-49.5-169.6V256v-.2C17 184.3 33.6 127.2 65.9 86.2C102.2 40.1 156.2 16.5 226.4 16h.3c70.3 .5 124.9 24 162.3 69.9c18.4 22.7 32 50 40.6 81.7l-40.4 10.8c-7.1-25.8-17.8-47.8-32.2-65.4c-29.2-35.8-73-54.2-130.5-54.6c-57 .5-100.1 18.8-128.2 54.4C72.1 146.1 58.5 194.3 58 256c.5 61.7 14.1 109.9 40.3 143.3c28 35.6 71.2 53.9 128.2 54.4c51.4-.4 85.4-12.6 113.7-40.9c32.3-32.2 31.7-71.8 21.4-95.9c-6.1-14.2-17.1-26-31.9-34.9c-3.7 26.9-11.8 48.3-24.7 64.8c-17.1 21.8-41.4 33.6-72.7 35.3c-23.6 1.3-46.3-4.4-63.9-16c-20.8-13.8-33-34.8-34.3-59.3c-2.5-48.3 35.7-83 95.2-86.4c21.1-1.2 40.9-.3 59.2 2.8c-2.4-14.8-7.3-26.6-14.6-35.2c-10-11.7-25.6-17.7-46.2-17.8H227c-16.6 0-39 4.6-53.3 26.3l-34.4-23.6c19.2-29.1 50.3-45.1 87.8-45.1h.8c62.6 .4 99.9 39.5 103.7 107.7l-.2 .2zm-156 68.8c1.3 25.1 28.4 36.8 54.6 35.3c25.6-1.4 54.6-11.4 59.5-73.2c-13.2-2.9-27.8-4.4-43.4-4.4c-4.8 0-9.6 .1-14.4 .4c-42.9 2.4-57.2 23.2-56.2 41.8l-.1 .1z"/></svg>
|
|
Before Width: | Height: | Size: 1.2 KiB |
@ -1 +0,0 @@
|
|||||||
<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="x" class="svg-inline--fa fa-x fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>
|
|
Before Width: | Height: | Size: 372 B |
53
config.toml
@ -1,22 +1,55 @@
|
|||||||
# baseURL = "https://your_domain.com/"
|
# baseURL = "https://your_domain.com/"
|
||||||
languageCode = "zh-cn"
|
languageCode = "en"
|
||||||
defaultContentLanguage = "zh-cn"
|
defaultContentLanguage = "en"
|
||||||
|
|
||||||
title = "xiushen"
|
title = "Lynx"
|
||||||
# copyright = "Copy, _right?_ :thinking_face:"
|
# copyright = "Copy, _right?_ :thinking_face:"
|
||||||
|
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
disableKinds = ["taxonomy", "term"]
|
disableKinds = ["taxonomy", "term"]
|
||||||
|
|
||||||
[params.author]
|
[author]
|
||||||
name = "xiushen"
|
# name = "Your name here"
|
||||||
headline = "有趣的灵魂只此一人"
|
# headline = "An awesome person"
|
||||||
image = "avatar.jpeg"
|
# image = "img/author.jpg" # path relative to static directory
|
||||||
|
|
||||||
links = [
|
links = [
|
||||||
{ email = "mailto:alyenc@outlook.com" },
|
# { email = "mailto:hello@your_domain.com" },
|
||||||
{ github = "https://github.com/alyenc" },
|
# { link = "https://link-to-some-website.com/" },
|
||||||
{ gitlab = "https://gitlab.com/alyenc" }
|
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
|
||||||
|
# { apple = "https://www.apple.com" },
|
||||||
|
# { 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://lastfm.com/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" },
|
||||||
|
# { steam = "https://steamcommunity.com/profiles/userid" },
|
||||||
|
# { telegram = "https://t.me/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" },
|
||||||
|
# { youtube = "https://youtube.com/username" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[module]
|
[module]
|
||||||
|
BIN
exampleSite/assets/author.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
9
exampleSite/assets/css/custom.css
Normal 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%
|
||||||
|
);
|
||||||
|
}
|
1
exampleSite/assets/icons/font-awesome.svg
Normal 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
@ -0,0 +1,24 @@
|
|||||||
|
theme = "lynx"
|
||||||
|
title = "Lynx"
|
||||||
|
|
||||||
|
enableEmoji = true
|
||||||
|
disableKinds = ["taxonomy", "term"]
|
||||||
|
|
||||||
|
[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" },
|
||||||
|
{ twitter = "https://twitter.com/jpanther" },
|
||||||
|
{ font-awesome = { href = "https://fontawesome.com/", text = "FontAwesome" } },
|
||||||
|
]
|
||||||
|
|
||||||
|
[markup.highlight]
|
||||||
|
noClasses = false
|
||||||
|
|
||||||
|
[markup.goldmark]
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
unsafe = true
|
5
exampleSite/content/_index.md
Normal 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.
|
45
exampleSite/content/styles.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
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 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 steam >}}
|
||||||
|
{{< link telegram >}}
|
||||||
|
{{< link tiktok >}}
|
||||||
|
{{< link tumblr >}}
|
||||||
|
{{< link twitch >}}
|
||||||
|
{{< link twitter >}}
|
||||||
|
{{< link whatsapp >}}
|
||||||
|
{{< link youtube >}}
|
8
exampleSite/layouts/shortcodes/link.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<a
|
||||||
|
class="link link-{{ .Get 0 }} sm:px-24 min-w-full py-2 mb-3 text-lg rounded text-center"
|
||||||
|
href="#"
|
||||||
|
onclick="navigator.clipboard.writeText({{ .Get 0 }})"
|
||||||
|
>
|
||||||
|
<span class="mr-1">{{ partial "icon.html" (.Get 0) }}</span>
|
||||||
|
{{ .Get 0 }}
|
||||||
|
</a>
|
@ -1,8 +1,6 @@
|
|||||||
link:
|
link:
|
||||||
amazon: Amazon
|
amazon: Amazon
|
||||||
apple: Apple
|
apple: Apple
|
||||||
bandcamp: Bandcamp
|
|
||||||
bluesky: Bluesky
|
|
||||||
codepen: CodePen
|
codepen: CodePen
|
||||||
dev: DEV
|
dev: DEV
|
||||||
discord: Discord
|
discord: Discord
|
||||||
@ -31,19 +29,14 @@ link:
|
|||||||
slack: Slack
|
slack: Slack
|
||||||
snapchat: Snapchat
|
snapchat: Snapchat
|
||||||
soundcloud: Soundcloud
|
soundcloud: Soundcloud
|
||||||
spotify: Spotify
|
|
||||||
steam: Steam
|
steam: Steam
|
||||||
telegram: Telegram
|
telegram: Telegram
|
||||||
threads: Threads
|
|
||||||
tiktok: TikTok
|
tiktok: TikTok
|
||||||
tumblr: Tumblr
|
tumblr: Tumblr
|
||||||
twitch: Twitch
|
twitch: Twitch
|
||||||
twitter: Twitter
|
twitter: Twitter
|
||||||
whatsapp: WhatsApp
|
whatsapp: WhatsApp
|
||||||
x: 𝕏
|
|
||||||
youtube: YouTube
|
youtube: YouTube
|
||||||
stack-exchange: Stack Exchange
|
|
||||||
stack-overflow: Stack Overflow
|
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
home: Home
|
home: Home
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
link:
|
link:
|
||||||
amazon: Amazon
|
amazon: Amazon
|
||||||
apple: Apple
|
apple: Apple
|
||||||
bandcamp: Bandcamp
|
|
||||||
bluesky: Bluesky
|
|
||||||
codepen: CodePen
|
codepen: CodePen
|
||||||
dev: DEV
|
dev: DEV
|
||||||
discord: Discord
|
discord: Discord
|
||||||
@ -31,16 +29,13 @@ link:
|
|||||||
slack: Slack
|
slack: Slack
|
||||||
snapchat: Snapchat
|
snapchat: Snapchat
|
||||||
soundcloud: Soundcloud
|
soundcloud: Soundcloud
|
||||||
spotify: Spotify
|
|
||||||
steam: Steam
|
steam: Steam
|
||||||
telegram: Telegram
|
telegram: Telegram
|
||||||
threads: Threads
|
|
||||||
tiktok: TikTok
|
tiktok: TikTok
|
||||||
tumblr: Tumblr
|
tumblr: Tumblr
|
||||||
twitch: Twitch
|
twitch: Twitch
|
||||||
twitter: Twitter
|
twitter: Twitter
|
||||||
whatsapp: WhatsApp
|
whatsapp: WhatsApp
|
||||||
x: 𝕏
|
|
||||||
youtube: YouTube
|
youtube: YouTube
|
||||||
|
|
||||||
# nav:
|
# nav:
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
|
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<body
|
<body
|
||||||
class="bg-neutral m-auto flex h-screen max-w-7xl flex-col px-6 text-lg leading-7 text-neutral-900 sm:px-14 md:px-24 lg:px-32 dark:bg-neutral-800 dark:text-white"
|
class="flex flex-col h-screen px-6 m-auto text-lg leading-7 bg-neutral text-neutral-900 sm:px-14 md:px-24 lg:px-32 dark:bg-neutral-800 dark:text-white max-w-7xl"
|
||||||
>
|
>
|
||||||
<main class="flex-grow">{{- block "main" . }}{{- end }}</main>
|
<main class="flex-grow">{{- block "main" . }}{{- end }}</main>
|
||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article class="mt-10 flex flex-col items-center justify-center">
|
<article class="flex flex-col items-center justify-center mt-10">
|
||||||
<nav class="place-self-start">
|
<nav class="place-self-start">
|
||||||
<a href="{{ "" | relURL }}" class="text-neutral-500">← {{ i18n "nav.home" }}</a>
|
<a href="{{ "/" | relURL }}" class="text-neutral-500">← {{ i18n "nav.home" }}</a>
|
||||||
</nav>
|
</nav>
|
||||||
<header>
|
<header>
|
||||||
<h1 class="mb-6 mt-2 text-center text-4xl font-extrabold text-neutral-800 dark:text-white">
|
<h1 class="mt-2 mb-6 text-4xl font-extrabold text-center text-neutral-800 dark:text-white">
|
||||||
{{ .Title | emojify }}
|
{{ .Title | emojify }}
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article class="mt-10 flex h-full flex-col items-center justify-center text-center">
|
<article class="flex flex-col items-center justify-center h-full mt-10 text-center">
|
||||||
<header class="mb-3 flex flex-col items-center">
|
<header class="flex flex-col items-center mb-3">
|
||||||
{{ with .Site.Params.Author.image }}
|
{{ with .Site.Author.image }}
|
||||||
{{ $src := . }}
|
{{ $src := . }}
|
||||||
{{ $resource := "" }}
|
{{ $resource := "" }}
|
||||||
{{ if $.Page.Resources.GetMatch $src }}
|
{{ if $.Page.Resources.GetMatch $src }}
|
||||||
@ -13,27 +13,27 @@
|
|||||||
{{ $src = (.Fill "288x288").RelPermalink }}
|
{{ $src = (.Fill "288x288").RelPermalink }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img
|
<img
|
||||||
class="mb-2 h-36 w-36 rounded-full"
|
class="mb-2 rounded-full w-36 h-36"
|
||||||
width="144"
|
width="144"
|
||||||
height="144"
|
height="144"
|
||||||
alt="{{ $.Site.Params.Author.name | default "Author" }}"
|
alt="{{ $.Site.Author.name | default "Author" }}"
|
||||||
src="{{ $src }}"
|
src="{{ $src }}"
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<h1 class="text-4xl font-extrabold dark:text-white">
|
<h1 class="text-4xl font-extrabold dark:text-white">
|
||||||
{{ .Params.title | default .Site.Params.Author.name | default .Site.Title | emojify }}
|
{{ .Params.title | default .Site.Author.name | default .Site.Title | emojify }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ with .Site.Params.Author.headline }}
|
{{ with .Site.Author.headline }}
|
||||||
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
||||||
{{ . | markdownify | emojify }}
|
{{ . | markdownify | emojify }}
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<section class="prose pt-5 dark:prose-invert">{{ . | emojify }}</section>
|
<section class="pt-5 prose dark:prose-invert">{{ . | emojify }}</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{ with .Site.Params.Author.links }}
|
{{ with .Site.Author.links }}
|
||||||
<div class="mt-4 flex min-w-full flex-col flex-wrap sm:min-w-0">
|
<div class="flex flex-col flex-wrap min-w-full mt-4 sm:min-w-0">
|
||||||
{{ range $links := . }}
|
{{ range $links := . }}
|
||||||
{{ range $type, $data := $links }}
|
{{ range $type, $data := $links }}
|
||||||
{{ $href := $data }}
|
{{ $href := $data }}
|
||||||
@ -49,7 +49,7 @@
|
|||||||
{{ with $data.title }}{{ $title = . }}{{ end }}
|
{{ with $data.title }}{{ $title = . }}{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a
|
<a
|
||||||
class="link link-{{ $type }} mb-3 min-w-full rounded py-2 text-lg sm:px-24"
|
class="link link-{{ $type }} sm:px-24 min-w-full py-2 mb-3 text-lg rounded"
|
||||||
href="{{ $href }}"
|
href="{{ $href }}"
|
||||||
target="{{ $target }}"
|
target="{{ $target }}"
|
||||||
{{ with $title }}title="{{ . }}"{{ end }}
|
{{ with $title }}title="{{ . }}"{{ end }}
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
{{ if hugo.IsProduction }}
|
{{ if not .Site.IsServer }}
|
||||||
{{ with .Site.Params.fathomAnalytics.site }}
|
{{ with .Site.Params.fathomAnalytics.site }}
|
||||||
|
{{ if isset $.Site.Params.fathomanalytics "domain" }}
|
||||||
|
<script defer src="https://{{ $.Site.Params.fathomanalytics.domain }}/script.js" data-site="{{ . }}"></script>
|
||||||
|
{{ else }}
|
||||||
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Analytics */}}
|
{{/* Analytics */}}
|
||||||
{{ partialCached "analytics.html" . }}
|
{{ partialCached "analytics.html" .Site }}
|
||||||
{{/* Extend head - eg. for custom analytics scripts, etc. */}}
|
{{/* Extend head - eg. for custom analytics scripts, etc. */}}
|
||||||
{{ if templates.Exists "partials/extend-head.html" }}
|
{{ if templates.Exists "partials/extend-head.html" }}
|
||||||
{{ partialCached "extend-head.html" .Site }}
|
{{ partialCached "extend-head.html" .Site }}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
||||||
{{ if $icon }}
|
{{ if $icon }}
|
||||||
<span class="icon relative inline-block align-text-bottom">
|
<span class="relative inline-block align-text-bottom icon">
|
||||||
{{ $icon.Content | safeHTML }}
|
{{ $icon.Content | safeHTML }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<span class="icon relative inline-block align-text-bottom">
|
<span class="relative inline-block align-text-bottom icon">
|
||||||
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
|
{{ $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) }}
|
||||||
{{ if $icon }}
|
{{ if $icon }}
|
||||||
{{ $icon.Content | safeHTML }}
|
{{ $icon.Content | safeHTML }}
|
||||||
|
@ -3,16 +3,22 @@
|
|||||||
publish = "exampleSite/public"
|
publish = "exampleSite/public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.118.2"
|
|
||||||
HUGO_THEMESDIR = "../.."
|
HUGO_THEMESDIR = "../.."
|
||||||
HUGO_THEME = "repo"
|
HUGO_THEME = "repo"
|
||||||
TZ = "Australia/Melbourne"
|
TZ = "Australia/Melbourne"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
|
HUGO_VERSION = "0.100.2"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
|
[context.deploy-preview.environment]
|
||||||
|
HUGO_VERSION = "0.100.2"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
|
[context.branch-deploy.environment]
|
||||||
|
HUGO_VERSION = "0.100.2"
|
||||||
|
1072
package-lock.json
generated
11
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-lynx-theme",
|
"name": "hugo-lynx-theme",
|
||||||
"version": "1.4.0",
|
"version": "1.2.0",
|
||||||
"description": "Lynx theme for Hugo",
|
"description": "Lynx theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NODE_ENV=development ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
"dev": "NODE_ENV=development ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
||||||
@ -25,10 +25,9 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/jpanther/lynx#readme",
|
"homepage": "https://github.com/jpanther/lynx#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/typography": "^0.5.11",
|
"@tailwindcss/typography": "^0.5.2",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^2.7.1",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.13",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
"tailwindcss": "^3.1.3"
|
||||||
"tailwindcss": "^3.4.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1 @@
|
|||||||
{
|
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
||||||
"name": "Lynx",
|
|
||||||
"short_name": "Lynx",
|
|
||||||
"icons": [
|
|
||||||
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
|
|
||||||
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
|
|
||||||
],
|
|
||||||
"theme_color": "#ffffff",
|
|
||||||
"background_color": "#ffffff",
|
|
||||||
"display": "standalone"
|
|
||||||
}
|
|