diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5103bd27..6f90af41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,4 +51,4 @@ jobs: push_options: "--dry-run" file_pattern: "assets/css/compiled/main.css" commit_message: "💄 Rebuild CSS" - - run: git push \ No newline at end of file + - run: git push diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 0f385127..f5fde4e9 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -9,8 +9,8 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: "Thanks for contributing to Blowfish" - pr-message: "Thanks for contributing to Blowfish" + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Thanks for contributing to Blowfish" + pr-message: "Thanks for contributing to Blowfish" diff --git a/.github/workflows/hugo-version-update.yml b/.github/workflows/hugo-version-update.yml index a24cf670..bdd0e7b3 100644 --- a/.github/workflows/hugo-version-update.yml +++ b/.github/workflows/hugo-version-update.yml @@ -2,7 +2,7 @@ name: Update Hugo version on: schedule: - - cron: '0 6 * * *' + - cron: "0 6 * * *" workflow_dispatch: @@ -10,30 +10,31 @@ jobs: updateBlowfish: runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory uses: actions/checkout@v4 with: ref: dev - submodules: true # Fetch Hugo themes (true OR recursive) - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Fetch release version id: fetch-release run: | curl -sL https://api.github.com/repos/gohugoio/hugo/releases/latest | \ - jq -r ".tag_name" > release-versions/hugo-latest.txt + jq -r ".tag_name" > release-versions/hugo-latest.txt - name: Check for modified files id: git-check - run: echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") - + run: + echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] + && echo "false" || echo "true") + - name: Update config.toml id: update-config if: steps.git-check.outputs.modified == 'true' run: | cat release-versions/hugo-latest.txt | \ - while read version; do sed -i'' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml; done + while read version; do sed -i'' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml; done - name: Create Pull Request if: steps.git-check.outputs.modified == 'true' @@ -43,9 +44,9 @@ jobs: title: ⚙️ Update Hugo supported version body: | Updates [Hugo][1] support - + Auto-generated by [create-pull-request][2] - + [1]: https://github.com/gohugoio/hugo [2]: https://github.com/peter-evans/create-pull-request labels: dependencies, automated pr diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a8e1cf1c..2eefc3c5 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,26 +7,28 @@ name: Mark stale issues and pull requests on: schedule: - - cron: '0 1 * * *' + - cron: "0 1 * * *" workflow_dispatch: jobs: stale: - runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - - uses: actions/stale@v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue will be closed since it has been stale for 60 days.' - stale-pr-message: 'This pull request will be closed since it has been stale for 60 days.' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' - days-before-stale: 60 - days-before-close: 0 - remove-stale-when-updated: true - operations-per-run: 100 + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: + "This issue will be closed since it has been stale for 60 days." + stale-pr-message: + "This pull request will be closed since it has been stale for 60 + days." + stale-issue-label: "no-issue-activity" + stale-pr-label: "no-pr-activity" + days-before-stale: 60 + days-before-close: 0 + remove-stale-when-updated: true + operations-per-run: 100 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a918ba5..ce3ce5d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,4 +22,6 @@ jobs: - name: Build working-directory: ./exampleSite - run: hugo --minify --themesDir ../.. --baseURL https://nunocoracao.github.io/blowfish/ \ No newline at end of file + run: + hugo --minify --themesDir ../.. --baseURL + https://nunocoracao.github.io/blowfish/ diff --git a/FUNDING.yml b/FUNDING.yml index 97cf9711..cdedc2de 100644 --- a/FUNDING.yml +++ b/FUNDING.yml @@ -1,2 +1,6 @@ github: [nunocoracao] -custom: ["https://www.paypal.me/nunocoracao", "https://www.buymeacoffee.com/nunocoracao"] \ No newline at end of file +custom: + [ + "https://www.paypal.me/nunocoracao", + "https://www.buymeacoffee.com/nunocoracao", + ] diff --git a/assets/css/components/zen-mode.css b/assets/css/components/zen-mode.css index bf0c31cb..f9460e3e 100644 --- a/assets/css/components/zen-mode.css +++ b/assets/css/components/zen-mode.css @@ -1,16 +1,14 @@ #zen-mode-button { - cursor:pointer + cursor: pointer; } .zen-mode { - position: relative; + position: relative; } body.zen-mode-enable { - #bmc-wbtn, .author { - display:none !important; - } + #bmc-wbtn, + .author { + display: none !important; + } } - - - diff --git a/assets/css/main.css b/assets/css/main.css index 8361d1c9..2a3d897f 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,6 +1,6 @@ /*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */ -@import './components/zen-mode.css'; +@import "./components/zen-mode.css"; @import "tailwindcss"; @config "../../tailwind.config.js"; @@ -38,13 +38,13 @@ button, @apply rtl:pr-4 rtl:border-l-0 rtl:border-r-4; } -.prose ul>li, -.prose ol>li { +.prose ul > li, +.prose ol > li { @apply rtl:pl-0 rtl:pr-2 rtl:mr-7; } -.prose ol>li:before, -.prose ul>li:before { +.prose ol > li:before, +.prose ul > li:before { @apply rtl:left-auto rtl:right-1; } @@ -59,7 +59,7 @@ button, } /* Adjust first child within prose */ -.prose div.min-w-0.max-w-prose>*:first-child { +.prose div.min-w-0.max-w-prose > *:first-child { @apply mt-3; } @@ -69,9 +69,9 @@ button, } #TOCView { - max-height: calc(100vh - 150px); - min-height: 0; - overflow-x: hidden; + max-height: calc(100vh - 150px); + min-height: 0; + overflow-x: hidden; } .toc ul, @@ -87,7 +87,7 @@ button, @apply font-normal text-neutral-700 dark:text-neutral-400; } -.toc ul>li { +.toc ul > li { @apply rtl:mr-0; } @@ -100,7 +100,7 @@ button, @apply relative z-0; } -.highlight:hover>.copy-button { +.highlight:hover > .copy-button { @apply visible; } @@ -122,7 +122,9 @@ button, } /* Fix long KaTeX equations on mobile (see https://katex.org/docs/issues.html#css-customization) */ -.katex-display { overflow: auto hidden } +.katex-display { + overflow: auto hidden; +} /* Fix katex overflow https://github.com/nunocoracao/blowfish/issues/2138 */ .katex-display { @@ -132,21 +134,21 @@ button, /* Fix long tables breaking out of article on mobile */ table { - display: block; - overflow: auto; + display: block; + overflow: auto; } /* Fix long inline code sections breaking out of article on mobile */ code { - word-wrap: break-word; /* All browsers since IE 5.5+ */ - overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */ + word-wrap: break-word; /* All browsers since IE 5.5+ */ + overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */ } /* Fix long URLs breaking out of article bounds on mobile */ a { - word-break: break-word; - word-wrap: break-word; - overflow-wrap: break-word; + word-break: break-word; + word-wrap: break-word; + overflow-wrap: break-word; } /* -- Chroma Highlight -- */ @@ -156,7 +158,7 @@ a { } .prose-invert .highlight pre > code { - background-color: unset; + background-color: unset; } /* LineTableTD */ @@ -388,36 +390,36 @@ pre { .thumbnail { min-width: 300px; height: 180px; - background-repeat:no-repeat; - background-size:cover; - background-position:center; + background-repeat: no-repeat; + background-size: cover; + background-position: center; } .thumbnail_card { height: 200px; - background-repeat:no-repeat; - background-size:cover; - background-position:center; + background-repeat: no-repeat; + background-size: cover; + background-position: center; } .thumbnail_card_related { height: 150px; - background-repeat:no-repeat; - background-size:cover; - background-position:center; + background-repeat: no-repeat; + background-size: cover; + background-position: center; } .thumbnail_card_term { height: 150px; - background-repeat:no-repeat; - background-size:cover; - background-position:center; + background-repeat: no-repeat; + background-size: cover; + background-position: center; } .single_hero_basic { - background-repeat:no-repeat; - background-size:cover; - background-position:center; + background-repeat: no-repeat; + background-size: cover; + background-position: center; } .single_hero_round { @@ -426,9 +428,9 @@ pre { } .single_hero_background { - background-repeat:no-repeat; - background-size:cover; - background-position:center; + background-repeat: no-repeat; + background-size: cover; + background-position: center; width: calc(100% + 40px); z-index: -10; margin-left: -20px; @@ -452,47 +454,48 @@ pre { } .center-relative-left { - left: calc(max(-50vw,-800px) + 50%); + left: calc(max(-50vw, -800px) + 50%); } .margin-0 { - margin: 0; + margin: 0; } .margin-top-\[-15px\] { - margin-top: -15px; + margin-top: -15px; } -.margin-top-\[0\.5rem\]{ - margin-top: 0.5rem; +.margin-top-\[0\.5rem\] { + margin-top: 0.5rem; } .margin-right-\[10px\] { - margin-right: 10px; + margin-right: 10px; } .margin-left-\[0px\] { - margin-left: 0px; + margin-left: 0px; } .padding-main-menu { - padding: 2px 0 3px 0 + padding: 2px 0 3px 0; } .padding-top-\[5px\] { - padding-top: 5px; + padding-top: 5px; } .z-index-\[-10\] { - z-index: -10; + z-index: -10; } .z-index-80 { - z-index: 80; + z-index: 80; } .z-index-100 { - z-index: 100; + z-index: 100; } .z-index-500 { - z-index: 500; + z-index: 500; } /* Offset scroll position to avoid header overlap */ -[id^="fn"], [id^="fnref"] { +[id^="fn"], +[id^="fnref"] { scroll-margin-top: 145px; } @@ -524,19 +527,25 @@ pre { .nested-menu:hover + .menuhide { visibility: visible; opacity: 1; - transition: visibility 0.3s, opacity 0.3s ease-in-out ; + transition: + visibility 0.3s, + opacity 0.3s ease-in-out; } .menuhide:hover { visibility: visible; opacity: 1; - transition: visibility 0.3s, opacity 0.3s ease-in-out ; + transition: + visibility 0.3s, + opacity 0.3s ease-in-out; } .menuhide { visibility: hidden; opacity: 0; - transition: visibility 0.3s, opacity 0.3s ease-in-out ; + transition: + visibility 0.3s, + opacity 0.3s ease-in-out; z-index: 1000; } @@ -547,179 +556,593 @@ pre { } /* Gallery Specific Styles */ -.grid-w10 { width: calc(10% - 5px); margin: 0px !important; } -.grid-w15 { width: calc(15% - 5px); margin: 0px !important; } -.grid-w20 { width: calc(20% - 5px); margin: 0px !important; } -.grid-w25 { width: calc(25% - 5px); margin: 0px !important; } -.grid-w30 { width: calc(30% - 5px); margin: 0px !important; } -.grid-w33 { width: calc(33% - 5px); margin: 0px !important; } -.grid-w35 { width: calc(35% - 5px); margin: 0px !important; } -.grid-w40 { width: calc(40% - 5px); margin: 0px !important; } -.grid-w45 { width: calc(45% - 5px); margin: 0px !important; } -.grid-w50 { width: calc(50% - 5px); margin: 0px !important; } -.grid-w55 { width: calc(55% - 5px); margin: 0px !important; } -.grid-w60 { width: calc(60% - 5px); margin: 0px !important; } -.grid-w65 { width: calc(65% - 5px); margin: 0px !important; } -.grid-w66 { width: calc(66% - 5px); margin: 0px !important; } -.grid-w70 { width: calc(70% - 5px); margin: 0px !important; } -.grid-w75 { width: calc(75% - 5px); margin: 0px !important; } -.grid-w80 { width: calc(80% - 5px); margin: 0px !important; } -.grid-w85 { width: calc(85% - 5px); margin: 0px !important; } -.grid-w90 { width: calc(90% - 5px); margin: 0px !important; } -.grid-w95 { width: calc(95% - 5px); margin: 0px !important; } -.grid-w100 { width: calc(100% - 5px); margin: 0px !important; } +.grid-w10 { + width: calc(10% - 5px); + margin: 0px !important; +} +.grid-w15 { + width: calc(15% - 5px); + margin: 0px !important; +} +.grid-w20 { + width: calc(20% - 5px); + margin: 0px !important; +} +.grid-w25 { + width: calc(25% - 5px); + margin: 0px !important; +} +.grid-w30 { + width: calc(30% - 5px); + margin: 0px !important; +} +.grid-w33 { + width: calc(33% - 5px); + margin: 0px !important; +} +.grid-w35 { + width: calc(35% - 5px); + margin: 0px !important; +} +.grid-w40 { + width: calc(40% - 5px); + margin: 0px !important; +} +.grid-w45 { + width: calc(45% - 5px); + margin: 0px !important; +} +.grid-w50 { + width: calc(50% - 5px); + margin: 0px !important; +} +.grid-w55 { + width: calc(55% - 5px); + margin: 0px !important; +} +.grid-w60 { + width: calc(60% - 5px); + margin: 0px !important; +} +.grid-w65 { + width: calc(65% - 5px); + margin: 0px !important; +} +.grid-w66 { + width: calc(66% - 5px); + margin: 0px !important; +} +.grid-w70 { + width: calc(70% - 5px); + margin: 0px !important; +} +.grid-w75 { + width: calc(75% - 5px); + margin: 0px !important; +} +.grid-w80 { + width: calc(80% - 5px); + margin: 0px !important; +} +.grid-w85 { + width: calc(85% - 5px); + margin: 0px !important; +} +.grid-w90 { + width: calc(90% - 5px); + margin: 0px !important; +} +.grid-w95 { + width: calc(95% - 5px); + margin: 0px !important; +} +.grid-w100 { + width: calc(100% - 5px); + margin: 0px !important; +} @screen sm { - .sm\:grid-w10 { width: calc(10% - 5px); margin: 0px !important; } - .sm\:grid-w15 { width: calc(15% - 5px); margin: 0px !important; } - .sm\:grid-w20 { width: calc(20% - 5px); margin: 0px !important; } - .sm\:grid-w25 { width: calc(25% - 5px); margin: 0px !important; } - .sm\:grid-w30 { width: calc(30% - 5px); margin: 0px !important; } - .sm\:grid-w33 { width: calc(33% - 5px); margin: 0px !important; } - .sm\:grid-w35 { width: calc(35% - 5px); margin: 0px !important; } - .sm\:grid-w40 { width: calc(40% - 5px); margin: 0px !important; } - .sm\:grid-w45 { width: calc(45% - 5px); margin: 0px !important; } - .sm\:grid-w50 { width: calc(50% - 5px); margin: 0px !important; } - .sm\:grid-w55 { width: calc(55% - 5px); margin: 0px !important; } - .sm\:grid-w60 { width: calc(60% - 5px); margin: 0px !important; } - .sm\:grid-w65 { width: calc(65% - 5px); margin: 0px !important; } - .sm\:grid-w66 { width: calc(66% - 5px); margin: 0px !important; } - .sm\:grid-w70 { width: calc(70% - 5px); margin: 0px !important; } - .sm\:grid-w75 { width: calc(75% - 5px); margin: 0px !important; } - .sm\:grid-w80 { width: calc(80% - 5px); margin: 0px !important; } - .sm\:grid-w85 { width: calc(85% - 5px); margin: 0px !important; } - .sm\:grid-w90 { width: calc(90% - 5px); margin: 0px !important; } - .sm\:grid-w95 { width: calc(95% - 5px); margin: 0px !important; } - .sm\:grid-w100 { width: calc(100% - 5px); margin: 0px !important; } + .sm\:grid-w10 { + width: calc(10% - 5px); + margin: 0px !important; + } + .sm\:grid-w15 { + width: calc(15% - 5px); + margin: 0px !important; + } + .sm\:grid-w20 { + width: calc(20% - 5px); + margin: 0px !important; + } + .sm\:grid-w25 { + width: calc(25% - 5px); + margin: 0px !important; + } + .sm\:grid-w30 { + width: calc(30% - 5px); + margin: 0px !important; + } + .sm\:grid-w33 { + width: calc(33% - 5px); + margin: 0px !important; + } + .sm\:grid-w35 { + width: calc(35% - 5px); + margin: 0px !important; + } + .sm\:grid-w40 { + width: calc(40% - 5px); + margin: 0px !important; + } + .sm\:grid-w45 { + width: calc(45% - 5px); + margin: 0px !important; + } + .sm\:grid-w50 { + width: calc(50% - 5px); + margin: 0px !important; + } + .sm\:grid-w55 { + width: calc(55% - 5px); + margin: 0px !important; + } + .sm\:grid-w60 { + width: calc(60% - 5px); + margin: 0px !important; + } + .sm\:grid-w65 { + width: calc(65% - 5px); + margin: 0px !important; + } + .sm\:grid-w66 { + width: calc(66% - 5px); + margin: 0px !important; + } + .sm\:grid-w70 { + width: calc(70% - 5px); + margin: 0px !important; + } + .sm\:grid-w75 { + width: calc(75% - 5px); + margin: 0px !important; + } + .sm\:grid-w80 { + width: calc(80% - 5px); + margin: 0px !important; + } + .sm\:grid-w85 { + width: calc(85% - 5px); + margin: 0px !important; + } + .sm\:grid-w90 { + width: calc(90% - 5px); + margin: 0px !important; + } + .sm\:grid-w95 { + width: calc(95% - 5px); + margin: 0px !important; + } + .sm\:grid-w100 { + width: calc(100% - 5px); + margin: 0px !important; + } } @screen md { - .md\:grid-w10 { width: calc(10% - 5px); margin: 0px !important; } - .md\:grid-w15 { width: calc(15% - 5px); margin: 0px !important; } - .md\:grid-w20 { width: calc(20% - 5px); margin: 0px !important; } - .md\:grid-w25 { width: calc(25% - 5px); margin: 0px !important; } - .md\:grid-w30 { width: calc(30% - 5px); margin: 0px !important; } - .md\:grid-w33 { width: calc(33% - 5px); margin: 0px !important; } - .md\:grid-w35 { width: calc(35% - 5px); margin: 0px !important; } - .md\:grid-w40 { width: calc(40% - 5px); margin: 0px !important; } - .md\:grid-w45 { width: calc(45% - 5px); margin: 0px !important; } - .md\:grid-w50 { width: calc(50% - 5px); margin: 0px !important; } - .md\:grid-w55 { width: calc(55% - 5px); margin: 0px !important; } - .md\:grid-w60 { width: calc(60% - 5px); margin: 0px !important; } - .md\:grid-w65 { width: calc(65% - 5px); margin: 0px !important; } - .md\:grid-w66 { width: calc(66% - 5px); margin: 0px !important; } - .md\:grid-w70 { width: calc(70% - 5px); margin: 0px !important; } - .md\:grid-w75 { width: calc(75% - 5px); margin: 0px !important; } - .md\:grid-w80 { width: calc(80% - 5px); margin: 0px !important; } - .md\:grid-w85 { width: calc(85% - 5px); margin: 0px !important; } - .md\:grid-w90 { width: calc(90% - 5px); margin: 0px !important; } - .md\:grid-w95 { width: calc(95% - 5px); margin: 0px !important; } - .md\:grid-w100 { width: calc(100% - 5px); margin: 0px !important; } + .md\:grid-w10 { + width: calc(10% - 5px); + margin: 0px !important; + } + .md\:grid-w15 { + width: calc(15% - 5px); + margin: 0px !important; + } + .md\:grid-w20 { + width: calc(20% - 5px); + margin: 0px !important; + } + .md\:grid-w25 { + width: calc(25% - 5px); + margin: 0px !important; + } + .md\:grid-w30 { + width: calc(30% - 5px); + margin: 0px !important; + } + .md\:grid-w33 { + width: calc(33% - 5px); + margin: 0px !important; + } + .md\:grid-w35 { + width: calc(35% - 5px); + margin: 0px !important; + } + .md\:grid-w40 { + width: calc(40% - 5px); + margin: 0px !important; + } + .md\:grid-w45 { + width: calc(45% - 5px); + margin: 0px !important; + } + .md\:grid-w50 { + width: calc(50% - 5px); + margin: 0px !important; + } + .md\:grid-w55 { + width: calc(55% - 5px); + margin: 0px !important; + } + .md\:grid-w60 { + width: calc(60% - 5px); + margin: 0px !important; + } + .md\:grid-w65 { + width: calc(65% - 5px); + margin: 0px !important; + } + .md\:grid-w66 { + width: calc(66% - 5px); + margin: 0px !important; + } + .md\:grid-w70 { + width: calc(70% - 5px); + margin: 0px !important; + } + .md\:grid-w75 { + width: calc(75% - 5px); + margin: 0px !important; + } + .md\:grid-w80 { + width: calc(80% - 5px); + margin: 0px !important; + } + .md\:grid-w85 { + width: calc(85% - 5px); + margin: 0px !important; + } + .md\:grid-w90 { + width: calc(90% - 5px); + margin: 0px !important; + } + .md\:grid-w95 { + width: calc(95% - 5px); + margin: 0px !important; + } + .md\:grid-w100 { + width: calc(100% - 5px); + margin: 0px !important; + } } @screen lg { - .lg\:grid-w10 { width: calc(10% - 5px); margin: 0px !important; } - .lg\:grid-w15 { width: calc(15% - 5px); margin: 0px !important; } - .lg\:grid-w20 { width: calc(20% - 5px); margin: 0px !important; } - .lg\:grid-w25 { width: calc(25% - 5px); margin: 0px !important; } - .lg\:grid-w30 { width: calc(30% - 5px); margin: 0px !important; } - .lg\:grid-w33 { width: calc(33% - 5px); margin: 0px !important; } - .lg\:grid-w35 { width: calc(35% - 5px); margin: 0px !important; } - .lg\:grid-w40 { width: calc(40% - 5px); margin: 0px !important; } - .lg\:grid-w45 { width: calc(45% - 5px); margin: 0px !important; } - .lg\:grid-w50 { width: calc(50% - 5px); margin: 0px !important; } - .lg\:grid-w55 { width: calc(55% - 5px); margin: 0px !important; } - .lg\:grid-w60 { width: calc(60% - 5px); margin: 0px !important; } - .lg\:grid-w65 { width: calc(65% - 5px); margin: 0px !important; } - .lg\:grid-w66 { width: calc(66% - 5px); margin: 0px !important; } - .lg\:grid-w70 { width: calc(70% - 5px); margin: 0px !important; } - .lg\:grid-w75 { width: calc(75% - 5px); margin: 0px !important; } - .lg\:grid-w80 { width: calc(80% - 5px); margin: 0px !important; } - .lg\:grid-w85 { width: calc(85% - 5px); margin: 0px !important; } - .lg\:grid-w90 { width: calc(90% - 5px); margin: 0px !important; } - .lg\:grid-w95 { width: calc(95% - 5px); margin: 0px !important; } - .lg\:grid-w100 { width: calc(100% - 5px); margin: 0px !important; } + .lg\:grid-w10 { + width: calc(10% - 5px); + margin: 0px !important; + } + .lg\:grid-w15 { + width: calc(15% - 5px); + margin: 0px !important; + } + .lg\:grid-w20 { + width: calc(20% - 5px); + margin: 0px !important; + } + .lg\:grid-w25 { + width: calc(25% - 5px); + margin: 0px !important; + } + .lg\:grid-w30 { + width: calc(30% - 5px); + margin: 0px !important; + } + .lg\:grid-w33 { + width: calc(33% - 5px); + margin: 0px !important; + } + .lg\:grid-w35 { + width: calc(35% - 5px); + margin: 0px !important; + } + .lg\:grid-w40 { + width: calc(40% - 5px); + margin: 0px !important; + } + .lg\:grid-w45 { + width: calc(45% - 5px); + margin: 0px !important; + } + .lg\:grid-w50 { + width: calc(50% - 5px); + margin: 0px !important; + } + .lg\:grid-w55 { + width: calc(55% - 5px); + margin: 0px !important; + } + .lg\:grid-w60 { + width: calc(60% - 5px); + margin: 0px !important; + } + .lg\:grid-w65 { + width: calc(65% - 5px); + margin: 0px !important; + } + .lg\:grid-w66 { + width: calc(66% - 5px); + margin: 0px !important; + } + .lg\:grid-w70 { + width: calc(70% - 5px); + margin: 0px !important; + } + .lg\:grid-w75 { + width: calc(75% - 5px); + margin: 0px !important; + } + .lg\:grid-w80 { + width: calc(80% - 5px); + margin: 0px !important; + } + .lg\:grid-w85 { + width: calc(85% - 5px); + margin: 0px !important; + } + .lg\:grid-w90 { + width: calc(90% - 5px); + margin: 0px !important; + } + .lg\:grid-w95 { + width: calc(95% - 5px); + margin: 0px !important; + } + .lg\:grid-w100 { + width: calc(100% - 5px); + margin: 0px !important; + } } @screen xl { - .xl\:grid-w10 { width: calc(10% - 5px); margin: 0px !important; } - .xl\:grid-w15 { width: calc(15% - 5px); margin: 0px !important; } - .xl\:grid-w20 { width: calc(20% - 5px); margin: 0px !important; } - .xl\:grid-w25 { width: calc(25% - 5px); margin: 0px !important; } - .xl\:grid-w30 { width: calc(30% - 5px); margin: 0px !important; } - .xl\:grid-w33 { width: calc(33% - 5px); margin: 0px !important; } - .xl\:grid-w35 { width: calc(35% - 5px); margin: 0px !important; } - .xl\:grid-w40 { width: calc(40% - 5px); margin: 0px !important; } - .xl\:grid-w45 { width: calc(45% - 5px); margin: 0px !important; } - .xl\:grid-w50 { width: calc(50% - 5px); margin: 0px !important; } - .xl\:grid-w55 { width: calc(55% - 5px); margin: 0px !important; } - .xl\:grid-w60 { width: calc(60% - 5px); margin: 0px !important; } - .xl\:grid-w65 { width: calc(65% - 5px); margin: 0px !important; } - .xl\:grid-w66 { width: calc(66% - 5px); margin: 0px !important; } - .xl\:grid-w70 { width: calc(70% - 5px); margin: 0px !important; } - .xl\:grid-w75 { width: calc(75% - 5px); margin: 0px !important; } - .xl\:grid-w80 { width: calc(80% - 5px); margin: 0px !important; } - .xl\:grid-w85 { width: calc(85% - 5px); margin: 0px !important; } - .xl\:grid-w90 { width: calc(90% - 5px); margin: 0px !important; } - .xl\:grid-w95 { width: calc(95% - 5px); margin: 0px !important; } - .xl\:grid-w100 { width: calc(100% - 5px); margin: 0px !important; } + .xl\:grid-w10 { + width: calc(10% - 5px); + margin: 0px !important; + } + .xl\:grid-w15 { + width: calc(15% - 5px); + margin: 0px !important; + } + .xl\:grid-w20 { + width: calc(20% - 5px); + margin: 0px !important; + } + .xl\:grid-w25 { + width: calc(25% - 5px); + margin: 0px !important; + } + .xl\:grid-w30 { + width: calc(30% - 5px); + margin: 0px !important; + } + .xl\:grid-w33 { + width: calc(33% - 5px); + margin: 0px !important; + } + .xl\:grid-w35 { + width: calc(35% - 5px); + margin: 0px !important; + } + .xl\:grid-w40 { + width: calc(40% - 5px); + margin: 0px !important; + } + .xl\:grid-w45 { + width: calc(45% - 5px); + margin: 0px !important; + } + .xl\:grid-w50 { + width: calc(50% - 5px); + margin: 0px !important; + } + .xl\:grid-w55 { + width: calc(55% - 5px); + margin: 0px !important; + } + .xl\:grid-w60 { + width: calc(60% - 5px); + margin: 0px !important; + } + .xl\:grid-w65 { + width: calc(65% - 5px); + margin: 0px !important; + } + .xl\:grid-w66 { + width: calc(66% - 5px); + margin: 0px !important; + } + .xl\:grid-w70 { + width: calc(70% - 5px); + margin: 0px !important; + } + .xl\:grid-w75 { + width: calc(75% - 5px); + margin: 0px !important; + } + .xl\:grid-w80 { + width: calc(80% - 5px); + margin: 0px !important; + } + .xl\:grid-w85 { + width: calc(85% - 5px); + margin: 0px !important; + } + .xl\:grid-w90 { + width: calc(90% - 5px); + margin: 0px !important; + } + .xl\:grid-w95 { + width: calc(95% - 5px); + margin: 0px !important; + } + .xl\:grid-w100 { + width: calc(100% - 5px); + margin: 0px !important; + } } @screen 2xl { - .2xl\:grid-w10 { width: calc(10% - 5px); margin: 0px !important; } - .2xl\:grid-w15 { width: calc(15% - 5px); margin: 0px !important; } - .2xl\:grid-w20 { width: calc(20% - 5px); margin: 0px !important; } - .2xl\:grid-w25 { width: calc(25% - 5px); margin: 0px !important; } - .2xl\:grid-w30 { width: calc(30% - 5px); margin: 0px !important; } - .2xl\:grid-w33 { width: calc(33% - 5px); margin: 0px !important; } - .2xl\:grid-w35 { width: calc(35% - 5px); margin: 0px !important; } - .2xl\:grid-w40 { width: calc(40% - 5px); margin: 0px !important; } - .2xl\:grid-w45 { width: calc(45% - 5px); margin: 0px !important; } - .2xl\:grid-w50 { width: calc(50% - 5px); margin: 0px !important; } - .2xl\:grid-w55 { width: calc(55% - 5px); margin: 0px !important; } - .2xl\:grid-w60 { width: calc(60% - 5px); margin: 0px !important; } - .2xl\:grid-w65 { width: calc(65% - 5px); margin: 0px !important; } - .2xl\:grid-w66 { width: calc(66% - 5px); margin: 0px !important; } - .2xl\:grid-w70 { width: calc(70% - 5px); margin: 0px !important; } - .2xl\:grid-w75 { width: calc(75% - 5px); margin: 0px !important; } - .2xl\:grid-w80 { width: calc(80% - 5px); margin: 0px !important; } - .2xl\:grid-w85 { width: calc(85% - 5px); margin: 0px !important; } - .2xl\:grid-w90 { width: calc(90% - 5px); margin: 0px !important; } - .2xl\:grid-w95 { width: calc(95% - 5px); margin: 0px !important; } - .2xl\:grid-w100 { width: calc(100% - 5px); margin: 0px !important; } + .2xl\:grid-w10 { + width: calc(10% - 5px); + margin: 0px !important; + } + .2xl\:grid-w15 { + width: calc(15% - 5px); + margin: 0px !important; + } + .2xl\:grid-w20 { + width: calc(20% - 5px); + margin: 0px !important; + } + .2xl\:grid-w25 { + width: calc(25% - 5px); + margin: 0px !important; + } + .2xl\:grid-w30 { + width: calc(30% - 5px); + margin: 0px !important; + } + .2xl\:grid-w33 { + width: calc(33% - 5px); + margin: 0px !important; + } + .2xl\:grid-w35 { + width: calc(35% - 5px); + margin: 0px !important; + } + .2xl\:grid-w40 { + width: calc(40% - 5px); + margin: 0px !important; + } + .2xl\:grid-w45 { + width: calc(45% - 5px); + margin: 0px !important; + } + .2xl\:grid-w50 { + width: calc(50% - 5px); + margin: 0px !important; + } + .2xl\:grid-w55 { + width: calc(55% - 5px); + margin: 0px !important; + } + .2xl\:grid-w60 { + width: calc(60% - 5px); + margin: 0px !important; + } + .2xl\:grid-w65 { + width: calc(65% - 5px); + margin: 0px !important; + } + .2xl\:grid-w66 { + width: calc(66% - 5px); + margin: 0px !important; + } + .2xl\:grid-w70 { + width: calc(70% - 5px); + margin: 0px !important; + } + .2xl\:grid-w75 { + width: calc(75% - 5px); + margin: 0px !important; + } + .2xl\:grid-w80 { + width: calc(80% - 5px); + margin: 0px !important; + } + .2xl\:grid-w85 { + width: calc(85% - 5px); + margin: 0px !important; + } + .2xl\:grid-w90 { + width: calc(90% - 5px); + margin: 0px !important; + } + .2xl\:grid-w95 { + width: calc(95% - 5px); + margin: 0px !important; + } + .2xl\:grid-w100 { + width: calc(100% - 5px); + margin: 0px !important; + } } /* Carousel Specific Styles */ -.ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ -.ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ -.ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ +.ratio-16-9 { + padding-top: 56.25%; +} /* 16:9 Aspect Ratio */ +.ratio-21-9 { + padding-top: 42.85%; +} /* 21:9 Aspect Ratio */ +.ratio-32-9 { + padding-top: 28.125%; +} /* 32:9 Aspect Ratio */ @screen sm { - .sm\:ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ - .sm\:ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ - .sm\:ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ + .sm\:ratio-16-9 { + padding-top: 56.25%; + } /* 16:9 Aspect Ratio */ + .sm\:ratio-21-9 { + padding-top: 42.85%; + } /* 21:9 Aspect Ratio */ + .sm\:ratio-32-9 { + padding-top: 28.125%; + } /* 32:9 Aspect Ratio */ } @screen md { - .md\:ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ - .md\:ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ - .md\:ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ + .md\:ratio-16-9 { + padding-top: 56.25%; + } /* 16:9 Aspect Ratio */ + .md\:ratio-21-9 { + padding-top: 42.85%; + } /* 21:9 Aspect Ratio */ + .md\:ratio-32-9 { + padding-top: 28.125%; + } /* 32:9 Aspect Ratio */ } @screen lg { - .lg\:ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ - .lg\:ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ - .lg\:ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ + .lg\:ratio-16-9 { + padding-top: 56.25%; + } /* 16:9 Aspect Ratio */ + .lg\:ratio-21-9 { + padding-top: 42.85%; + } /* 21:9 Aspect Ratio */ + .lg\:ratio-32-9 { + padding-top: 28.125%; + } /* 32:9 Aspect Ratio */ } @screen xl { - .xl\:ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ - .xl\:ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ - .xl\:ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ + .xl\:ratio-16-9 { + padding-top: 56.25%; + } /* 16:9 Aspect Ratio */ + .xl\:ratio-21-9 { + padding-top: 42.85%; + } /* 21:9 Aspect Ratio */ + .xl\:ratio-32-9 { + padding-top: 28.125%; + } /* 32:9 Aspect Ratio */ } @screen 2xl { - .2xl\:ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ - .2xl\:ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ - .2xl\:ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ -} \ No newline at end of file + .2xl\:ratio-16-9 { + padding-top: 56.25%; + } /* 16:9 Aspect Ratio */ + .2xl\:ratio-21-9 { + padding-top: 42.85%; + } /* 21:9 Aspect Ratio */ + .2xl\:ratio-32-9 { + padding-top: 28.125%; + } /* 32:9 Aspect Ratio */ +} diff --git a/assets/css/schemes/autumn.css b/assets/css/schemes/autumn.css index 7f88604d..53464ce3 100644 --- a/assets/css/schemes/autumn.css +++ b/assets/css/schemes/autumn.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 214,251,252; ---color-neutral-200: 142,245,247; ---color-neutral-300: 70,239,243; ---color-neutral-400: 15,217,222; ---color-neutral-500: 10,147,150; ---color-neutral-600: 7,110,112; ---color-neutral-700: 5,72,74; ---color-neutral-800: 2,35,35; ---color-neutral-900: 0,0,0; ---color-primary-50: 255,255,255; ---color-primary-100: 255,255,255; ---color-primary-200: 255,240,212; ---color-primary-300: 255,213,136; ---color-primary-400: 255,187,59; ---color-primary-500: 238,155,0; ---color-primary-600: 197,128,0; ---color-primary-700: 156,102,0; ---color-primary-800: 116,75,0; ---color-primary-900: 75,49,0; ---color-secondary-50: 255,255,255; ---color-secondary-100: 255,246,241; ---color-secondary-200: 254,194,166; ---color-secondary-300: 252,142,91; ---color-secondary-400: 251,91,15; ---color-secondary-500: 187,62,3; ---color-secondary-600: 147,49,2; ---color-secondary-700: 107,35,2; ---color-secondary-800: 67,22,1; ---color-secondary-900: 26,9,0; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 214, 251, 252; + --color-neutral-200: 142, 245, 247; + --color-neutral-300: 70, 239, 243; + --color-neutral-400: 15, 217, 222; + --color-neutral-500: 10, 147, 150; + --color-neutral-600: 7, 110, 112; + --color-neutral-700: 5, 72, 74; + --color-neutral-800: 2, 35, 35; + --color-neutral-900: 0, 0, 0; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 255, 255; + --color-primary-200: 255, 240, 212; + --color-primary-300: 255, 213, 136; + --color-primary-400: 255, 187, 59; + --color-primary-500: 238, 155, 0; + --color-primary-600: 197, 128, 0; + --color-primary-700: 156, 102, 0; + --color-primary-800: 116, 75, 0; + --color-primary-900: 75, 49, 0; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 255, 246, 241; + --color-secondary-200: 254, 194, 166; + --color-secondary-300: 252, 142, 91; + --color-secondary-400: 251, 91, 15; + --color-secondary-500: 187, 62, 3; + --color-secondary-600: 147, 49, 2; + --color-secondary-700: 107, 35, 2; + --color-secondary-800: 67, 22, 1; + --color-secondary-900: 26, 9, 0; +} diff --git a/assets/css/schemes/bloody.css b/assets/css/schemes/bloody.css index 5d0de8a3..cba26ea3 100644 --- a/assets/css/schemes/bloody.css +++ b/assets/css/schemes/bloody.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 254,197,207; ---color-neutral-200: 253,121,144; ---color-neutral-300: 251,46,82; ---color-neutral-400: 217,4,41; ---color-neutral-500: 177,3,33; ---color-neutral-600: 137,3,26; ---color-neutral-700: 97,2,18; ---color-neutral-800: 57,1,11; ---color-neutral-900: 17,0,3; ---color-primary-50: 255,255,255; ---color-primary-100: 255,255,255; ---color-primary-200: 230,233,238; ---color-primary-300: 186,193,206; ---color-primary-400: 141,153,174; ---color-primary-500: 117,132,157; ---color-primary-600: 97,111,136; ---color-primary-700: 80,92,113; ---color-primary-800: 63,72,89; ---color-primary-900: 46,53,65; ---color-secondary-50: 255,255,255; ---color-secondary-100: 217,230,238; ---color-secondary-200: 164,195,215; ---color-secondary-300: 111,160,192; ---color-secondary-400: 69,123,157; ---color-secondary-500: 57,101,129; ---color-secondary-600: 44,79,100; ---color-secondary-700: 32,56,72; ---color-secondary-800: 19,34,44; ---color-secondary-900: 7,12,15; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 254, 197, 207; + --color-neutral-200: 253, 121, 144; + --color-neutral-300: 251, 46, 82; + --color-neutral-400: 217, 4, 41; + --color-neutral-500: 177, 3, 33; + --color-neutral-600: 137, 3, 26; + --color-neutral-700: 97, 2, 18; + --color-neutral-800: 57, 1, 11; + --color-neutral-900: 17, 0, 3; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 255, 255; + --color-primary-200: 230, 233, 238; + --color-primary-300: 186, 193, 206; + --color-primary-400: 141, 153, 174; + --color-primary-500: 117, 132, 157; + --color-primary-600: 97, 111, 136; + --color-primary-700: 80, 92, 113; + --color-primary-800: 63, 72, 89; + --color-primary-900: 46, 53, 65; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 217, 230, 238; + --color-secondary-200: 164, 195, 215; + --color-secondary-300: 111, 160, 192; + --color-secondary-400: 69, 123, 157; + --color-secondary-500: 57, 101, 129; + --color-secondary-600: 44, 79, 100; + --color-secondary-700: 32, 56, 72; + --color-secondary-800: 19, 34, 44; + --color-secondary-900: 7, 12, 15; +} diff --git a/assets/css/schemes/forest.css b/assets/css/schemes/forest.css index 784895f9..9c1c09ba 100644 --- a/assets/css/schemes/forest.css +++ b/assets/css/schemes/forest.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 232,238,237; ---color-neutral-200: 188,206,203; ---color-neutral-300: 143,174,170; ---color-neutral-400: 101,140,134; ---color-neutral-500: 84,116,111; ---color-neutral-600: 67,93,89; ---color-neutral-700: 50,69,66; ---color-neutral-800: 33,45,43; ---color-neutral-900: 16,21,21; ---color-primary-50: 255,255,255; ---color-primary-100: 255,255,255; ---color-primary-200: 205,252,247; ---color-primary-300: 132,249,235; ---color-primary-400: 59,245,223; ---color-primary-500: 20,243,217; ---color-primary-600: 11,212,188; ---color-primary-700: 9,173,153; ---color-primary-800: 7,134,119; ---color-primary-900: 5,95,84; ---color-secondary-50: 255,255,255; ---color-secondary-100: 194,253,219; ---color-secondary-200: 120,251,175; ---color-secondary-300: 45,249,130; ---color-secondary-400: 6,212,92; ---color-secondary-500: 5,172,75; ---color-secondary-600: 4,133,58; ---color-secondary-700: 3,93,40; ---color-secondary-800: 2,53,23; ---color-secondary-900: 0,14,6; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 232, 238, 237; + --color-neutral-200: 188, 206, 203; + --color-neutral-300: 143, 174, 170; + --color-neutral-400: 101, 140, 134; + --color-neutral-500: 84, 116, 111; + --color-neutral-600: 67, 93, 89; + --color-neutral-700: 50, 69, 66; + --color-neutral-800: 33, 45, 43; + --color-neutral-900: 16, 21, 21; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 255, 255; + --color-primary-200: 205, 252, 247; + --color-primary-300: 132, 249, 235; + --color-primary-400: 59, 245, 223; + --color-primary-500: 20, 243, 217; + --color-primary-600: 11, 212, 188; + --color-primary-700: 9, 173, 153; + --color-primary-800: 7, 134, 119; + --color-primary-900: 5, 95, 84; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 194, 253, 219; + --color-secondary-200: 120, 251, 175; + --color-secondary-300: 45, 249, 130; + --color-secondary-400: 6, 212, 92; + --color-secondary-500: 5, 172, 75; + --color-secondary-600: 4, 133, 58; + --color-secondary-700: 3, 93, 40; + --color-secondary-800: 2, 53, 23; + --color-secondary-900: 0, 14, 6; +} diff --git a/assets/css/schemes/marvel.css b/assets/css/schemes/marvel.css index b6ec5a87..6956a1a0 100644 --- a/assets/css/schemes/marvel.css +++ b/assets/css/schemes/marvel.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 255,255,255; ---color-neutral-200: 201,209,244; ---color-neutral-300: 137,156,231; ---color-neutral-400: 74,103,217; ---color-neutral-500: 37,65,178; ---color-neutral-600: 30,53,144; ---color-neutral-700: 23,40,110; ---color-neutral-800: 16,28,77; ---color-neutral-900: 9,16,43; ---color-primary-50: 255,255,255; ---color-primary-100: 255,255,255; ---color-primary-200: 252,211,226; ---color-primary-300: 246,140,178; ---color-primary-400: 240,69,131; ---color-primary-500: 216,17,89; ---color-primary-600: 178,14,73; ---color-primary-700: 140,11,58; ---color-primary-800: 103,8,42; ---color-primary-900: 65,5,27; ---color-secondary-50: 255,255,255; ---color-secondary-100: 255,255,255; ---color-secondary-200: 255,255,255; ---color-secondary-300: 255,242,219; ---color-secondary-400: 255,215,143; ---color-secondary-500: 255,188,66; ---color-secondary-600: 255,174,25; ---color-secondary-700: 239,155,0; ---color-secondary-800: 199,128,0; ---color-secondary-900: 158,102,0; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 255, 255, 255; + --color-neutral-200: 201, 209, 244; + --color-neutral-300: 137, 156, 231; + --color-neutral-400: 74, 103, 217; + --color-neutral-500: 37, 65, 178; + --color-neutral-600: 30, 53, 144; + --color-neutral-700: 23, 40, 110; + --color-neutral-800: 16, 28, 77; + --color-neutral-900: 9, 16, 43; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 255, 255; + --color-primary-200: 252, 211, 226; + --color-primary-300: 246, 140, 178; + --color-primary-400: 240, 69, 131; + --color-primary-500: 216, 17, 89; + --color-primary-600: 178, 14, 73; + --color-primary-700: 140, 11, 58; + --color-primary-800: 103, 8, 42; + --color-primary-900: 65, 5, 27; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 255, 255, 255; + --color-secondary-200: 255, 255, 255; + --color-secondary-300: 255, 242, 219; + --color-secondary-400: 255, 215, 143; + --color-secondary-500: 255, 188, 66; + --color-secondary-600: 255, 174, 25; + --color-secondary-700: 239, 155, 0; + --color-secondary-800: 199, 128, 0; + --color-secondary-900: 158, 102, 0; +} diff --git a/assets/css/schemes/neon.css b/assets/css/schemes/neon.css index c04284d5..d4c60448 100644 --- a/assets/css/schemes/neon.css +++ b/assets/css/schemes/neon.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 255,255,255; ---color-neutral-200: 218,196,249; ---color-neutral-300: 175,126,243; ---color-neutral-400: 131,56,236; ---color-neutral-500: 108,22,229; ---color-neutral-600: 91,18,192; ---color-neutral-700: 73,15,155; ---color-neutral-800: 56,11,118; ---color-neutral-900: 38,8,80; ---color-primary-50: 255,255,255; ---color-primary-100: 255,230,241; ---color-primary-200: 255,153,197; ---color-primary-300: 255,77,154; ---color-primary-400: 255,0,110; ---color-primary-500: 214,0,92; ---color-primary-600: 173,0,75; ---color-primary-700: 133,0,57; ---color-primary-800: 92,0,40; ---color-primary-900: 51,0,22; ---color-secondary-50: 255,255,255; ---color-secondary-100: 255,255,255; ---color-secondary-200: 211,228,255; ---color-secondary-300: 135,181,255; ---color-secondary-400: 58,134,255; ---color-secondary-500: 17,109,255; ---color-secondary-600: 0,89,231; ---color-secondary-700: 0,74,191; ---color-secondary-800: 0,58,150; ---color-secondary-900: 0,42,109; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 255, 255, 255; + --color-neutral-200: 218, 196, 249; + --color-neutral-300: 175, 126, 243; + --color-neutral-400: 131, 56, 236; + --color-neutral-500: 108, 22, 229; + --color-neutral-600: 91, 18, 192; + --color-neutral-700: 73, 15, 155; + --color-neutral-800: 56, 11, 118; + --color-neutral-900: 38, 8, 80; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 230, 241; + --color-primary-200: 255, 153, 197; + --color-primary-300: 255, 77, 154; + --color-primary-400: 255, 0, 110; + --color-primary-500: 214, 0, 92; + --color-primary-600: 173, 0, 75; + --color-primary-700: 133, 0, 57; + --color-primary-800: 92, 0, 40; + --color-primary-900: 51, 0, 22; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 255, 255, 255; + --color-secondary-200: 211, 228, 255; + --color-secondary-300: 135, 181, 255; + --color-secondary-400: 58, 134, 255; + --color-secondary-500: 17, 109, 255; + --color-secondary-600: 0, 89, 231; + --color-secondary-700: 0, 74, 191; + --color-secondary-800: 0, 58, 150; + --color-secondary-900: 0, 42, 109; +} diff --git a/assets/css/schemes/noir.css b/assets/css/schemes/noir.css index 3ce7ac0b..bf318ef4 100644 --- a/assets/css/schemes/noir.css +++ b/assets/css/schemes/noir.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 255,255,255; ---color-neutral-200: 214,219,222; ---color-neutral-300: 172,183,188; ---color-neutral-400: 129,146,154; ---color-neutral-500: 92,107,115; ---color-neutral-600: 74,86,92; ---color-neutral-700: 56,65,70; ---color-neutral-800: 38,44,47; ---color-neutral-900: 19,23,24; ---color-primary-50: 255,255,255; ---color-primary-100: 255,255,255; ---color-primary-200: 255,255,255; ---color-primary-300: 250,251,252; ---color-primary-400: 204,216,222; ---color-primary-500: 157,180,192; ---color-primary-600: 132,161,176; ---color-primary-700: 107,142,160; ---color-primary-800: 89,121,138; ---color-primary-900: 73,99,113; ---color-secondary-50: 255,255,255; ---color-secondary-100: 255,255,255; ---color-secondary-200: 182,240,255; ---color-secondary-300: 105,225,255; ---color-secondary-400: 28,209,255; ---color-secondary-500: 0,165,207; ---color-secondary-600: 0,132,166; ---color-secondary-700: 0,100,125; ---color-secondary-800: 0,67,85; ---color-secondary-900: 0,35,44; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 255, 255, 255; + --color-neutral-200: 214, 219, 222; + --color-neutral-300: 172, 183, 188; + --color-neutral-400: 129, 146, 154; + --color-neutral-500: 92, 107, 115; + --color-neutral-600: 74, 86, 92; + --color-neutral-700: 56, 65, 70; + --color-neutral-800: 38, 44, 47; + --color-neutral-900: 19, 23, 24; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 255, 255; + --color-primary-200: 255, 255, 255; + --color-primary-300: 250, 251, 252; + --color-primary-400: 204, 216, 222; + --color-primary-500: 157, 180, 192; + --color-primary-600: 132, 161, 176; + --color-primary-700: 107, 142, 160; + --color-primary-800: 89, 121, 138; + --color-primary-900: 73, 99, 113; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 255, 255, 255; + --color-secondary-200: 182, 240, 255; + --color-secondary-300: 105, 225, 255; + --color-secondary-400: 28, 209, 255; + --color-secondary-500: 0, 165, 207; + --color-secondary-600: 0, 132, 166; + --color-secondary-700: 0, 100, 125; + --color-secondary-800: 0, 67, 85; + --color-secondary-900: 0, 35, 44; +} diff --git a/assets/css/schemes/princess.css b/assets/css/schemes/princess.css index ebe38b47..d0d67d27 100644 --- a/assets/css/schemes/princess.css +++ b/assets/css/schemes/princess.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 255,255,255; ---color-neutral-100: 238,232,238; ---color-neutral-200: 206,188,206; ---color-neutral-300: 174,143,174; ---color-neutral-400: 140,101,140; ---color-neutral-500: 116,84,116; ---color-neutral-600: 93,67,93; ---color-neutral-700: 69,50,69; ---color-neutral-800: 45,33,45; ---color-neutral-900: 21,16,21; ---color-primary-50: 255,255,255; ---color-primary-100: 255,255,255; ---color-primary-200: 252,205,252; ---color-primary-300: 249,132,247; ---color-primary-400: 245,59,242; ---color-primary-500: 243,20,239; ---color-primary-600: 212,11,208; ---color-primary-700: 173,9,170; ---color-primary-800: 134,7,132; ---color-primary-900: 95,5,94; ---color-secondary-50: 255,255,255; ---color-secondary-100: 227,194,253; ---color-secondary-200: 192,120,251; ---color-secondary-300: 157,45,249; ---color-secondary-400: 119,6,212; ---color-secondary-500: 97,5,172; ---color-secondary-600: 74,4,133; ---color-secondary-700: 52,3,93; ---color-secondary-800: 30,2,53; ---color-secondary-900: 8,0,14; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 255, 255, 255; + --color-neutral-100: 238, 232, 238; + --color-neutral-200: 206, 188, 206; + --color-neutral-300: 174, 143, 174; + --color-neutral-400: 140, 101, 140; + --color-neutral-500: 116, 84, 116; + --color-neutral-600: 93, 67, 93; + --color-neutral-700: 69, 50, 69; + --color-neutral-800: 45, 33, 45; + --color-neutral-900: 21, 16, 21; + --color-primary-50: 255, 255, 255; + --color-primary-100: 255, 255, 255; + --color-primary-200: 252, 205, 252; + --color-primary-300: 249, 132, 247; + --color-primary-400: 245, 59, 242; + --color-primary-500: 243, 20, 239; + --color-primary-600: 212, 11, 208; + --color-primary-700: 173, 9, 170; + --color-primary-800: 134, 7, 132; + --color-primary-900: 95, 5, 94; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 227, 194, 253; + --color-secondary-200: 192, 120, 251; + --color-secondary-300: 157, 45, 249; + --color-secondary-400: 119, 6, 212; + --color-secondary-500: 97, 5, 172; + --color-secondary-600: 74, 4, 133; + --color-secondary-700: 52, 3, 93; + --color-secondary-800: 30, 2, 53; + --color-secondary-900: 8, 0, 14; +} diff --git a/assets/css/schemes/terminal.css b/assets/css/schemes/terminal.css index b96872d8..ce910fcd 100644 --- a/assets/css/schemes/terminal.css +++ b/assets/css/schemes/terminal.css @@ -1,32 +1,33 @@ -:root { --color-neutral: 255, 255, 255; ---color-neutral-50: 203,255,227; ---color-neutral-100: 126,255,186; ---color-neutral-200: 49,255,145; ---color-neutral-300: 0,228,106; ---color-neutral-400: 0,152,71; ---color-neutral-500: 0,75,35; ---color-neutral-600: 0,50,23; ---color-neutral-700: 0,24,11; ---color-neutral-800: 0,24,11; ---color-neutral-900: 0,0,0; ---color-primary-50: 255,255,255; ---color-primary-100: 236,255,227; ---color-primary-200: 184,255,150; ---color-primary-300: 132,255,74; ---color-primary-400: 80,252,0; ---color-primary-500: 56,176,0; ---color-primary-600: 48,151,0; ---color-primary-700: 40,125,0; ---color-primary-800: 40,125,0; ---color-primary-900: 7,23,0; ---color-secondary-50: 255,255,255; ---color-secondary-100: 239,248,252; ---color-secondary-200: 173,220,242; ---color-secondary-300: 107,192,231; ---color-secondary-400: 41,164,220; ---color-secondary-500: 26,117,159; ---color-secondary-600: 22,101,137; ---color-secondary-700: 19,85,115; ---color-secondary-800: 19,85,115; ---color-secondary-900: 4,20,28; -} \ No newline at end of file +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 203, 255, 227; + --color-neutral-100: 126, 255, 186; + --color-neutral-200: 49, 255, 145; + --color-neutral-300: 0, 228, 106; + --color-neutral-400: 0, 152, 71; + --color-neutral-500: 0, 75, 35; + --color-neutral-600: 0, 50, 23; + --color-neutral-700: 0, 24, 11; + --color-neutral-800: 0, 24, 11; + --color-neutral-900: 0, 0, 0; + --color-primary-50: 255, 255, 255; + --color-primary-100: 236, 255, 227; + --color-primary-200: 184, 255, 150; + --color-primary-300: 132, 255, 74; + --color-primary-400: 80, 252, 0; + --color-primary-500: 56, 176, 0; + --color-primary-600: 48, 151, 0; + --color-primary-700: 40, 125, 0; + --color-primary-800: 40, 125, 0; + --color-primary-900: 7, 23, 0; + --color-secondary-50: 255, 255, 255; + --color-secondary-100: 239, 248, 252; + --color-secondary-200: 173, 220, 242; + --color-secondary-300: 107, 192, 231; + --color-secondary-400: 41, 164, 220; + --color-secondary-500: 26, 117, 159; + --color-secondary-600: 22, 101, 137; + --color-secondary-700: 19, 85, 115; + --color-secondary-800: 19, 85, 115; + --color-secondary-900: 4, 20, 28; +} diff --git a/assets/js/background-blur.js b/assets/js/background-blur.js index 57ba149d..e46df713 100644 --- a/assets/js/background-blur.js +++ b/assets/js/background-blur.js @@ -1,7 +1,9 @@ function setBackgroundBlur() { const scriptElement = document.currentScript; - const targetId = scriptElement && scriptElement.getAttribute("data-target-id") ? scriptElement.getAttribute("data-target-id") - : (console.error("data-target-id is null"), null); + const targetId = + scriptElement && scriptElement.getAttribute("data-target-id") + ? scriptElement.getAttribute("data-target-id") + : (console.error("data-target-id is null"), null); window.addEventListener("scroll", () => { const scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0; diff --git a/assets/js/code.js b/assets/js/code.js index 88ae18d3..8639ad8d 100644 --- a/assets/js/code.js +++ b/assets/js/code.js @@ -1,6 +1,10 @@ var scriptBundle = document.getElementById("script-bundle"); -var copyText = scriptBundle && scriptBundle.getAttribute("data-copy")? scriptBundle.getAttribute("data-copy") : "Copy"; -var copiedText = scriptBundle && scriptBundle.getAttribute("data-copied")? scriptBundle.getAttribute("data-copied") : "Copied"; +var copyText = + scriptBundle && scriptBundle.getAttribute("data-copy") ? scriptBundle.getAttribute("data-copy") : "Copy"; +var copiedText = + scriptBundle && scriptBundle.getAttribute("data-copied") + ? scriptBundle.getAttribute("data-copied") + : "Copied"; function createCopyButton(highlightDiv) { const button = document.createElement("button"); diff --git a/assets/js/fetch-repo.js b/assets/js/fetch-repo.js index 689b1e96..f94c9614 100644 --- a/assets/js/fetch-repo.js +++ b/assets/js/fetch-repo.js @@ -1,26 +1,32 @@ function fetchRepo() { const scriptElement = document.currentScript; - const repoURL = scriptElement && scriptElement.getAttribute("data-repo-url") ? scriptElement.getAttribute("data-repo-url") - : (console.error("data-repo-url is null"), null); - const repoId = scriptElement && scriptElement.getAttribute("data-repo-id") ? scriptElement.getAttribute("data-repo-id") - : (console.error("data-repo-id is null"), null); - const requestObjects = - repoId.startsWith("github") ? ["full_name", "description", "stargazers_count", "forks"] - : repoId.startsWith("gitlab") ? ["name_with_namespace", "description", "star_count", "forks_count"] - : ["full_name", "description", "stars_count", "forks_count"]; + const repoURL = + scriptElement && scriptElement.getAttribute("data-repo-url") + ? scriptElement.getAttribute("data-repo-url") + : (console.error("data-repo-url is null"), null); + const repoId = + scriptElement && scriptElement.getAttribute("data-repo-id") + ? scriptElement.getAttribute("data-repo-id") + : (console.error("data-repo-id is null"), null); + const requestObjects = repoId.startsWith("github") + ? ["full_name", "description", "stargazers_count", "forks"] + : repoId.startsWith("gitlab") + ? ["name_with_namespace", "description", "star_count", "forks_count"] + : ["full_name", "description", "stars_count", "forks_count"]; fetch(repoURL, { headers: new Headers({ - "User-agent": "Mozilla/4.0 Custom User Agent" - }) + "User-agent": "Mozilla/4.0 Custom User Agent", + }), }) .then((response) => response.json()) .then((data) => { requestObjects.forEach((requestObject) => { let element = document.getElementById(`${repoId}-${requestObject}`); if (requestObject === "stargazers_count" && repoId.startsWith("github")) { - element = document.getElementById(`${repoId}-stargazers`); + element = document.getElementById(`${repoId}-stargazers`); } - element ? (element.innerHTML = data[requestObject]) + element + ? (element.innerHTML = data[requestObject]) : (console.error(`Element '${repoId}-${requestObject}' not found`), null); }); }) diff --git a/assets/js/page.js b/assets/js/page.js index 0aef831e..014f6258 100644 --- a/assets/js/page.js +++ b/assets/js/page.js @@ -1,6 +1,12 @@ const pageScriptElement = document.currentScript; -const oid = pageScriptElement && pageScriptElement.getAttribute("data-oid") ? pageScriptElement.getAttribute("data-oid") : (console.error("data-oid is null"), null); -const oid_likes = pageScriptElement && pageScriptElement.getAttribute("data-oid-likes") ? pageScriptElement.getAttribute("data-oid-likes") : (console.error("data-oid-likes is null"), null); +const oid = + pageScriptElement && pageScriptElement.getAttribute("data-oid") + ? pageScriptElement.getAttribute("data-oid") + : (console.error("data-oid is null"), null); +const oid_likes = + pageScriptElement && pageScriptElement.getAttribute("data-oid-likes") + ? pageScriptElement.getAttribute("data-oid-likes") + : (console.error("data-oid-likes is null"), null); const liked_page = false; const id = oid ? oid.replaceAll("/", "-") : oid; const id_likes = oid_likes ? oid_likes.replaceAll("/", "-") : oid_likes; @@ -8,101 +14,118 @@ const id_likes = oid_likes ? oid_likes.replaceAll("/", "-") : oid_likes; if (typeof auth !== "undefined") { const viewed = localStorage.getItem(id); - if (!viewed) { - auth.signInAnonymously() - .then(() => { - const docRef = db.collection('views').doc(id) - localStorage.setItem(id, true); - docRef.get().then((doc) => { - if (doc.exists) { - db.collection('views').doc(id).update({ - views: firebase.firestore.FieldValue.increment(1) - }); - } else { - db.collection('views').doc(id).set({ views: 1 }) - } - }).catch((error) => { - console.log("Error getting document:", error); + if (!viewed) { + auth + .signInAnonymously() + .then(() => { + const docRef = db.collection("views").doc(id); + localStorage.setItem(id, true); + docRef + .get() + .then((doc) => { + if (doc.exists) { + db.collection("views") + .doc(id) + .update({ + views: firebase.firestore.FieldValue.increment(1), }); - }) - .catch((error) => { - const errorCode = error.code; - const errorMessage = error.message; - console.error(errorCode, errorMessage) - }); - } + } else { + db.collection("views").doc(id).set({ views: 1 }); + } + }) + .catch((error) => { + console.log("Error getting document:", error); + }); + }) + .catch((error) => { + const errorCode = error.code; + const errorMessage = error.message; + console.error(errorCode, errorMessage); + }); + } - const liked = localStorage.getItem(id_likes); - - if (liked) { - liked_page = true - document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = "" - document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "none" - document.querySelectorAll("span[id='button_likes_text']")[0].innerText = "" - } + const liked = localStorage.getItem(id_likes); + if (liked) { + liked_page = true; + document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = ""; + document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "none"; + document.querySelectorAll("span[id='button_likes_text']")[0].innerText = ""; + } } function like_article(id_likes) { - auth.signInAnonymously() - .then(() => { - const docRef = db.collection('likes').doc(id_likes) - docRef.get().then((doc) => { - liked_page = true - localStorage.setItem(id_likes, true); - document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = "" - document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "none" - document.querySelectorAll("span[id='button_likes_text']")[0].innerText = "" - if (doc.exists) { - db.collection('likes').doc(id_likes).update({ - likes: firebase.firestore.FieldValue.increment(1) - }); - } else { - db.collection('likes').doc(id_likes).set({ likes: 1 }) - } - }).catch((error) => { - console.log("Error getting document:", error); - }); + auth + .signInAnonymously() + .then(() => { + const docRef = db.collection("likes").doc(id_likes); + docRef + .get() + .then((doc) => { + liked_page = true; + localStorage.setItem(id_likes, true); + document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = ""; + document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "none"; + document.querySelectorAll("span[id='button_likes_text']")[0].innerText = ""; + if (doc.exists) { + db.collection("likes") + .doc(id_likes) + .update({ + likes: firebase.firestore.FieldValue.increment(1), + }); + } else { + db.collection("likes").doc(id_likes).set({ likes: 1 }); + } }) .catch((error) => { - const errorCode = error.code; - const errorMessage = error.message; - console.error(errorCode, errorMessage) + console.log("Error getting document:", error); }); + }) + .catch((error) => { + const errorCode = error.code; + const errorMessage = error.message; + console.error(errorCode, errorMessage); + }); } function remove_like_article(id_likes) { - auth.signInAnonymously() - .then(() => { - const docRef = db.collection('likes').doc(id_likes) - docRef.get().then((doc) => { - liked_page = false - localStorage.removeItem(id_likes); - document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = "none" - document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = "" - document.querySelectorAll("span[id='button_likes_text']")[0].innerText = "\xa0Like" - if (doc.exists) { - db.collection('likes').doc(id_likes).update({ - likes: firebase.firestore.FieldValue.increment(-1) - }); - } else { - db.collection('likes').doc(id_likes).set({ likes: 0 }) - } - }).catch((error) => { - console.log("Error getting document:", error); - }); + auth + .signInAnonymously() + .then(() => { + const docRef = db.collection("likes").doc(id_likes); + docRef + .get() + .then((doc) => { + liked_page = false; + localStorage.removeItem(id_likes); + document.querySelectorAll("span[id='button_likes_heart']")[0].style.display = "none"; + document.querySelectorAll("span[id='button_likes_emtpty_heart']")[0].style.display = ""; + document.querySelectorAll("span[id='button_likes_text']")[0].innerText = "\xa0Like"; + if (doc.exists) { + db.collection("likes") + .doc(id_likes) + .update({ + likes: firebase.firestore.FieldValue.increment(-1), + }); + } else { + db.collection("likes").doc(id_likes).set({ likes: 0 }); + } }) .catch((error) => { - const errorCode = error.code; - const errorMessage = error.message; - console.error(errorCode, errorMessage) + console.log("Error getting document:", error); }); + }) + .catch((error) => { + const errorCode = error.code; + const errorMessage = error.message; + console.error(errorCode, errorMessage); + }); } function process_article() { - if (!liked_page) { - like_article(id_likes) - } else { - remove_like_article(id_likes) - } + if (!liked_page) { + like_article(id_likes); + } else { + remove_like_article(id_likes); + } } diff --git a/assets/js/process.js b/assets/js/process.js index a91afa76..e8cb4fbf 100644 --- a/assets/js/process.js +++ b/assets/js/process.js @@ -1,71 +1,70 @@ -if (typeof auth !== 'undefined') { - var viewsCollection = db.collection('views'); - var likesCollection = db.collection('likes'); +if (typeof auth !== "undefined") { + var viewsCollection = db.collection("views"); + var likesCollection = db.collection("likes"); - function numberWithCommas(x) { - return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); + function numberWithCommas(x) { + return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); + } + + function toggleLoaders(node) { + var classesString = node.className; + if (classesString == "") return; + var classes = classesString.split(" "); + for (var i in classes) { + node.classList.toggle(classes[i]); } + } - function toggleLoaders(node){ - var classesString = node.className; - if(classesString == "") return - var classes = classesString.split(" "); - for(var i in classes){ - node.classList.toggle(classes[i]) + var update_views = function (node, id) { + viewsCollection.doc(id).onSnapshot((doc) => { + var data = doc.data(); + if (data) { + node.innerText = numberWithCommas(data.views); + } else { + node.innerText = 0; + } + toggleLoaders(node); + }); + }; + + var update_likes = function (node, id) { + likesCollection.doc(id).onSnapshot((doc) => { + var data = doc.data(); + if (data) { + node.innerText = numberWithCommas(data.likes); + } else { + node.innerText = 0; + } + toggleLoaders(node); + }); + }; + + auth + .signInAnonymously() + .then(() => { + var views_nodes = document.querySelectorAll("span[id^='views_']"); + + for (var i in views_nodes) { + var node = views_nodes[i]; + var id = node.id ? node.id.replaceAll("/", "-") : node.id; + if (id) { + update_views(node, id); } - } + } - var update_views = function (node, id) { - viewsCollection.doc(id).onSnapshot(doc => { - var data = doc.data(); - if (data) { - node.innerText = numberWithCommas(data.views) - } else { - node.innerText = 0 - } - toggleLoaders(node) - }) - } + var likes_nodes = document.querySelectorAll("span[id^='likes_']"); - var update_likes = function (node, id) { - likesCollection.doc(id).onSnapshot(doc => { - var data = doc.data(); - if (data) { - node.innerText = numberWithCommas(data.likes) - } else { - node.innerText = 0 - } - toggleLoaders(node) - - }) - } - - - auth.signInAnonymously() - .then(() => { - var views_nodes = document.querySelectorAll("span[id^='views_']") - - for (var i in views_nodes) { - var node = views_nodes[i] - var id = node.id ? node.id.replaceAll("/", "-") : node.id - if (id) { - update_views(node, id) - } - } - - var likes_nodes = document.querySelectorAll("span[id^='likes_']") - - for (var i in likes_nodes) { - var node = likes_nodes[i] - var id = node.id ? node.id.replaceAll("/", "-") : node.id - if (id) { - update_likes(node, id) - } - } - }) - .catch((error) => { - var errorCode = error.code; - var errorMessage = error.message; - console.error(errorCode, errorMessage) - }); -} \ No newline at end of file + for (var i in likes_nodes) { + var node = likes_nodes[i]; + var id = node.id ? node.id.replaceAll("/", "-") : node.id; + if (id) { + update_likes(node, id); + } + } + }) + .catch((error) => { + var errorCode = error.code; + var errorMessage = error.message; + console.error(errorCode, errorMessage); + }); +} diff --git a/assets/js/search.js b/assets/js/search.js index dd77b121..c41096f5 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -13,8 +13,8 @@ var indexed = false; var hasResults = false; // Listen for events -showButton? showButton.addEventListener("click", displaySearch) : null; -showButtonMobile? showButtonMobile.addEventListener("click", displaySearch) : null; +showButton ? showButton.addEventListener("click", displaySearch) : null; +showButtonMobile ? showButtonMobile.addEventListener("click", displaySearch) : null; hideButton.addEventListener("click", hideSearch); wrapper.addEventListener("click", hideSearch); modal.addEventListener("click", function (event) { @@ -25,12 +25,9 @@ modal.addEventListener("click", function (event) { document.addEventListener("keydown", function (event) { // Forward slash to open search wrapper if (event.key == "/") { - const active = document.activeElement - const tag = active.tagName - const isInputField = - tag === "INPUT" || - tag === "TEXTAREA" || - active.isContentEditable + const active = document.activeElement; + const tag = active.tagName; + const isInputField = tag === "INPUT" || tag === "TEXTAREA" || active.isContentEditable; if (!searchVisible && !isInputField) { event.preventDefault(); @@ -82,7 +79,6 @@ document.addEventListener("keydown", function (event) { } } } - }); // Update search on each keypress @@ -129,7 +125,7 @@ function fetchJSON(path, callback) { function buildIndex() { var baseURL = wrapper.getAttribute("data-url"); - baseURL = baseURL.replace(/\/?$/, '/'); + baseURL = baseURL.replace(/\/?$/, "/"); fetchJSON(baseURL + "index.json", function (data) { var options = { shouldSort: true, @@ -165,8 +161,15 @@ function executeQuery(term) { var div = document.createElement("div"); div.innerHTML = html; value.item.summary = div.textContent || div.innerText || ""; - var title = value.item.externalUrl? value.item.title + ''+value.item.externalUrl+'' : value.item.title; - var linkconfig = value.item.externalUrl? 'target="_blank" rel="noopener" href="'+value.item.externalUrl+'"' : 'href="'+value.item.permalink+'"'; + var title = value.item.externalUrl + ? value.item.title + + '' + + value.item.externalUrl + + "" + : value.item.title; + var linkconfig = value.item.externalUrl + ? 'target="_blank" rel="noopener" href="' + value.item.externalUrl + '"' + : 'href="' + value.item.permalink + '"'; resultsHTML = resultsHTML + `
  • @@ -176,7 +179,7 @@ function executeQuery(term) {
    ${title}
    -
    ${value.item.section}·${value.item.date? value.item.date : ""}
    +
    ${value.item.section}·${value.item.date ? value.item.date : ""}
    ${value.item.summary}
    diff --git a/assets/js/shortcodes/gallery.js b/assets/js/shortcodes/gallery.js index 0c6ac39b..9c7e8924 100644 --- a/assets/js/shortcodes/gallery.js +++ b/assets/js/shortcodes/gallery.js @@ -1,22 +1,21 @@ function _getDefaultPackeryOptions() { - return { - percentPosition: true, - gutter: 5, - resize: true - }; + return { + percentPosition: true, + gutter: 5, + resize: true, + }; } (function init() { + $(window).on("load", function () { + let packeries = []; + let nodeGalleries = document.querySelectorAll(".gallery"); - $(window).on("load", function () { - let packeries = []; - let nodeGalleries = document.querySelectorAll('.gallery'); - - nodeGalleries.forEach(nodeGallery => { - // TODO : implement a reader of Packery configuration _getPackeryOptions; for example by reading data-attribute - let packery = new Packery(nodeGallery, _getDefaultPackeryOptions()); - packeries.push(packery); - }); - console.groupEnd(); + nodeGalleries.forEach((nodeGallery) => { + // TODO : implement a reader of Packery configuration _getPackeryOptions; for example by reading data-attribute + let packery = new Packery(nodeGallery, _getDefaultPackeryOptions()); + packeries.push(packery); }); -})(); \ No newline at end of file + console.groupEnd(); + }); +})(); diff --git a/assets/js/zen-mode.js b/assets/js/zen-mode.js index d2c38992..995eb7d7 100644 --- a/assets/js/zen-mode.js +++ b/assets/js/zen-mode.js @@ -1,53 +1,50 @@ function _toogleZenMode(zendModeButton) { // Nodes selection - const body = document.querySelector('body'); - const footer = document.querySelector('footer'); - const tocRight = document.querySelector('.toc-right'); - const tocInside = document.querySelector('.toc-inside'); - const articleContent = document.querySelector('.article-content'); - const header = document.querySelector('#single_header'); - + const body = document.querySelector("body"); + const footer = document.querySelector("footer"); + const tocRight = document.querySelector(".toc-right"); + const tocInside = document.querySelector(".toc-inside"); + const articleContent = document.querySelector(".article-content"); + const header = document.querySelector("#single_header"); // Add semantic class into body tag - body.classList.toggle('zen-mode-enable'); + body.classList.toggle("zen-mode-enable"); // Show/Hide 'toc right' and 'toc inside' - if (tocRight) - tocRight.classList.toggle('lg:block'); - if (tocInside) - tocInside.classList.toggle('lg:hidden'); + if (tocRight) tocRight.classList.toggle("lg:block"); + if (tocInside) tocInside.classList.toggle("lg:hidden"); // Change width of article content - articleContent.classList.toggle('max-w-fit'); - articleContent.classList.toggle('max-w-prose'); + articleContent.classList.toggle("max-w-fit"); + articleContent.classList.toggle("max-w-prose"); // Change width of article title and footer - header.classList.toggle('max-w-full'); - header.classList.toggle('max-w-prose'); - footer.classList.toggle('max-w-full'); - footer.classList.toggle('max-w-prose'); + header.classList.toggle("max-w-full"); + header.classList.toggle("max-w-prose"); + footer.classList.toggle("max-w-full"); + footer.classList.toggle("max-w-prose"); // Read i18n title from data-attributes - const titleI18nDisable = zendModeButton.getAttribute('data-title-i18n-disable'); - const titleI18nEnable = zendModeButton.getAttribute('data-title-i18n-enable'); + const titleI18nDisable = zendModeButton.getAttribute("data-title-i18n-disable"); + const titleI18nEnable = zendModeButton.getAttribute("data-title-i18n-enable"); - if (body.classList.contains('zen-mode-enable')) { + if (body.classList.contains("zen-mode-enable")) { // Persist configuration //localStorage.setItem('blowfish-zen-mode-enabled', 'true'); // Change title to enable - zendModeButton.setAttribute('title', titleI18nEnable) + zendModeButton.setAttribute("title", titleI18nEnable); // Auto-scroll to title article window.scrollTo(window.scrollX, header.getBoundingClientRect().top - 90); } else { //localStorage.setItem('blowfish-zen-mode-enabled', 'false'); - zendModeButton.setAttribute('title', titleI18nDisable); - document.querySelector('body').scrollIntoView(); + zendModeButton.setAttribute("title", titleI18nDisable); + document.querySelector("body").scrollIntoView(); } } function _registerZendModeButtonClick(zendModeButton) { - zendModeButton.addEventListener('click', function (event) { + zendModeButton.addEventListener("click", function (event) { event.preventDefault(); // Toggle zen-mode @@ -58,9 +55,9 @@ function _registerZendModeButtonClick(zendModeButton) { (function init() { window.addEventListener("DOMContentLoaded", (event) => { // Register click on 'zen-mode-button' node element - const zendModeButton = document.getElementById('zen-mode-button'); + const zendModeButton = document.getElementById("zen-mode-button"); if (zendModeButton !== null && zendModeButton !== undefined) { _registerZendModeButtonClick(zendModeButton); } }); -})(); \ No newline at end of file +})(); diff --git a/data/codebergColors.json b/data/codebergColors.json index 7f272e7a..af6ecf84 100644 --- a/data/codebergColors.json +++ b/data/codebergColors.json @@ -1,533 +1,533 @@ { - "1C Enterprise": "#814CCC", - "4D": "#004289", - "ABAP": "#E8274B", - "ABAP CDS": "#555e25", - "ActionScript": "#882B0F", - "Ada": "#02f88c", - "Adobe Font Metrics": "#fa0f00", - "Agda": "#315665", - "AGS Script": "#B9D9FF", - "AIDL": "#34EB6B", - "AL": "#3AA2B5", - "Alloy": "#64C800", - "Alpine Abuild": "#0D597F", - "Altium Designer": "#A89663", - "AMPL": "#E6EFBB", - "AngelScript": "#C7D7DC", - "Ant Build System": "#A9157E", - "ANTLR": "#9DC3FF", - "ApacheConf": "#d12127", - "Apex": "#1797c0", - "API Blueprint": "#2ACCA8", - "APL": "#5A8164", - "Apollo Guidance Computer": "#0B3D91", - "AppleScript": "#101F1F", - "Arc": "#aa2afe", - "AsciiDoc": "#73a0c5", - "ASL": null, - "ASP.NET": "#9400ff", - "AspectJ": "#a957b0", - "Assembly": "#6E4C13", - "Astro": "#ff5a03", - "Asymptote": "#ff0000", - "ATS": "#1ac620", - "Augeas": "#9CC134", - "AutoHotkey": "#6594b9", - "AutoIt": "#1C3552", - "Avro IDL": "#0040FF", - "Awk": "#c30e9b", - "Ballerina": "#FF5000", - "BASIC": "#ff0000", - "Batchfile": "#C1F12E", - "Beef": "#a52f4e", - "Befunge": null, - "BibTeX": "#778899", - "Bicep": "#519aba", - "Bison": "#6A463F", - "BitBake": "#00bce4", - "Blade": "#f7523f", - "BlitzBasic": "#00FFAE", - "BlitzMax": "#cd6400", - "Bluespec": "#12223c", - "Boo": "#d4bec1", - "Boogie": "#c80fa0", - "Brainfuck": "#2F2530", - "Brightscript": "#662D91", - "Browserslist": "#ffd539", - "C": "#555555", - "C#": "#178600", - "C++": "#f34b7d", - "C2hs Haskell": null, - "Cabal Config": "#483465", - "Cap'n Proto": "#c42727", - "CartoCSS": null, - "Ceylon": "#dfa535", - "Chapel": "#8dc63f", - "Charity": null, - "ChucK": "#3f8000", - "Cirru": "#ccccff", - "Clarion": "#db901e", - "Classic ASP": "#6a40fd", - "Clean": "#3F85AF", - "Click": "#E4E6F3", - "CLIPS": "#00A300", - "Clojure": "#db5855", - "Closure Templates": "#0d948f", - "Cloud Firestore Security Rules": "#FFA000", - "CMake": "#DA3434", - "COBOL": null, - "CodeQL": "#140f46", - "CoffeeScript": "#244776", - "ColdFusion": "#ed2cd6", - "ColdFusion CFC": "#ed2cd6", - "COLLADA": "#F1A42B", - "Common Lisp": "#3fb68b", - "Common Workflow Language": "#B5314C", - "Component Pascal": "#B0CE4E", - "Cool": null, - "Coq": "#d0b68c", - "Crystal": "#000100", - "CSON": "#244776", - "Csound": "#1a1a1a", - "Csound Document": "#1a1a1a", - "Csound Score": "#1a1a1a", - "CSS": "#563d7c", - "CSV": "#237346", - "Cuda": "#3A4E3A", - "CUE": "#5886E1", - "CWeb": "#00007a", - "Cycript": null, - "Cython": "#fedf5b", - "D": "#ba595e", - "Dafny": "#FFEC25", - "Darcs Patch": "#8eff23", - "Dart": "#00B4AB", - "DataWeave": "#003a52", - "Dhall": "#dfafff", - "DIGITAL Command Language": null, - "DirectX 3D File": "#aace60", - "DM": "#447265", - "Dockerfile": "#384d54", - "Dogescript": "#cca760", - "DTrace": null, - "Dylan": "#6c616e", - "E": "#ccce35", - "Easybuild": "#069406", - "eC": "#913960", - "Ecere Projects": "#913960", - "ECL": "#8a1267", - "ECLiPSe": "#001d9d", - "EditorConfig": "#fff1f2", - "Eiffel": "#4d6977", - "EJS": "#a91e50", - "Elixir": "#6e4a7e", - "Elm": "#60B5CC", - "Emacs Lisp": "#c065db", - "EmberScript": "#FFF4F3", - "EQ": "#a78649", - "Erlang": "#B83998", - "F#": "#b845fc", - "F*": "#572e30", - "Factor": "#636746", - "Fancy": "#7b9db4", - "Fantom": "#14253c", - "Faust": "#c37240", - "Fennel": "#fff3d7", - "FIGlet Font": "#FFDDBB", - "Filebench WML": "#F6B900", - "Filterscript": null, - "fish": "#4aae47", - "Fluent": "#ffcc33", - "FLUX": "#88ccff", - "Forth": "#341708", - "Fortran": "#4d41b1", - "Fortran Free Form": "#4d41b1", - "FreeBasic": "#867db1", - "FreeMarker": "#0050b2", - "Frege": "#00cafe", - "Futhark": "#5f021f", - "G-code": "#D08CF2", - "Game Maker Language": "#71b417", - "GAML": "#FFC766", - "GAMS": "#f49a22", - "GAP": "#0000cc", - "GCC Machine Description": "#FFCFAB", - "GDB": null, - "GDScript": "#355570", - "GEDCOM": "#003058", - "Gemfile.lock": "#701516", - "Genie": "#fb855d", - "Genshi": "#951531", - "Gentoo Ebuild": "#9400ff", - "Gentoo Eclass": "#9400ff", - "Gerber Image": "#d20b00", - "Gherkin": "#5B2063", - "Git Attributes": "#F44D27", - "Git Config": "#F44D27", - "GLSL": "#5686a5", - "Glyph": "#c1ac7f", - "Gnuplot": "#f0a9f0", - "Go": "#00ADD8", - "Go Checksums": "#00ADD8", - "Go Module": "#00ADD8", - "Golo": "#88562A", - "Gosu": "#82937f", - "Grace": "#615f8b", - "Gradle": "#02303a", - "Grammatical Framework": "#ff0000", - "GraphQL": "#e10098", - "Graphviz (DOT)": "#2596be", - "Groovy": "#4298b8", - "Groovy Server Pages": "#4298b8", - "Hack": "#878787", - "Haml": "#ece2a9", - "Handlebars": "#f7931e", - "HAProxy": "#106da9", - "Harbour": "#0e60e3", - "Haskell": "#5e5086", - "Haxe": "#df7900", - "HCL": null, - "HiveQL": "#dce200", - "HLSL": "#aace60", - "HolyC": "#ffefaf", - "HTML": "#e34c26", - "HTML+ECR": "#2e1052", - "HTML+EEX": "#6e4a7e", - "HTML+ERB": "#701516", - "HTML+PHP": "#4f5d95", - "HTML+Razor": "#512be4", - "HTTP": "#005C9C", - "HXML": "#f68712", - "Hy": "#7790B2", - "HyPhy": null, - "IDL": "#a3522f", - "Idris": "#b30000", - "Ignore List": "#000000", - "IGOR Pro": "#0000cc", - "ImageJ Macro": "#99AAFF", - "Inform 7": null, - "INI": "#d1dbe0", - "Inno Setup": "#264b99", - "Io": "#a9188d", - "Ioke": "#078193", - "Isabelle": "#FEFE00", - "Isabelle ROOT": "#FEFE00", - "J": "#9EEDFF", - "JAR Manifest": "#b07219", - "Jasmin": "#d03600", - "Java": "#b07219", - "Java Properties": "#2A6277", - "Java Server Pages": "#2A6277", - "JavaScript": "#f1e05a", - "JavaScript+ERB": "#f1e05a", - "Jest Snapshot": "#15c213", - "JFlex": "#DBCA00", - "Jinja": "#a52a22", - "Jison": "#56b3cb", - "Jison Lex": "#56b3cb", - "Jolie": "#843179", - "jq": "#c7254e", - "JSON": "#292929", - "JSON with Comments": "#292929", - "JSON5": "#267CB9", - "JSONiq": "#40d47e", - "JSONLD": "#0c479c", - "Jsonnet": "#0064bd", - "Julia": "#a270ba", - "Jupyter Notebook": "#DA5B0B", - "Kaitai Struct": "#773b37", - "KakouneScript": "#6f8042", - "KiCad Layout": "#2f4aab", - "KiCad Legacy Layout": "#2f4aab", - "KiCad Schematic": "#2f4aab", - "Kotlin": "#A97BFF", - "KRL": "#28430A", - "LabVIEW": "#fede06", - "Lark": "#2980B9", - "Lasso": "#999999", - "Latte": "#f2a542", - "Lean": null, - "Less": "#1d365d", - "Lex": "#DBCA00", - "LFE": "#4C3023", - "LilyPond": "#9ccc7c", - "Limbo": null, - "Liquid": "#67b8de", - "Literate Agda": "#315665", - "Literate CoffeeScript": "#244776", - "Literate Haskell": "#5e5086", - "LiveScript": "#499886", - "LLVM": "#185619", - "Logos": null, - "Logtalk": "#295b9a", - "LOLCODE": "#cc9900", - "LookML": "#652B81", - "LoomScript": null, - "LSL": "#3d9970", - "Lua": "#000080", - "M": null, - "M4": null, - "M4Sugar": null, - "Macaulay2": "#d8ffff", - "Makefile": "#427819", - "Mako": "#7e858d", - "Markdown": "#083fa1", - "Marko": "#42bff2", - "Mask": "#f97732", - "Mathematica": "#dd1100", - "MATLAB": "#e16737", - "Max": "#c4a79c", - "MAXScript": "#00a6a6", - "mcfunction": "#E22837", - "Mercury": "#ff2b2b", - "Meson": "#007800", - "Metal": "#8f14e9", - "MiniD": null, - "Mirah": "#c7a938", - "mIRC Script": "#3d57c3", - "MLIR": "#5EC8DB", - "Modelica": "#de1d31", - "Modula-2": "#10253f", - "Modula-3": "#223388", - "Module Management System": null, - "Monkey": null, - "Moocode": null, - "MoonScript": "#ff4585", - "Motorola 68K Assembly": "#005daa", - "MQL4": "#62A8D6", - "MQL5": "#4A76B8", - "MTML": "#b7e1f4", - "MUF": null, - "mupad": "#244963", - "Mustache": "#724b3b", - "Myghty": null, - "nanorc": "#2d004d", - "NASL": null, - "NCL": "#28431f", - "Nearley": "#990000", - "Nemerle": "#3d3c6e", - "nesC": "#94B0C7", - "NetLinx": "#0aa0ff", - "NetLinx+ERB": "#747faa", - "NetLogo": "#ff6375", - "NewLisp": "#87AED7", - "Nextflow": "#3ac486", - "Nginx": "#009639", - "Nim": "#ffc200", - "Nit": "#009917", - "Nix": "#7e7eff", - "NPM Config": "#cb3837", - "NSIS": null, - "Nu": "#c9df40", - "NumPy": "#9C8AF9", - "Nunjucks": "#3d8137", - "NWScript": "#111522", - "Objective-C": "#438eff", - "Objective-C++": "#6866fb", - "Objective-J": "#ff0c5a", - "ObjectScript": "#424893", - "OCaml": "#3be133", - "Odin": "#60AFFE", - "Omgrofl": "#cabbff", - "ooc": "#b0b77e", - "Opa": null, - "Opal": "#f7ede0", - "Open Policy Agent": "#7d9199", - "OpenCL": "#ed2e2d", - "OpenEdge ABL": "#5ce600", - "OpenQASM": "#AA70FF", - "OpenRC runscript": null, - "OpenSCAD": "#e5cd45", - "Org": "#77aa99", - "Ox": null, - "Oxygene": "#cdd0e3", - "Oz": "#fab738", - "P4": "#7055b5", - "Pan": "#cc0000", - "Papyrus": "#6600cc", - "Parrot": "#f3ca0a", - "Parrot Assembly": null, - "Parrot Internal Representation": null, - "Pascal": "#E3F171", - "Pawn": "#dbb284", - "PEG.js": "#234d6b", - "Pep8": "#C76F5B", - "Perl": "#0298c3", - "PHP": "#4F5D95", - "PicoLisp": "#6067af", - "PigLatin": "#fcd7de", - "Pike": "#005390", - "PLpgSQL": "#336790", - "PLSQL": "#dad8d8", - "PogoScript": "#d80074", - "Pony": null, - "PostCSS": "#dc3a0c", - "PostScript": "#da291c", - "POV-Ray SDL": "#6bac65", - "PowerBuilder": "#8f0f8d", - "PowerShell": "#012456", - "Prisma": "#0c344b", - "Processing": "#0096D8", - "Prolog": "#74283c", - "Propeller Spin": "#7fa2a7", - "Pug": "#a86454", - "Puppet": "#302B6D", - "PureBasic": "#5a6986", - "PureScript": "#1D222D", - "Python": "#3572A5", - "Python console": "#3572A5", - "Python traceback": "#3572A5", - "q": "#0040cd", - "Q#": "#fed659", - "QMake": null, - "QML": "#44a51c", - "Qt Script": "#00b841", - "Quake": "#882233", - "R": "#198CE7", - "Racket": "#3c5caa", - "Ragel": "#9d5200", - "Raku": "#0000fb", - "RAML": "#77d9fb", - "Rascal": "#fffaa0", - "RDoc": "#701516", - "REALbasic": null, - "Reason": "#ff5847", - "Rebol": "#358a5b", - "Record Jar": "#0673ba", - "Red": "#f50000", - "Redcode": null, - "Regular Expression": "#009a00", - "Ren'Py": "#ff7f7f", - "RenderScript": null, - "ReScript": "#ed5051", - "reStructuredText": "#141414", - "REXX": "#d90e09", - "Ring": "#2D54CB", - "Riot": "#A71E49", - "RMarkdown": "#198ce7", - "RobotFramework": "#00c0b5", - "Roff": "#ecdebe", - "Roff Manpage": "#ecdebe", - "Rouge": "#cc0088", - "RPC": null, - "Ruby": "#701516", - "RUNOFF": "#665a4e", - "Rust": "#dea584", - "Sage": null, - "SaltStack": "#646464", - "SAS": "#B34936", - "Sass": "#a53b70", - "Scala": "#c22d40", - "Scaml": "#bd181a", - "Scheme": "#1e4aec", - "Scilab": "#ca0f21", - "SCSS": "#c6538c", - "sed": "#64b970", - "Self": "#0579aa", - "ShaderLab": "#222c37", - "Shell": "#89e051", - "ShellSession": null, - "Shen": "#120F14", - "Sieve": null, - "Singularity": "#64E6AD", - "Slash": "#007eff", - "Slice": "#003fa2", - "Slim": "#2b2b2b", - "Smali": null, - "Smalltalk": "#596706", - "Smarty": "#f0c040", - "SmPL": "#c94949", - "SMT": null, - "Solidity": "#AA6746", - "SourcePawn": "#f69e1d", - "SPARQL": "#0C4597", - "SQF": "#3F3F3F", - "SQL": "#e38c00", - "SQLPL": "#e38c00", - "Squirrel": "#800000", - "SRecode Template": "#348a34", - "Stan": "#b2011d", - "Standard ML": "#dc566d", - "Starlark": "#76d275", - "Stata": "#1a5f91", - "StringTemplate": "#3fb34f", - "Stylus": "#ff6347", - "SubRip Text": "#9e0101", - "SugarSS": "#2fcc9f", - "SuperCollider": "#46390b", - "Svelte": "#ff3e00", - "SVG": "#ff9900", - "Swift": "#F05138", - "SWIG": null, - "SystemVerilog": "#DAE1C2", - "Tcl": "#e4cc98", - "Tcsh": null, - "Terra": "#00004c", - "TeX": "#3D6117", - "Textile": "#ffe7ac", - "TextMate Properties": "#df66e4", - "Thrift": "#D12127", - "TI Program": "#A0AA87", - "TLA": "#4b0079", - "TOML": "#9c4221", - "TSQL": "#e38c00", - "TSV": "#237346", - "TSX": "#2b7489", - "Turing": "#cf142b", - "Twig": "#c1d026", - "TXL": "#0178b8", - "TypeScript": "#2b7489", - "Unified Parallel C": "#4e3617", - "Unity3D Asset": "#222c37", - "Unix Assembly": null, - "Uno": "#9933cc", - "UnrealScript": "#a54c4d", - "UrWeb": "#ccccee", - "V": "#4f87c4", - "Vala": "#fbe5cd", - "Valve Data Format": "#f26025", - "VBA": "#867db1", - "VBScript": "#15dcdc", - "VCL": "#148AA8", - "Verilog": "#b2b7f8", - "VHDL": "#adb2cb", - "Vim Help File": "#199f4b", - "Vim Script": "#199f4b", - "Vim Snippet": "#199f4b", - "Visual Basic .NET": "#945db7", - "Volt": "#1F1F1F", - "Vue": "#41b883", - "wdl": "#42f1f4", - "Web Ontology Language": "#5b70bd", - "WebAssembly": "#04133b", - "WebIDL": null, - "Wikitext": "#fc5757", - "Windows Registry Entries": "#52d5ff", - "wisp": "#7582D1", - "Wollok": "#a23738", - "World of Warcraft Addon Data": "#f7e43f", - "X10": "#4B6BEF", - "xBase": "#403a40", - "XC": "#99DA07", - "XML": "#0060ac", - "XML Property List": "#0060ac", - "Xojo": "#81bd41", - "Xonsh": "#285EEF", - "XProc": null, - "XQuery": "#5232e7", - "XS": null, - "XSLT": "#EB8CEB", - "Xtend": "#24255d", - "Yacc": "#4B6C4B", - "YAML": "#cb171e", - "YARA": "#220000", - "YASnippet": "#32AB90", - "ZAP": "#0d665e", - "Zeek": null, - "ZenScript": "#00BCD1", - "Zephir": "#118f9e", - "Zig": "#ec915c", - "ZIL": "#dc75e5", - "Zimpl": "#d67711" -} \ No newline at end of file + "1C Enterprise": "#814CCC", + "4D": "#004289", + "ABAP": "#E8274B", + "ABAP CDS": "#555e25", + "ActionScript": "#882B0F", + "Ada": "#02f88c", + "Adobe Font Metrics": "#fa0f00", + "Agda": "#315665", + "AGS Script": "#B9D9FF", + "AIDL": "#34EB6B", + "AL": "#3AA2B5", + "Alloy": "#64C800", + "Alpine Abuild": "#0D597F", + "Altium Designer": "#A89663", + "AMPL": "#E6EFBB", + "AngelScript": "#C7D7DC", + "Ant Build System": "#A9157E", + "ANTLR": "#9DC3FF", + "ApacheConf": "#d12127", + "Apex": "#1797c0", + "API Blueprint": "#2ACCA8", + "APL": "#5A8164", + "Apollo Guidance Computer": "#0B3D91", + "AppleScript": "#101F1F", + "Arc": "#aa2afe", + "AsciiDoc": "#73a0c5", + "ASL": null, + "ASP.NET": "#9400ff", + "AspectJ": "#a957b0", + "Assembly": "#6E4C13", + "Astro": "#ff5a03", + "Asymptote": "#ff0000", + "ATS": "#1ac620", + "Augeas": "#9CC134", + "AutoHotkey": "#6594b9", + "AutoIt": "#1C3552", + "Avro IDL": "#0040FF", + "Awk": "#c30e9b", + "Ballerina": "#FF5000", + "BASIC": "#ff0000", + "Batchfile": "#C1F12E", + "Beef": "#a52f4e", + "Befunge": null, + "BibTeX": "#778899", + "Bicep": "#519aba", + "Bison": "#6A463F", + "BitBake": "#00bce4", + "Blade": "#f7523f", + "BlitzBasic": "#00FFAE", + "BlitzMax": "#cd6400", + "Bluespec": "#12223c", + "Boo": "#d4bec1", + "Boogie": "#c80fa0", + "Brainfuck": "#2F2530", + "Brightscript": "#662D91", + "Browserslist": "#ffd539", + "C": "#555555", + "C#": "#178600", + "C++": "#f34b7d", + "C2hs Haskell": null, + "Cabal Config": "#483465", + "Cap'n Proto": "#c42727", + "CartoCSS": null, + "Ceylon": "#dfa535", + "Chapel": "#8dc63f", + "Charity": null, + "ChucK": "#3f8000", + "Cirru": "#ccccff", + "Clarion": "#db901e", + "Classic ASP": "#6a40fd", + "Clean": "#3F85AF", + "Click": "#E4E6F3", + "CLIPS": "#00A300", + "Clojure": "#db5855", + "Closure Templates": "#0d948f", + "Cloud Firestore Security Rules": "#FFA000", + "CMake": "#DA3434", + "COBOL": null, + "CodeQL": "#140f46", + "CoffeeScript": "#244776", + "ColdFusion": "#ed2cd6", + "ColdFusion CFC": "#ed2cd6", + "COLLADA": "#F1A42B", + "Common Lisp": "#3fb68b", + "Common Workflow Language": "#B5314C", + "Component Pascal": "#B0CE4E", + "Cool": null, + "Coq": "#d0b68c", + "Crystal": "#000100", + "CSON": "#244776", + "Csound": "#1a1a1a", + "Csound Document": "#1a1a1a", + "Csound Score": "#1a1a1a", + "CSS": "#563d7c", + "CSV": "#237346", + "Cuda": "#3A4E3A", + "CUE": "#5886E1", + "CWeb": "#00007a", + "Cycript": null, + "Cython": "#fedf5b", + "D": "#ba595e", + "Dafny": "#FFEC25", + "Darcs Patch": "#8eff23", + "Dart": "#00B4AB", + "DataWeave": "#003a52", + "Dhall": "#dfafff", + "DIGITAL Command Language": null, + "DirectX 3D File": "#aace60", + "DM": "#447265", + "Dockerfile": "#384d54", + "Dogescript": "#cca760", + "DTrace": null, + "Dylan": "#6c616e", + "E": "#ccce35", + "Easybuild": "#069406", + "eC": "#913960", + "Ecere Projects": "#913960", + "ECL": "#8a1267", + "ECLiPSe": "#001d9d", + "EditorConfig": "#fff1f2", + "Eiffel": "#4d6977", + "EJS": "#a91e50", + "Elixir": "#6e4a7e", + "Elm": "#60B5CC", + "Emacs Lisp": "#c065db", + "EmberScript": "#FFF4F3", + "EQ": "#a78649", + "Erlang": "#B83998", + "F#": "#b845fc", + "F*": "#572e30", + "Factor": "#636746", + "Fancy": "#7b9db4", + "Fantom": "#14253c", + "Faust": "#c37240", + "Fennel": "#fff3d7", + "FIGlet Font": "#FFDDBB", + "Filebench WML": "#F6B900", + "Filterscript": null, + "fish": "#4aae47", + "Fluent": "#ffcc33", + "FLUX": "#88ccff", + "Forth": "#341708", + "Fortran": "#4d41b1", + "Fortran Free Form": "#4d41b1", + "FreeBasic": "#867db1", + "FreeMarker": "#0050b2", + "Frege": "#00cafe", + "Futhark": "#5f021f", + "G-code": "#D08CF2", + "Game Maker Language": "#71b417", + "GAML": "#FFC766", + "GAMS": "#f49a22", + "GAP": "#0000cc", + "GCC Machine Description": "#FFCFAB", + "GDB": null, + "GDScript": "#355570", + "GEDCOM": "#003058", + "Gemfile.lock": "#701516", + "Genie": "#fb855d", + "Genshi": "#951531", + "Gentoo Ebuild": "#9400ff", + "Gentoo Eclass": "#9400ff", + "Gerber Image": "#d20b00", + "Gherkin": "#5B2063", + "Git Attributes": "#F44D27", + "Git Config": "#F44D27", + "GLSL": "#5686a5", + "Glyph": "#c1ac7f", + "Gnuplot": "#f0a9f0", + "Go": "#00ADD8", + "Go Checksums": "#00ADD8", + "Go Module": "#00ADD8", + "Golo": "#88562A", + "Gosu": "#82937f", + "Grace": "#615f8b", + "Gradle": "#02303a", + "Grammatical Framework": "#ff0000", + "GraphQL": "#e10098", + "Graphviz (DOT)": "#2596be", + "Groovy": "#4298b8", + "Groovy Server Pages": "#4298b8", + "Hack": "#878787", + "Haml": "#ece2a9", + "Handlebars": "#f7931e", + "HAProxy": "#106da9", + "Harbour": "#0e60e3", + "Haskell": "#5e5086", + "Haxe": "#df7900", + "HCL": null, + "HiveQL": "#dce200", + "HLSL": "#aace60", + "HolyC": "#ffefaf", + "HTML": "#e34c26", + "HTML+ECR": "#2e1052", + "HTML+EEX": "#6e4a7e", + "HTML+ERB": "#701516", + "HTML+PHP": "#4f5d95", + "HTML+Razor": "#512be4", + "HTTP": "#005C9C", + "HXML": "#f68712", + "Hy": "#7790B2", + "HyPhy": null, + "IDL": "#a3522f", + "Idris": "#b30000", + "Ignore List": "#000000", + "IGOR Pro": "#0000cc", + "ImageJ Macro": "#99AAFF", + "Inform 7": null, + "INI": "#d1dbe0", + "Inno Setup": "#264b99", + "Io": "#a9188d", + "Ioke": "#078193", + "Isabelle": "#FEFE00", + "Isabelle ROOT": "#FEFE00", + "J": "#9EEDFF", + "JAR Manifest": "#b07219", + "Jasmin": "#d03600", + "Java": "#b07219", + "Java Properties": "#2A6277", + "Java Server Pages": "#2A6277", + "JavaScript": "#f1e05a", + "JavaScript+ERB": "#f1e05a", + "Jest Snapshot": "#15c213", + "JFlex": "#DBCA00", + "Jinja": "#a52a22", + "Jison": "#56b3cb", + "Jison Lex": "#56b3cb", + "Jolie": "#843179", + "jq": "#c7254e", + "JSON": "#292929", + "JSON with Comments": "#292929", + "JSON5": "#267CB9", + "JSONiq": "#40d47e", + "JSONLD": "#0c479c", + "Jsonnet": "#0064bd", + "Julia": "#a270ba", + "Jupyter Notebook": "#DA5B0B", + "Kaitai Struct": "#773b37", + "KakouneScript": "#6f8042", + "KiCad Layout": "#2f4aab", + "KiCad Legacy Layout": "#2f4aab", + "KiCad Schematic": "#2f4aab", + "Kotlin": "#A97BFF", + "KRL": "#28430A", + "LabVIEW": "#fede06", + "Lark": "#2980B9", + "Lasso": "#999999", + "Latte": "#f2a542", + "Lean": null, + "Less": "#1d365d", + "Lex": "#DBCA00", + "LFE": "#4C3023", + "LilyPond": "#9ccc7c", + "Limbo": null, + "Liquid": "#67b8de", + "Literate Agda": "#315665", + "Literate CoffeeScript": "#244776", + "Literate Haskell": "#5e5086", + "LiveScript": "#499886", + "LLVM": "#185619", + "Logos": null, + "Logtalk": "#295b9a", + "LOLCODE": "#cc9900", + "LookML": "#652B81", + "LoomScript": null, + "LSL": "#3d9970", + "Lua": "#000080", + "M": null, + "M4": null, + "M4Sugar": null, + "Macaulay2": "#d8ffff", + "Makefile": "#427819", + "Mako": "#7e858d", + "Markdown": "#083fa1", + "Marko": "#42bff2", + "Mask": "#f97732", + "Mathematica": "#dd1100", + "MATLAB": "#e16737", + "Max": "#c4a79c", + "MAXScript": "#00a6a6", + "mcfunction": "#E22837", + "Mercury": "#ff2b2b", + "Meson": "#007800", + "Metal": "#8f14e9", + "MiniD": null, + "Mirah": "#c7a938", + "mIRC Script": "#3d57c3", + "MLIR": "#5EC8DB", + "Modelica": "#de1d31", + "Modula-2": "#10253f", + "Modula-3": "#223388", + "Module Management System": null, + "Monkey": null, + "Moocode": null, + "MoonScript": "#ff4585", + "Motorola 68K Assembly": "#005daa", + "MQL4": "#62A8D6", + "MQL5": "#4A76B8", + "MTML": "#b7e1f4", + "MUF": null, + "mupad": "#244963", + "Mustache": "#724b3b", + "Myghty": null, + "nanorc": "#2d004d", + "NASL": null, + "NCL": "#28431f", + "Nearley": "#990000", + "Nemerle": "#3d3c6e", + "nesC": "#94B0C7", + "NetLinx": "#0aa0ff", + "NetLinx+ERB": "#747faa", + "NetLogo": "#ff6375", + "NewLisp": "#87AED7", + "Nextflow": "#3ac486", + "Nginx": "#009639", + "Nim": "#ffc200", + "Nit": "#009917", + "Nix": "#7e7eff", + "NPM Config": "#cb3837", + "NSIS": null, + "Nu": "#c9df40", + "NumPy": "#9C8AF9", + "Nunjucks": "#3d8137", + "NWScript": "#111522", + "Objective-C": "#438eff", + "Objective-C++": "#6866fb", + "Objective-J": "#ff0c5a", + "ObjectScript": "#424893", + "OCaml": "#3be133", + "Odin": "#60AFFE", + "Omgrofl": "#cabbff", + "ooc": "#b0b77e", + "Opa": null, + "Opal": "#f7ede0", + "Open Policy Agent": "#7d9199", + "OpenCL": "#ed2e2d", + "OpenEdge ABL": "#5ce600", + "OpenQASM": "#AA70FF", + "OpenRC runscript": null, + "OpenSCAD": "#e5cd45", + "Org": "#77aa99", + "Ox": null, + "Oxygene": "#cdd0e3", + "Oz": "#fab738", + "P4": "#7055b5", + "Pan": "#cc0000", + "Papyrus": "#6600cc", + "Parrot": "#f3ca0a", + "Parrot Assembly": null, + "Parrot Internal Representation": null, + "Pascal": "#E3F171", + "Pawn": "#dbb284", + "PEG.js": "#234d6b", + "Pep8": "#C76F5B", + "Perl": "#0298c3", + "PHP": "#4F5D95", + "PicoLisp": "#6067af", + "PigLatin": "#fcd7de", + "Pike": "#005390", + "PLpgSQL": "#336790", + "PLSQL": "#dad8d8", + "PogoScript": "#d80074", + "Pony": null, + "PostCSS": "#dc3a0c", + "PostScript": "#da291c", + "POV-Ray SDL": "#6bac65", + "PowerBuilder": "#8f0f8d", + "PowerShell": "#012456", + "Prisma": "#0c344b", + "Processing": "#0096D8", + "Prolog": "#74283c", + "Propeller Spin": "#7fa2a7", + "Pug": "#a86454", + "Puppet": "#302B6D", + "PureBasic": "#5a6986", + "PureScript": "#1D222D", + "Python": "#3572A5", + "Python console": "#3572A5", + "Python traceback": "#3572A5", + "q": "#0040cd", + "Q#": "#fed659", + "QMake": null, + "QML": "#44a51c", + "Qt Script": "#00b841", + "Quake": "#882233", + "R": "#198CE7", + "Racket": "#3c5caa", + "Ragel": "#9d5200", + "Raku": "#0000fb", + "RAML": "#77d9fb", + "Rascal": "#fffaa0", + "RDoc": "#701516", + "REALbasic": null, + "Reason": "#ff5847", + "Rebol": "#358a5b", + "Record Jar": "#0673ba", + "Red": "#f50000", + "Redcode": null, + "Regular Expression": "#009a00", + "Ren'Py": "#ff7f7f", + "RenderScript": null, + "ReScript": "#ed5051", + "reStructuredText": "#141414", + "REXX": "#d90e09", + "Ring": "#2D54CB", + "Riot": "#A71E49", + "RMarkdown": "#198ce7", + "RobotFramework": "#00c0b5", + "Roff": "#ecdebe", + "Roff Manpage": "#ecdebe", + "Rouge": "#cc0088", + "RPC": null, + "Ruby": "#701516", + "RUNOFF": "#665a4e", + "Rust": "#dea584", + "Sage": null, + "SaltStack": "#646464", + "SAS": "#B34936", + "Sass": "#a53b70", + "Scala": "#c22d40", + "Scaml": "#bd181a", + "Scheme": "#1e4aec", + "Scilab": "#ca0f21", + "SCSS": "#c6538c", + "sed": "#64b970", + "Self": "#0579aa", + "ShaderLab": "#222c37", + "Shell": "#89e051", + "ShellSession": null, + "Shen": "#120F14", + "Sieve": null, + "Singularity": "#64E6AD", + "Slash": "#007eff", + "Slice": "#003fa2", + "Slim": "#2b2b2b", + "Smali": null, + "Smalltalk": "#596706", + "Smarty": "#f0c040", + "SmPL": "#c94949", + "SMT": null, + "Solidity": "#AA6746", + "SourcePawn": "#f69e1d", + "SPARQL": "#0C4597", + "SQF": "#3F3F3F", + "SQL": "#e38c00", + "SQLPL": "#e38c00", + "Squirrel": "#800000", + "SRecode Template": "#348a34", + "Stan": "#b2011d", + "Standard ML": "#dc566d", + "Starlark": "#76d275", + "Stata": "#1a5f91", + "StringTemplate": "#3fb34f", + "Stylus": "#ff6347", + "SubRip Text": "#9e0101", + "SugarSS": "#2fcc9f", + "SuperCollider": "#46390b", + "Svelte": "#ff3e00", + "SVG": "#ff9900", + "Swift": "#F05138", + "SWIG": null, + "SystemVerilog": "#DAE1C2", + "Tcl": "#e4cc98", + "Tcsh": null, + "Terra": "#00004c", + "TeX": "#3D6117", + "Textile": "#ffe7ac", + "TextMate Properties": "#df66e4", + "Thrift": "#D12127", + "TI Program": "#A0AA87", + "TLA": "#4b0079", + "TOML": "#9c4221", + "TSQL": "#e38c00", + "TSV": "#237346", + "TSX": "#2b7489", + "Turing": "#cf142b", + "Twig": "#c1d026", + "TXL": "#0178b8", + "TypeScript": "#2b7489", + "Unified Parallel C": "#4e3617", + "Unity3D Asset": "#222c37", + "Unix Assembly": null, + "Uno": "#9933cc", + "UnrealScript": "#a54c4d", + "UrWeb": "#ccccee", + "V": "#4f87c4", + "Vala": "#fbe5cd", + "Valve Data Format": "#f26025", + "VBA": "#867db1", + "VBScript": "#15dcdc", + "VCL": "#148AA8", + "Verilog": "#b2b7f8", + "VHDL": "#adb2cb", + "Vim Help File": "#199f4b", + "Vim Script": "#199f4b", + "Vim Snippet": "#199f4b", + "Visual Basic .NET": "#945db7", + "Volt": "#1F1F1F", + "Vue": "#41b883", + "wdl": "#42f1f4", + "Web Ontology Language": "#5b70bd", + "WebAssembly": "#04133b", + "WebIDL": null, + "Wikitext": "#fc5757", + "Windows Registry Entries": "#52d5ff", + "wisp": "#7582D1", + "Wollok": "#a23738", + "World of Warcraft Addon Data": "#f7e43f", + "X10": "#4B6BEF", + "xBase": "#403a40", + "XC": "#99DA07", + "XML": "#0060ac", + "XML Property List": "#0060ac", + "Xojo": "#81bd41", + "Xonsh": "#285EEF", + "XProc": null, + "XQuery": "#5232e7", + "XS": null, + "XSLT": "#EB8CEB", + "Xtend": "#24255d", + "Yacc": "#4B6C4B", + "YAML": "#cb171e", + "YARA": "#220000", + "YASnippet": "#32AB90", + "ZAP": "#0d665e", + "Zeek": null, + "ZenScript": "#00BCD1", + "Zephir": "#118f9e", + "Zig": "#ec915c", + "ZIL": "#dc75e5", + "Zimpl": "#d67711" +} diff --git a/data/forgejoColors.json b/data/forgejoColors.json index 7f272e7a..af6ecf84 100644 --- a/data/forgejoColors.json +++ b/data/forgejoColors.json @@ -1,533 +1,533 @@ { - "1C Enterprise": "#814CCC", - "4D": "#004289", - "ABAP": "#E8274B", - "ABAP CDS": "#555e25", - "ActionScript": "#882B0F", - "Ada": "#02f88c", - "Adobe Font Metrics": "#fa0f00", - "Agda": "#315665", - "AGS Script": "#B9D9FF", - "AIDL": "#34EB6B", - "AL": "#3AA2B5", - "Alloy": "#64C800", - "Alpine Abuild": "#0D597F", - "Altium Designer": "#A89663", - "AMPL": "#E6EFBB", - "AngelScript": "#C7D7DC", - "Ant Build System": "#A9157E", - "ANTLR": "#9DC3FF", - "ApacheConf": "#d12127", - "Apex": "#1797c0", - "API Blueprint": "#2ACCA8", - "APL": "#5A8164", - "Apollo Guidance Computer": "#0B3D91", - "AppleScript": "#101F1F", - "Arc": "#aa2afe", - "AsciiDoc": "#73a0c5", - "ASL": null, - "ASP.NET": "#9400ff", - "AspectJ": "#a957b0", - "Assembly": "#6E4C13", - "Astro": "#ff5a03", - "Asymptote": "#ff0000", - "ATS": "#1ac620", - "Augeas": "#9CC134", - "AutoHotkey": "#6594b9", - "AutoIt": "#1C3552", - "Avro IDL": "#0040FF", - "Awk": "#c30e9b", - "Ballerina": "#FF5000", - "BASIC": "#ff0000", - "Batchfile": "#C1F12E", - "Beef": "#a52f4e", - "Befunge": null, - "BibTeX": "#778899", - "Bicep": "#519aba", - "Bison": "#6A463F", - "BitBake": "#00bce4", - "Blade": "#f7523f", - "BlitzBasic": "#00FFAE", - "BlitzMax": "#cd6400", - "Bluespec": "#12223c", - "Boo": "#d4bec1", - "Boogie": "#c80fa0", - "Brainfuck": "#2F2530", - "Brightscript": "#662D91", - "Browserslist": "#ffd539", - "C": "#555555", - "C#": "#178600", - "C++": "#f34b7d", - "C2hs Haskell": null, - "Cabal Config": "#483465", - "Cap'n Proto": "#c42727", - "CartoCSS": null, - "Ceylon": "#dfa535", - "Chapel": "#8dc63f", - "Charity": null, - "ChucK": "#3f8000", - "Cirru": "#ccccff", - "Clarion": "#db901e", - "Classic ASP": "#6a40fd", - "Clean": "#3F85AF", - "Click": "#E4E6F3", - "CLIPS": "#00A300", - "Clojure": "#db5855", - "Closure Templates": "#0d948f", - "Cloud Firestore Security Rules": "#FFA000", - "CMake": "#DA3434", - "COBOL": null, - "CodeQL": "#140f46", - "CoffeeScript": "#244776", - "ColdFusion": "#ed2cd6", - "ColdFusion CFC": "#ed2cd6", - "COLLADA": "#F1A42B", - "Common Lisp": "#3fb68b", - "Common Workflow Language": "#B5314C", - "Component Pascal": "#B0CE4E", - "Cool": null, - "Coq": "#d0b68c", - "Crystal": "#000100", - "CSON": "#244776", - "Csound": "#1a1a1a", - "Csound Document": "#1a1a1a", - "Csound Score": "#1a1a1a", - "CSS": "#563d7c", - "CSV": "#237346", - "Cuda": "#3A4E3A", - "CUE": "#5886E1", - "CWeb": "#00007a", - "Cycript": null, - "Cython": "#fedf5b", - "D": "#ba595e", - "Dafny": "#FFEC25", - "Darcs Patch": "#8eff23", - "Dart": "#00B4AB", - "DataWeave": "#003a52", - "Dhall": "#dfafff", - "DIGITAL Command Language": null, - "DirectX 3D File": "#aace60", - "DM": "#447265", - "Dockerfile": "#384d54", - "Dogescript": "#cca760", - "DTrace": null, - "Dylan": "#6c616e", - "E": "#ccce35", - "Easybuild": "#069406", - "eC": "#913960", - "Ecere Projects": "#913960", - "ECL": "#8a1267", - "ECLiPSe": "#001d9d", - "EditorConfig": "#fff1f2", - "Eiffel": "#4d6977", - "EJS": "#a91e50", - "Elixir": "#6e4a7e", - "Elm": "#60B5CC", - "Emacs Lisp": "#c065db", - "EmberScript": "#FFF4F3", - "EQ": "#a78649", - "Erlang": "#B83998", - "F#": "#b845fc", - "F*": "#572e30", - "Factor": "#636746", - "Fancy": "#7b9db4", - "Fantom": "#14253c", - "Faust": "#c37240", - "Fennel": "#fff3d7", - "FIGlet Font": "#FFDDBB", - "Filebench WML": "#F6B900", - "Filterscript": null, - "fish": "#4aae47", - "Fluent": "#ffcc33", - "FLUX": "#88ccff", - "Forth": "#341708", - "Fortran": "#4d41b1", - "Fortran Free Form": "#4d41b1", - "FreeBasic": "#867db1", - "FreeMarker": "#0050b2", - "Frege": "#00cafe", - "Futhark": "#5f021f", - "G-code": "#D08CF2", - "Game Maker Language": "#71b417", - "GAML": "#FFC766", - "GAMS": "#f49a22", - "GAP": "#0000cc", - "GCC Machine Description": "#FFCFAB", - "GDB": null, - "GDScript": "#355570", - "GEDCOM": "#003058", - "Gemfile.lock": "#701516", - "Genie": "#fb855d", - "Genshi": "#951531", - "Gentoo Ebuild": "#9400ff", - "Gentoo Eclass": "#9400ff", - "Gerber Image": "#d20b00", - "Gherkin": "#5B2063", - "Git Attributes": "#F44D27", - "Git Config": "#F44D27", - "GLSL": "#5686a5", - "Glyph": "#c1ac7f", - "Gnuplot": "#f0a9f0", - "Go": "#00ADD8", - "Go Checksums": "#00ADD8", - "Go Module": "#00ADD8", - "Golo": "#88562A", - "Gosu": "#82937f", - "Grace": "#615f8b", - "Gradle": "#02303a", - "Grammatical Framework": "#ff0000", - "GraphQL": "#e10098", - "Graphviz (DOT)": "#2596be", - "Groovy": "#4298b8", - "Groovy Server Pages": "#4298b8", - "Hack": "#878787", - "Haml": "#ece2a9", - "Handlebars": "#f7931e", - "HAProxy": "#106da9", - "Harbour": "#0e60e3", - "Haskell": "#5e5086", - "Haxe": "#df7900", - "HCL": null, - "HiveQL": "#dce200", - "HLSL": "#aace60", - "HolyC": "#ffefaf", - "HTML": "#e34c26", - "HTML+ECR": "#2e1052", - "HTML+EEX": "#6e4a7e", - "HTML+ERB": "#701516", - "HTML+PHP": "#4f5d95", - "HTML+Razor": "#512be4", - "HTTP": "#005C9C", - "HXML": "#f68712", - "Hy": "#7790B2", - "HyPhy": null, - "IDL": "#a3522f", - "Idris": "#b30000", - "Ignore List": "#000000", - "IGOR Pro": "#0000cc", - "ImageJ Macro": "#99AAFF", - "Inform 7": null, - "INI": "#d1dbe0", - "Inno Setup": "#264b99", - "Io": "#a9188d", - "Ioke": "#078193", - "Isabelle": "#FEFE00", - "Isabelle ROOT": "#FEFE00", - "J": "#9EEDFF", - "JAR Manifest": "#b07219", - "Jasmin": "#d03600", - "Java": "#b07219", - "Java Properties": "#2A6277", - "Java Server Pages": "#2A6277", - "JavaScript": "#f1e05a", - "JavaScript+ERB": "#f1e05a", - "Jest Snapshot": "#15c213", - "JFlex": "#DBCA00", - "Jinja": "#a52a22", - "Jison": "#56b3cb", - "Jison Lex": "#56b3cb", - "Jolie": "#843179", - "jq": "#c7254e", - "JSON": "#292929", - "JSON with Comments": "#292929", - "JSON5": "#267CB9", - "JSONiq": "#40d47e", - "JSONLD": "#0c479c", - "Jsonnet": "#0064bd", - "Julia": "#a270ba", - "Jupyter Notebook": "#DA5B0B", - "Kaitai Struct": "#773b37", - "KakouneScript": "#6f8042", - "KiCad Layout": "#2f4aab", - "KiCad Legacy Layout": "#2f4aab", - "KiCad Schematic": "#2f4aab", - "Kotlin": "#A97BFF", - "KRL": "#28430A", - "LabVIEW": "#fede06", - "Lark": "#2980B9", - "Lasso": "#999999", - "Latte": "#f2a542", - "Lean": null, - "Less": "#1d365d", - "Lex": "#DBCA00", - "LFE": "#4C3023", - "LilyPond": "#9ccc7c", - "Limbo": null, - "Liquid": "#67b8de", - "Literate Agda": "#315665", - "Literate CoffeeScript": "#244776", - "Literate Haskell": "#5e5086", - "LiveScript": "#499886", - "LLVM": "#185619", - "Logos": null, - "Logtalk": "#295b9a", - "LOLCODE": "#cc9900", - "LookML": "#652B81", - "LoomScript": null, - "LSL": "#3d9970", - "Lua": "#000080", - "M": null, - "M4": null, - "M4Sugar": null, - "Macaulay2": "#d8ffff", - "Makefile": "#427819", - "Mako": "#7e858d", - "Markdown": "#083fa1", - "Marko": "#42bff2", - "Mask": "#f97732", - "Mathematica": "#dd1100", - "MATLAB": "#e16737", - "Max": "#c4a79c", - "MAXScript": "#00a6a6", - "mcfunction": "#E22837", - "Mercury": "#ff2b2b", - "Meson": "#007800", - "Metal": "#8f14e9", - "MiniD": null, - "Mirah": "#c7a938", - "mIRC Script": "#3d57c3", - "MLIR": "#5EC8DB", - "Modelica": "#de1d31", - "Modula-2": "#10253f", - "Modula-3": "#223388", - "Module Management System": null, - "Monkey": null, - "Moocode": null, - "MoonScript": "#ff4585", - "Motorola 68K Assembly": "#005daa", - "MQL4": "#62A8D6", - "MQL5": "#4A76B8", - "MTML": "#b7e1f4", - "MUF": null, - "mupad": "#244963", - "Mustache": "#724b3b", - "Myghty": null, - "nanorc": "#2d004d", - "NASL": null, - "NCL": "#28431f", - "Nearley": "#990000", - "Nemerle": "#3d3c6e", - "nesC": "#94B0C7", - "NetLinx": "#0aa0ff", - "NetLinx+ERB": "#747faa", - "NetLogo": "#ff6375", - "NewLisp": "#87AED7", - "Nextflow": "#3ac486", - "Nginx": "#009639", - "Nim": "#ffc200", - "Nit": "#009917", - "Nix": "#7e7eff", - "NPM Config": "#cb3837", - "NSIS": null, - "Nu": "#c9df40", - "NumPy": "#9C8AF9", - "Nunjucks": "#3d8137", - "NWScript": "#111522", - "Objective-C": "#438eff", - "Objective-C++": "#6866fb", - "Objective-J": "#ff0c5a", - "ObjectScript": "#424893", - "OCaml": "#3be133", - "Odin": "#60AFFE", - "Omgrofl": "#cabbff", - "ooc": "#b0b77e", - "Opa": null, - "Opal": "#f7ede0", - "Open Policy Agent": "#7d9199", - "OpenCL": "#ed2e2d", - "OpenEdge ABL": "#5ce600", - "OpenQASM": "#AA70FF", - "OpenRC runscript": null, - "OpenSCAD": "#e5cd45", - "Org": "#77aa99", - "Ox": null, - "Oxygene": "#cdd0e3", - "Oz": "#fab738", - "P4": "#7055b5", - "Pan": "#cc0000", - "Papyrus": "#6600cc", - "Parrot": "#f3ca0a", - "Parrot Assembly": null, - "Parrot Internal Representation": null, - "Pascal": "#E3F171", - "Pawn": "#dbb284", - "PEG.js": "#234d6b", - "Pep8": "#C76F5B", - "Perl": "#0298c3", - "PHP": "#4F5D95", - "PicoLisp": "#6067af", - "PigLatin": "#fcd7de", - "Pike": "#005390", - "PLpgSQL": "#336790", - "PLSQL": "#dad8d8", - "PogoScript": "#d80074", - "Pony": null, - "PostCSS": "#dc3a0c", - "PostScript": "#da291c", - "POV-Ray SDL": "#6bac65", - "PowerBuilder": "#8f0f8d", - "PowerShell": "#012456", - "Prisma": "#0c344b", - "Processing": "#0096D8", - "Prolog": "#74283c", - "Propeller Spin": "#7fa2a7", - "Pug": "#a86454", - "Puppet": "#302B6D", - "PureBasic": "#5a6986", - "PureScript": "#1D222D", - "Python": "#3572A5", - "Python console": "#3572A5", - "Python traceback": "#3572A5", - "q": "#0040cd", - "Q#": "#fed659", - "QMake": null, - "QML": "#44a51c", - "Qt Script": "#00b841", - "Quake": "#882233", - "R": "#198CE7", - "Racket": "#3c5caa", - "Ragel": "#9d5200", - "Raku": "#0000fb", - "RAML": "#77d9fb", - "Rascal": "#fffaa0", - "RDoc": "#701516", - "REALbasic": null, - "Reason": "#ff5847", - "Rebol": "#358a5b", - "Record Jar": "#0673ba", - "Red": "#f50000", - "Redcode": null, - "Regular Expression": "#009a00", - "Ren'Py": "#ff7f7f", - "RenderScript": null, - "ReScript": "#ed5051", - "reStructuredText": "#141414", - "REXX": "#d90e09", - "Ring": "#2D54CB", - "Riot": "#A71E49", - "RMarkdown": "#198ce7", - "RobotFramework": "#00c0b5", - "Roff": "#ecdebe", - "Roff Manpage": "#ecdebe", - "Rouge": "#cc0088", - "RPC": null, - "Ruby": "#701516", - "RUNOFF": "#665a4e", - "Rust": "#dea584", - "Sage": null, - "SaltStack": "#646464", - "SAS": "#B34936", - "Sass": "#a53b70", - "Scala": "#c22d40", - "Scaml": "#bd181a", - "Scheme": "#1e4aec", - "Scilab": "#ca0f21", - "SCSS": "#c6538c", - "sed": "#64b970", - "Self": "#0579aa", - "ShaderLab": "#222c37", - "Shell": "#89e051", - "ShellSession": null, - "Shen": "#120F14", - "Sieve": null, - "Singularity": "#64E6AD", - "Slash": "#007eff", - "Slice": "#003fa2", - "Slim": "#2b2b2b", - "Smali": null, - "Smalltalk": "#596706", - "Smarty": "#f0c040", - "SmPL": "#c94949", - "SMT": null, - "Solidity": "#AA6746", - "SourcePawn": "#f69e1d", - "SPARQL": "#0C4597", - "SQF": "#3F3F3F", - "SQL": "#e38c00", - "SQLPL": "#e38c00", - "Squirrel": "#800000", - "SRecode Template": "#348a34", - "Stan": "#b2011d", - "Standard ML": "#dc566d", - "Starlark": "#76d275", - "Stata": "#1a5f91", - "StringTemplate": "#3fb34f", - "Stylus": "#ff6347", - "SubRip Text": "#9e0101", - "SugarSS": "#2fcc9f", - "SuperCollider": "#46390b", - "Svelte": "#ff3e00", - "SVG": "#ff9900", - "Swift": "#F05138", - "SWIG": null, - "SystemVerilog": "#DAE1C2", - "Tcl": "#e4cc98", - "Tcsh": null, - "Terra": "#00004c", - "TeX": "#3D6117", - "Textile": "#ffe7ac", - "TextMate Properties": "#df66e4", - "Thrift": "#D12127", - "TI Program": "#A0AA87", - "TLA": "#4b0079", - "TOML": "#9c4221", - "TSQL": "#e38c00", - "TSV": "#237346", - "TSX": "#2b7489", - "Turing": "#cf142b", - "Twig": "#c1d026", - "TXL": "#0178b8", - "TypeScript": "#2b7489", - "Unified Parallel C": "#4e3617", - "Unity3D Asset": "#222c37", - "Unix Assembly": null, - "Uno": "#9933cc", - "UnrealScript": "#a54c4d", - "UrWeb": "#ccccee", - "V": "#4f87c4", - "Vala": "#fbe5cd", - "Valve Data Format": "#f26025", - "VBA": "#867db1", - "VBScript": "#15dcdc", - "VCL": "#148AA8", - "Verilog": "#b2b7f8", - "VHDL": "#adb2cb", - "Vim Help File": "#199f4b", - "Vim Script": "#199f4b", - "Vim Snippet": "#199f4b", - "Visual Basic .NET": "#945db7", - "Volt": "#1F1F1F", - "Vue": "#41b883", - "wdl": "#42f1f4", - "Web Ontology Language": "#5b70bd", - "WebAssembly": "#04133b", - "WebIDL": null, - "Wikitext": "#fc5757", - "Windows Registry Entries": "#52d5ff", - "wisp": "#7582D1", - "Wollok": "#a23738", - "World of Warcraft Addon Data": "#f7e43f", - "X10": "#4B6BEF", - "xBase": "#403a40", - "XC": "#99DA07", - "XML": "#0060ac", - "XML Property List": "#0060ac", - "Xojo": "#81bd41", - "Xonsh": "#285EEF", - "XProc": null, - "XQuery": "#5232e7", - "XS": null, - "XSLT": "#EB8CEB", - "Xtend": "#24255d", - "Yacc": "#4B6C4B", - "YAML": "#cb171e", - "YARA": "#220000", - "YASnippet": "#32AB90", - "ZAP": "#0d665e", - "Zeek": null, - "ZenScript": "#00BCD1", - "Zephir": "#118f9e", - "Zig": "#ec915c", - "ZIL": "#dc75e5", - "Zimpl": "#d67711" -} \ No newline at end of file + "1C Enterprise": "#814CCC", + "4D": "#004289", + "ABAP": "#E8274B", + "ABAP CDS": "#555e25", + "ActionScript": "#882B0F", + "Ada": "#02f88c", + "Adobe Font Metrics": "#fa0f00", + "Agda": "#315665", + "AGS Script": "#B9D9FF", + "AIDL": "#34EB6B", + "AL": "#3AA2B5", + "Alloy": "#64C800", + "Alpine Abuild": "#0D597F", + "Altium Designer": "#A89663", + "AMPL": "#E6EFBB", + "AngelScript": "#C7D7DC", + "Ant Build System": "#A9157E", + "ANTLR": "#9DC3FF", + "ApacheConf": "#d12127", + "Apex": "#1797c0", + "API Blueprint": "#2ACCA8", + "APL": "#5A8164", + "Apollo Guidance Computer": "#0B3D91", + "AppleScript": "#101F1F", + "Arc": "#aa2afe", + "AsciiDoc": "#73a0c5", + "ASL": null, + "ASP.NET": "#9400ff", + "AspectJ": "#a957b0", + "Assembly": "#6E4C13", + "Astro": "#ff5a03", + "Asymptote": "#ff0000", + "ATS": "#1ac620", + "Augeas": "#9CC134", + "AutoHotkey": "#6594b9", + "AutoIt": "#1C3552", + "Avro IDL": "#0040FF", + "Awk": "#c30e9b", + "Ballerina": "#FF5000", + "BASIC": "#ff0000", + "Batchfile": "#C1F12E", + "Beef": "#a52f4e", + "Befunge": null, + "BibTeX": "#778899", + "Bicep": "#519aba", + "Bison": "#6A463F", + "BitBake": "#00bce4", + "Blade": "#f7523f", + "BlitzBasic": "#00FFAE", + "BlitzMax": "#cd6400", + "Bluespec": "#12223c", + "Boo": "#d4bec1", + "Boogie": "#c80fa0", + "Brainfuck": "#2F2530", + "Brightscript": "#662D91", + "Browserslist": "#ffd539", + "C": "#555555", + "C#": "#178600", + "C++": "#f34b7d", + "C2hs Haskell": null, + "Cabal Config": "#483465", + "Cap'n Proto": "#c42727", + "CartoCSS": null, + "Ceylon": "#dfa535", + "Chapel": "#8dc63f", + "Charity": null, + "ChucK": "#3f8000", + "Cirru": "#ccccff", + "Clarion": "#db901e", + "Classic ASP": "#6a40fd", + "Clean": "#3F85AF", + "Click": "#E4E6F3", + "CLIPS": "#00A300", + "Clojure": "#db5855", + "Closure Templates": "#0d948f", + "Cloud Firestore Security Rules": "#FFA000", + "CMake": "#DA3434", + "COBOL": null, + "CodeQL": "#140f46", + "CoffeeScript": "#244776", + "ColdFusion": "#ed2cd6", + "ColdFusion CFC": "#ed2cd6", + "COLLADA": "#F1A42B", + "Common Lisp": "#3fb68b", + "Common Workflow Language": "#B5314C", + "Component Pascal": "#B0CE4E", + "Cool": null, + "Coq": "#d0b68c", + "Crystal": "#000100", + "CSON": "#244776", + "Csound": "#1a1a1a", + "Csound Document": "#1a1a1a", + "Csound Score": "#1a1a1a", + "CSS": "#563d7c", + "CSV": "#237346", + "Cuda": "#3A4E3A", + "CUE": "#5886E1", + "CWeb": "#00007a", + "Cycript": null, + "Cython": "#fedf5b", + "D": "#ba595e", + "Dafny": "#FFEC25", + "Darcs Patch": "#8eff23", + "Dart": "#00B4AB", + "DataWeave": "#003a52", + "Dhall": "#dfafff", + "DIGITAL Command Language": null, + "DirectX 3D File": "#aace60", + "DM": "#447265", + "Dockerfile": "#384d54", + "Dogescript": "#cca760", + "DTrace": null, + "Dylan": "#6c616e", + "E": "#ccce35", + "Easybuild": "#069406", + "eC": "#913960", + "Ecere Projects": "#913960", + "ECL": "#8a1267", + "ECLiPSe": "#001d9d", + "EditorConfig": "#fff1f2", + "Eiffel": "#4d6977", + "EJS": "#a91e50", + "Elixir": "#6e4a7e", + "Elm": "#60B5CC", + "Emacs Lisp": "#c065db", + "EmberScript": "#FFF4F3", + "EQ": "#a78649", + "Erlang": "#B83998", + "F#": "#b845fc", + "F*": "#572e30", + "Factor": "#636746", + "Fancy": "#7b9db4", + "Fantom": "#14253c", + "Faust": "#c37240", + "Fennel": "#fff3d7", + "FIGlet Font": "#FFDDBB", + "Filebench WML": "#F6B900", + "Filterscript": null, + "fish": "#4aae47", + "Fluent": "#ffcc33", + "FLUX": "#88ccff", + "Forth": "#341708", + "Fortran": "#4d41b1", + "Fortran Free Form": "#4d41b1", + "FreeBasic": "#867db1", + "FreeMarker": "#0050b2", + "Frege": "#00cafe", + "Futhark": "#5f021f", + "G-code": "#D08CF2", + "Game Maker Language": "#71b417", + "GAML": "#FFC766", + "GAMS": "#f49a22", + "GAP": "#0000cc", + "GCC Machine Description": "#FFCFAB", + "GDB": null, + "GDScript": "#355570", + "GEDCOM": "#003058", + "Gemfile.lock": "#701516", + "Genie": "#fb855d", + "Genshi": "#951531", + "Gentoo Ebuild": "#9400ff", + "Gentoo Eclass": "#9400ff", + "Gerber Image": "#d20b00", + "Gherkin": "#5B2063", + "Git Attributes": "#F44D27", + "Git Config": "#F44D27", + "GLSL": "#5686a5", + "Glyph": "#c1ac7f", + "Gnuplot": "#f0a9f0", + "Go": "#00ADD8", + "Go Checksums": "#00ADD8", + "Go Module": "#00ADD8", + "Golo": "#88562A", + "Gosu": "#82937f", + "Grace": "#615f8b", + "Gradle": "#02303a", + "Grammatical Framework": "#ff0000", + "GraphQL": "#e10098", + "Graphviz (DOT)": "#2596be", + "Groovy": "#4298b8", + "Groovy Server Pages": "#4298b8", + "Hack": "#878787", + "Haml": "#ece2a9", + "Handlebars": "#f7931e", + "HAProxy": "#106da9", + "Harbour": "#0e60e3", + "Haskell": "#5e5086", + "Haxe": "#df7900", + "HCL": null, + "HiveQL": "#dce200", + "HLSL": "#aace60", + "HolyC": "#ffefaf", + "HTML": "#e34c26", + "HTML+ECR": "#2e1052", + "HTML+EEX": "#6e4a7e", + "HTML+ERB": "#701516", + "HTML+PHP": "#4f5d95", + "HTML+Razor": "#512be4", + "HTTP": "#005C9C", + "HXML": "#f68712", + "Hy": "#7790B2", + "HyPhy": null, + "IDL": "#a3522f", + "Idris": "#b30000", + "Ignore List": "#000000", + "IGOR Pro": "#0000cc", + "ImageJ Macro": "#99AAFF", + "Inform 7": null, + "INI": "#d1dbe0", + "Inno Setup": "#264b99", + "Io": "#a9188d", + "Ioke": "#078193", + "Isabelle": "#FEFE00", + "Isabelle ROOT": "#FEFE00", + "J": "#9EEDFF", + "JAR Manifest": "#b07219", + "Jasmin": "#d03600", + "Java": "#b07219", + "Java Properties": "#2A6277", + "Java Server Pages": "#2A6277", + "JavaScript": "#f1e05a", + "JavaScript+ERB": "#f1e05a", + "Jest Snapshot": "#15c213", + "JFlex": "#DBCA00", + "Jinja": "#a52a22", + "Jison": "#56b3cb", + "Jison Lex": "#56b3cb", + "Jolie": "#843179", + "jq": "#c7254e", + "JSON": "#292929", + "JSON with Comments": "#292929", + "JSON5": "#267CB9", + "JSONiq": "#40d47e", + "JSONLD": "#0c479c", + "Jsonnet": "#0064bd", + "Julia": "#a270ba", + "Jupyter Notebook": "#DA5B0B", + "Kaitai Struct": "#773b37", + "KakouneScript": "#6f8042", + "KiCad Layout": "#2f4aab", + "KiCad Legacy Layout": "#2f4aab", + "KiCad Schematic": "#2f4aab", + "Kotlin": "#A97BFF", + "KRL": "#28430A", + "LabVIEW": "#fede06", + "Lark": "#2980B9", + "Lasso": "#999999", + "Latte": "#f2a542", + "Lean": null, + "Less": "#1d365d", + "Lex": "#DBCA00", + "LFE": "#4C3023", + "LilyPond": "#9ccc7c", + "Limbo": null, + "Liquid": "#67b8de", + "Literate Agda": "#315665", + "Literate CoffeeScript": "#244776", + "Literate Haskell": "#5e5086", + "LiveScript": "#499886", + "LLVM": "#185619", + "Logos": null, + "Logtalk": "#295b9a", + "LOLCODE": "#cc9900", + "LookML": "#652B81", + "LoomScript": null, + "LSL": "#3d9970", + "Lua": "#000080", + "M": null, + "M4": null, + "M4Sugar": null, + "Macaulay2": "#d8ffff", + "Makefile": "#427819", + "Mako": "#7e858d", + "Markdown": "#083fa1", + "Marko": "#42bff2", + "Mask": "#f97732", + "Mathematica": "#dd1100", + "MATLAB": "#e16737", + "Max": "#c4a79c", + "MAXScript": "#00a6a6", + "mcfunction": "#E22837", + "Mercury": "#ff2b2b", + "Meson": "#007800", + "Metal": "#8f14e9", + "MiniD": null, + "Mirah": "#c7a938", + "mIRC Script": "#3d57c3", + "MLIR": "#5EC8DB", + "Modelica": "#de1d31", + "Modula-2": "#10253f", + "Modula-3": "#223388", + "Module Management System": null, + "Monkey": null, + "Moocode": null, + "MoonScript": "#ff4585", + "Motorola 68K Assembly": "#005daa", + "MQL4": "#62A8D6", + "MQL5": "#4A76B8", + "MTML": "#b7e1f4", + "MUF": null, + "mupad": "#244963", + "Mustache": "#724b3b", + "Myghty": null, + "nanorc": "#2d004d", + "NASL": null, + "NCL": "#28431f", + "Nearley": "#990000", + "Nemerle": "#3d3c6e", + "nesC": "#94B0C7", + "NetLinx": "#0aa0ff", + "NetLinx+ERB": "#747faa", + "NetLogo": "#ff6375", + "NewLisp": "#87AED7", + "Nextflow": "#3ac486", + "Nginx": "#009639", + "Nim": "#ffc200", + "Nit": "#009917", + "Nix": "#7e7eff", + "NPM Config": "#cb3837", + "NSIS": null, + "Nu": "#c9df40", + "NumPy": "#9C8AF9", + "Nunjucks": "#3d8137", + "NWScript": "#111522", + "Objective-C": "#438eff", + "Objective-C++": "#6866fb", + "Objective-J": "#ff0c5a", + "ObjectScript": "#424893", + "OCaml": "#3be133", + "Odin": "#60AFFE", + "Omgrofl": "#cabbff", + "ooc": "#b0b77e", + "Opa": null, + "Opal": "#f7ede0", + "Open Policy Agent": "#7d9199", + "OpenCL": "#ed2e2d", + "OpenEdge ABL": "#5ce600", + "OpenQASM": "#AA70FF", + "OpenRC runscript": null, + "OpenSCAD": "#e5cd45", + "Org": "#77aa99", + "Ox": null, + "Oxygene": "#cdd0e3", + "Oz": "#fab738", + "P4": "#7055b5", + "Pan": "#cc0000", + "Papyrus": "#6600cc", + "Parrot": "#f3ca0a", + "Parrot Assembly": null, + "Parrot Internal Representation": null, + "Pascal": "#E3F171", + "Pawn": "#dbb284", + "PEG.js": "#234d6b", + "Pep8": "#C76F5B", + "Perl": "#0298c3", + "PHP": "#4F5D95", + "PicoLisp": "#6067af", + "PigLatin": "#fcd7de", + "Pike": "#005390", + "PLpgSQL": "#336790", + "PLSQL": "#dad8d8", + "PogoScript": "#d80074", + "Pony": null, + "PostCSS": "#dc3a0c", + "PostScript": "#da291c", + "POV-Ray SDL": "#6bac65", + "PowerBuilder": "#8f0f8d", + "PowerShell": "#012456", + "Prisma": "#0c344b", + "Processing": "#0096D8", + "Prolog": "#74283c", + "Propeller Spin": "#7fa2a7", + "Pug": "#a86454", + "Puppet": "#302B6D", + "PureBasic": "#5a6986", + "PureScript": "#1D222D", + "Python": "#3572A5", + "Python console": "#3572A5", + "Python traceback": "#3572A5", + "q": "#0040cd", + "Q#": "#fed659", + "QMake": null, + "QML": "#44a51c", + "Qt Script": "#00b841", + "Quake": "#882233", + "R": "#198CE7", + "Racket": "#3c5caa", + "Ragel": "#9d5200", + "Raku": "#0000fb", + "RAML": "#77d9fb", + "Rascal": "#fffaa0", + "RDoc": "#701516", + "REALbasic": null, + "Reason": "#ff5847", + "Rebol": "#358a5b", + "Record Jar": "#0673ba", + "Red": "#f50000", + "Redcode": null, + "Regular Expression": "#009a00", + "Ren'Py": "#ff7f7f", + "RenderScript": null, + "ReScript": "#ed5051", + "reStructuredText": "#141414", + "REXX": "#d90e09", + "Ring": "#2D54CB", + "Riot": "#A71E49", + "RMarkdown": "#198ce7", + "RobotFramework": "#00c0b5", + "Roff": "#ecdebe", + "Roff Manpage": "#ecdebe", + "Rouge": "#cc0088", + "RPC": null, + "Ruby": "#701516", + "RUNOFF": "#665a4e", + "Rust": "#dea584", + "Sage": null, + "SaltStack": "#646464", + "SAS": "#B34936", + "Sass": "#a53b70", + "Scala": "#c22d40", + "Scaml": "#bd181a", + "Scheme": "#1e4aec", + "Scilab": "#ca0f21", + "SCSS": "#c6538c", + "sed": "#64b970", + "Self": "#0579aa", + "ShaderLab": "#222c37", + "Shell": "#89e051", + "ShellSession": null, + "Shen": "#120F14", + "Sieve": null, + "Singularity": "#64E6AD", + "Slash": "#007eff", + "Slice": "#003fa2", + "Slim": "#2b2b2b", + "Smali": null, + "Smalltalk": "#596706", + "Smarty": "#f0c040", + "SmPL": "#c94949", + "SMT": null, + "Solidity": "#AA6746", + "SourcePawn": "#f69e1d", + "SPARQL": "#0C4597", + "SQF": "#3F3F3F", + "SQL": "#e38c00", + "SQLPL": "#e38c00", + "Squirrel": "#800000", + "SRecode Template": "#348a34", + "Stan": "#b2011d", + "Standard ML": "#dc566d", + "Starlark": "#76d275", + "Stata": "#1a5f91", + "StringTemplate": "#3fb34f", + "Stylus": "#ff6347", + "SubRip Text": "#9e0101", + "SugarSS": "#2fcc9f", + "SuperCollider": "#46390b", + "Svelte": "#ff3e00", + "SVG": "#ff9900", + "Swift": "#F05138", + "SWIG": null, + "SystemVerilog": "#DAE1C2", + "Tcl": "#e4cc98", + "Tcsh": null, + "Terra": "#00004c", + "TeX": "#3D6117", + "Textile": "#ffe7ac", + "TextMate Properties": "#df66e4", + "Thrift": "#D12127", + "TI Program": "#A0AA87", + "TLA": "#4b0079", + "TOML": "#9c4221", + "TSQL": "#e38c00", + "TSV": "#237346", + "TSX": "#2b7489", + "Turing": "#cf142b", + "Twig": "#c1d026", + "TXL": "#0178b8", + "TypeScript": "#2b7489", + "Unified Parallel C": "#4e3617", + "Unity3D Asset": "#222c37", + "Unix Assembly": null, + "Uno": "#9933cc", + "UnrealScript": "#a54c4d", + "UrWeb": "#ccccee", + "V": "#4f87c4", + "Vala": "#fbe5cd", + "Valve Data Format": "#f26025", + "VBA": "#867db1", + "VBScript": "#15dcdc", + "VCL": "#148AA8", + "Verilog": "#b2b7f8", + "VHDL": "#adb2cb", + "Vim Help File": "#199f4b", + "Vim Script": "#199f4b", + "Vim Snippet": "#199f4b", + "Visual Basic .NET": "#945db7", + "Volt": "#1F1F1F", + "Vue": "#41b883", + "wdl": "#42f1f4", + "Web Ontology Language": "#5b70bd", + "WebAssembly": "#04133b", + "WebIDL": null, + "Wikitext": "#fc5757", + "Windows Registry Entries": "#52d5ff", + "wisp": "#7582D1", + "Wollok": "#a23738", + "World of Warcraft Addon Data": "#f7e43f", + "X10": "#4B6BEF", + "xBase": "#403a40", + "XC": "#99DA07", + "XML": "#0060ac", + "XML Property List": "#0060ac", + "Xojo": "#81bd41", + "Xonsh": "#285EEF", + "XProc": null, + "XQuery": "#5232e7", + "XS": null, + "XSLT": "#EB8CEB", + "Xtend": "#24255d", + "Yacc": "#4B6C4B", + "YAML": "#cb171e", + "YARA": "#220000", + "YASnippet": "#32AB90", + "ZAP": "#0d665e", + "Zeek": null, + "ZenScript": "#00BCD1", + "Zephir": "#118f9e", + "Zig": "#ec915c", + "ZIL": "#dc75e5", + "Zimpl": "#d67711" +} diff --git a/data/giteaColors.json b/data/giteaColors.json index 7f272e7a..af6ecf84 100644 --- a/data/giteaColors.json +++ b/data/giteaColors.json @@ -1,533 +1,533 @@ { - "1C Enterprise": "#814CCC", - "4D": "#004289", - "ABAP": "#E8274B", - "ABAP CDS": "#555e25", - "ActionScript": "#882B0F", - "Ada": "#02f88c", - "Adobe Font Metrics": "#fa0f00", - "Agda": "#315665", - "AGS Script": "#B9D9FF", - "AIDL": "#34EB6B", - "AL": "#3AA2B5", - "Alloy": "#64C800", - "Alpine Abuild": "#0D597F", - "Altium Designer": "#A89663", - "AMPL": "#E6EFBB", - "AngelScript": "#C7D7DC", - "Ant Build System": "#A9157E", - "ANTLR": "#9DC3FF", - "ApacheConf": "#d12127", - "Apex": "#1797c0", - "API Blueprint": "#2ACCA8", - "APL": "#5A8164", - "Apollo Guidance Computer": "#0B3D91", - "AppleScript": "#101F1F", - "Arc": "#aa2afe", - "AsciiDoc": "#73a0c5", - "ASL": null, - "ASP.NET": "#9400ff", - "AspectJ": "#a957b0", - "Assembly": "#6E4C13", - "Astro": "#ff5a03", - "Asymptote": "#ff0000", - "ATS": "#1ac620", - "Augeas": "#9CC134", - "AutoHotkey": "#6594b9", - "AutoIt": "#1C3552", - "Avro IDL": "#0040FF", - "Awk": "#c30e9b", - "Ballerina": "#FF5000", - "BASIC": "#ff0000", - "Batchfile": "#C1F12E", - "Beef": "#a52f4e", - "Befunge": null, - "BibTeX": "#778899", - "Bicep": "#519aba", - "Bison": "#6A463F", - "BitBake": "#00bce4", - "Blade": "#f7523f", - "BlitzBasic": "#00FFAE", - "BlitzMax": "#cd6400", - "Bluespec": "#12223c", - "Boo": "#d4bec1", - "Boogie": "#c80fa0", - "Brainfuck": "#2F2530", - "Brightscript": "#662D91", - "Browserslist": "#ffd539", - "C": "#555555", - "C#": "#178600", - "C++": "#f34b7d", - "C2hs Haskell": null, - "Cabal Config": "#483465", - "Cap'n Proto": "#c42727", - "CartoCSS": null, - "Ceylon": "#dfa535", - "Chapel": "#8dc63f", - "Charity": null, - "ChucK": "#3f8000", - "Cirru": "#ccccff", - "Clarion": "#db901e", - "Classic ASP": "#6a40fd", - "Clean": "#3F85AF", - "Click": "#E4E6F3", - "CLIPS": "#00A300", - "Clojure": "#db5855", - "Closure Templates": "#0d948f", - "Cloud Firestore Security Rules": "#FFA000", - "CMake": "#DA3434", - "COBOL": null, - "CodeQL": "#140f46", - "CoffeeScript": "#244776", - "ColdFusion": "#ed2cd6", - "ColdFusion CFC": "#ed2cd6", - "COLLADA": "#F1A42B", - "Common Lisp": "#3fb68b", - "Common Workflow Language": "#B5314C", - "Component Pascal": "#B0CE4E", - "Cool": null, - "Coq": "#d0b68c", - "Crystal": "#000100", - "CSON": "#244776", - "Csound": "#1a1a1a", - "Csound Document": "#1a1a1a", - "Csound Score": "#1a1a1a", - "CSS": "#563d7c", - "CSV": "#237346", - "Cuda": "#3A4E3A", - "CUE": "#5886E1", - "CWeb": "#00007a", - "Cycript": null, - "Cython": "#fedf5b", - "D": "#ba595e", - "Dafny": "#FFEC25", - "Darcs Patch": "#8eff23", - "Dart": "#00B4AB", - "DataWeave": "#003a52", - "Dhall": "#dfafff", - "DIGITAL Command Language": null, - "DirectX 3D File": "#aace60", - "DM": "#447265", - "Dockerfile": "#384d54", - "Dogescript": "#cca760", - "DTrace": null, - "Dylan": "#6c616e", - "E": "#ccce35", - "Easybuild": "#069406", - "eC": "#913960", - "Ecere Projects": "#913960", - "ECL": "#8a1267", - "ECLiPSe": "#001d9d", - "EditorConfig": "#fff1f2", - "Eiffel": "#4d6977", - "EJS": "#a91e50", - "Elixir": "#6e4a7e", - "Elm": "#60B5CC", - "Emacs Lisp": "#c065db", - "EmberScript": "#FFF4F3", - "EQ": "#a78649", - "Erlang": "#B83998", - "F#": "#b845fc", - "F*": "#572e30", - "Factor": "#636746", - "Fancy": "#7b9db4", - "Fantom": "#14253c", - "Faust": "#c37240", - "Fennel": "#fff3d7", - "FIGlet Font": "#FFDDBB", - "Filebench WML": "#F6B900", - "Filterscript": null, - "fish": "#4aae47", - "Fluent": "#ffcc33", - "FLUX": "#88ccff", - "Forth": "#341708", - "Fortran": "#4d41b1", - "Fortran Free Form": "#4d41b1", - "FreeBasic": "#867db1", - "FreeMarker": "#0050b2", - "Frege": "#00cafe", - "Futhark": "#5f021f", - "G-code": "#D08CF2", - "Game Maker Language": "#71b417", - "GAML": "#FFC766", - "GAMS": "#f49a22", - "GAP": "#0000cc", - "GCC Machine Description": "#FFCFAB", - "GDB": null, - "GDScript": "#355570", - "GEDCOM": "#003058", - "Gemfile.lock": "#701516", - "Genie": "#fb855d", - "Genshi": "#951531", - "Gentoo Ebuild": "#9400ff", - "Gentoo Eclass": "#9400ff", - "Gerber Image": "#d20b00", - "Gherkin": "#5B2063", - "Git Attributes": "#F44D27", - "Git Config": "#F44D27", - "GLSL": "#5686a5", - "Glyph": "#c1ac7f", - "Gnuplot": "#f0a9f0", - "Go": "#00ADD8", - "Go Checksums": "#00ADD8", - "Go Module": "#00ADD8", - "Golo": "#88562A", - "Gosu": "#82937f", - "Grace": "#615f8b", - "Gradle": "#02303a", - "Grammatical Framework": "#ff0000", - "GraphQL": "#e10098", - "Graphviz (DOT)": "#2596be", - "Groovy": "#4298b8", - "Groovy Server Pages": "#4298b8", - "Hack": "#878787", - "Haml": "#ece2a9", - "Handlebars": "#f7931e", - "HAProxy": "#106da9", - "Harbour": "#0e60e3", - "Haskell": "#5e5086", - "Haxe": "#df7900", - "HCL": null, - "HiveQL": "#dce200", - "HLSL": "#aace60", - "HolyC": "#ffefaf", - "HTML": "#e34c26", - "HTML+ECR": "#2e1052", - "HTML+EEX": "#6e4a7e", - "HTML+ERB": "#701516", - "HTML+PHP": "#4f5d95", - "HTML+Razor": "#512be4", - "HTTP": "#005C9C", - "HXML": "#f68712", - "Hy": "#7790B2", - "HyPhy": null, - "IDL": "#a3522f", - "Idris": "#b30000", - "Ignore List": "#000000", - "IGOR Pro": "#0000cc", - "ImageJ Macro": "#99AAFF", - "Inform 7": null, - "INI": "#d1dbe0", - "Inno Setup": "#264b99", - "Io": "#a9188d", - "Ioke": "#078193", - "Isabelle": "#FEFE00", - "Isabelle ROOT": "#FEFE00", - "J": "#9EEDFF", - "JAR Manifest": "#b07219", - "Jasmin": "#d03600", - "Java": "#b07219", - "Java Properties": "#2A6277", - "Java Server Pages": "#2A6277", - "JavaScript": "#f1e05a", - "JavaScript+ERB": "#f1e05a", - "Jest Snapshot": "#15c213", - "JFlex": "#DBCA00", - "Jinja": "#a52a22", - "Jison": "#56b3cb", - "Jison Lex": "#56b3cb", - "Jolie": "#843179", - "jq": "#c7254e", - "JSON": "#292929", - "JSON with Comments": "#292929", - "JSON5": "#267CB9", - "JSONiq": "#40d47e", - "JSONLD": "#0c479c", - "Jsonnet": "#0064bd", - "Julia": "#a270ba", - "Jupyter Notebook": "#DA5B0B", - "Kaitai Struct": "#773b37", - "KakouneScript": "#6f8042", - "KiCad Layout": "#2f4aab", - "KiCad Legacy Layout": "#2f4aab", - "KiCad Schematic": "#2f4aab", - "Kotlin": "#A97BFF", - "KRL": "#28430A", - "LabVIEW": "#fede06", - "Lark": "#2980B9", - "Lasso": "#999999", - "Latte": "#f2a542", - "Lean": null, - "Less": "#1d365d", - "Lex": "#DBCA00", - "LFE": "#4C3023", - "LilyPond": "#9ccc7c", - "Limbo": null, - "Liquid": "#67b8de", - "Literate Agda": "#315665", - "Literate CoffeeScript": "#244776", - "Literate Haskell": "#5e5086", - "LiveScript": "#499886", - "LLVM": "#185619", - "Logos": null, - "Logtalk": "#295b9a", - "LOLCODE": "#cc9900", - "LookML": "#652B81", - "LoomScript": null, - "LSL": "#3d9970", - "Lua": "#000080", - "M": null, - "M4": null, - "M4Sugar": null, - "Macaulay2": "#d8ffff", - "Makefile": "#427819", - "Mako": "#7e858d", - "Markdown": "#083fa1", - "Marko": "#42bff2", - "Mask": "#f97732", - "Mathematica": "#dd1100", - "MATLAB": "#e16737", - "Max": "#c4a79c", - "MAXScript": "#00a6a6", - "mcfunction": "#E22837", - "Mercury": "#ff2b2b", - "Meson": "#007800", - "Metal": "#8f14e9", - "MiniD": null, - "Mirah": "#c7a938", - "mIRC Script": "#3d57c3", - "MLIR": "#5EC8DB", - "Modelica": "#de1d31", - "Modula-2": "#10253f", - "Modula-3": "#223388", - "Module Management System": null, - "Monkey": null, - "Moocode": null, - "MoonScript": "#ff4585", - "Motorola 68K Assembly": "#005daa", - "MQL4": "#62A8D6", - "MQL5": "#4A76B8", - "MTML": "#b7e1f4", - "MUF": null, - "mupad": "#244963", - "Mustache": "#724b3b", - "Myghty": null, - "nanorc": "#2d004d", - "NASL": null, - "NCL": "#28431f", - "Nearley": "#990000", - "Nemerle": "#3d3c6e", - "nesC": "#94B0C7", - "NetLinx": "#0aa0ff", - "NetLinx+ERB": "#747faa", - "NetLogo": "#ff6375", - "NewLisp": "#87AED7", - "Nextflow": "#3ac486", - "Nginx": "#009639", - "Nim": "#ffc200", - "Nit": "#009917", - "Nix": "#7e7eff", - "NPM Config": "#cb3837", - "NSIS": null, - "Nu": "#c9df40", - "NumPy": "#9C8AF9", - "Nunjucks": "#3d8137", - "NWScript": "#111522", - "Objective-C": "#438eff", - "Objective-C++": "#6866fb", - "Objective-J": "#ff0c5a", - "ObjectScript": "#424893", - "OCaml": "#3be133", - "Odin": "#60AFFE", - "Omgrofl": "#cabbff", - "ooc": "#b0b77e", - "Opa": null, - "Opal": "#f7ede0", - "Open Policy Agent": "#7d9199", - "OpenCL": "#ed2e2d", - "OpenEdge ABL": "#5ce600", - "OpenQASM": "#AA70FF", - "OpenRC runscript": null, - "OpenSCAD": "#e5cd45", - "Org": "#77aa99", - "Ox": null, - "Oxygene": "#cdd0e3", - "Oz": "#fab738", - "P4": "#7055b5", - "Pan": "#cc0000", - "Papyrus": "#6600cc", - "Parrot": "#f3ca0a", - "Parrot Assembly": null, - "Parrot Internal Representation": null, - "Pascal": "#E3F171", - "Pawn": "#dbb284", - "PEG.js": "#234d6b", - "Pep8": "#C76F5B", - "Perl": "#0298c3", - "PHP": "#4F5D95", - "PicoLisp": "#6067af", - "PigLatin": "#fcd7de", - "Pike": "#005390", - "PLpgSQL": "#336790", - "PLSQL": "#dad8d8", - "PogoScript": "#d80074", - "Pony": null, - "PostCSS": "#dc3a0c", - "PostScript": "#da291c", - "POV-Ray SDL": "#6bac65", - "PowerBuilder": "#8f0f8d", - "PowerShell": "#012456", - "Prisma": "#0c344b", - "Processing": "#0096D8", - "Prolog": "#74283c", - "Propeller Spin": "#7fa2a7", - "Pug": "#a86454", - "Puppet": "#302B6D", - "PureBasic": "#5a6986", - "PureScript": "#1D222D", - "Python": "#3572A5", - "Python console": "#3572A5", - "Python traceback": "#3572A5", - "q": "#0040cd", - "Q#": "#fed659", - "QMake": null, - "QML": "#44a51c", - "Qt Script": "#00b841", - "Quake": "#882233", - "R": "#198CE7", - "Racket": "#3c5caa", - "Ragel": "#9d5200", - "Raku": "#0000fb", - "RAML": "#77d9fb", - "Rascal": "#fffaa0", - "RDoc": "#701516", - "REALbasic": null, - "Reason": "#ff5847", - "Rebol": "#358a5b", - "Record Jar": "#0673ba", - "Red": "#f50000", - "Redcode": null, - "Regular Expression": "#009a00", - "Ren'Py": "#ff7f7f", - "RenderScript": null, - "ReScript": "#ed5051", - "reStructuredText": "#141414", - "REXX": "#d90e09", - "Ring": "#2D54CB", - "Riot": "#A71E49", - "RMarkdown": "#198ce7", - "RobotFramework": "#00c0b5", - "Roff": "#ecdebe", - "Roff Manpage": "#ecdebe", - "Rouge": "#cc0088", - "RPC": null, - "Ruby": "#701516", - "RUNOFF": "#665a4e", - "Rust": "#dea584", - "Sage": null, - "SaltStack": "#646464", - "SAS": "#B34936", - "Sass": "#a53b70", - "Scala": "#c22d40", - "Scaml": "#bd181a", - "Scheme": "#1e4aec", - "Scilab": "#ca0f21", - "SCSS": "#c6538c", - "sed": "#64b970", - "Self": "#0579aa", - "ShaderLab": "#222c37", - "Shell": "#89e051", - "ShellSession": null, - "Shen": "#120F14", - "Sieve": null, - "Singularity": "#64E6AD", - "Slash": "#007eff", - "Slice": "#003fa2", - "Slim": "#2b2b2b", - "Smali": null, - "Smalltalk": "#596706", - "Smarty": "#f0c040", - "SmPL": "#c94949", - "SMT": null, - "Solidity": "#AA6746", - "SourcePawn": "#f69e1d", - "SPARQL": "#0C4597", - "SQF": "#3F3F3F", - "SQL": "#e38c00", - "SQLPL": "#e38c00", - "Squirrel": "#800000", - "SRecode Template": "#348a34", - "Stan": "#b2011d", - "Standard ML": "#dc566d", - "Starlark": "#76d275", - "Stata": "#1a5f91", - "StringTemplate": "#3fb34f", - "Stylus": "#ff6347", - "SubRip Text": "#9e0101", - "SugarSS": "#2fcc9f", - "SuperCollider": "#46390b", - "Svelte": "#ff3e00", - "SVG": "#ff9900", - "Swift": "#F05138", - "SWIG": null, - "SystemVerilog": "#DAE1C2", - "Tcl": "#e4cc98", - "Tcsh": null, - "Terra": "#00004c", - "TeX": "#3D6117", - "Textile": "#ffe7ac", - "TextMate Properties": "#df66e4", - "Thrift": "#D12127", - "TI Program": "#A0AA87", - "TLA": "#4b0079", - "TOML": "#9c4221", - "TSQL": "#e38c00", - "TSV": "#237346", - "TSX": "#2b7489", - "Turing": "#cf142b", - "Twig": "#c1d026", - "TXL": "#0178b8", - "TypeScript": "#2b7489", - "Unified Parallel C": "#4e3617", - "Unity3D Asset": "#222c37", - "Unix Assembly": null, - "Uno": "#9933cc", - "UnrealScript": "#a54c4d", - "UrWeb": "#ccccee", - "V": "#4f87c4", - "Vala": "#fbe5cd", - "Valve Data Format": "#f26025", - "VBA": "#867db1", - "VBScript": "#15dcdc", - "VCL": "#148AA8", - "Verilog": "#b2b7f8", - "VHDL": "#adb2cb", - "Vim Help File": "#199f4b", - "Vim Script": "#199f4b", - "Vim Snippet": "#199f4b", - "Visual Basic .NET": "#945db7", - "Volt": "#1F1F1F", - "Vue": "#41b883", - "wdl": "#42f1f4", - "Web Ontology Language": "#5b70bd", - "WebAssembly": "#04133b", - "WebIDL": null, - "Wikitext": "#fc5757", - "Windows Registry Entries": "#52d5ff", - "wisp": "#7582D1", - "Wollok": "#a23738", - "World of Warcraft Addon Data": "#f7e43f", - "X10": "#4B6BEF", - "xBase": "#403a40", - "XC": "#99DA07", - "XML": "#0060ac", - "XML Property List": "#0060ac", - "Xojo": "#81bd41", - "Xonsh": "#285EEF", - "XProc": null, - "XQuery": "#5232e7", - "XS": null, - "XSLT": "#EB8CEB", - "Xtend": "#24255d", - "Yacc": "#4B6C4B", - "YAML": "#cb171e", - "YARA": "#220000", - "YASnippet": "#32AB90", - "ZAP": "#0d665e", - "Zeek": null, - "ZenScript": "#00BCD1", - "Zephir": "#118f9e", - "Zig": "#ec915c", - "ZIL": "#dc75e5", - "Zimpl": "#d67711" -} \ No newline at end of file + "1C Enterprise": "#814CCC", + "4D": "#004289", + "ABAP": "#E8274B", + "ABAP CDS": "#555e25", + "ActionScript": "#882B0F", + "Ada": "#02f88c", + "Adobe Font Metrics": "#fa0f00", + "Agda": "#315665", + "AGS Script": "#B9D9FF", + "AIDL": "#34EB6B", + "AL": "#3AA2B5", + "Alloy": "#64C800", + "Alpine Abuild": "#0D597F", + "Altium Designer": "#A89663", + "AMPL": "#E6EFBB", + "AngelScript": "#C7D7DC", + "Ant Build System": "#A9157E", + "ANTLR": "#9DC3FF", + "ApacheConf": "#d12127", + "Apex": "#1797c0", + "API Blueprint": "#2ACCA8", + "APL": "#5A8164", + "Apollo Guidance Computer": "#0B3D91", + "AppleScript": "#101F1F", + "Arc": "#aa2afe", + "AsciiDoc": "#73a0c5", + "ASL": null, + "ASP.NET": "#9400ff", + "AspectJ": "#a957b0", + "Assembly": "#6E4C13", + "Astro": "#ff5a03", + "Asymptote": "#ff0000", + "ATS": "#1ac620", + "Augeas": "#9CC134", + "AutoHotkey": "#6594b9", + "AutoIt": "#1C3552", + "Avro IDL": "#0040FF", + "Awk": "#c30e9b", + "Ballerina": "#FF5000", + "BASIC": "#ff0000", + "Batchfile": "#C1F12E", + "Beef": "#a52f4e", + "Befunge": null, + "BibTeX": "#778899", + "Bicep": "#519aba", + "Bison": "#6A463F", + "BitBake": "#00bce4", + "Blade": "#f7523f", + "BlitzBasic": "#00FFAE", + "BlitzMax": "#cd6400", + "Bluespec": "#12223c", + "Boo": "#d4bec1", + "Boogie": "#c80fa0", + "Brainfuck": "#2F2530", + "Brightscript": "#662D91", + "Browserslist": "#ffd539", + "C": "#555555", + "C#": "#178600", + "C++": "#f34b7d", + "C2hs Haskell": null, + "Cabal Config": "#483465", + "Cap'n Proto": "#c42727", + "CartoCSS": null, + "Ceylon": "#dfa535", + "Chapel": "#8dc63f", + "Charity": null, + "ChucK": "#3f8000", + "Cirru": "#ccccff", + "Clarion": "#db901e", + "Classic ASP": "#6a40fd", + "Clean": "#3F85AF", + "Click": "#E4E6F3", + "CLIPS": "#00A300", + "Clojure": "#db5855", + "Closure Templates": "#0d948f", + "Cloud Firestore Security Rules": "#FFA000", + "CMake": "#DA3434", + "COBOL": null, + "CodeQL": "#140f46", + "CoffeeScript": "#244776", + "ColdFusion": "#ed2cd6", + "ColdFusion CFC": "#ed2cd6", + "COLLADA": "#F1A42B", + "Common Lisp": "#3fb68b", + "Common Workflow Language": "#B5314C", + "Component Pascal": "#B0CE4E", + "Cool": null, + "Coq": "#d0b68c", + "Crystal": "#000100", + "CSON": "#244776", + "Csound": "#1a1a1a", + "Csound Document": "#1a1a1a", + "Csound Score": "#1a1a1a", + "CSS": "#563d7c", + "CSV": "#237346", + "Cuda": "#3A4E3A", + "CUE": "#5886E1", + "CWeb": "#00007a", + "Cycript": null, + "Cython": "#fedf5b", + "D": "#ba595e", + "Dafny": "#FFEC25", + "Darcs Patch": "#8eff23", + "Dart": "#00B4AB", + "DataWeave": "#003a52", + "Dhall": "#dfafff", + "DIGITAL Command Language": null, + "DirectX 3D File": "#aace60", + "DM": "#447265", + "Dockerfile": "#384d54", + "Dogescript": "#cca760", + "DTrace": null, + "Dylan": "#6c616e", + "E": "#ccce35", + "Easybuild": "#069406", + "eC": "#913960", + "Ecere Projects": "#913960", + "ECL": "#8a1267", + "ECLiPSe": "#001d9d", + "EditorConfig": "#fff1f2", + "Eiffel": "#4d6977", + "EJS": "#a91e50", + "Elixir": "#6e4a7e", + "Elm": "#60B5CC", + "Emacs Lisp": "#c065db", + "EmberScript": "#FFF4F3", + "EQ": "#a78649", + "Erlang": "#B83998", + "F#": "#b845fc", + "F*": "#572e30", + "Factor": "#636746", + "Fancy": "#7b9db4", + "Fantom": "#14253c", + "Faust": "#c37240", + "Fennel": "#fff3d7", + "FIGlet Font": "#FFDDBB", + "Filebench WML": "#F6B900", + "Filterscript": null, + "fish": "#4aae47", + "Fluent": "#ffcc33", + "FLUX": "#88ccff", + "Forth": "#341708", + "Fortran": "#4d41b1", + "Fortran Free Form": "#4d41b1", + "FreeBasic": "#867db1", + "FreeMarker": "#0050b2", + "Frege": "#00cafe", + "Futhark": "#5f021f", + "G-code": "#D08CF2", + "Game Maker Language": "#71b417", + "GAML": "#FFC766", + "GAMS": "#f49a22", + "GAP": "#0000cc", + "GCC Machine Description": "#FFCFAB", + "GDB": null, + "GDScript": "#355570", + "GEDCOM": "#003058", + "Gemfile.lock": "#701516", + "Genie": "#fb855d", + "Genshi": "#951531", + "Gentoo Ebuild": "#9400ff", + "Gentoo Eclass": "#9400ff", + "Gerber Image": "#d20b00", + "Gherkin": "#5B2063", + "Git Attributes": "#F44D27", + "Git Config": "#F44D27", + "GLSL": "#5686a5", + "Glyph": "#c1ac7f", + "Gnuplot": "#f0a9f0", + "Go": "#00ADD8", + "Go Checksums": "#00ADD8", + "Go Module": "#00ADD8", + "Golo": "#88562A", + "Gosu": "#82937f", + "Grace": "#615f8b", + "Gradle": "#02303a", + "Grammatical Framework": "#ff0000", + "GraphQL": "#e10098", + "Graphviz (DOT)": "#2596be", + "Groovy": "#4298b8", + "Groovy Server Pages": "#4298b8", + "Hack": "#878787", + "Haml": "#ece2a9", + "Handlebars": "#f7931e", + "HAProxy": "#106da9", + "Harbour": "#0e60e3", + "Haskell": "#5e5086", + "Haxe": "#df7900", + "HCL": null, + "HiveQL": "#dce200", + "HLSL": "#aace60", + "HolyC": "#ffefaf", + "HTML": "#e34c26", + "HTML+ECR": "#2e1052", + "HTML+EEX": "#6e4a7e", + "HTML+ERB": "#701516", + "HTML+PHP": "#4f5d95", + "HTML+Razor": "#512be4", + "HTTP": "#005C9C", + "HXML": "#f68712", + "Hy": "#7790B2", + "HyPhy": null, + "IDL": "#a3522f", + "Idris": "#b30000", + "Ignore List": "#000000", + "IGOR Pro": "#0000cc", + "ImageJ Macro": "#99AAFF", + "Inform 7": null, + "INI": "#d1dbe0", + "Inno Setup": "#264b99", + "Io": "#a9188d", + "Ioke": "#078193", + "Isabelle": "#FEFE00", + "Isabelle ROOT": "#FEFE00", + "J": "#9EEDFF", + "JAR Manifest": "#b07219", + "Jasmin": "#d03600", + "Java": "#b07219", + "Java Properties": "#2A6277", + "Java Server Pages": "#2A6277", + "JavaScript": "#f1e05a", + "JavaScript+ERB": "#f1e05a", + "Jest Snapshot": "#15c213", + "JFlex": "#DBCA00", + "Jinja": "#a52a22", + "Jison": "#56b3cb", + "Jison Lex": "#56b3cb", + "Jolie": "#843179", + "jq": "#c7254e", + "JSON": "#292929", + "JSON with Comments": "#292929", + "JSON5": "#267CB9", + "JSONiq": "#40d47e", + "JSONLD": "#0c479c", + "Jsonnet": "#0064bd", + "Julia": "#a270ba", + "Jupyter Notebook": "#DA5B0B", + "Kaitai Struct": "#773b37", + "KakouneScript": "#6f8042", + "KiCad Layout": "#2f4aab", + "KiCad Legacy Layout": "#2f4aab", + "KiCad Schematic": "#2f4aab", + "Kotlin": "#A97BFF", + "KRL": "#28430A", + "LabVIEW": "#fede06", + "Lark": "#2980B9", + "Lasso": "#999999", + "Latte": "#f2a542", + "Lean": null, + "Less": "#1d365d", + "Lex": "#DBCA00", + "LFE": "#4C3023", + "LilyPond": "#9ccc7c", + "Limbo": null, + "Liquid": "#67b8de", + "Literate Agda": "#315665", + "Literate CoffeeScript": "#244776", + "Literate Haskell": "#5e5086", + "LiveScript": "#499886", + "LLVM": "#185619", + "Logos": null, + "Logtalk": "#295b9a", + "LOLCODE": "#cc9900", + "LookML": "#652B81", + "LoomScript": null, + "LSL": "#3d9970", + "Lua": "#000080", + "M": null, + "M4": null, + "M4Sugar": null, + "Macaulay2": "#d8ffff", + "Makefile": "#427819", + "Mako": "#7e858d", + "Markdown": "#083fa1", + "Marko": "#42bff2", + "Mask": "#f97732", + "Mathematica": "#dd1100", + "MATLAB": "#e16737", + "Max": "#c4a79c", + "MAXScript": "#00a6a6", + "mcfunction": "#E22837", + "Mercury": "#ff2b2b", + "Meson": "#007800", + "Metal": "#8f14e9", + "MiniD": null, + "Mirah": "#c7a938", + "mIRC Script": "#3d57c3", + "MLIR": "#5EC8DB", + "Modelica": "#de1d31", + "Modula-2": "#10253f", + "Modula-3": "#223388", + "Module Management System": null, + "Monkey": null, + "Moocode": null, + "MoonScript": "#ff4585", + "Motorola 68K Assembly": "#005daa", + "MQL4": "#62A8D6", + "MQL5": "#4A76B8", + "MTML": "#b7e1f4", + "MUF": null, + "mupad": "#244963", + "Mustache": "#724b3b", + "Myghty": null, + "nanorc": "#2d004d", + "NASL": null, + "NCL": "#28431f", + "Nearley": "#990000", + "Nemerle": "#3d3c6e", + "nesC": "#94B0C7", + "NetLinx": "#0aa0ff", + "NetLinx+ERB": "#747faa", + "NetLogo": "#ff6375", + "NewLisp": "#87AED7", + "Nextflow": "#3ac486", + "Nginx": "#009639", + "Nim": "#ffc200", + "Nit": "#009917", + "Nix": "#7e7eff", + "NPM Config": "#cb3837", + "NSIS": null, + "Nu": "#c9df40", + "NumPy": "#9C8AF9", + "Nunjucks": "#3d8137", + "NWScript": "#111522", + "Objective-C": "#438eff", + "Objective-C++": "#6866fb", + "Objective-J": "#ff0c5a", + "ObjectScript": "#424893", + "OCaml": "#3be133", + "Odin": "#60AFFE", + "Omgrofl": "#cabbff", + "ooc": "#b0b77e", + "Opa": null, + "Opal": "#f7ede0", + "Open Policy Agent": "#7d9199", + "OpenCL": "#ed2e2d", + "OpenEdge ABL": "#5ce600", + "OpenQASM": "#AA70FF", + "OpenRC runscript": null, + "OpenSCAD": "#e5cd45", + "Org": "#77aa99", + "Ox": null, + "Oxygene": "#cdd0e3", + "Oz": "#fab738", + "P4": "#7055b5", + "Pan": "#cc0000", + "Papyrus": "#6600cc", + "Parrot": "#f3ca0a", + "Parrot Assembly": null, + "Parrot Internal Representation": null, + "Pascal": "#E3F171", + "Pawn": "#dbb284", + "PEG.js": "#234d6b", + "Pep8": "#C76F5B", + "Perl": "#0298c3", + "PHP": "#4F5D95", + "PicoLisp": "#6067af", + "PigLatin": "#fcd7de", + "Pike": "#005390", + "PLpgSQL": "#336790", + "PLSQL": "#dad8d8", + "PogoScript": "#d80074", + "Pony": null, + "PostCSS": "#dc3a0c", + "PostScript": "#da291c", + "POV-Ray SDL": "#6bac65", + "PowerBuilder": "#8f0f8d", + "PowerShell": "#012456", + "Prisma": "#0c344b", + "Processing": "#0096D8", + "Prolog": "#74283c", + "Propeller Spin": "#7fa2a7", + "Pug": "#a86454", + "Puppet": "#302B6D", + "PureBasic": "#5a6986", + "PureScript": "#1D222D", + "Python": "#3572A5", + "Python console": "#3572A5", + "Python traceback": "#3572A5", + "q": "#0040cd", + "Q#": "#fed659", + "QMake": null, + "QML": "#44a51c", + "Qt Script": "#00b841", + "Quake": "#882233", + "R": "#198CE7", + "Racket": "#3c5caa", + "Ragel": "#9d5200", + "Raku": "#0000fb", + "RAML": "#77d9fb", + "Rascal": "#fffaa0", + "RDoc": "#701516", + "REALbasic": null, + "Reason": "#ff5847", + "Rebol": "#358a5b", + "Record Jar": "#0673ba", + "Red": "#f50000", + "Redcode": null, + "Regular Expression": "#009a00", + "Ren'Py": "#ff7f7f", + "RenderScript": null, + "ReScript": "#ed5051", + "reStructuredText": "#141414", + "REXX": "#d90e09", + "Ring": "#2D54CB", + "Riot": "#A71E49", + "RMarkdown": "#198ce7", + "RobotFramework": "#00c0b5", + "Roff": "#ecdebe", + "Roff Manpage": "#ecdebe", + "Rouge": "#cc0088", + "RPC": null, + "Ruby": "#701516", + "RUNOFF": "#665a4e", + "Rust": "#dea584", + "Sage": null, + "SaltStack": "#646464", + "SAS": "#B34936", + "Sass": "#a53b70", + "Scala": "#c22d40", + "Scaml": "#bd181a", + "Scheme": "#1e4aec", + "Scilab": "#ca0f21", + "SCSS": "#c6538c", + "sed": "#64b970", + "Self": "#0579aa", + "ShaderLab": "#222c37", + "Shell": "#89e051", + "ShellSession": null, + "Shen": "#120F14", + "Sieve": null, + "Singularity": "#64E6AD", + "Slash": "#007eff", + "Slice": "#003fa2", + "Slim": "#2b2b2b", + "Smali": null, + "Smalltalk": "#596706", + "Smarty": "#f0c040", + "SmPL": "#c94949", + "SMT": null, + "Solidity": "#AA6746", + "SourcePawn": "#f69e1d", + "SPARQL": "#0C4597", + "SQF": "#3F3F3F", + "SQL": "#e38c00", + "SQLPL": "#e38c00", + "Squirrel": "#800000", + "SRecode Template": "#348a34", + "Stan": "#b2011d", + "Standard ML": "#dc566d", + "Starlark": "#76d275", + "Stata": "#1a5f91", + "StringTemplate": "#3fb34f", + "Stylus": "#ff6347", + "SubRip Text": "#9e0101", + "SugarSS": "#2fcc9f", + "SuperCollider": "#46390b", + "Svelte": "#ff3e00", + "SVG": "#ff9900", + "Swift": "#F05138", + "SWIG": null, + "SystemVerilog": "#DAE1C2", + "Tcl": "#e4cc98", + "Tcsh": null, + "Terra": "#00004c", + "TeX": "#3D6117", + "Textile": "#ffe7ac", + "TextMate Properties": "#df66e4", + "Thrift": "#D12127", + "TI Program": "#A0AA87", + "TLA": "#4b0079", + "TOML": "#9c4221", + "TSQL": "#e38c00", + "TSV": "#237346", + "TSX": "#2b7489", + "Turing": "#cf142b", + "Twig": "#c1d026", + "TXL": "#0178b8", + "TypeScript": "#2b7489", + "Unified Parallel C": "#4e3617", + "Unity3D Asset": "#222c37", + "Unix Assembly": null, + "Uno": "#9933cc", + "UnrealScript": "#a54c4d", + "UrWeb": "#ccccee", + "V": "#4f87c4", + "Vala": "#fbe5cd", + "Valve Data Format": "#f26025", + "VBA": "#867db1", + "VBScript": "#15dcdc", + "VCL": "#148AA8", + "Verilog": "#b2b7f8", + "VHDL": "#adb2cb", + "Vim Help File": "#199f4b", + "Vim Script": "#199f4b", + "Vim Snippet": "#199f4b", + "Visual Basic .NET": "#945db7", + "Volt": "#1F1F1F", + "Vue": "#41b883", + "wdl": "#42f1f4", + "Web Ontology Language": "#5b70bd", + "WebAssembly": "#04133b", + "WebIDL": null, + "Wikitext": "#fc5757", + "Windows Registry Entries": "#52d5ff", + "wisp": "#7582D1", + "Wollok": "#a23738", + "World of Warcraft Addon Data": "#f7e43f", + "X10": "#4B6BEF", + "xBase": "#403a40", + "XC": "#99DA07", + "XML": "#0060ac", + "XML Property List": "#0060ac", + "Xojo": "#81bd41", + "Xonsh": "#285EEF", + "XProc": null, + "XQuery": "#5232e7", + "XS": null, + "XSLT": "#EB8CEB", + "Xtend": "#24255d", + "Yacc": "#4B6C4B", + "YAML": "#cb171e", + "YARA": "#220000", + "YASnippet": "#32AB90", + "ZAP": "#0d665e", + "Zeek": null, + "ZenScript": "#00BCD1", + "Zephir": "#118f9e", + "Zig": "#ec915c", + "ZIL": "#dc75e5", + "Zimpl": "#d67711" +} diff --git a/data/githubColors.json b/data/githubColors.json index 7f272e7a..af6ecf84 100644 --- a/data/githubColors.json +++ b/data/githubColors.json @@ -1,533 +1,533 @@ { - "1C Enterprise": "#814CCC", - "4D": "#004289", - "ABAP": "#E8274B", - "ABAP CDS": "#555e25", - "ActionScript": "#882B0F", - "Ada": "#02f88c", - "Adobe Font Metrics": "#fa0f00", - "Agda": "#315665", - "AGS Script": "#B9D9FF", - "AIDL": "#34EB6B", - "AL": "#3AA2B5", - "Alloy": "#64C800", - "Alpine Abuild": "#0D597F", - "Altium Designer": "#A89663", - "AMPL": "#E6EFBB", - "AngelScript": "#C7D7DC", - "Ant Build System": "#A9157E", - "ANTLR": "#9DC3FF", - "ApacheConf": "#d12127", - "Apex": "#1797c0", - "API Blueprint": "#2ACCA8", - "APL": "#5A8164", - "Apollo Guidance Computer": "#0B3D91", - "AppleScript": "#101F1F", - "Arc": "#aa2afe", - "AsciiDoc": "#73a0c5", - "ASL": null, - "ASP.NET": "#9400ff", - "AspectJ": "#a957b0", - "Assembly": "#6E4C13", - "Astro": "#ff5a03", - "Asymptote": "#ff0000", - "ATS": "#1ac620", - "Augeas": "#9CC134", - "AutoHotkey": "#6594b9", - "AutoIt": "#1C3552", - "Avro IDL": "#0040FF", - "Awk": "#c30e9b", - "Ballerina": "#FF5000", - "BASIC": "#ff0000", - "Batchfile": "#C1F12E", - "Beef": "#a52f4e", - "Befunge": null, - "BibTeX": "#778899", - "Bicep": "#519aba", - "Bison": "#6A463F", - "BitBake": "#00bce4", - "Blade": "#f7523f", - "BlitzBasic": "#00FFAE", - "BlitzMax": "#cd6400", - "Bluespec": "#12223c", - "Boo": "#d4bec1", - "Boogie": "#c80fa0", - "Brainfuck": "#2F2530", - "Brightscript": "#662D91", - "Browserslist": "#ffd539", - "C": "#555555", - "C#": "#178600", - "C++": "#f34b7d", - "C2hs Haskell": null, - "Cabal Config": "#483465", - "Cap'n Proto": "#c42727", - "CartoCSS": null, - "Ceylon": "#dfa535", - "Chapel": "#8dc63f", - "Charity": null, - "ChucK": "#3f8000", - "Cirru": "#ccccff", - "Clarion": "#db901e", - "Classic ASP": "#6a40fd", - "Clean": "#3F85AF", - "Click": "#E4E6F3", - "CLIPS": "#00A300", - "Clojure": "#db5855", - "Closure Templates": "#0d948f", - "Cloud Firestore Security Rules": "#FFA000", - "CMake": "#DA3434", - "COBOL": null, - "CodeQL": "#140f46", - "CoffeeScript": "#244776", - "ColdFusion": "#ed2cd6", - "ColdFusion CFC": "#ed2cd6", - "COLLADA": "#F1A42B", - "Common Lisp": "#3fb68b", - "Common Workflow Language": "#B5314C", - "Component Pascal": "#B0CE4E", - "Cool": null, - "Coq": "#d0b68c", - "Crystal": "#000100", - "CSON": "#244776", - "Csound": "#1a1a1a", - "Csound Document": "#1a1a1a", - "Csound Score": "#1a1a1a", - "CSS": "#563d7c", - "CSV": "#237346", - "Cuda": "#3A4E3A", - "CUE": "#5886E1", - "CWeb": "#00007a", - "Cycript": null, - "Cython": "#fedf5b", - "D": "#ba595e", - "Dafny": "#FFEC25", - "Darcs Patch": "#8eff23", - "Dart": "#00B4AB", - "DataWeave": "#003a52", - "Dhall": "#dfafff", - "DIGITAL Command Language": null, - "DirectX 3D File": "#aace60", - "DM": "#447265", - "Dockerfile": "#384d54", - "Dogescript": "#cca760", - "DTrace": null, - "Dylan": "#6c616e", - "E": "#ccce35", - "Easybuild": "#069406", - "eC": "#913960", - "Ecere Projects": "#913960", - "ECL": "#8a1267", - "ECLiPSe": "#001d9d", - "EditorConfig": "#fff1f2", - "Eiffel": "#4d6977", - "EJS": "#a91e50", - "Elixir": "#6e4a7e", - "Elm": "#60B5CC", - "Emacs Lisp": "#c065db", - "EmberScript": "#FFF4F3", - "EQ": "#a78649", - "Erlang": "#B83998", - "F#": "#b845fc", - "F*": "#572e30", - "Factor": "#636746", - "Fancy": "#7b9db4", - "Fantom": "#14253c", - "Faust": "#c37240", - "Fennel": "#fff3d7", - "FIGlet Font": "#FFDDBB", - "Filebench WML": "#F6B900", - "Filterscript": null, - "fish": "#4aae47", - "Fluent": "#ffcc33", - "FLUX": "#88ccff", - "Forth": "#341708", - "Fortran": "#4d41b1", - "Fortran Free Form": "#4d41b1", - "FreeBasic": "#867db1", - "FreeMarker": "#0050b2", - "Frege": "#00cafe", - "Futhark": "#5f021f", - "G-code": "#D08CF2", - "Game Maker Language": "#71b417", - "GAML": "#FFC766", - "GAMS": "#f49a22", - "GAP": "#0000cc", - "GCC Machine Description": "#FFCFAB", - "GDB": null, - "GDScript": "#355570", - "GEDCOM": "#003058", - "Gemfile.lock": "#701516", - "Genie": "#fb855d", - "Genshi": "#951531", - "Gentoo Ebuild": "#9400ff", - "Gentoo Eclass": "#9400ff", - "Gerber Image": "#d20b00", - "Gherkin": "#5B2063", - "Git Attributes": "#F44D27", - "Git Config": "#F44D27", - "GLSL": "#5686a5", - "Glyph": "#c1ac7f", - "Gnuplot": "#f0a9f0", - "Go": "#00ADD8", - "Go Checksums": "#00ADD8", - "Go Module": "#00ADD8", - "Golo": "#88562A", - "Gosu": "#82937f", - "Grace": "#615f8b", - "Gradle": "#02303a", - "Grammatical Framework": "#ff0000", - "GraphQL": "#e10098", - "Graphviz (DOT)": "#2596be", - "Groovy": "#4298b8", - "Groovy Server Pages": "#4298b8", - "Hack": "#878787", - "Haml": "#ece2a9", - "Handlebars": "#f7931e", - "HAProxy": "#106da9", - "Harbour": "#0e60e3", - "Haskell": "#5e5086", - "Haxe": "#df7900", - "HCL": null, - "HiveQL": "#dce200", - "HLSL": "#aace60", - "HolyC": "#ffefaf", - "HTML": "#e34c26", - "HTML+ECR": "#2e1052", - "HTML+EEX": "#6e4a7e", - "HTML+ERB": "#701516", - "HTML+PHP": "#4f5d95", - "HTML+Razor": "#512be4", - "HTTP": "#005C9C", - "HXML": "#f68712", - "Hy": "#7790B2", - "HyPhy": null, - "IDL": "#a3522f", - "Idris": "#b30000", - "Ignore List": "#000000", - "IGOR Pro": "#0000cc", - "ImageJ Macro": "#99AAFF", - "Inform 7": null, - "INI": "#d1dbe0", - "Inno Setup": "#264b99", - "Io": "#a9188d", - "Ioke": "#078193", - "Isabelle": "#FEFE00", - "Isabelle ROOT": "#FEFE00", - "J": "#9EEDFF", - "JAR Manifest": "#b07219", - "Jasmin": "#d03600", - "Java": "#b07219", - "Java Properties": "#2A6277", - "Java Server Pages": "#2A6277", - "JavaScript": "#f1e05a", - "JavaScript+ERB": "#f1e05a", - "Jest Snapshot": "#15c213", - "JFlex": "#DBCA00", - "Jinja": "#a52a22", - "Jison": "#56b3cb", - "Jison Lex": "#56b3cb", - "Jolie": "#843179", - "jq": "#c7254e", - "JSON": "#292929", - "JSON with Comments": "#292929", - "JSON5": "#267CB9", - "JSONiq": "#40d47e", - "JSONLD": "#0c479c", - "Jsonnet": "#0064bd", - "Julia": "#a270ba", - "Jupyter Notebook": "#DA5B0B", - "Kaitai Struct": "#773b37", - "KakouneScript": "#6f8042", - "KiCad Layout": "#2f4aab", - "KiCad Legacy Layout": "#2f4aab", - "KiCad Schematic": "#2f4aab", - "Kotlin": "#A97BFF", - "KRL": "#28430A", - "LabVIEW": "#fede06", - "Lark": "#2980B9", - "Lasso": "#999999", - "Latte": "#f2a542", - "Lean": null, - "Less": "#1d365d", - "Lex": "#DBCA00", - "LFE": "#4C3023", - "LilyPond": "#9ccc7c", - "Limbo": null, - "Liquid": "#67b8de", - "Literate Agda": "#315665", - "Literate CoffeeScript": "#244776", - "Literate Haskell": "#5e5086", - "LiveScript": "#499886", - "LLVM": "#185619", - "Logos": null, - "Logtalk": "#295b9a", - "LOLCODE": "#cc9900", - "LookML": "#652B81", - "LoomScript": null, - "LSL": "#3d9970", - "Lua": "#000080", - "M": null, - "M4": null, - "M4Sugar": null, - "Macaulay2": "#d8ffff", - "Makefile": "#427819", - "Mako": "#7e858d", - "Markdown": "#083fa1", - "Marko": "#42bff2", - "Mask": "#f97732", - "Mathematica": "#dd1100", - "MATLAB": "#e16737", - "Max": "#c4a79c", - "MAXScript": "#00a6a6", - "mcfunction": "#E22837", - "Mercury": "#ff2b2b", - "Meson": "#007800", - "Metal": "#8f14e9", - "MiniD": null, - "Mirah": "#c7a938", - "mIRC Script": "#3d57c3", - "MLIR": "#5EC8DB", - "Modelica": "#de1d31", - "Modula-2": "#10253f", - "Modula-3": "#223388", - "Module Management System": null, - "Monkey": null, - "Moocode": null, - "MoonScript": "#ff4585", - "Motorola 68K Assembly": "#005daa", - "MQL4": "#62A8D6", - "MQL5": "#4A76B8", - "MTML": "#b7e1f4", - "MUF": null, - "mupad": "#244963", - "Mustache": "#724b3b", - "Myghty": null, - "nanorc": "#2d004d", - "NASL": null, - "NCL": "#28431f", - "Nearley": "#990000", - "Nemerle": "#3d3c6e", - "nesC": "#94B0C7", - "NetLinx": "#0aa0ff", - "NetLinx+ERB": "#747faa", - "NetLogo": "#ff6375", - "NewLisp": "#87AED7", - "Nextflow": "#3ac486", - "Nginx": "#009639", - "Nim": "#ffc200", - "Nit": "#009917", - "Nix": "#7e7eff", - "NPM Config": "#cb3837", - "NSIS": null, - "Nu": "#c9df40", - "NumPy": "#9C8AF9", - "Nunjucks": "#3d8137", - "NWScript": "#111522", - "Objective-C": "#438eff", - "Objective-C++": "#6866fb", - "Objective-J": "#ff0c5a", - "ObjectScript": "#424893", - "OCaml": "#3be133", - "Odin": "#60AFFE", - "Omgrofl": "#cabbff", - "ooc": "#b0b77e", - "Opa": null, - "Opal": "#f7ede0", - "Open Policy Agent": "#7d9199", - "OpenCL": "#ed2e2d", - "OpenEdge ABL": "#5ce600", - "OpenQASM": "#AA70FF", - "OpenRC runscript": null, - "OpenSCAD": "#e5cd45", - "Org": "#77aa99", - "Ox": null, - "Oxygene": "#cdd0e3", - "Oz": "#fab738", - "P4": "#7055b5", - "Pan": "#cc0000", - "Papyrus": "#6600cc", - "Parrot": "#f3ca0a", - "Parrot Assembly": null, - "Parrot Internal Representation": null, - "Pascal": "#E3F171", - "Pawn": "#dbb284", - "PEG.js": "#234d6b", - "Pep8": "#C76F5B", - "Perl": "#0298c3", - "PHP": "#4F5D95", - "PicoLisp": "#6067af", - "PigLatin": "#fcd7de", - "Pike": "#005390", - "PLpgSQL": "#336790", - "PLSQL": "#dad8d8", - "PogoScript": "#d80074", - "Pony": null, - "PostCSS": "#dc3a0c", - "PostScript": "#da291c", - "POV-Ray SDL": "#6bac65", - "PowerBuilder": "#8f0f8d", - "PowerShell": "#012456", - "Prisma": "#0c344b", - "Processing": "#0096D8", - "Prolog": "#74283c", - "Propeller Spin": "#7fa2a7", - "Pug": "#a86454", - "Puppet": "#302B6D", - "PureBasic": "#5a6986", - "PureScript": "#1D222D", - "Python": "#3572A5", - "Python console": "#3572A5", - "Python traceback": "#3572A5", - "q": "#0040cd", - "Q#": "#fed659", - "QMake": null, - "QML": "#44a51c", - "Qt Script": "#00b841", - "Quake": "#882233", - "R": "#198CE7", - "Racket": "#3c5caa", - "Ragel": "#9d5200", - "Raku": "#0000fb", - "RAML": "#77d9fb", - "Rascal": "#fffaa0", - "RDoc": "#701516", - "REALbasic": null, - "Reason": "#ff5847", - "Rebol": "#358a5b", - "Record Jar": "#0673ba", - "Red": "#f50000", - "Redcode": null, - "Regular Expression": "#009a00", - "Ren'Py": "#ff7f7f", - "RenderScript": null, - "ReScript": "#ed5051", - "reStructuredText": "#141414", - "REXX": "#d90e09", - "Ring": "#2D54CB", - "Riot": "#A71E49", - "RMarkdown": "#198ce7", - "RobotFramework": "#00c0b5", - "Roff": "#ecdebe", - "Roff Manpage": "#ecdebe", - "Rouge": "#cc0088", - "RPC": null, - "Ruby": "#701516", - "RUNOFF": "#665a4e", - "Rust": "#dea584", - "Sage": null, - "SaltStack": "#646464", - "SAS": "#B34936", - "Sass": "#a53b70", - "Scala": "#c22d40", - "Scaml": "#bd181a", - "Scheme": "#1e4aec", - "Scilab": "#ca0f21", - "SCSS": "#c6538c", - "sed": "#64b970", - "Self": "#0579aa", - "ShaderLab": "#222c37", - "Shell": "#89e051", - "ShellSession": null, - "Shen": "#120F14", - "Sieve": null, - "Singularity": "#64E6AD", - "Slash": "#007eff", - "Slice": "#003fa2", - "Slim": "#2b2b2b", - "Smali": null, - "Smalltalk": "#596706", - "Smarty": "#f0c040", - "SmPL": "#c94949", - "SMT": null, - "Solidity": "#AA6746", - "SourcePawn": "#f69e1d", - "SPARQL": "#0C4597", - "SQF": "#3F3F3F", - "SQL": "#e38c00", - "SQLPL": "#e38c00", - "Squirrel": "#800000", - "SRecode Template": "#348a34", - "Stan": "#b2011d", - "Standard ML": "#dc566d", - "Starlark": "#76d275", - "Stata": "#1a5f91", - "StringTemplate": "#3fb34f", - "Stylus": "#ff6347", - "SubRip Text": "#9e0101", - "SugarSS": "#2fcc9f", - "SuperCollider": "#46390b", - "Svelte": "#ff3e00", - "SVG": "#ff9900", - "Swift": "#F05138", - "SWIG": null, - "SystemVerilog": "#DAE1C2", - "Tcl": "#e4cc98", - "Tcsh": null, - "Terra": "#00004c", - "TeX": "#3D6117", - "Textile": "#ffe7ac", - "TextMate Properties": "#df66e4", - "Thrift": "#D12127", - "TI Program": "#A0AA87", - "TLA": "#4b0079", - "TOML": "#9c4221", - "TSQL": "#e38c00", - "TSV": "#237346", - "TSX": "#2b7489", - "Turing": "#cf142b", - "Twig": "#c1d026", - "TXL": "#0178b8", - "TypeScript": "#2b7489", - "Unified Parallel C": "#4e3617", - "Unity3D Asset": "#222c37", - "Unix Assembly": null, - "Uno": "#9933cc", - "UnrealScript": "#a54c4d", - "UrWeb": "#ccccee", - "V": "#4f87c4", - "Vala": "#fbe5cd", - "Valve Data Format": "#f26025", - "VBA": "#867db1", - "VBScript": "#15dcdc", - "VCL": "#148AA8", - "Verilog": "#b2b7f8", - "VHDL": "#adb2cb", - "Vim Help File": "#199f4b", - "Vim Script": "#199f4b", - "Vim Snippet": "#199f4b", - "Visual Basic .NET": "#945db7", - "Volt": "#1F1F1F", - "Vue": "#41b883", - "wdl": "#42f1f4", - "Web Ontology Language": "#5b70bd", - "WebAssembly": "#04133b", - "WebIDL": null, - "Wikitext": "#fc5757", - "Windows Registry Entries": "#52d5ff", - "wisp": "#7582D1", - "Wollok": "#a23738", - "World of Warcraft Addon Data": "#f7e43f", - "X10": "#4B6BEF", - "xBase": "#403a40", - "XC": "#99DA07", - "XML": "#0060ac", - "XML Property List": "#0060ac", - "Xojo": "#81bd41", - "Xonsh": "#285EEF", - "XProc": null, - "XQuery": "#5232e7", - "XS": null, - "XSLT": "#EB8CEB", - "Xtend": "#24255d", - "Yacc": "#4B6C4B", - "YAML": "#cb171e", - "YARA": "#220000", - "YASnippet": "#32AB90", - "ZAP": "#0d665e", - "Zeek": null, - "ZenScript": "#00BCD1", - "Zephir": "#118f9e", - "Zig": "#ec915c", - "ZIL": "#dc75e5", - "Zimpl": "#d67711" -} \ No newline at end of file + "1C Enterprise": "#814CCC", + "4D": "#004289", + "ABAP": "#E8274B", + "ABAP CDS": "#555e25", + "ActionScript": "#882B0F", + "Ada": "#02f88c", + "Adobe Font Metrics": "#fa0f00", + "Agda": "#315665", + "AGS Script": "#B9D9FF", + "AIDL": "#34EB6B", + "AL": "#3AA2B5", + "Alloy": "#64C800", + "Alpine Abuild": "#0D597F", + "Altium Designer": "#A89663", + "AMPL": "#E6EFBB", + "AngelScript": "#C7D7DC", + "Ant Build System": "#A9157E", + "ANTLR": "#9DC3FF", + "ApacheConf": "#d12127", + "Apex": "#1797c0", + "API Blueprint": "#2ACCA8", + "APL": "#5A8164", + "Apollo Guidance Computer": "#0B3D91", + "AppleScript": "#101F1F", + "Arc": "#aa2afe", + "AsciiDoc": "#73a0c5", + "ASL": null, + "ASP.NET": "#9400ff", + "AspectJ": "#a957b0", + "Assembly": "#6E4C13", + "Astro": "#ff5a03", + "Asymptote": "#ff0000", + "ATS": "#1ac620", + "Augeas": "#9CC134", + "AutoHotkey": "#6594b9", + "AutoIt": "#1C3552", + "Avro IDL": "#0040FF", + "Awk": "#c30e9b", + "Ballerina": "#FF5000", + "BASIC": "#ff0000", + "Batchfile": "#C1F12E", + "Beef": "#a52f4e", + "Befunge": null, + "BibTeX": "#778899", + "Bicep": "#519aba", + "Bison": "#6A463F", + "BitBake": "#00bce4", + "Blade": "#f7523f", + "BlitzBasic": "#00FFAE", + "BlitzMax": "#cd6400", + "Bluespec": "#12223c", + "Boo": "#d4bec1", + "Boogie": "#c80fa0", + "Brainfuck": "#2F2530", + "Brightscript": "#662D91", + "Browserslist": "#ffd539", + "C": "#555555", + "C#": "#178600", + "C++": "#f34b7d", + "C2hs Haskell": null, + "Cabal Config": "#483465", + "Cap'n Proto": "#c42727", + "CartoCSS": null, + "Ceylon": "#dfa535", + "Chapel": "#8dc63f", + "Charity": null, + "ChucK": "#3f8000", + "Cirru": "#ccccff", + "Clarion": "#db901e", + "Classic ASP": "#6a40fd", + "Clean": "#3F85AF", + "Click": "#E4E6F3", + "CLIPS": "#00A300", + "Clojure": "#db5855", + "Closure Templates": "#0d948f", + "Cloud Firestore Security Rules": "#FFA000", + "CMake": "#DA3434", + "COBOL": null, + "CodeQL": "#140f46", + "CoffeeScript": "#244776", + "ColdFusion": "#ed2cd6", + "ColdFusion CFC": "#ed2cd6", + "COLLADA": "#F1A42B", + "Common Lisp": "#3fb68b", + "Common Workflow Language": "#B5314C", + "Component Pascal": "#B0CE4E", + "Cool": null, + "Coq": "#d0b68c", + "Crystal": "#000100", + "CSON": "#244776", + "Csound": "#1a1a1a", + "Csound Document": "#1a1a1a", + "Csound Score": "#1a1a1a", + "CSS": "#563d7c", + "CSV": "#237346", + "Cuda": "#3A4E3A", + "CUE": "#5886E1", + "CWeb": "#00007a", + "Cycript": null, + "Cython": "#fedf5b", + "D": "#ba595e", + "Dafny": "#FFEC25", + "Darcs Patch": "#8eff23", + "Dart": "#00B4AB", + "DataWeave": "#003a52", + "Dhall": "#dfafff", + "DIGITAL Command Language": null, + "DirectX 3D File": "#aace60", + "DM": "#447265", + "Dockerfile": "#384d54", + "Dogescript": "#cca760", + "DTrace": null, + "Dylan": "#6c616e", + "E": "#ccce35", + "Easybuild": "#069406", + "eC": "#913960", + "Ecere Projects": "#913960", + "ECL": "#8a1267", + "ECLiPSe": "#001d9d", + "EditorConfig": "#fff1f2", + "Eiffel": "#4d6977", + "EJS": "#a91e50", + "Elixir": "#6e4a7e", + "Elm": "#60B5CC", + "Emacs Lisp": "#c065db", + "EmberScript": "#FFF4F3", + "EQ": "#a78649", + "Erlang": "#B83998", + "F#": "#b845fc", + "F*": "#572e30", + "Factor": "#636746", + "Fancy": "#7b9db4", + "Fantom": "#14253c", + "Faust": "#c37240", + "Fennel": "#fff3d7", + "FIGlet Font": "#FFDDBB", + "Filebench WML": "#F6B900", + "Filterscript": null, + "fish": "#4aae47", + "Fluent": "#ffcc33", + "FLUX": "#88ccff", + "Forth": "#341708", + "Fortran": "#4d41b1", + "Fortran Free Form": "#4d41b1", + "FreeBasic": "#867db1", + "FreeMarker": "#0050b2", + "Frege": "#00cafe", + "Futhark": "#5f021f", + "G-code": "#D08CF2", + "Game Maker Language": "#71b417", + "GAML": "#FFC766", + "GAMS": "#f49a22", + "GAP": "#0000cc", + "GCC Machine Description": "#FFCFAB", + "GDB": null, + "GDScript": "#355570", + "GEDCOM": "#003058", + "Gemfile.lock": "#701516", + "Genie": "#fb855d", + "Genshi": "#951531", + "Gentoo Ebuild": "#9400ff", + "Gentoo Eclass": "#9400ff", + "Gerber Image": "#d20b00", + "Gherkin": "#5B2063", + "Git Attributes": "#F44D27", + "Git Config": "#F44D27", + "GLSL": "#5686a5", + "Glyph": "#c1ac7f", + "Gnuplot": "#f0a9f0", + "Go": "#00ADD8", + "Go Checksums": "#00ADD8", + "Go Module": "#00ADD8", + "Golo": "#88562A", + "Gosu": "#82937f", + "Grace": "#615f8b", + "Gradle": "#02303a", + "Grammatical Framework": "#ff0000", + "GraphQL": "#e10098", + "Graphviz (DOT)": "#2596be", + "Groovy": "#4298b8", + "Groovy Server Pages": "#4298b8", + "Hack": "#878787", + "Haml": "#ece2a9", + "Handlebars": "#f7931e", + "HAProxy": "#106da9", + "Harbour": "#0e60e3", + "Haskell": "#5e5086", + "Haxe": "#df7900", + "HCL": null, + "HiveQL": "#dce200", + "HLSL": "#aace60", + "HolyC": "#ffefaf", + "HTML": "#e34c26", + "HTML+ECR": "#2e1052", + "HTML+EEX": "#6e4a7e", + "HTML+ERB": "#701516", + "HTML+PHP": "#4f5d95", + "HTML+Razor": "#512be4", + "HTTP": "#005C9C", + "HXML": "#f68712", + "Hy": "#7790B2", + "HyPhy": null, + "IDL": "#a3522f", + "Idris": "#b30000", + "Ignore List": "#000000", + "IGOR Pro": "#0000cc", + "ImageJ Macro": "#99AAFF", + "Inform 7": null, + "INI": "#d1dbe0", + "Inno Setup": "#264b99", + "Io": "#a9188d", + "Ioke": "#078193", + "Isabelle": "#FEFE00", + "Isabelle ROOT": "#FEFE00", + "J": "#9EEDFF", + "JAR Manifest": "#b07219", + "Jasmin": "#d03600", + "Java": "#b07219", + "Java Properties": "#2A6277", + "Java Server Pages": "#2A6277", + "JavaScript": "#f1e05a", + "JavaScript+ERB": "#f1e05a", + "Jest Snapshot": "#15c213", + "JFlex": "#DBCA00", + "Jinja": "#a52a22", + "Jison": "#56b3cb", + "Jison Lex": "#56b3cb", + "Jolie": "#843179", + "jq": "#c7254e", + "JSON": "#292929", + "JSON with Comments": "#292929", + "JSON5": "#267CB9", + "JSONiq": "#40d47e", + "JSONLD": "#0c479c", + "Jsonnet": "#0064bd", + "Julia": "#a270ba", + "Jupyter Notebook": "#DA5B0B", + "Kaitai Struct": "#773b37", + "KakouneScript": "#6f8042", + "KiCad Layout": "#2f4aab", + "KiCad Legacy Layout": "#2f4aab", + "KiCad Schematic": "#2f4aab", + "Kotlin": "#A97BFF", + "KRL": "#28430A", + "LabVIEW": "#fede06", + "Lark": "#2980B9", + "Lasso": "#999999", + "Latte": "#f2a542", + "Lean": null, + "Less": "#1d365d", + "Lex": "#DBCA00", + "LFE": "#4C3023", + "LilyPond": "#9ccc7c", + "Limbo": null, + "Liquid": "#67b8de", + "Literate Agda": "#315665", + "Literate CoffeeScript": "#244776", + "Literate Haskell": "#5e5086", + "LiveScript": "#499886", + "LLVM": "#185619", + "Logos": null, + "Logtalk": "#295b9a", + "LOLCODE": "#cc9900", + "LookML": "#652B81", + "LoomScript": null, + "LSL": "#3d9970", + "Lua": "#000080", + "M": null, + "M4": null, + "M4Sugar": null, + "Macaulay2": "#d8ffff", + "Makefile": "#427819", + "Mako": "#7e858d", + "Markdown": "#083fa1", + "Marko": "#42bff2", + "Mask": "#f97732", + "Mathematica": "#dd1100", + "MATLAB": "#e16737", + "Max": "#c4a79c", + "MAXScript": "#00a6a6", + "mcfunction": "#E22837", + "Mercury": "#ff2b2b", + "Meson": "#007800", + "Metal": "#8f14e9", + "MiniD": null, + "Mirah": "#c7a938", + "mIRC Script": "#3d57c3", + "MLIR": "#5EC8DB", + "Modelica": "#de1d31", + "Modula-2": "#10253f", + "Modula-3": "#223388", + "Module Management System": null, + "Monkey": null, + "Moocode": null, + "MoonScript": "#ff4585", + "Motorola 68K Assembly": "#005daa", + "MQL4": "#62A8D6", + "MQL5": "#4A76B8", + "MTML": "#b7e1f4", + "MUF": null, + "mupad": "#244963", + "Mustache": "#724b3b", + "Myghty": null, + "nanorc": "#2d004d", + "NASL": null, + "NCL": "#28431f", + "Nearley": "#990000", + "Nemerle": "#3d3c6e", + "nesC": "#94B0C7", + "NetLinx": "#0aa0ff", + "NetLinx+ERB": "#747faa", + "NetLogo": "#ff6375", + "NewLisp": "#87AED7", + "Nextflow": "#3ac486", + "Nginx": "#009639", + "Nim": "#ffc200", + "Nit": "#009917", + "Nix": "#7e7eff", + "NPM Config": "#cb3837", + "NSIS": null, + "Nu": "#c9df40", + "NumPy": "#9C8AF9", + "Nunjucks": "#3d8137", + "NWScript": "#111522", + "Objective-C": "#438eff", + "Objective-C++": "#6866fb", + "Objective-J": "#ff0c5a", + "ObjectScript": "#424893", + "OCaml": "#3be133", + "Odin": "#60AFFE", + "Omgrofl": "#cabbff", + "ooc": "#b0b77e", + "Opa": null, + "Opal": "#f7ede0", + "Open Policy Agent": "#7d9199", + "OpenCL": "#ed2e2d", + "OpenEdge ABL": "#5ce600", + "OpenQASM": "#AA70FF", + "OpenRC runscript": null, + "OpenSCAD": "#e5cd45", + "Org": "#77aa99", + "Ox": null, + "Oxygene": "#cdd0e3", + "Oz": "#fab738", + "P4": "#7055b5", + "Pan": "#cc0000", + "Papyrus": "#6600cc", + "Parrot": "#f3ca0a", + "Parrot Assembly": null, + "Parrot Internal Representation": null, + "Pascal": "#E3F171", + "Pawn": "#dbb284", + "PEG.js": "#234d6b", + "Pep8": "#C76F5B", + "Perl": "#0298c3", + "PHP": "#4F5D95", + "PicoLisp": "#6067af", + "PigLatin": "#fcd7de", + "Pike": "#005390", + "PLpgSQL": "#336790", + "PLSQL": "#dad8d8", + "PogoScript": "#d80074", + "Pony": null, + "PostCSS": "#dc3a0c", + "PostScript": "#da291c", + "POV-Ray SDL": "#6bac65", + "PowerBuilder": "#8f0f8d", + "PowerShell": "#012456", + "Prisma": "#0c344b", + "Processing": "#0096D8", + "Prolog": "#74283c", + "Propeller Spin": "#7fa2a7", + "Pug": "#a86454", + "Puppet": "#302B6D", + "PureBasic": "#5a6986", + "PureScript": "#1D222D", + "Python": "#3572A5", + "Python console": "#3572A5", + "Python traceback": "#3572A5", + "q": "#0040cd", + "Q#": "#fed659", + "QMake": null, + "QML": "#44a51c", + "Qt Script": "#00b841", + "Quake": "#882233", + "R": "#198CE7", + "Racket": "#3c5caa", + "Ragel": "#9d5200", + "Raku": "#0000fb", + "RAML": "#77d9fb", + "Rascal": "#fffaa0", + "RDoc": "#701516", + "REALbasic": null, + "Reason": "#ff5847", + "Rebol": "#358a5b", + "Record Jar": "#0673ba", + "Red": "#f50000", + "Redcode": null, + "Regular Expression": "#009a00", + "Ren'Py": "#ff7f7f", + "RenderScript": null, + "ReScript": "#ed5051", + "reStructuredText": "#141414", + "REXX": "#d90e09", + "Ring": "#2D54CB", + "Riot": "#A71E49", + "RMarkdown": "#198ce7", + "RobotFramework": "#00c0b5", + "Roff": "#ecdebe", + "Roff Manpage": "#ecdebe", + "Rouge": "#cc0088", + "RPC": null, + "Ruby": "#701516", + "RUNOFF": "#665a4e", + "Rust": "#dea584", + "Sage": null, + "SaltStack": "#646464", + "SAS": "#B34936", + "Sass": "#a53b70", + "Scala": "#c22d40", + "Scaml": "#bd181a", + "Scheme": "#1e4aec", + "Scilab": "#ca0f21", + "SCSS": "#c6538c", + "sed": "#64b970", + "Self": "#0579aa", + "ShaderLab": "#222c37", + "Shell": "#89e051", + "ShellSession": null, + "Shen": "#120F14", + "Sieve": null, + "Singularity": "#64E6AD", + "Slash": "#007eff", + "Slice": "#003fa2", + "Slim": "#2b2b2b", + "Smali": null, + "Smalltalk": "#596706", + "Smarty": "#f0c040", + "SmPL": "#c94949", + "SMT": null, + "Solidity": "#AA6746", + "SourcePawn": "#f69e1d", + "SPARQL": "#0C4597", + "SQF": "#3F3F3F", + "SQL": "#e38c00", + "SQLPL": "#e38c00", + "Squirrel": "#800000", + "SRecode Template": "#348a34", + "Stan": "#b2011d", + "Standard ML": "#dc566d", + "Starlark": "#76d275", + "Stata": "#1a5f91", + "StringTemplate": "#3fb34f", + "Stylus": "#ff6347", + "SubRip Text": "#9e0101", + "SugarSS": "#2fcc9f", + "SuperCollider": "#46390b", + "Svelte": "#ff3e00", + "SVG": "#ff9900", + "Swift": "#F05138", + "SWIG": null, + "SystemVerilog": "#DAE1C2", + "Tcl": "#e4cc98", + "Tcsh": null, + "Terra": "#00004c", + "TeX": "#3D6117", + "Textile": "#ffe7ac", + "TextMate Properties": "#df66e4", + "Thrift": "#D12127", + "TI Program": "#A0AA87", + "TLA": "#4b0079", + "TOML": "#9c4221", + "TSQL": "#e38c00", + "TSV": "#237346", + "TSX": "#2b7489", + "Turing": "#cf142b", + "Twig": "#c1d026", + "TXL": "#0178b8", + "TypeScript": "#2b7489", + "Unified Parallel C": "#4e3617", + "Unity3D Asset": "#222c37", + "Unix Assembly": null, + "Uno": "#9933cc", + "UnrealScript": "#a54c4d", + "UrWeb": "#ccccee", + "V": "#4f87c4", + "Vala": "#fbe5cd", + "Valve Data Format": "#f26025", + "VBA": "#867db1", + "VBScript": "#15dcdc", + "VCL": "#148AA8", + "Verilog": "#b2b7f8", + "VHDL": "#adb2cb", + "Vim Help File": "#199f4b", + "Vim Script": "#199f4b", + "Vim Snippet": "#199f4b", + "Visual Basic .NET": "#945db7", + "Volt": "#1F1F1F", + "Vue": "#41b883", + "wdl": "#42f1f4", + "Web Ontology Language": "#5b70bd", + "WebAssembly": "#04133b", + "WebIDL": null, + "Wikitext": "#fc5757", + "Windows Registry Entries": "#52d5ff", + "wisp": "#7582D1", + "Wollok": "#a23738", + "World of Warcraft Addon Data": "#f7e43f", + "X10": "#4B6BEF", + "xBase": "#403a40", + "XC": "#99DA07", + "XML": "#0060ac", + "XML Property List": "#0060ac", + "Xojo": "#81bd41", + "Xonsh": "#285EEF", + "XProc": null, + "XQuery": "#5232e7", + "XS": null, + "XSLT": "#EB8CEB", + "Xtend": "#24255d", + "Yacc": "#4B6C4B", + "YAML": "#cb171e", + "YARA": "#220000", + "YASnippet": "#32AB90", + "ZAP": "#0d665e", + "Zeek": null, + "ZenScript": "#00BCD1", + "Zephir": "#118f9e", + "Zig": "#ec915c", + "ZIL": "#dc75e5", + "Zimpl": "#d67711" +} diff --git a/data/sharing.json b/data/sharing.json index 1b8af5d6..fd2bc342 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -53,5 +53,5 @@ "icon": "mastodon", "title": "sharing.mastodon", "url": "https://s2f.kytta.dev/?text=%[2]s %[1]s" - } + } } diff --git a/exampleSite/assets/js/home.js b/exampleSite/assets/js/home.js index fc8e5583..d60acf9b 100644 --- a/exampleSite/assets/js/home.js +++ b/exampleSite/assets/js/home.js @@ -1,20 +1,13 @@ -var layouts = [ - "background", - "hero", - "profile", - "page", - "card" -] +var layouts = ["background", "hero", "profile", "page", "card"]; -var currentLayout = 0 +var currentLayout = 0; function switchHomeLayout() { + var old = currentLayout; + currentLayout = currentLayout == layouts.length - 1 ? 0 : currentLayout + 1; - var old = currentLayout - currentLayout = currentLayout == layouts.length - 1 ? 0 : currentLayout + 1 - - var oldDiv = document.getElementById(layouts[old]) - var currentDiv = document.getElementById(layouts[currentLayout]) + var oldDiv = document.getElementById(layouts[old]); + var currentDiv = document.getElementById(layouts[currentLayout]); const layoutCode = document.querySelectorAll("code[id=layout]"); currentDiv.style.display = "block"; @@ -22,7 +15,6 @@ function switchHomeLayout() { layoutCode.forEach(function (el) { el.innerText = layouts[currentLayout]; }); - } window.addEventListener("DOMContentLoaded", (event) => { @@ -30,31 +22,26 @@ window.addEventListener("DOMContentLoaded", (event) => { button.addEventListener("click", function (e) { e.preventDefault(); switchHomeLayout(); - }) + }), ); }); -var list_config = [ - "CardViewProse", - "CardViewScreenWidth", - "NormalView" -] +var list_config = ["CardViewProse", "CardViewScreenWidth", "NormalView"]; var titles = { - "CardViewProse" : "card view with constrained width", - "CardViewScreenWidth" : "card view with full width", - "NormalView" : "standard list view" -} + CardViewProse: "card view with constrained width", + CardViewScreenWidth: "card view with full width", + NormalView: "standard list view", +}; -var currentConfig = 0 +var currentConfig = 0; function switchList() { + var old = currentConfig; + currentConfig = currentConfig == list_config.length - 1 ? 0 : currentConfig + 1; - var old = currentConfig - currentConfig = currentConfig == list_config.length - 1 ? 0 : currentConfig + 1 - - var oldDiv = document.getElementById(list_config[old]) - var currentDiv = document.getElementById(list_config[currentConfig]) + var oldDiv = document.getElementById(list_config[old]); + var currentDiv = document.getElementById(list_config[currentConfig]); const configCode = document.querySelectorAll("code[id=config]"); currentDiv.style.display = "block"; @@ -63,7 +50,6 @@ function switchList() { configCode.forEach(function (el) { el.innerText = titles[list_config[currentConfig]]; }); - } window.addEventListener("DOMContentLoaded", (event) => { @@ -71,6 +57,6 @@ window.addEventListener("DOMContentLoaded", (event) => { button.addEventListener("click", function (e) { e.preventDefault(); switchList(); - }) + }), ); }); diff --git a/exampleSite/data/authors/nunocoracao.json b/exampleSite/data/authors/nunocoracao.json index ca8170ba..c451ace7 100644 --- a/exampleSite/data/authors/nunocoracao.json +++ b/exampleSite/data/authors/nunocoracao.json @@ -1,15 +1,15 @@ { - "name": "Nuno Coração", - "image" : "img/nuno_avatar.jpg", - "bio": "Theme Creator", - "social": [ - { "linkedin": "https://linkedin.com/in/nunocoracao" }, - { "twitter": "https://twitter.com/nunocoracao" }, - { "instagram": "https://instagram.com/nunocoracao" }, - { "medium": "https://medium.com/@nunocoracao" }, - { "github": "https://github.com/nunocoracao" }, - { "goodreads": "http://goodreads.com/nunocoracao" }, - { "keybase": "https://keybase.io/nunocoracao" }, - { "reddit": "https://reddit.com/user/nunoheart" } - ] -} \ No newline at end of file + "name": "Nuno Coração", + "image": "img/nuno_avatar.jpg", + "bio": "Theme Creator", + "social": [ + { "linkedin": "https://linkedin.com/in/nunocoracao" }, + { "twitter": "https://twitter.com/nunocoracao" }, + { "instagram": "https://instagram.com/nunocoracao" }, + { "medium": "https://medium.com/@nunocoracao" }, + { "github": "https://github.com/nunocoracao" }, + { "goodreads": "http://goodreads.com/nunocoracao" }, + { "keybase": "https://keybase.io/nunocoracao" }, + { "reddit": "https://reddit.com/user/nunoheart" } + ] +} diff --git a/exampleSite/data/authors/secondauthor.json b/exampleSite/data/authors/secondauthor.json index 3959dacc..02aac5a0 100644 --- a/exampleSite/data/authors/secondauthor.json +++ b/exampleSite/data/authors/secondauthor.json @@ -1,15 +1,15 @@ { - "name": "Dummy Second Author", - "image" : "img/author2.png", - "bio": "Dummy", - "social": [ - { "linkedin": "https://linkedin.com/in/nunocoracao" }, - { "twitter": "https://twitter.com/nunocoracao" }, - { "instagram": "https://instagram.com/nunocoracao" }, - { "medium": "https://medium.com/@nunocoracao" }, - { "github": "https://github.com/nunocoracao" }, - { "goodreads": "http://goodreads.com/nunocoracao" }, - { "keybase": "https://keybase.io/nunocoracao" }, - { "reddit": "https://reddit.com/user/nunoheart" } - ] -} \ No newline at end of file + "name": "Dummy Second Author", + "image": "img/author2.png", + "bio": "Dummy", + "social": [ + { "linkedin": "https://linkedin.com/in/nunocoracao" }, + { "twitter": "https://twitter.com/nunocoracao" }, + { "instagram": "https://instagram.com/nunocoracao" }, + { "medium": "https://medium.com/@nunocoracao" }, + { "github": "https://github.com/nunocoracao" }, + { "goodreads": "http://goodreads.com/nunocoracao" }, + { "keybase": "https://keybase.io/nunocoracao" }, + { "reddit": "https://reddit.com/user/nunoheart" } + ] +} diff --git a/exampleSite/layouts/partials/extend-footer.html b/exampleSite/layouts/partials/extend-footer.html index aad10ed8..2f6e5289 100644 --- a/exampleSite/layouts/partials/extend-footer.html +++ b/exampleSite/layouts/partials/extend-footer.html @@ -1 +1 @@ - \ No newline at end of file + diff --git a/exampleSite/layouts/partials/home/custom.html b/exampleSite/layouts/partials/home/custom.html index f4cf9003..26c8a897 100644 --- a/exampleSite/layouts/partials/home/custom.html +++ b/exampleSite/layouts/partials/home/custom.html @@ -17,4 +17,8 @@
    {{ partial "recent-articles-demo.html" . }}
    - + diff --git a/exampleSite/layouts/partials/recent-articles-demo.html b/exampleSite/layouts/partials/recent-articles-demo.html index 07cf4704..2866e684 100644 --- a/exampleSite/layouts/partials/recent-articles-demo.html +++ b/exampleSite/layouts/partials/recent-articles-demo.html @@ -1,44 +1,47 @@ {{ $recentArticles := 5 }} {{ $showMoreLinkDest := "/posts/" }} {{ if index .Site.Params.homepage "showRecentItems" }} -{{ $recentArticles = .Site.Params.homepage.showRecentItems }} + {{ $recentArticles = .Site.Params.homepage.showRecentItems }} {{ end }} +

    {{ i18n "shortcode.recent_articles" | emojify }}

    - - This is a demo of theme's list configurations: card view - - + + This is a demo of theme's list configurations: card view + +
    - {{ partial "recent-articles/cardview.html" . }} + {{ partial "recent-articles/cardview.html" . }}
    {{ if .Site.Params.homepage.showMoreLink | default false }} -{{ if index .Site.Params.homepage "showRecentItems" }} -{{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }} -{{ end }} -
    + {{ if index .Site.Params.homepage "showRecentItems" }} + {{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }} + {{ end }} + +
    {{ end }} diff --git a/findMissingTranslations.js b/findMissingTranslations.js index 67eebce7..9b4edf6f 100644 --- a/findMissingTranslations.js +++ b/findMissingTranslations.js @@ -1,75 +1,71 @@ -const fs = require('fs'); +const fs = require("fs"); const configDir = "./exampleSite/config/_default"; const contentDir = "./exampleSite/content"; const defaultLang = "en"; -var targetLangs = [] +var targetLangs = []; function readConfigs() { - const files = fs.readdirSync(configDir); - files.forEach(file => { - //console.log(file) - if(file.indexOf("languages.") > -1) { - var lang = file.split(".")[1]; - //console.log(lang) - if(lang != defaultLang) { - targetLangs.push(lang); - } - } - }); + const files = fs.readdirSync(configDir); + files.forEach((file) => { + //console.log(file) + if (file.indexOf("languages.") > -1) { + var lang = file.split(".")[1]; + //console.log(lang) + if (lang != defaultLang) { + targetLangs.push(lang); + } + } + }); } async function processFile(filePath, file) { - if (filePath.indexOf("index.md") > -1) { + if (filePath.indexOf("index.md") > -1) { + //console.log("processing", filePath) - //console.log("processing", filePath) - - for(var i in targetLangs) { - const targetLang = targetLangs[i]; - var targetFilePath = filePath.replace(".md", "." + targetLang + ".md"); - //var targetFileName = file.replace(".md", "." + targetLang + ".md"); + for (var i in targetLangs) { + const targetLang = targetLangs[i]; + var targetFilePath = filePath.replace(".md", "." + targetLang + ".md"); + //var targetFileName = file.replace(".md", "." + targetLang + ".md"); - if(fs.existsSync(targetFilePath)) { - //console.log("file already exists", targetFilePath); + if (fs.existsSync(targetFilePath)) { + //console.log("file already exists", targetFilePath); - const data = fs.readFileSync(filePath, 'utf8'); - const data2 = fs.readFileSync(targetFilePath, 'utf8'); - if(data != data2) { - //console.log("file contents are different", targetFilePath); - }else{ - //console.log("file contents are the same", targetFilePath); - console.log(targetFilePath); - //process.exit(1); - } - - }else{ - //console.log("file does not exist", targetFilePath); - } + const data = fs.readFileSync(filePath, "utf8"); + const data2 = fs.readFileSync(targetFilePath, "utf8"); + if (data != data2) { + //console.log("file contents are different", targetFilePath); + } else { + //console.log("file contents are the same", targetFilePath); + console.log(targetFilePath); + //process.exit(1); } - - } else - return + } else { + //console.log("file does not exist", targetFilePath); + } + } + } else return; } async function processFolder(folderPath) { - const files = fs.readdirSync(folderPath); + const files = fs.readdirSync(folderPath); - for (var i in files) { - const file = files[i]; - const filePath = `${folderPath}/${file}`; - const isDir = fs.lstatSync(filePath).isDirectory(); - if (isDir) { - await processFolder(filePath); - } else { - await processFile(filePath, file); - } + for (var i in files) { + const file = files[i]; + const filePath = `${folderPath}/${file}`; + const isDir = fs.lstatSync(filePath).isDirectory(); + if (isDir) { + await processFolder(filePath); + } else { + await processFile(filePath, file); } + } } async function createLinks() { - processFolder(contentDir); + processFolder(contentDir); } readConfigs(); -createLinks(); \ No newline at end of file +createLinks(); diff --git a/genArticle.js b/genArticle.js index 239aec00..649d1a97 100644 --- a/genArticle.js +++ b/genArticle.js @@ -1,5 +1,5 @@ -const fs = require('fs'); -const translate = require('@iamtraction/google-translate'); +const fs = require("fs"); +const translate = require("@iamtraction/google-translate"); const defaultLang = "en"; const targetLang = process.argv[2] || "en"; @@ -8,56 +8,57 @@ const targetLangIso = targetLang == "pt" ? "pt-pt" : targetLang; const targetFilePath = filePath.replace(".md", "." + targetLangIso + ".md"); async function convert(text, from, to) { - var options = { - from: from, - to: to - }; - var translated_text = await translate(text, options); - return translated_text.text; + var options = { + from: from, + to: to, + }; + var translated_text = await translate(text, options); + return translated_text.text; } console.log(filePath); console.log(targetFilePath); async function processFrontMatter(block) { - var array = block.split("\n"); - var translatedBlock = ""; - for (var i = 0; i < array.length; i++) { - if (array[i].indexOf(":") > -1) { - var elements = array[i].split(":"); - var newElement = ""; - if (elements[0] == "title" || - elements[0] == "description" || - elements[0] == "summary" || - elements[0] == "description" || - elements[0] == "categories" || - elements[0] == "tags") { - var translatedElement = elements[1] ? await convert(elements[1], defaultLang, targetLang) : elements[1]; - newElement = elements[0] + ": " + translatedElement; - } else { - newElement = array[i]; - } - } else { - newElement = array[i]; - } - translatedBlock += newElement + "\n"; + var array = block.split("\n"); + var translatedBlock = ""; + for (var i = 0; i < array.length; i++) { + if (array[i].indexOf(":") > -1) { + var elements = array[i].split(":"); + var newElement = ""; + if ( + elements[0] == "title" || + elements[0] == "description" || + elements[0] == "summary" || + elements[0] == "description" || + elements[0] == "categories" || + elements[0] == "tags" + ) { + var translatedElement = elements[1] ? await convert(elements[1], defaultLang, targetLang) : elements[1]; + newElement = elements[0] + ": " + translatedElement; + } else { + newElement = array[i]; + } + } else { + newElement = array[i]; } - return translatedBlock; + translatedBlock += newElement + "\n"; + } + return translatedBlock; } - async function main() { - const fileContent = fs.readFileSync(filePath, 'utf8'); + const fileContent = fs.readFileSync(filePath, "utf8"); - var array = fileContent.split("---\n") - var frontMatter = array[1]; - var content = array[2]; + var array = fileContent.split("---\n"); + var frontMatter = array[1]; + var content = array[2]; - var translatedFrontMatter = await processFrontMatter(frontMatter); - var translatedContent = await convert(content, defaultLang, targetLang); + var translatedFrontMatter = await processFrontMatter(frontMatter); + var translatedContent = await convert(content, defaultLang, targetLang); - var newFileContent = "---\n" + translatedFrontMatter + "---\n" + translatedContent; - fs.writeFileSync(targetFilePath, newFileContent, 'utf8'); + var newFileContent = "---\n" + translatedFrontMatter + "---\n" + translatedContent; + fs.writeFileSync(targetFilePath, newFileContent, "utf8"); } -main(); \ No newline at end of file +main(); diff --git a/genLang.js b/genLang.js index 8a4dc169..270608fe 100644 --- a/genLang.js +++ b/genLang.js @@ -1,5 +1,5 @@ -const fs = require('fs'); -const translate = require('@iamtraction/google-translate'); +const fs = require("fs"); +const translate = require("@iamtraction/google-translate"); const configDir = "./exampleSite/config/_default"; const contentDir = "./exampleSite/content"; @@ -7,98 +7,94 @@ const defaultLang = "en"; const targetLang = process.argv[2] || "en"; const targetLangIso = targetLang == "pt" ? "pt-pt" : targetLang; - function createConfigs() { - const files = fs.readdirSync(configDir); - files.forEach(file => { - const filePath = `${configDir}/${file}`; - if (filePath.indexOf("languages.en.toml") > -1 || - filePath.indexOf("menus.en.toml") > -1) { - var fileContent = fs.readFileSync(filePath, 'utf8'); - fs.writeFileSync(filePath.replace(".en.toml", "." + targetLangIso + ".toml"), fileContent, 'utf8'); - } - }); + const files = fs.readdirSync(configDir); + files.forEach((file) => { + const filePath = `${configDir}/${file}`; + if (filePath.indexOf("languages.en.toml") > -1 || filePath.indexOf("menus.en.toml") > -1) { + var fileContent = fs.readFileSync(filePath, "utf8"); + fs.writeFileSync(filePath.replace(".en.toml", "." + targetLangIso + ".toml"), fileContent, "utf8"); + } + }); } async function convert(text, from, to) { - var options = { - from: from, - to: to - }; - var translated_text = await translate(text, options) - .catch(err => { - console.error(err); - });; - return translated_text && translated_text.text? translated_text.text : ''; + var options = { + from: from, + to: to, + }; + var translated_text = await translate(text, options).catch((err) => { + console.error(err); + }); + return translated_text && translated_text.text ? translated_text.text : ""; } async function processFrontMatter(block) { - var array = block.split("\n"); - var translatedBlock = ""; - for (var i = 0; i < array.length; i++) { - if (array[i].indexOf(":") > -1) { - var elements = array[i].split(":"); - var newElement = ""; - if (elements[0] == "title" || - elements[0] == "description" || - elements[0] == "summary" || - elements[0] == "description" || - elements[0] == "categories" || - elements[0] == "tags") { - var translatedElement = elements[1] ? await convert(elements[1], defaultLang, targetLang) : elements[1]; - newElement = elements[0] + ": " + translatedElement; - } else { - newElement = array[i]; - } - } else { - newElement = array[i]; - } - translatedBlock += newElement + "\n"; + var array = block.split("\n"); + var translatedBlock = ""; + for (var i = 0; i < array.length; i++) { + if (array[i].indexOf(":") > -1) { + var elements = array[i].split(":"); + var newElement = ""; + if ( + elements[0] == "title" || + elements[0] == "description" || + elements[0] == "summary" || + elements[0] == "description" || + elements[0] == "categories" || + elements[0] == "tags" + ) { + var translatedElement = elements[1] ? await convert(elements[1], defaultLang, targetLang) : elements[1]; + newElement = elements[0] + ": " + translatedElement; + } else { + newElement = array[i]; + } + } else { + newElement = array[i]; } - return translatedBlock; + translatedBlock += newElement + "\n"; + } + return translatedBlock; } async function processFile(filePath) { - console.log("translating", filePath) - if (filePath.indexOf("index.md") > -1) { + console.log("translating", filePath); + if (filePath.indexOf("index.md") > -1) { + const targetFilePath = filePath.replace(".md", "." + targetLangIso + ".md"); - const targetFilePath = filePath.replace(".md", "." + targetLangIso + ".md"); + const fileContent = fs.readFileSync(filePath, "utf8"); - const fileContent = fs.readFileSync(filePath, 'utf8'); + var array = fileContent.split("---\n"); + var frontMatter = array[1]; + var content = array[2]; - var array = fileContent.split("---\n") - var frontMatter = array[1]; - var content = array[2]; + var translatedFrontMatter = await processFrontMatter(frontMatter); + var translatedContent = await convert(content, defaultLang, targetLang); - var translatedFrontMatter = await processFrontMatter(frontMatter); - var translatedContent = await convert(content, defaultLang, targetLang); - - var newFileContent = "---\n" + translatedFrontMatter + "---\n" + translatedContent; - fs.writeFileSync(targetFilePath, newFileContent, 'utf8'); - - } else - return + var newFileContent = "---\n" + translatedFrontMatter + "---\n" + translatedContent; + fs.writeFileSync(targetFilePath, newFileContent, "utf8"); + } else return; } async function processFolder(folderPath) { - const files = fs.readdirSync(folderPath); + const files = fs.readdirSync(folderPath); - for (var i in files) { - const file = files[i]; - const filePath = `${folderPath}/${file}`; - const isDir = fs.lstatSync(filePath).isDirectory(); - console.log(filePath, isDir); - if (isDir) { - await processFolder(filePath); - } else { - await processFile(filePath); - } + for (var i in files) { + const file = files[i]; + const filePath = `${folderPath}/${file}`; + const isDir = fs.lstatSync(filePath).isDirectory(); + console.log(filePath, isDir); + if (isDir) { + await processFolder(filePath); + } else { + await processFile(filePath); } + } } async function createContent() { - processFolder(contentDir); + processFolder(contentDir); } createConfigs(); -createContent(); \ No newline at end of file +createContent(); diff --git a/genLangLinks.js b/genLangLinks.js index 6b5925bb..df050abb 100644 --- a/genLangLinks.js +++ b/genLangLinks.js @@ -1,66 +1,63 @@ -const fs = require('fs'); +const fs = require("fs"); const configDir = "./exampleSite/config/_default"; const contentDir = "./exampleSite/content"; const defaultLang = "en"; -var targetLangs = [] +var targetLangs = []; function readConfigs() { - const files = fs.readdirSync(configDir); - files.forEach(file => { - console.log(file) - if(file.indexOf("languages.") > -1) { - var lang = file.split(".")[1]; - console.log(lang) - if(lang != defaultLang) { - targetLangs.push(lang); - } - } - }); + const files = fs.readdirSync(configDir); + files.forEach((file) => { + console.log(file); + if (file.indexOf("languages.") > -1) { + var lang = file.split(".")[1]; + console.log(lang); + if (lang != defaultLang) { + targetLangs.push(lang); + } + } + }); } async function processFile(filePath, file) { - if (filePath.indexOf("index.md") > -1) { + if (filePath.indexOf("index.md") > -1) { + console.log("processing", filePath); - console.log("processing", filePath) - - for(var i in targetLangs) { - const targetLang = targetLangs[i]; - var targetFilePath = filePath.replace(".md", "." + targetLang + ".md"); - //var targetFileName = file.replace(".md", "." + targetLang + ".md"); + for (var i in targetLangs) { + const targetLang = targetLangs[i]; + var targetFilePath = filePath.replace(".md", "." + targetLang + ".md"); + //var targetFileName = file.replace(".md", "." + targetLang + ".md"); - if(fs.existsSync(targetFilePath)) { - console.log("file already exists", targetFilePath); - }else{ - console.log("creating file", targetFilePath); - //fs.symlinkSync(file, targetFilePath, 'junction'); - fs.copyFileSync(filePath, targetFilePath); - } - } - - } else - return + if (fs.existsSync(targetFilePath)) { + console.log("file already exists", targetFilePath); + } else { + console.log("creating file", targetFilePath); + //fs.symlinkSync(file, targetFilePath, 'junction'); + fs.copyFileSync(filePath, targetFilePath); + } + } + } else return; } async function processFolder(folderPath) { - const files = fs.readdirSync(folderPath); + const files = fs.readdirSync(folderPath); - for (var i in files) { - const file = files[i]; - const filePath = `${folderPath}/${file}`; - const isDir = fs.lstatSync(filePath).isDirectory(); - if (isDir) { - await processFolder(filePath); - } else { - await processFile(filePath, file); - } + for (var i in files) { + const file = files[i]; + const filePath = `${folderPath}/${file}`; + const isDir = fs.lstatSync(filePath).isDirectory(); + if (isDir) { + await processFolder(filePath); + } else { + await processFile(filePath, file); } + } } async function createLinks() { - processFolder(contentDir); + processFolder(contentDir); } readConfigs(); -createLinks(); \ No newline at end of file +createLinks(); diff --git a/i18n/ar.yaml b/i18n/ar.yaml index 2bfeee10..a97e7875 100644 --- a/i18n/ar.yaml +++ b/i18n/ar.yaml @@ -68,4 +68,4 @@ shortcode: recent_articles: "تم النشر مؤخرا" recent: - show_more: "قراءة المزيد" \ No newline at end of file + show_more: "قراءة المزيد" diff --git a/i18n/bg.yaml b/i18n/bg.yaml index 47f4da57..9f0dae2b 100644 --- a/i18n/bg.yaml +++ b/i18n/bg.yaml @@ -26,7 +26,6 @@ article: this_article: "Тази Статия" related_articles: "Подобни" - author: byline_title: "Автор" diff --git a/i18n/bn.yaml b/i18n/bn.yaml index 6c9697a4..770517b7 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -1,72 +1,72 @@ -global: - language: "BN" - -article: - anchor_label: "Anchor" - date: "{{ .Date }}" - date_updated: "সর্বশেষ সম্পাদনার তারিখ: {{ .Date }}" - draft: "খসড়া" - edit_title: "সম্পাদনা করুন" - reading_time: - one: "{{ .Count }} মিনিট" - other: "{{ .Count }} মিনিট" - reading_time_title: "পড়ার সময়" - table_of_contents: "বিষয়সূচী" - word_count: - one: "{{ .Count }} টি শব্দ" - other: "{{ .Count }} টি শব্দ" - views: - one: "{{ .Count }} বার দেখা হয়েছে" - other: "{{ .Count }} বার দেখা হয়েছে" - likes: - one: "{{ .Count }} বার পছন্দ করা হয়েছে" - other: "{{ .Count }} বার পছন্দ করা হয়েছে" - part_of_series: "This article is part of a series." - part: "Part" - this_article: "This Article" - related_articles: "Related" - -author: - byline_title: "লেখক" - -code: - copy: "কপি করুন" - copied: "কপি হয়ে গেছে" - -error: - 404_title: "পেজটি খুঁজে পাওয়া যায়নি :confused:" - 404_error: "Error 404" - 404_description: "মনে হচ্ছে, আপনার অনুরোধ করা পেজটি খুঁজে পাওয়া যায়নি।" - -footer: - dark_appearance: "ডার্ক মোডে স্যুইচ করুন" - light_appearance: "লাইট মোডে স্যুইচ করুন" - powered_by: "{{ .Hugo }} এবং {{ .Blowfish }} দ্বারা চালিত" - -list: - externalurl_title: "অন্য ওয়েবসাইটের লিংক" - no_articles: "এখানে তালিকাভুক্ত করার মতো আপাতত কিছুই নেই।" - -nav: - scroll_to_top_title: "পেজের উপরের দিকে যান" - skip_to_main: "মূল বিষয়ে যান" - -search: - open_button_title: "খুঁজুন (/)" - close_button_title: "বন্ধ করুন (Esc)" - input_placeholder: "খুঁজুন" - -sharing: - email: "ইমেল করুন" - facebook: "ফেসবুকে শেয়ার করুন" - line: "লাইনে শেয়ার করুন" - linkedin: "লিংকডইনে শেয়ার করুন" - pinterest: "পিন্টারেস্টে পিন করুন" - reddit: "রেড্ডিটে জমা দিন" - twitter: "ট্যুইট করুন" - -shortcode: - recent_articles: "সাম্প্রতিক" - -recent: - show_more: "আরো দেখুন" +global: + language: "BN" + +article: + anchor_label: "Anchor" + date: "{{ .Date }}" + date_updated: "সর্বশেষ সম্পাদনার তারিখ: {{ .Date }}" + draft: "খসড়া" + edit_title: "সম্পাদনা করুন" + reading_time: + one: "{{ .Count }} মিনিট" + other: "{{ .Count }} মিনিট" + reading_time_title: "পড়ার সময়" + table_of_contents: "বিষয়সূচী" + word_count: + one: "{{ .Count }} টি শব্দ" + other: "{{ .Count }} টি শব্দ" + views: + one: "{{ .Count }} বার দেখা হয়েছে" + other: "{{ .Count }} বার দেখা হয়েছে" + likes: + one: "{{ .Count }} বার পছন্দ করা হয়েছে" + other: "{{ .Count }} বার পছন্দ করা হয়েছে" + part_of_series: "This article is part of a series." + part: "Part" + this_article: "This Article" + related_articles: "Related" + +author: + byline_title: "লেখক" + +code: + copy: "কপি করুন" + copied: "কপি হয়ে গেছে" + +error: + 404_title: "পেজটি খুঁজে পাওয়া যায়নি :confused:" + 404_error: "Error 404" + 404_description: "মনে হচ্ছে, আপনার অনুরোধ করা পেজটি খুঁজে পাওয়া যায়নি।" + +footer: + dark_appearance: "ডার্ক মোডে স্যুইচ করুন" + light_appearance: "লাইট মোডে স্যুইচ করুন" + powered_by: "{{ .Hugo }} এবং {{ .Blowfish }} দ্বারা চালিত" + +list: + externalurl_title: "অন্য ওয়েবসাইটের লিংক" + no_articles: "এখানে তালিকাভুক্ত করার মতো আপাতত কিছুই নেই।" + +nav: + scroll_to_top_title: "পেজের উপরের দিকে যান" + skip_to_main: "মূল বিষয়ে যান" + +search: + open_button_title: "খুঁজুন (/)" + close_button_title: "বন্ধ করুন (Esc)" + input_placeholder: "খুঁজুন" + +sharing: + email: "ইমেল করুন" + facebook: "ফেসবুকে শেয়ার করুন" + line: "লাইনে শেয়ার করুন" + linkedin: "লিংকডইনে শেয়ার করুন" + pinterest: "পিন্টারেস্টে পিন করুন" + reddit: "রেড্ডিটে জমা দিন" + twitter: "ট্যুইট করুন" + +shortcode: + recent_articles: "সাম্প্রতিক" + +recent: + show_more: "আরো দেখুন" diff --git a/i18n/ca.yaml b/i18n/ca.yaml index 97367788..fe6b794a 100644 --- a/i18n/ca.yaml +++ b/i18n/ca.yaml @@ -72,4 +72,4 @@ shortcode: recent_articles: "Recent" recent: - show_more: "Mostrar més" \ No newline at end of file + show_more: "Mostrar més" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index 01d52554..ab633a21 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -1,72 +1,72 @@ -global: - language: "CS" - -article: - anchor_label: "Kotva" - date: "{{ .Date }}" - date_updated: "Aktualizováno: {{ .Date }}" - draft: "Návrh" - edit_title: "Upravit" - reading_time: - one: "{{ .Count }} min" - other: "{{ .Count }} min" - reading_time_title: "Doba čtení" - table_of_contents: "Obsah" - word_count: - one: "{{ .Count }} slovo" - other: "{{ .Count }} slov" - views: - one: "{{ .Count }} zhlédnutí" - other: "{{ .Count }} zhlédnutí" - likes: - one: "{{ .Count }} líbí se mi" - other: "{{ .Count }} líbí se mi" - part_of_series: "Tento článek patří do série." - part: "Část" - this_article: "Tento článek" - related_articles: "Related" - -author: - byline_title: "Autor" - -code: - copy: "Kopírovat" - copied: "Zkopírováno" - -error: - 404_title: "Stránka nenalezena :confused:" - 404_error: "Error 404" - 404_description: "Zdá se, že stránka neexistuje." - -footer: - dark_appearance: "Přepnout na tmavý režim" - light_appearance: "Přepnout na světlý režim" - powered_by: "Postaveno na technologiích {{ .Hugo }} & {{ .Theme }}" - -list: - externalurl_title: "Odkaz na externí stránku" - no_articles: "Tato sekce zatím neobsahuje žádné články." - -nav: - scroll_to_top_title: "Nahoru" - skip_to_main: "Přeskočit na hlavní obsah" - -search: - open_button_title: "Vyhledat (/)" - close_button_title: "Zavřít (Esc)" - input_placeholder: "Hledat" - -sharing: - email: "Poslat emailem" - facebook: "Sdílet na Facebook" - line: "Sdílejte na LINE" - linkedin: "Sdílet na LinkedIn" - pinterest: "Připnout na Pinterest" - reddit: "Přidat na Reddit" - twitter: "Tweet na Twitter" - -shortcode: - recent_articles: "Nedávné" - -recent: - show_more: "Zobrazit další" +global: + language: "CS" + +article: + anchor_label: "Kotva" + date: "{{ .Date }}" + date_updated: "Aktualizováno: {{ .Date }}" + draft: "Návrh" + edit_title: "Upravit" + reading_time: + one: "{{ .Count }} min" + other: "{{ .Count }} min" + reading_time_title: "Doba čtení" + table_of_contents: "Obsah" + word_count: + one: "{{ .Count }} slovo" + other: "{{ .Count }} slov" + views: + one: "{{ .Count }} zhlédnutí" + other: "{{ .Count }} zhlédnutí" + likes: + one: "{{ .Count }} líbí se mi" + other: "{{ .Count }} líbí se mi" + part_of_series: "Tento článek patří do série." + part: "Část" + this_article: "Tento článek" + related_articles: "Related" + +author: + byline_title: "Autor" + +code: + copy: "Kopírovat" + copied: "Zkopírováno" + +error: + 404_title: "Stránka nenalezena :confused:" + 404_error: "Error 404" + 404_description: "Zdá se, že stránka neexistuje." + +footer: + dark_appearance: "Přepnout na tmavý režim" + light_appearance: "Přepnout na světlý režim" + powered_by: "Postaveno na technologiích {{ .Hugo }} & {{ .Theme }}" + +list: + externalurl_title: "Odkaz na externí stránku" + no_articles: "Tato sekce zatím neobsahuje žádné články." + +nav: + scroll_to_top_title: "Nahoru" + skip_to_main: "Přeskočit na hlavní obsah" + +search: + open_button_title: "Vyhledat (/)" + close_button_title: "Zavřít (Esc)" + input_placeholder: "Hledat" + +sharing: + email: "Poslat emailem" + facebook: "Sdílet na Facebook" + line: "Sdílejte na LINE" + linkedin: "Sdílet na LinkedIn" + pinterest: "Připnout na Pinterest" + reddit: "Přidat na Reddit" + twitter: "Tweet na Twitter" + +shortcode: + recent_articles: "Nedávné" + +recent: + show_more: "Zobrazit další" diff --git a/i18n/de.yaml b/i18n/de.yaml index c679961f..64bb070a 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -13,8 +13,8 @@ article: reading_time_title: "Lesezeit" table_of_contents: "Inhaltsverzeichnis" word_count: - one: "{{ .Count }} Wort" - other: "{{ .Count }} Wörter" + one: "{{ .Count }} Wort" + other: "{{ .Count }} Wörter" part_of_series: "Dieser Artikel ist Teil einer Serie." part: "Teil" this_article: "Dieser Artikel" @@ -42,13 +42,13 @@ list: no_articles: "Es gibt hier noch keine Beiträge." nav: - scroll_to_top_title: "Zum Anfang scrollen" - skip_to_main: "Zum Hauptinhalt springen" + scroll_to_top_title: "Zum Anfang scrollen" + skip_to_main: "Zum Hauptinhalt springen" search: - open_button_title: "Suche (/)" - close_button_title: "Schließen (Esc)" - input_placeholder: "Suchen" + open_button_title: "Suche (/)" + close_button_title: "Schließen (Esc)" + input_placeholder: "Suchen" sharing: email: "Per E-Mail teilen" @@ -62,6 +62,5 @@ sharing: shortcode: recent_articles: "Neue Beiträge" - recent: show_more: "Zeige Mehr" diff --git a/i18n/es.yaml b/i18n/es.yaml index cc4ad74f..862f82bb 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -72,4 +72,4 @@ shortcode: recent_articles: "Reciente" recent: - show_more: "Mostrar más" \ No newline at end of file + show_more: "Mostrar más" diff --git a/i18n/fi.yaml b/i18n/fi.yaml index dcf6d1bf..9a4d0b2d 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -63,4 +63,4 @@ shortcode: recent_articles: "Viimeaikaiset" recent: - show_more: "Näytä Lisää" \ No newline at end of file + show_more: "Näytä Lisää" diff --git a/i18n/he.yaml b/i18n/he.yaml index b0a18486..f738d521 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -63,4 +63,4 @@ shortcode: recent_articles: "חדשים" recent: - show_more: "להראות יותר" \ No newline at end of file + show_more: "להראות יותר" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index 170adfac..7c45457b 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -63,4 +63,4 @@ shortcode: recent_articles: "Friss" recent: - show_more: "Mutass Többet" \ No newline at end of file + show_more: "Mutass Többet" diff --git a/i18n/it.yaml b/i18n/it.yaml index 0e9d1a37..1712a443 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -63,4 +63,4 @@ shortcode: recent_articles: "Recenti" recent: - show_more: "Mostra di Più" \ No newline at end of file + show_more: "Mostra di Più" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 65cafde8..ab3c947c 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -36,7 +36,8 @@ code: error: 404_title: "Strona nie znaleziona :confused:" 404_error: "Błąd 404" - 404_description: "Wydaje się, że strona, którą chcesz wyświetlić, nie istnieje." + 404_description: + "Wydaje się, że strona, którą chcesz wyświetlić, nie istnieje." footer: dark_appearance: "Zmień na tryb ciemny" @@ -69,4 +70,4 @@ shortcode: recent_articles: "Ostatnie artykuły" recent: - show_more: "Pokaż Więcej" \ No newline at end of file + show_more: "Pokaż Więcej" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index 94e28414..99041273 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -66,4 +66,4 @@ shortcode: recent_articles: "Recente" recent: - show_more: "Mostrar Mais" \ No newline at end of file + show_more: "Mostrar Mais" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index 76216d52..eb77bd19 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -63,4 +63,4 @@ shortcode: recent_articles: "Cele mai noi" recent: - show_more: "Afișați mai multe" \ No newline at end of file + show_more: "Afișați mai multe" diff --git a/i18n/th.yaml b/i18n/th.yaml index 5355bdfe..70796ecf 100644 --- a/i18n/th.yaml +++ b/i18n/th.yaml @@ -1,77 +1,77 @@ -global: - language: "TH" - -article: - anchor_label: "จุดยึด" - date: "{{ .Date }}" - date_updated: "อัปเดต: {{ .Date }}" - draft: "ฉบับร่าง" - edit_title: "แก้ไขเนื้อหา" - reading_time: - one: "{{ .Count }} นาที" - other: "{{ .Count }} นาที" - reading_time_title: "ใช้เวลาอ่าน" - table_of_contents: "หัวข้อเนื้อหา" - word_count: - one: "{{ .Count }} คำ" - other: "{{ .Count }} คำ" - views: - one: "{{ .Count }} ครั้ง" - other: "{{ .Count }} ครั้ง" - likes: - one: "{{ .Count }} ไลค์" - other: "{{ .Count }} ไลค์" - part_of_series: "บทความในชุดเดียวกัน" - part: "ตอนที่" - this_article: "บทความนี้" - related_articles: "บทความที่เกี่ยวข้อง" - zen_mode_title: - enable: "เปิดโหมดเซน" - disable: "ปิดโหมดเซน" - -author: - byline_title: "ผู้เขียน" - -code: - copy: "คัดลอก" - copied: "คัดลอกแล้ว" - -error: - 404_title: "ไม่พบหน้าที่ต้องการ :confused:" - 404_error: "ข้อผิดพลาด 404" - 404_description: "ดูเหมือนว่าหน้าที่คุณต้องการจะไม่มีอยู่" - -footer: - dark_appearance: "เปลี่ยนเป็นธีมมืด" - light_appearance: "เปลี่ยนเป็นธีมสว่าง" - powered_by: "สร้างด้วย {{ .Hugo }} & {{ .Theme }}" - -list: - externalurl_title: "ลิงก์ไปยังเว็บไซต์ภายนอก" - no_articles: "ยังไม่มีบทความให้แสดงในส่วนนี้" - -nav: - scroll_to_top_title: "เลื่อนขึ้นด้านบน" - skip_to_main: "ข้ามไปยังเนื้อหาหลัก" - -search: - open_button_title: "ค้นหา (/)" - close_button_title: "ปิด (Esc)" - input_placeholder: "ค้นหา" - -sharing: - email: "ส่งทางอีเมล" - facebook: "แชร์บน Facebook" - linkedin: "แชร์บน LinkedIn" - pinterest: "ปักหมุดบน Pinterest" - reddit: "โพสต์บน Reddit" - twitter: "ทวีตบน Twitter" - bluesky: "โพสต์บน Bluesky" - whatsapp: "แชร์ทาง WhatsApp" - telegram: "แชร์ทาง Telegram" - -shortcode: - recent_articles: "บทความล่าสุด" - -recent: - show_more: "แสดงเพิ่มเติม" +global: + language: "TH" + +article: + anchor_label: "จุดยึด" + date: "{{ .Date }}" + date_updated: "อัปเดต: {{ .Date }}" + draft: "ฉบับร่าง" + edit_title: "แก้ไขเนื้อหา" + reading_time: + one: "{{ .Count }} นาที" + other: "{{ .Count }} นาที" + reading_time_title: "ใช้เวลาอ่าน" + table_of_contents: "หัวข้อเนื้อหา" + word_count: + one: "{{ .Count }} คำ" + other: "{{ .Count }} คำ" + views: + one: "{{ .Count }} ครั้ง" + other: "{{ .Count }} ครั้ง" + likes: + one: "{{ .Count }} ไลค์" + other: "{{ .Count }} ไลค์" + part_of_series: "บทความในชุดเดียวกัน" + part: "ตอนที่" + this_article: "บทความนี้" + related_articles: "บทความที่เกี่ยวข้อง" + zen_mode_title: + enable: "เปิดโหมดเซน" + disable: "ปิดโหมดเซน" + +author: + byline_title: "ผู้เขียน" + +code: + copy: "คัดลอก" + copied: "คัดลอกแล้ว" + +error: + 404_title: "ไม่พบหน้าที่ต้องการ :confused:" + 404_error: "ข้อผิดพลาด 404" + 404_description: "ดูเหมือนว่าหน้าที่คุณต้องการจะไม่มีอยู่" + +footer: + dark_appearance: "เปลี่ยนเป็นธีมมืด" + light_appearance: "เปลี่ยนเป็นธีมสว่าง" + powered_by: "สร้างด้วย {{ .Hugo }} & {{ .Theme }}" + +list: + externalurl_title: "ลิงก์ไปยังเว็บไซต์ภายนอก" + no_articles: "ยังไม่มีบทความให้แสดงในส่วนนี้" + +nav: + scroll_to_top_title: "เลื่อนขึ้นด้านบน" + skip_to_main: "ข้ามไปยังเนื้อหาหลัก" + +search: + open_button_title: "ค้นหา (/)" + close_button_title: "ปิด (Esc)" + input_placeholder: "ค้นหา" + +sharing: + email: "ส่งทางอีเมล" + facebook: "แชร์บน Facebook" + linkedin: "แชร์บน LinkedIn" + pinterest: "ปักหมุดบน Pinterest" + reddit: "โพสต์บน Reddit" + twitter: "ทวีตบน Twitter" + bluesky: "โพสต์บน Bluesky" + whatsapp: "แชร์ทาง WhatsApp" + telegram: "แชร์ทาง Telegram" + +shortcode: + recent_articles: "บทความล่าสุด" + +recent: + show_more: "แสดงเพิ่มเติม" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index d111833b..fa6f1de9 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -63,4 +63,4 @@ shortcode: icon_none: "Icon bulunamadı." recent: - show_more: "Daha Fazla Göster" \ No newline at end of file + show_more: "Daha Fazla Göster" diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index a60ec1f5..5dc0a294 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,17 +1,21 @@ {{ define "RenderImageSimple" -}} - {{ .alt }} + {{ .alt }} {{- end }} {{ define "RenderImageResponsive" -}} {{ .alt }} + src="{{ .resource.RelPermalink }}"> {{- end }} {{ define "RenderImageCaption" -}} @@ -31,6 +35,7 @@ {{- $resource = or ($.Page.Resources.GetMatch $url.String) (resources.Get $url.String) }} {{- end }} +
    {{- if $isRemote }} {{ template "RenderImageSimple" (dict "src" $url.String "alt" $altText) }} diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index b6028bf5..8a39ea94 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,7 +1,10 @@ - - {{- .Text | safeHTML -}} - \ No newline at end of file + {{- end }} + {{- if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} + target="_blank" + {{ end }}> + {{- .Text | safeHTML -}} + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5ab7bcc4..0b71d2ce 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,42 +1,58 @@ - - -{{- partial "head.html" . -}} + {{- partial "head.html" . -}} - - - {{ $header := print "header/" .Site.Params.header.layout ".html" }} - {{ if templates.Exists ( printf "partials/%s" $header ) }} - {{ partial $header . }} - {{ else }} - {{ partial "header/basic.html" . }} - {{ end }} -
    -
    - {{ block "main" . }}{{ end }} - {{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }} - {{- partial "scroll-to-top.html" . -}} - {{ end }} -
    - {{- partial "footer.html" . -}} - {{ if .Site.Params.enableSearch | default false }} - {{- partial "search.html" . -}} + + + + {{ $header := print "header/" .Site.Params.header.layout ".html" }} + {{ if templates.Exists ( printf "partials/%s" $header ) }} + {{ partial $header . }} + {{ else }} + {{ partial "header/basic.html" . }} {{ end }} -
    - -{{ if .Site.Params.buymeacoffee.globalWidget | default false }} - -{{ end }} +
    +
    + {{ block "main" . }}{{ end }} + {{ if and (.Site.Params.footer.showScrollToTop | default true) (gt .WordCount 1) }} + {{- partial "scroll-to-top.html" . -}} + {{ end }} +
    + {{- partial "footer.html" . -}} + {{ if .Site.Params.enableSearch | default false }} + {{- partial "search.html" . -}} + {{ end }} +
    + + {{ if .Site.Params.buymeacoffee.globalWidget | default false }} + + {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c16b4aae..d9378bb2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,108 +1,124 @@ {{ define "main" }} -{{ .Scratch.Set "scope" "single" }} + {{ .Scratch.Set "scope" "single" }} -
    - {{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }} - {{ $heroStyle := .Params.heroStyle }} - {{ if not $heroStyle }}{{ $heroStyle = .Site.Params.article.heroStyle }}{{ end }} - {{ $heroStyle := print "hero/" $heroStyle ".html" }} - {{ if templates.Exists ( printf "partials/%s" $heroStyle ) }} - {{ partial $heroStyle . }} - {{ else }} - {{ partial "hero/basic.html" . }} - {{ end }} - {{ end }} -
    - {{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} - {{ partial "breadcrumbs.html" . }} - {{ end }} -

    - {{ .Title | emojify }} -

    -
    - {{ partial "article-meta/basic.html" (dict "context" . "scope" "single") }} -
    - - {{ $authorsData := .Site.Data.authors }} - {{ $taxonomies := .Site.Taxonomies.authors }} - {{ $baseURL := .Site.BaseURL }} - {{ $taxonomyLink := 0 }} - {{ $showAuthor := 0 }} - - {{ if not (strings.HasSuffix $baseURL "/") }} - {{ $baseURL = delimit (slice $baseURL "/") "" }} +
    + {{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }} + {{ $heroStyle := .Params.heroStyle }} + {{ if not $heroStyle }}{{ $heroStyle = .Site.Params.article.heroStyle }}{{ end }} + {{ $heroStyle := print "hero/" $heroStyle ".html" }} + {{ if templates.Exists ( printf "partials/%s" $heroStyle ) }} + {{ partial $heroStyle . }} + {{ else }} + {{ partial "hero/basic.html" . }} + {{ end }} {{ end }} - {{ if not (.Params.showAuthorBottom | default ( .Site.Params.article.showAuthorBottom | default false)) }} - - {{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }} - {{ $showAuthor = 1 }} - {{ partial "author.html" . }} + +
    + {{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }} + {{ partial "breadcrumbs.html" . }} {{ end }} - - {{ range $author := .Page.Params.authors }} - {{ $authorData := index $authorsData $author }} - {{- if $authorData -}} - {{ range $taxonomyname, $taxonomy := $taxonomies }} - {{ if (eq $taxonomyname $author) }} - {{ $taxonomyLink = delimit (slice $baseURL "authors/" $author "/") "" }} - {{ end }} - {{ end }} - - {{ $finalLink := $taxonomyLink }} - {{ $currentLang := $.Site.Language.Lang }} - {{ if eq $.Site.LanguagePrefix "" }} - {{ $finalLink = printf "%sauthors/%s/" $baseURL $author }} - {{ else }} - {{ $finalLink = printf "%s%s/authors/%s/" $baseURL $currentLang $author }} - {{ end }} - - {{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $finalLink) }} - {{- end -}} - {{ end }} - - {{ if or $taxonomyLink $showAuthor }} -
    - {{ end }} - - {{ end }} - -
    - -
    - - {{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in - .TableOfContents " -
    - - {{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in - .TableOfContents " +

    + {{ .Title | emojify }} +

    +
    + {{ partial "article-meta/basic.html" (dict "context" . "scope" "single") }}
    + + {{ $authorsData := .Site.Data.authors }} + {{ $taxonomies := .Site.Taxonomies.authors }} + {{ $baseURL := .Site.BaseURL }} + {{ $taxonomyLink := 0 }} + {{ $showAuthor := 0 }} + + {{ if not (strings.HasSuffix $baseURL "/") }} + {{ $baseURL = delimit (slice $baseURL "/") "" }} {{ end }} + {{ if not (.Params.showAuthorBottom | default ( .Site.Params.article.showAuthorBottom | default false)) }} + + {{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }} + {{ $showAuthor = 1 }} + {{ partial "author.html" . }} + {{ end }} + + {{ range $author := .Page.Params.authors }} + {{ $authorData := index $authorsData $author }} + {{- if $authorData -}} + {{ range $taxonomyname, $taxonomy := $taxonomies }} + {{ if (eq $taxonomyname $author) }} + {{ $taxonomyLink = delimit (slice $baseURL "authors/" $author "/") "" }} + {{ end }} + {{ end }} + + {{ $finalLink := $taxonomyLink }} + {{ $currentLang := $.Site.Language.Lang }} + {{ if eq $.Site.LanguagePrefix "" }} + {{ $finalLink = printf "%sauthors/%s/" $baseURL $author }} + {{ else }} + {{ $finalLink = printf "%s%s/authors/%s/" $baseURL $currentLang $author }} + {{ end }} + + {{ partial "author-extra.html" (dict "context" . "data" $authorData "link" $finalLink) }} + {{- end -}} + {{ end }} + + {{ if or $taxonomyLink $showAuthor }} +
    + {{ end }} + + {{ end }} + +
    + +
    + {{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in + .TableOfContents " +
    + {{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in + .TableOfContents " +
    + {{ end }} + +
    - {{ partial "series/series.html" . }} +
    {{ .Content }} {{ $defaultReplyByEmail := .Site.Params.replyByEmail }} {{ $replyByEmail := default $defaultReplyByEmail .Params.replyByEmail }} {{ if $replyByEmail }} - + Reply by Email {{ end }}
    - + {{ if (.Params.showAuthorBottom | default ( .Site.Params.article.showAuthorBottom | default false)) }} {{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }} @@ -123,44 +139,48 @@ {{ end }} {{ if or $taxonomyLink $showAuthor }} -
    +
    {{ end }} {{ end }} {{ partial "series/series-closed.html" . }} {{ partial "sharing-links.html" . }} - {{ partial "related.html" . }} + {{ partial "related.html" . }}
    {{ $translations := .AllTranslations }} {{ with .File }} {{ $path := .Path }} - {{range $translations}} + {{ range $translations }} {{ $lang := print "." .Lang ".md" }} {{ $path = replace $path $lang ".md" }} - {{end}} - {{ $jsPage := resources.Get "js/page.js" }} - {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint ($.Site.Params.fingerprintAlgorithm | default "sha512") }} - + {{ end }} + {{ $jsPage := resources.Get "js/page.js" }} + {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint ($.Site.Params.fingerprintAlgorithm | default "sha512") }} + {{ end }} - -
    -
    - {{ partial "article-pagination.html" . }} - {{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }} - {{ if templates.Exists "partials/comments.html" }} -
    -
    -
    - {{ partial "comments.html" . }} -
    -
    - {{ else }} - {{ warnf "[BLOWFISH] Comments are enabled for %s but no comments partial exists." .File.Path }} - {{ end }} - {{ end }} -
    -
    + +
    + {{ partial "article-pagination.html" . }} + {{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }} + {{ if templates.Exists "partials/comments.html" }} +
    +
    +
    + {{ partial "comments.html" . }} +
    +
    + {{ else }} + {{ warnf "[BLOWFISH] Comments are enabled for %s but no comments partial exists." .File.Path }} + {{ end }} + {{ end }} +
    + {{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 0d099b2f..c7e90868 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -1,127 +1,128 @@ {{ define "main" }} + {{ .Scratch.Set "scope" "term" }} + {{ if .Site.Params.term.showHero | default false }} + {{ $heroStyle := print "hero/" .Site.Params.term.heroStyle ".html" }} + {{ if templates.Exists ( printf "partials/%s" $heroStyle ) }} + {{ partial $heroStyle . }} + {{ else }} + {{ partial "hero/basic.html" . }} + {{ end }} + {{- end -}} -{{ .Scratch.Set "scope" "term" }} -{{ if .Site.Params.term.showHero | default false }} -{{ $heroStyle := print "hero/" .Site.Params.term.heroStyle ".html" }} -{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }} -{{ partial $heroStyle . }} -{{ else }} -{{ partial "hero/basic.html" . }} -{{ end }} -{{- end -}} - -{{ $toc := and (.Params.showTableOfContents | default (.Site.Params.term.showTableOfContents | default false)) (in -.TableOfContents " - {{ if .Params.showBreadcrumbs | default (.Site.Params.term.showBreadcrumbs | default false) }} - {{ partial "breadcrumbs.html" . }} - {{ end }} -

    {{ .Title }}

    -
    - {{ partial "article-meta/term.html" (dict "context" . "scope" "single") }} -
    + {{ $toc := and (.Params.showTableOfContents | default (.Site.Params.term.showTableOfContents | default false)) (in + .TableOfContents " + {{ if .Params.showBreadcrumbs | default (.Site.Params.term.showBreadcrumbs | default false) }} + {{ partial "breadcrumbs.html" . }} + {{ end }} +

    {{ .Title }}

    +
    + {{ partial "article-meta/term.html" (dict "context" . "scope" "single") }} +
    {{ if .Content }} -
    - {{ .Content }} -
    - {{ $jsPage := resources.Get "js/page.js" }} - {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - +
    + {{ .Content }} +
    + {{ $jsPage := resources.Get "js/page.js" }} + {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} + {{ end }}
    - {{ if gt .Pages 0 }} + {{ $cardView := .Params.cardView | default (.Site.Params.term.cardView | default false) }} + {{ $cardViewScreenWidth := .Site.Params.term.cardViewScreenWidth | default false }} + {{ $groupByYear := .Params.groupByYear | default ($.Site.Params.term.groupByYear | default false) }} - {{ $cardView := .Params.cardView | default (.Site.Params.term.cardView | default false) }} - {{ $cardViewScreenWidth := .Site.Params.term.cardViewScreenWidth | default false }} - {{ $groupByYear := .Params.groupByYear | default ($.Site.Params.term.groupByYear | default false) }} + {{ if not $cardView }} - {{ if not $cardView }} +
    + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} + {{ if $groupByYear }} +

    + {{ .Key }} +

    + {{ end }} + {{ range .Pages }} + {{ partial "article-link/simple.html" . }} + {{ end }} + {{ end }} +
    + {{ else if and $cardView (not $cardViewScreenWidth) }} + + {{ if $groupByYear }} + + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} +

    + {{ .Key }} +

    +
    + {{ range .Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} +
    + {{ end }} + + {{ else }} + +
    + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} + {{ range .Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} + {{ end }} +
    + {{ end }} + + {{ else if and $cardView $cardViewScreenWidth }} + + {{ if $groupByYear }} + + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} +
    +

    + {{ .Key }} +

    +
    + {{ range .Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} +
    +
    + {{ end }} + + {{ else }} + +
    +
    + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} + {{ range .Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} + {{ end }} +
    +
    + {{ end }} -
    - {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} - {{ if $groupByYear }} -

    - {{ .Key }} -

    {{ end }} - {{ range .Pages }} - {{ partial "article-link/simple.html" . }} - {{ end }} - {{ end }} -
    - - {{ else if and $cardView (not $cardViewScreenWidth) }} - - {{ if $groupByYear }} - - {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} -

    - {{ .Key }} -

    -
    - {{ range .Pages }} - {{ partial "article-link/card.html" . }} - {{ end }} -
    - {{ end }} {{ else }} - -
    - {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} - {{ range .Pages }} - {{ partial "article-link/card.html" . }} - {{ end }} - {{ end }} -
    - - {{ end }} - - {{ else if and $cardView $cardViewScreenWidth }} - - {{ if $groupByYear }} - - {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} -
    -

    - {{ .Key }} -

    -
    - {{ range .Pages }} - {{ partial "article-link/card.html" . }} - {{ end }} +
    +

    + {{ i18n "term.no_articles" | emojify }} +

    -
    - {{ end }} - - {{ else }} - -
    -
    - {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} - {{ range .Pages }} - {{ partial "article-link/card.html" . }} - {{ end }} - {{ end }} -
    -
    - - {{ end }} - - {{end}} - - {{ else }} -
    -

    - {{ i18n "term.no_articles" | emojify }} -

    -
    {{ end }} {{ partial "pagination.html" . }} - {{ end }} +{{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 85b6ab73..5b49159e 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,17 +1,18 @@ {{ define "main" }} + {{ .Scratch.Set "scope" "list" }} + {{ if .Site.Params.taxonomy.showHero | default false }} + {{ $heroStyle := print "hero/" .Site.Params.taxonomy.heroStyle ".html" }} + {{ if templates.Exists ( printf "partials/%s" $heroStyle ) }} + {{ partial $heroStyle . }} + {{ else }} + {{ partial "hero/basic.html" . }} + {{ end }} + {{- end -}} -{{ .Scratch.Set "scope" "list" }} -{{ if .Site.Params.taxonomy.showHero | default false }} -{{ $heroStyle := print "hero/" .Site.Params.taxonomy.heroStyle ".html" }} -{{ if templates.Exists ( printf "partials/%s" $heroStyle ) }} -{{ partial $heroStyle . }} -{{ else }} -{{ partial "hero/basic.html" . }} -{{ end }} -{{- end -}} + {{ $toc := and (.Params.showTableOfContents | default (.Site.Params.taxonomy.showTableOfContents | default false)) (in + .TableOfContents " {{ if .Params.showBreadcrumbs | default (.Site.Params.taxonomy.showBreadcrumbs | default false) }} @@ -28,28 +29,29 @@ {{ .Content }} - {{ $jsPage := resources.Get "js/page.js" }} - {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - + {{ $jsPage := resources.Get "js/page.js" }} + {{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} + {{ end }} {{ if .Site.Params.taxonomy.cardView }} - -
    - {{ range .Data.Terms }} - {{ partial "term-link/card.html" . }} - {{ end }} -
    - +
    + {{ range .Data.Terms }} + {{ partial "term-link/card.html" . }} + {{ end }} +
    {{ else }} -
    - {{ range .Data.Terms }} - {{ partial "term-link/text.html" . }} - {{ end }} -
    - +
    + {{ range .Data.Terms }} + {{ partial "term-link/text.html" . }} + {{ end }} +
    {{ end }} - {{ end }} diff --git a/layouts/partials/analytics/fathom.html b/layouts/partials/analytics/fathom.html index 3b7ac10f..6876c683 100644 --- a/layouts/partials/analytics/fathom.html +++ b/layouts/partials/analytics/fathom.html @@ -1,5 +1,11 @@ {{ if isset site.Params.fathomAnalytics "domain" }} - + {{ else }} - -{{ end }} \ No newline at end of file + +{{ end }} diff --git a/layouts/partials/analytics/ga.html b/layouts/partials/analytics/ga.html index 3523d5a5..fe74bfd9 100644 --- a/layouts/partials/analytics/ga.html +++ b/layouts/partials/analytics/ga.html @@ -1,8 +1,10 @@ - + \ No newline at end of file + diff --git a/layouts/partials/analytics/main.html b/layouts/partials/analytics/main.html index ab39496d..2b3bd197 100644 --- a/layouts/partials/analytics/main.html +++ b/layouts/partials/analytics/main.html @@ -1,12 +1,12 @@ {{ with site.Params.fathomAnalytics.site }} -{{ partial "analytics/fathom.html" }} + {{ partial "analytics/fathom.html" }} {{ end }} {{ with site.Config.Services.GoogleAnalytics.ID }} -{{ partial "analytics/ga.html" }} + {{ partial "analytics/ga.html" }} {{ end }} {{ with site.Params.umamiAnalytics.websiteid }} -{{ partial "analytics/umami.html" }} + {{ partial "analytics/umami.html" }} {{ end }} {{ with site.Params.selineAnalytics.token }} -{{ partial "analytics/seline.html" }} -{{ end }} \ No newline at end of file + {{ partial "analytics/seline.html" }} +{{ end }} diff --git a/layouts/partials/analytics/seline.html b/layouts/partials/analytics/seline.html index 955d40a1..4b261fd5 100644 --- a/layouts/partials/analytics/seline.html +++ b/layouts/partials/analytics/seline.html @@ -1,18 +1,21 @@ - + {{ if .Site.Params.selineAnalytics.enableTrackEvent | default true }} - + seline.track("user:" + type + ":" + title, { + type: type, + title: title, + url: url, + }); + }); + {{ end }} diff --git a/layouts/partials/analytics/umami.html b/layouts/partials/analytics/umami.html index 12af4e61..f0e4321d 100644 --- a/layouts/partials/analytics/umami.html +++ b/layouts/partials/analytics/umami.html @@ -1,23 +1,29 @@ {{ if isset site.Params.umamiAnalytics "domain" }} - + {{ else }} - + {{ end }} {{ if .Site.Params.umamiAnalytics.enableTrackEvent | default true }} - -{{ end }} \ No newline at end of file + +{{ end }} diff --git a/layouts/partials/article-meta/basic.html b/layouts/partials/article-meta/basic.html index 043c40d8..9986e32e 100644 --- a/layouts/partials/article-meta/basic.html +++ b/layouts/partials/article-meta/basic.html @@ -9,112 +9,117 @@ {{ end }} {{ with $context }} -{{ $meta := newScratch }} + {{ $meta := newScratch }} -{{/* Gather partials for this context */}} -{{ $shouldShowDate := false }} -{{ if and (eq $scope "single") (.Params.showDateOnlyInArticle | default (.Site.Params.article.showDateOnlyInArticle | default false)) }} - {{ $shouldShowDate = true }} -{{ end }} - -{{/* showDate has higher priority than showDateOnlyInArticle */}} -{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }} - {{ $shouldShowDate = true }} -{{ else }} - {{ $shouldShowDate = false }} -{{ end }} - -{{ if $shouldShowDate }} - {{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }} -{{ end }} - -{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial -"functions/date.html" .Date) (partial "functions/date.html" .Lastmod)) (gt (.Lastmod | time.Format "2006") 1) }} - {{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }} -{{ end }} - -{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }} - {{ $meta.Add "partials" (slice (partial "meta/word-count.html" .)) }} -{{ end }} - -{{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) -}} - {{ $meta.Add "partials" (slice (partial "meta/reading-time.html" .)) }} -{{ end }} - -{{ if and (not .Params.externalURL) (.Params.showViews | default (.Site.Params.article.showViews | default false)) }} - {{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} -{{ end }} - -{{ if and (not .Params.externalURL) (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }} - {{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} -{{ end }} - -{{ if and (eq $scope "single") (not .Params.externalURL) (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }} - {{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} -{{ end }} - -{{ if and (eq $scope "single") (.Params.showEdit | default (.Site.Params.article.showEdit | default false)) }} - {{ $meta.Add "partials" (slice (partial "meta/edit.html" .)) }} -{{ end }} - -{{ if and (eq $scope "single") (.Params.showZenMode | default (.Site.Params.article.showZenMode | default false)) }} - {{ $meta.Add "partials" (slice (partial "meta/zen-mode.html" .)) }} -{{ end }} - - -
    - {{/* Output partials */}} - {{ with ($meta.Get "partials") }} - {{ delimit . "·" | safeHTML }} + {{/* Gather partials for this context */}} + {{ $shouldShowDate := false }} + {{ if and (eq $scope "single") (.Params.showDateOnlyInArticle | default (.Site.Params.article.showDateOnlyInArticle | default false)) }} + {{ $shouldShowDate = true }} {{ end }} - {{/* Output draft label */}} - {{ if and (eq $scope "single") (and .Draft .Site.Params.article.showDraftLabel) }} - {{ partial "badge.html" (i18n "article.draft" | emojify) }} + {{/* showDate has higher priority than showDateOnlyInArticle */}} + {{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }} + {{ $shouldShowDate = true }} + {{ else }} + {{ $shouldShowDate = false }} {{ end }} -
    -{{ if .Params.showAuthorsBadges | default (.Site.Params.article.showAuthorsBadges | default false) }} -
    - {{ range $taxonomy, $terms := .Site.Taxonomies }} - {{ if (eq $taxonomy "authors")}} - {{ if (gt (len ($context.GetTerms $taxonomy)) 0) }} - {{ range $i, $a := $context.GetTerms $taxonomy }} - {{ if not (eq $i 0) }} ,  {{ end }}
    {{ $a.LinkTitle }}
    + {{ if $shouldShowDate }} + {{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }} {{ end }} - {{ end }} - {{ end }} - {{ end }} -
    -{{ end }} -{{/* Output taxonomies */}} -{{ if .Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false) }} -
    - {{ range $taxonomy, $terms := .Site.Taxonomies }} - {{ if and (not (eq $taxonomy "authors")) (not (eq $taxonomy "series"))}} - {{ if (gt (len ($context.GetTerms $taxonomy)) 0) }} - {{ range $context.GetTerms $taxonomy }} - - {{ partial "badge.html" .LinkTitle }} - + {{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial + "functions/date.html" .Date) (partial "functions/date.html" .Lastmod)) (gt (.Lastmod | time.Format "2006") 1) + }} + {{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }} {{ end }} - {{ end }} - {{ end }} - {{ end }} -
    -{{ end }} -{{/* Output only category */}} -{{ if .Params.showCategoryOnly | default (.Site.Params.article.showCategoryOnly | default false) }} -
    - {{ range (.GetTerms "categories") }} - - {{ partial "badge.html" .LinkTitle }} - -{{ end }} -
    -{{ end }} + {{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }} + {{ $meta.Add "partials" (slice (partial "meta/word-count.html" .)) }} + {{ end }} + + {{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }} + {{ $meta.Add "partials" (slice (partial "meta/reading-time.html" .)) }} + {{ end }} + + {{ if and (not .Params.externalURL) (.Params.showViews | default (.Site.Params.article.showViews | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} + {{ end }} + + {{ if and (not .Params.externalURL) (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} + {{ end }} + + {{ if and (eq $scope "single") (not .Params.externalURL) (.Params.showLikes | default (.Site.Params.article.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} + {{ end }} + + {{ if and (eq $scope "single") (.Params.showEdit | default (.Site.Params.article.showEdit | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/edit.html" .)) }} + {{ end }} + + {{ if and (eq $scope "single") (.Params.showZenMode | default (.Site.Params.article.showZenMode | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/zen-mode.html" .)) }} + {{ end }} + + +
    + {{/* Output partials */}} + {{ with ($meta.Get "partials") }} + {{ delimit . "·" | safeHTML }} + {{ end }} + + {{/* Output draft label */}} + {{ if and (eq $scope "single") (and .Draft .Site.Params.article.showDraftLabel) }} + {{ partial "badge.html" (i18n "article.draft" | emojify) }} + {{ end }} +
    + + {{ if .Params.showAuthorsBadges | default (.Site.Params.article.showAuthorsBadges | default false) }} +
    + {{ range $taxonomy, $terms := .Site.Taxonomies }} + {{ if (eq $taxonomy "authors") }} + {{ if (gt (len ($context.GetTerms $taxonomy)) 0) }} + {{ range $i, $a := $context.GetTerms $taxonomy }} + {{ if not (eq $i 0) }}, {{ end }} +
    + {{ $a.LinkTitle }} +
    + {{ end }} + {{ end }} + {{ end }} + {{ end }} +
    + {{ end }} + + {{/* Output taxonomies */}} + {{ if .Params.showTaxonomies | default (.Site.Params.article.showTaxonomies | default false) }} +
    + {{ range $taxonomy, $terms := .Site.Taxonomies }} + {{ if and (not (eq $taxonomy "authors")) (not (eq $taxonomy "series")) }} + {{ if (gt (len ($context.GetTerms $taxonomy)) 0) }} + {{ range $context.GetTerms $taxonomy }} + + {{ partial "badge.html" .LinkTitle }} + + {{ end }} + {{ end }} + {{ end }} + {{ end }} +
    + {{ end }} + + {{/* Output only category */}} + {{ if .Params.showCategoryOnly | default (.Site.Params.article.showCategoryOnly | default false) }} +
    + {{ range (.GetTerms "categories") }} + + {{ partial "badge.html" .LinkTitle }} + + {{ end }} +
    + {{ end }} {{ end }} diff --git a/layouts/partials/article-meta/list.html b/layouts/partials/article-meta/list.html index 4bf21c5d..23470d71 100644 --- a/layouts/partials/article-meta/list.html +++ b/layouts/partials/article-meta/list.html @@ -4,33 +4,32 @@ {{ $scope := default nil }} {{ if (reflect.IsMap . ) }} -{{ $context = .context }} -{{ $scope = cond (not .scope) nil .scope }} + {{ $context = .context }} + {{ $scope = cond (not .scope) nil .scope }} {{ end }} {{ with $context }} -{{ $meta := newScratch }} + {{ $meta := newScratch }} -{{/* Gather partials for this context */}} + {{/* Gather partials for this context */}} -{{ if (.Params.showViews | default (.Site.Params.list.showViews | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} -{{ end }} - -{{ if (.Params.showLikes | default (.Site.Params.list.showLikes | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} -{{ end }} - -{{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.list.showLikes | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} -{{ end }} - - -
    - {{/* Output partials */}} - {{ with ($meta.Get "partials") }} - {{ delimit . "·" | safeHTML}} + {{ if (.Params.showViews | default (.Site.Params.list.showViews | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} {{ end }} -
    -{{ end }} \ No newline at end of file + {{ if (.Params.showLikes | default (.Site.Params.list.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} + {{ end }} + + {{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.list.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} + {{ end }} + + +
    + {{/* Output partials */}} + {{ with ($meta.Get "partials") }} + {{ delimit . "·" | safeHTML }} + {{ end }} +
    +{{ end }} diff --git a/layouts/partials/article-meta/taxonomy.html b/layouts/partials/article-meta/taxonomy.html index add05bfc..24bdd9d3 100644 --- a/layouts/partials/article-meta/taxonomy.html +++ b/layouts/partials/article-meta/taxonomy.html @@ -4,33 +4,32 @@ {{ $scope := default nil }} {{ if (reflect.IsMap . ) }} -{{ $context = .context }} -{{ $scope = cond (not .scope) nil .scope }} + {{ $context = .context }} + {{ $scope = cond (not .scope) nil .scope }} {{ end }} {{ with $context }} -{{ $meta := newScratch }} + {{ $meta := newScratch }} -{{/* Gather partials for this context */}} + {{/* Gather partials for this context */}} -{{ if (.Params.showViews | default (.Site.Params.taxonomy.showViews | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} -{{ end }} - -{{ if (.Params.showLikes | default (.Site.Params.taxonomy.showLikes | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} -{{ end }} - -{{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.taxonomy.showLikes | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} -{{ end }} - - -
    - {{/* Output partials */}} - {{ with ($meta.Get "partials") }} - {{ delimit . "·" | safeHTML}} + {{ if (.Params.showViews | default (.Site.Params.taxonomy.showViews | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} {{ end }} -
    -{{ end }} \ No newline at end of file + {{ if (.Params.showLikes | default (.Site.Params.taxonomy.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} + {{ end }} + + {{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.taxonomy.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} + {{ end }} + + +
    + {{/* Output partials */}} + {{ with ($meta.Get "partials") }} + {{ delimit . "·" | safeHTML }} + {{ end }} +
    +{{ end }} diff --git a/layouts/partials/article-meta/term.html b/layouts/partials/article-meta/term.html index d5377dc8..ce24091e 100644 --- a/layouts/partials/article-meta/term.html +++ b/layouts/partials/article-meta/term.html @@ -4,33 +4,32 @@ {{ $scope := default nil }} {{ if (reflect.IsMap . ) }} -{{ $context = .context }} -{{ $scope = cond (not .scope) nil .scope }} + {{ $context = .context }} + {{ $scope = cond (not .scope) nil .scope }} {{ end }} {{ with $context }} -{{ $meta := newScratch }} + {{ $meta := newScratch }} -{{/* Gather partials for this context */}} + {{/* Gather partials for this context */}} -{{ if (.Params.showViews | default (.Site.Params.term.showViews | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} -{{ end }} - -{{ if (.Params.showLikes | default (.Site.Params.term.showLikes | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} -{{ end }} - -{{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.term.showLikes | default false)) }} -{{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} -{{ end }} - - -
    - {{/* Output partials */}} - {{ with ($meta.Get "partials") }} - {{ delimit . "·" | safeHTML}} + {{ if (.Params.showViews | default (.Site.Params.term.showViews | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/views.html" .)) }} {{ end }} -
    -{{ end }} \ No newline at end of file + {{ if (.Params.showLikes | default (.Site.Params.term.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes.html" .)) }} + {{ end }} + + {{ if and (eq $scope "single") (.Params.showLikes | default (.Site.Params.term.showLikes | default false)) }} + {{ $meta.Add "partials" (slice (partial "meta/likes_button.html" .)) }} + {{ end }} + + +
    + {{/* Output partials */}} + {{ with ($meta.Get "partials") }} + {{ delimit . "·" | safeHTML }} + {{ end }} +
    +{{ end }} diff --git a/layouts/partials/article-pagination.html b/layouts/partials/article-pagination.html index bb2fe79d..ca2de281 100644 --- a/layouts/partials/article-pagination.html +++ b/layouts/partials/article-pagination.html @@ -7,7 +7,7 @@ {{ $prev = .NextInSection }} {{ end }}
    -
    +
    {{ if $prev }} @@ -21,8 +21,7 @@ >→ - {{ $prev.Title | emojify }} @@ -38,8 +37,7 @@ {{ if $next }} - {{ $next.Title | emojify }} diff --git a/layouts/partials/author-extra.html b/layouts/partials/author-extra.html index 9f983420..640222ad 100644 --- a/layouts/partials/author-extra.html +++ b/layouts/partials/author-extra.html @@ -1,42 +1,56 @@ {{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
    {{ with .data.image }} - {{ $authorImage := resources.Get . }} - {{ if $authorImage }} - {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill "192x192" }} - {{ end }} - - {{ else }} - {{ $authorImage := resources.GetRemote . }} - {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill "192x192" }} - {{ end }} - + {{ $authorImage := resources.Get . }} + {{ if $authorImage }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "192x192" }} {{ end }} + + {{ else }} + {{ $authorImage := resources.GetRemote . }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill "192x192" }} + {{ end }} + + {{ end }} {{ end }}
    - {{ $link := .link}} + {{ $link := .link }} {{ with .data.name | markdownify | emojify }} -
    - {{ i18n "author.byline_title" | markdownify }} -
    -
    - {{ . }} - +
    + {{ i18n "author.byline_title" | markdownify }} +
    + + {{ . }} + {{ end }} {{ with .data.bio | markdownify }} -
    {{ . }}
    +
    {{ . }}
    {{ end }}
    {{ range .data.social }} - {{ range $name, $link := . }} - {{ partial "icon.html" $name }} - {{ end }} + {{ range $name, $link := . }} + {{ partial "icon.html" $name }} + {{ end }} {{ end }}
    diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 233f0e1b..4c4d987d 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -11,28 +11,36 @@ {{ if not $disableImageOptimization }} {{ $authorImage = $authorImage.Fill "192x192" }} {{ end }} - {{ $.Site.Params.Author.name | default + {{ $.Site.Params.Author.name | default {{ else }} {{ $authorImage := resources.GetRemote . }} {{ if not $disableImageOptimization }} {{ $authorImage = $authorImage.Fill "192x192" }} {{ end }} - {{ $.Site.Params.Author.name | default + {{ $.Site.Params.Author.name | default {{ end }} {{ end }}
    {{ with .Site.Params.Author.name | markdownify }} -
    - {{ i18n "author.byline_title" | markdownify }} -
    -
    - {{ . }} -
    +
    + {{ i18n "author.byline_title" | markdownify }} +
    +
    + {{ . }} +
    {{ end }} {{ with .Site.Params.Author.bio | markdownify }} -
    {{ . }}
    +
    {{ . }}
    {{ end }}
    {{ partialCached "author-links.html" . }}
    diff --git a/layouts/partials/badge.html b/layouts/partials/badge.html index 520b6307..e97bf399 100644 --- a/layouts/partials/badge.html +++ b/layouts/partials/badge.html @@ -1,5 +1,6 @@ - + {{ . }} - \ No newline at end of file + diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index f383062b..1acc0b14 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -7,10 +7,8 @@ {{ else if not .p1.IsHome }} {{ template "crumb" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ end }} -
  • - + {{ if .p1.Title }} {{- .p1.Title -}} {{ else }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index faf3cc9c..fb4918ff 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,50 +2,53 @@ {{/* Footer menu */}} {{ if .Site.Params.footer.showMenu | default true }} {{ if .Site.Menus.footer }} - + {{ end }} {{ end }}
    - {{/* Copyright */}} {{ if .Site.Params.footer.showCopyright | default true }} -

    - {{- with replace .Site.Params.copyright "{ year }" now.Year }} - {{ . | markdownify }} - {{- else }} - © - {{ now.Format "2006" }} - {{ .Site.Params.Author.name | markdownify }} - {{- end }} -

    +

    + {{- with replace .Site.Params.copyright "{ year }" now.Year }} + {{ . | markdownify }} + {{- else }} + © + {{ now.Format "2006" }} + {{ .Site.Params.Author.name | markdownify }} + {{- end }} +

    {{ end }} {{/* Theme attribution */}} {{ if .Site.Params.footer.showThemeAttribution | default true }} -

    - {{ $hugo := printf `Hugo` - }} - {{ $blowfish := printf `Blowfish` }} - {{ i18n "footer.powered_by" (dict "Hugo" $hugo "Theme" $blowfish) | safeHTML }} -

    +

    + {{ $hugo := printf `Hugo` + }} + {{ $blowfish := printf `Blowfish` + }} + {{ i18n "footer.powered_by" (dict "Hugo" $hugo "Theme" $blowfish) | safeHTML }} +

    {{ end }}
    @@ -57,12 +60,14 @@ scrollOffset: 0, }) {{ end }} - - {{ $jsProcess := resources.Get "js/process.js" }} + {{ $jsProcess := resources.Get "js/process.js" }} {{ $jsProcess = $jsProcess | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - + {{/* Extend footer - eg. for extra scripts, etc. */}} {{ if templates.Exists "partials/extend-footer.html" }} - {{ partialCached "extend-footer.html" . }} + {{ partialCached "extend-footer.html" . }} {{ end }} diff --git a/layouts/partials/functions/uid.html b/layouts/partials/functions/uid.html index f4269dc4..0eae8527 100644 --- a/layouts/partials/functions/uid.html +++ b/layouts/partials/functions/uid.html @@ -10,4 +10,4 @@ {{ end }} {{ end }} -{{ return md5 $uid }} \ No newline at end of file +{{ return md5 $uid }} diff --git a/layouts/partials/header/fixed-fill-blur.html b/layouts/partials/header/fixed-fill-blur.html index b685a045..1e5c5c73 100644 --- a/layouts/partials/header/fixed-fill-blur.html +++ b/layouts/partials/header/fixed-fill-blur.html @@ -1,10 +1,16 @@
    - +
    {{ partial "header/basic.html" . }}
    {{ $backgroundBlur := resources.Get "js/background-blur.js" }} {{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - + diff --git a/layouts/partials/header/fixed-gradient.html b/layouts/partials/header/fixed-gradient.html index 054af970..369c2653 100644 --- a/layouts/partials/header/fixed-gradient.html +++ b/layouts/partials/header/fixed-gradient.html @@ -1,11 +1,18 @@
    -
    +
    - +
    {{ partial "header/basic.html" . }}
    {{ $backgroundBlur := resources.Get "js/background-blur.js" }} {{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - + diff --git a/layouts/partials/header/fixed.html b/layouts/partials/header/fixed.html index 116d6245..38fe5e3a 100644 --- a/layouts/partials/header/fixed.html +++ b/layouts/partials/header/fixed.html @@ -1,10 +1,16 @@
    - +
    {{ partial "header/basic.html" . }}
    {{ $backgroundBlur := resources.Get "js/background-blur.js" }} {{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - + diff --git a/layouts/partials/header/header-mobile-option-nested.html b/layouts/partials/header/header-mobile-option-nested.html index dd2f297f..bcbd0a2a 100644 --- a/layouts/partials/header/header-mobile-option-nested.html +++ b/layouts/partials/header/header-mobile-option-nested.html @@ -1,31 +1,39 @@
  • - - {{ if .Pre }} - - {{ partial "icon.html" .Pre }} - - {{ end }} -

    - {{ .Name | markdownify }} -

    - - {{ partial "icon.html" "chevron-down" }} - -
    + + {{ if .Pre }} + + {{ partial "icon.html" .Pre }} + + {{ end }} +

    + {{ .Name | markdownify }} +

    + + {{ partial "icon.html" "chevron-down" }} + +
  • {{ range .Children }} -
  • - - {{ if .Pre }} - - {{ partial "icon.html" .Pre }} +
  • + + {{ if .Pre }} + + {{ partial "icon.html" .Pre }} - {{ end }} -

    - {{ .Name | markdownify }} -

    + {{ end }} +

    + {{ .Name | markdownify }} +

    -
  • +
  • {{ end }}
  • diff --git a/layouts/partials/header/header-mobile-option-simple.html b/layouts/partials/header/header-mobile-option-simple.html index f7594f16..98a77b33 100644 --- a/layouts/partials/header/header-mobile-option-simple.html +++ b/layouts/partials/header/header-mobile-option-simple.html @@ -1,13 +1,19 @@
  • - - {{ if .Pre }} -
    - {{ partial "icon.html" .Pre }} -
    - {{ end }} -

    - {{ .Name | markdownify }} -

    -
    + + {{ if .Pre }} +
    + {{ partial "icon.html" .Pre }} +
    + {{ end }} +

    + {{ .Name | markdownify }} +

    +
  • diff --git a/layouts/partials/header/header-mobile-option.html b/layouts/partials/header/header-mobile-option.html index 17031197..ab37b369 100644 --- a/layouts/partials/header/header-mobile-option.html +++ b/layouts/partials/header/header-mobile-option.html @@ -1,4 +1,4 @@ -{{ if .HasChildren }} +{{ if .HasChildren }} {{ partial "header/header-mobile-option-nested.html" . }} {{ else }} {{ partial "header/header-mobile-option-simple.html" . }} diff --git a/layouts/partials/header/header-option-nested.html b/layouts/partials/header/header-option-nested.html index 7f7a6322..cf995f5d 100644 --- a/layouts/partials/header/header-option-nested.html +++ b/layouts/partials/header/header-option-nested.html @@ -1,12 +1,19 @@
    {{ if .Pre }} - - {{ partial "icon.html" .Pre }} - + + {{ partial "icon.html" .Pre }} + {{ end }} - + {{ .Name | markdownify }} @@ -17,17 +24,21 @@ diff --git a/layouts/partials/header/header-option-simple.html b/layouts/partials/header/header-option-simple.html index b8d324d4..a934a5b9 100644 --- a/layouts/partials/header/header-option-simple.html +++ b/layouts/partials/header/header-option-simple.html @@ -1,11 +1,13 @@ - - {{ if .Pre }} - - {{ partial "icon.html" .Pre }} + + {{ if .Pre }} + + {{ partial "icon.html" .Pre }} - {{ end }} -

    - {{ .Name | markdownify }} -

    + {{ end }} +

    + {{ .Name | markdownify }} +

    diff --git a/layouts/partials/header/header-option.html b/layouts/partials/header/header-option.html index 2a27da7d..73cc1b77 100644 --- a/layouts/partials/header/header-option.html +++ b/layouts/partials/header/header-option.html @@ -1,4 +1,4 @@ -{{ if .HasChildren }} +{{ if .HasChildren }} {{ partial "header/header-option-nested.html" . }} {{ else }} {{ partial "header/header-option-simple.html" . }} diff --git a/layouts/partials/hero/basic.html b/layouts/partials/hero/basic.html index f1928003..54e84ed3 100644 --- a/layouts/partials/hero/basic.html +++ b/layouts/partials/hero/basic.html @@ -6,28 +6,32 @@ {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{ if and .Params.featureimage (not $featured) }} -{{- $url:= .Params.featureimage -}} -{{ $featured = resources.GetRemote $url }} + {{- $url:= .Params.featureimage -}} + {{ $featured = resources.GetRemote $url }} {{ end }} {{- if not $featured }} - {{ with .Site.Params.defaultBackgroundImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $featured = resources.GetRemote . }} - {{ else }} - {{ $featured = resources.Get . }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $featured = resources.GetRemote . }} + {{ else }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} - {{ end }} {{ end -}} {{- with $featured -}} - {{ if or $disableImageOptimization (strings.HasSuffix $featured ".svg")}} - {{ with . }} -
    - {{ end }} - {{ else }} - {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} -
    - {{ end }} + {{ if or $disableImageOptimization (strings.HasSuffix $featured ".svg") }} + {{ with . }} +
    {{ end }} -{{- end -}} \ No newline at end of file + {{ else }} + {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} +
    + {{ end }} + {{ end }} +{{- end -}} diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html index d4489d41..7fbaeba6 100644 --- a/layouts/partials/hero/big.html +++ b/layouts/partials/hero/big.html @@ -6,55 +6,71 @@ {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{ if .Params.featureimage }} -{{- $url:= .Params.featureimage -}} -{{- if not $featured }}{{ $featured = resources.GetRemote $url }}{{ end -}} + {{- $url:= .Params.featureimage -}} + {{- if not $featured }}{{ $featured = resources.GetRemote $url }}{{ end -}} {{ end }} {{- if not $featured }} - {{ with .Site.Params.defaultBackgroundImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $featured = resources.GetRemote . }} - {{ else }} - {{ $featured = resources.Get . }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $featured = resources.GetRemote . }} + {{ else }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} - {{ end }} {{ end -}} {{ $caption := "" }} {{ if .Params.featureimagecaption }} -{{- $caption = .Params.featureimagecaption -}} + {{- $caption = .Params.featureimagecaption -}} {{ end }} {{- $alt := .Page.Title -}} {{- with .Page.Params.alt }}{{ $alt = . }}{{ end -}} {{- with $featured -}} - {{ if strings.HasSuffix $featured ".svg" }} - {{ with . }} -
    - {{ $alt }} - {{ if $caption }} -
    {{ $caption | markdownify }}
    - {{end}} -
    - {{ end }} - {{ else if $disableImageOptimization }} - {{ with . }} -
    - {{ $alt }} - {{ if $caption }} -
    {{ $caption | markdownify }}
    - {{end}} -
    - {{ end }} - {{ else }} - {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} -
    - {{ $alt }} - {{ if $caption }} -
    {{ $caption | markdownify }}
    - {{end}} -
    + {{ if strings.HasSuffix $featured ".svg" }} + {{ with . }} +
    + {{ $alt }} + {{ if $caption }} +
    + {{ $caption | markdownify }} +
    {{ end }} +
    {{ end }} -{{- end -}} \ No newline at end of file + {{ else if $disableImageOptimization }} + {{ with . }} +
    + {{ $alt }} + {{ if $caption }} +
    + {{ $caption | markdownify }} +
    + {{ end }} +
    + {{ end }} + {{ else }} + {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} +
    + {{ $alt }} + {{ if $caption }} +
    + {{ $caption | markdownify }} +
    + {{ end }} +
    + {{ end }} + {{ end }} +{{- end -}} diff --git a/layouts/partials/hero/thumbAndBackground.html b/layouts/partials/hero/thumbAndBackground.html index d4cff87b..2a8448cb 100644 --- a/layouts/partials/hero/thumbAndBackground.html +++ b/layouts/partials/hero/thumbAndBackground.html @@ -4,13 +4,13 @@ {{- $background := $images.GetMatch "*background*" -}} {{- if not $background }} - {{ with .Site.Params.defaultBackgroundImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $background = resources.GetRemote . }} - {{ else }} - {{ $background = resources.Get . }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $background = resources.GetRemote . }} + {{ else }} + {{ $background = resources.Get . }} + {{ end }} {{ end }} - {{ end }} {{ end -}} {{- if not $background }}{{ $background = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} @@ -18,69 +18,81 @@ {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{ if .Params.featureimage }} -{{- $url:= .Params.featureimage -}} -{{- if not $featured }}{{ $featured = resources.GetRemote $url }}{{ end -}} + {{- $url:= .Params.featureimage -}} + {{- if not $featured }}{{ $featured = resources.GetRemote $url }}{{ end -}} {{ end }} {{- if not $featured }}{{ $featured = $images.GetMatch "*background*" }}{{ end -}} {{- if not $featured }} - {{ with .Site.Params.defaultFeaturedImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $featured = resources.GetRemote . }} - {{ else }} - {{ $featured = resources.Get . }} + {{ with .Site.Params.defaultFeaturedImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $featured = resources.GetRemote . }} + {{ else }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} - {{ end }} {{ end -}} -{{ $isParentList := eq (.Scratch.Get "scope") "list" }} -{{ $shouldBlur := $.Params.layoutBackgroundBlur | default (or - (and ($.Site.Params.article.layoutBackgroundBlur | default true) (not $isParentList)) - (and ($.Site.Params.list.layoutBackgroundBlur | default true) ($isParentList)) - ) }} +{{ $isParentList := eq (.Scratch.Get "scope") "list" }} +{{ $shouldBlur := $.Params.layoutBackgroundBlur | default (or + (and ($.Site.Params.article.layoutBackgroundBlur | default true) (not $isParentList)) + (and ($.Site.Params.list.layoutBackgroundBlur | default true) ($isParentList)) + ) +}} {{- with $featured -}} -{{ if or $disableImageOptimization (strings.HasSuffix . ".svg")}} -{{ with . }} -
    -{{ end }} -{{ else }} -{{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} -
    -{{ end }} -{{ end }} + {{ if or $disableImageOptimization (strings.HasSuffix . ".svg") }} + {{ with . }} +
    + {{ end }} + {{ else }} + {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} +
    + {{ end }} + {{ end }} {{- end -}} {{- with $background -}} -{{ if or $disableImageOptimization (strings.HasSuffix . ".svg")}} -{{ with . }} -
    -
    -
    -
    -
    -
    {{ end }} -{{ else }} -{{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} -
    -
    -
    -
    -
    -
    {{ end }} -{{ end }} + {{ if or $disableImageOptimization (strings.HasSuffix . ".svg") }} + {{ with . }} +
    +
    +
    +
    + {{ end }} + {{ else }} + {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }} +
    +
    +
    +
    + {{ end }} + {{ end }} {{- end -}} {{ if $shouldBlur | default false }} -
    -{{ $backgroundBlur := resources.Get "js/background-blur.js" }} -{{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - +
    + {{ $backgroundBlur := resources.Get "js/background-blur.js" }} + {{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} + {{ end }} - diff --git a/layouts/partials/home/background.html b/layouts/partials/home/background.html index 66feca3a..c0748b43 100644 --- a/layouts/partials/home/background.html +++ b/layouts/partials/home/background.html @@ -1,84 +1,102 @@ {{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
    -
    -
    -
    -
    -
    - {{ $homepageImage := "" }} - {{ with .Site.Params.defaultBackgroundImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $homepageImage = resources.GetRemote . }} - {{ else }} - {{ $homepageImage = resources.Get . }} - {{ end }} - {{ end }} - {{ with .Site.Params.homepage.homepageImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $homepageImage = resources.GetRemote . }} - {{ else }} - {{ $homepageImage = resources.Get . }} - {{ end }} - {{ end }} - {{ if $homepageImage }} - -
    -
    -
    -
    - {{ end }} -
    -
    - {{ with .Site.Params.Author.image }} - {{ $authorImage := "" }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $authorImage = resources.GetRemote . }} - {{ else }} - {{ $authorImage = resources.Get . }} - {{ end }} - {{ if $authorImage }} - {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} - {{ end }} - {{ $.Site.Params.Author.name | default - {{ end }} - {{ end }} -

    - {{ .Site.Params.Author.name | default .Site.Title }} -

    - {{ with .Site.Params.Author.headline }} -

    - {{ . | markdownify }} -

    - {{ end }} -
    - {{ with .Site.Params.Author.links }} -
    - {{ range $links := . }} - {{ range $name, $url := $links }} - {{ partial - "icon.html" $name }} - {{ end }} - {{ end }} -
    - {{ end }} -
    -
    {{ .Content }}
    -
    -
    +
    +
    +
    +
    +
    + {{ $homepageImage := "" }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ with .Site.Params.homepage.homepageImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ if $homepageImage }} + +
    +
    + {{ end }}
    +
    + {{ with .Site.Params.Author.image }} + {{ $authorImage := "" }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $authorImage = resources.GetRemote . }} + {{ else }} + {{ $authorImage = resources.Get . }} + {{ end }} + {{ if $authorImage }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} + {{ end }} + {{ $.Site.Params.Author.name | default + {{ end }} + {{ end }} +

    + {{ .Site.Params.Author.name | default .Site.Title }} +

    + {{ with .Site.Params.Author.headline }} +

    + {{ . | markdownify }} +

    + {{ end }} +
    + {{ with .Site.Params.Author.links }} +
    + {{ range $links := . }} + {{ range $name, $url := $links }} + {{ partial + "icon.html" $name + }} + {{ end }} + {{ end }} +
    + {{ end }} +
    +
    {{ .Content }}
    +
    +
    +
    - {{ partial "recent-articles/main.html" . }} + {{ partial "recent-articles/main.html" . }}
    {{ if .Site.Params.homepage.layoutBackgroundBlur | default false }} -
    -{{ $backgroundBlur := resources.Get "js/background-blur.js" }} -{{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - +
    + {{ $backgroundBlur := resources.Get "js/background-blur.js" }} + {{ $backgroundBlur = $backgroundBlur | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} + {{ end }} diff --git a/layouts/partials/home/card.html b/layouts/partials/home/card.html index 9a6c7f2b..f43cf74e 100644 --- a/layouts/partials/home/card.html +++ b/layouts/partials/home/card.html @@ -1,43 +1,44 @@
    - -
    -
    -
    -
    - {{ with .Title }} -
    -

    {{ . | emojify }}

    -
    - {{ end }} -
    {{ .Content }}
    -
    -
    -
    -
    - {{ $homepageImage := "" }} - {{ with .Site.Params.defaultBackgroundImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $homepageImage = resources.GetRemote . }} - {{ else }} - {{ $homepageImage = resources.Get . }} - {{ end }} - {{ end }} - {{ with .Site.Params.homepage.homepageImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $homepageImage = resources.GetRemote . }} - {{ else }} - {{ $homepageImage = resources.Get . }} - {{ end }} - {{ end }} - {{ if $homepageImage }} - - {{ end }} -
    -
    + +
    +
    +
    +
    + {{ with .Title }} +
    +

    {{ . | emojify }}

    +
    + {{ end }} +
    {{ .Content }}
    +
    +
    +
    +
    + {{ $homepageImage := "" }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ with .Site.Params.homepage.homepageImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ if $homepageImage }} + + {{ end }}
    +
    +
    - {{ partial "recent-articles/main.html" . }} + {{ partial "recent-articles/main.html" . }}
    diff --git a/layouts/partials/home/hero.html b/layouts/partials/home/hero.html index aadea0b2..9c758064 100644 --- a/layouts/partials/home/hero.html +++ b/layouts/partials/home/hero.html @@ -1,99 +1,116 @@ {{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }} {{ $disableHeroImageFilter := .Site.Params.homepage.disableHeroImageFilter | default false }}
    -
    -
    -
    -
    -
    - {{ $homepageImage := "" }} - {{ with .Site.Params.defaultBackgroundImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $homepageImage = resources.GetRemote . }} - {{ else }} - {{ $homepageImage = resources.Get . }} - {{ end }} - {{ end }} - {{ with .Site.Params.homepage.homepageImage }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $homepageImage = resources.GetRemote . }} - {{ else }} - {{ $homepageImage = resources.Get . }} - {{ end }} - {{ end }} - {{ if $homepageImage }} - - {{ if not $disableHeroImageFilter }} -
    -
    - {{ else }} -
    -
    - {{ end }} - {{ end }} -
    -
    - {{ with .Site.Params.Author.image }} - {{ $authorImage := "" }} - {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} - {{ $authorImage = resources.GetRemote . }} - {{ else }} - {{ $authorImage = resources.Get . }} - {{ end }} - {{ if $authorImage }} - {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} - {{ end }} - {{ $.Site.Params.Author.name | default - {{ end }} - {{ end }} - {{ if not $disableHeroImageFilter }} -

    - {{ .Site.Params.Author.name | default .Site.Title }} -

    - {{ with .Site.Params.Author.headline }} -

    - {{ . | markdownify }} -

    - {{ end }} - {{ else }} -

    - {{ .Site.Params.Author.name | default .Site.Title }} -

    - {{ with .Site.Params.Author.headline }} -

    - {{ . | markdownify }} -

    - {{ end }} - {{ end }} -
    - {{ with .Site.Params.Author.links }} -
    - {{ range $links := . }} - {{ range $name, $url := $links }} - {{ if not $disableHeroImageFilter }} - {{ partial - "icon.html" $name }} - {{ else }} - {{ partial - "icon.html" $name }} - {{ end }} - {{ end }} - {{ end }} -
    - {{ end }} -
    -
    {{ .Content }}
    -
    -
    +
    +
    +
    +
    +
    + {{ $homepageImage := "" }} + {{ with .Site.Params.defaultBackgroundImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ with .Site.Params.homepage.homepageImage }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $homepageImage = resources.GetRemote . }} + {{ else }} + {{ $homepageImage = resources.Get . }} + {{ end }} + {{ end }} + {{ if $homepageImage }} + + {{ if not $disableHeroImageFilter }} +
    + {{ else }} +
    + {{ end }} + {{ end }}
    +
    + {{ with .Site.Params.Author.image }} + {{ $authorImage := "" }} + {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} + {{ $authorImage = resources.GetRemote . }} + {{ else }} + {{ $authorImage = resources.Get . }} + {{ end }} + {{ if $authorImage }} + {{ if not $disableImageOptimization }} + {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} + {{ end }} + {{ $.Site.Params.Author.name | default + {{ end }} + {{ end }} + {{ if not $disableHeroImageFilter }} +

    + {{ .Site.Params.Author.name | default .Site.Title }} +

    + {{ with .Site.Params.Author.headline }} +

    + {{ . | markdownify }} +

    + {{ end }} + {{ else }} +

    + {{ .Site.Params.Author.name | default .Site.Title }} +

    + {{ with .Site.Params.Author.headline }} +

    + {{ . | markdownify }} +

    + {{ end }} + {{ end }} +
    + {{ with .Site.Params.Author.links }} +
    + {{ range $links := . }} + {{ range $name, $url := $links }} + {{ if not $disableHeroImageFilter }} + {{ partial + "icon.html" $name + }} + {{ else }} + {{ partial + "icon.html" $name + }} + {{ end }} + {{ end }} + {{ end }} +
    + {{ end }} +
    +
    {{ .Content }}
    +
    +
    +
    - {{ partial "recent-articles/main.html" . }} + {{ partial "recent-articles/main.html" . }}
    diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index e415db19..e12ba8fd 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -1,5 +1,6 @@ {{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }} -
    @@ -14,17 +15,21 @@ {{ if not $disableImageOptimization }} {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} {{ end }} - {{ $.Site.Params.Author.name | default + {{ $.Site.Params.Author.name | default {{ end }} {{ end }}

    {{ .Site.Params.Author.name | default .Site.Title }}

    {{ with .Site.Params.Author.headline }} -

    - {{ . | markdownify }} -

    +

    + {{ . | markdownify }} +

    {{ end }}
    {{ partialCached "author-links.html" . }} diff --git a/layouts/partials/meta/likes.html b/layouts/partials/meta/likes.html index 9cb5ff6d..abe34037 100644 --- a/layouts/partials/meta/likes.html +++ b/layouts/partials/meta/likes.html @@ -8,15 +8,18 @@ {{ $translations := .AllTranslations }} {{ with .File }} {{ $path := .Path }} - {{range $translations}} + {{ range $translations }} {{ $lang := print "." .Lang ".md" }} {{ $path = replace $path $lang ".md" }} - {{end}} + {{ end }} {{ $id = delimit (slice "likes_" $path) "" }} {{ end }} {{ end }} - loading + title="likes" + >loading {{ partial "icon.html" "heart" }} - \ No newline at end of file + diff --git a/layouts/partials/meta/likes_button.html b/layouts/partials/meta/likes_button.html index 164d5c81..a0572657 100644 --- a/layouts/partials/meta/likes_button.html +++ b/layouts/partials/meta/likes_button.html @@ -1,10 +1,15 @@ - + -{{- /* Trim EOF */ -}} \ No newline at end of file +{{- /* Trim EOF */ -}} diff --git a/layouts/partials/meta/views.html b/layouts/partials/meta/views.html index fc4a3868..b7c96dac 100644 --- a/layouts/partials/meta/views.html +++ b/layouts/partials/meta/views.html @@ -8,13 +8,18 @@ {{ $translations := .AllTranslations }} {{ with .File }} {{ $path := .Path }} - {{range $translations}} + {{ range $translations }} {{ $lang := print "." .Lang ".md" }} {{ $path = replace $path $lang ".md" }} - {{end}} + {{ end }} {{ $id = delimit (slice "views_" $path) "" }} {{ end }} {{ end }} - loading + loading {{ partial "icon.html" "eye" }} - \ No newline at end of file + diff --git a/layouts/partials/meta/zen-mode.html b/layouts/partials/meta/zen-mode.html index 94e0fdf3..df031f07 100644 --- a/layouts/partials/meta/zen-mode.html +++ b/layouts/partials/meta/zen-mode.html @@ -1,14 +1,19 @@ {{ $jsZenMode := resources.Get "js/zen-mode.js" }} {{ $jsZenMode = $jsZenMode | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }} - + + - - {{ partial "icon.html" "expand" }} - - \ No newline at end of file + + {{ partial "icon.html" "expand" }} + + diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index c5233132..a89ffb40 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -2,13 +2,14 @@
      {{- .Scratch.Set "paginator.ellipsed" false -}} {{ if $.Paginator.HasPrev }} -
    • - + -
    • + >← + {{ end }} {{- range $.Paginator.Pagers -}} {{- $right := sub .TotalPages .PageNumber -}} @@ -24,12 +25,13 @@ {{- if $showNumber -}}
    • {{ .PageNumber }} -
    • + href="{{ .URL }}" + class="{{ if eq . $.Paginator }} + bg-primary-200 dark:bg-primary-400 dark:text-neutral-800 + {{ end }} mx-1 block min-w-[1.8rem] rounded text-center hover:bg-primary-600 hover:text-neutral" + >{{ .PageNumber }} + {{- else if ($.Scratch.Get "paginator.shouldEllipse") -}}
    • @@ -37,13 +39,14 @@ {{- end -}} {{- end -}} {{ if $.Paginator.HasNext }} -
    • - + -
    • + >→ + {{ end }}
    -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/layouts/partials/recent-articles/cardview-fullwidth.html b/layouts/partials/recent-articles/cardview-fullwidth.html index 97e41b42..9af5738a 100644 --- a/layouts/partials/recent-articles/cardview-fullwidth.html +++ b/layouts/partials/recent-articles/cardview-fullwidth.html @@ -1,12 +1,13 @@ {{ $recentArticles := 5 }} {{ $recentArticles = .Site.Params.homepage.showRecentItems }} +
    -
    +
    {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" - .Site.Params.mainSections)).Pages }} - {{ partial "article-link/card.html" . }} + .Site.Params.mainSections)).Pages + }} + {{ partial "article-link/card.html" . }} {{ end }}
    -
    \ No newline at end of file +
    diff --git a/layouts/partials/recent-articles/cardview.html b/layouts/partials/recent-articles/cardview.html index 9da7177c..1e925559 100644 --- a/layouts/partials/recent-articles/cardview.html +++ b/layouts/partials/recent-articles/cardview.html @@ -1,9 +1,11 @@ {{ $recentArticles := 5 }} {{ $recentArticles = .Site.Params.homepage.showRecentItems }} +
    {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" - .Site.Params.mainSections)).Pages }} - {{ partial "article-link/card.html" . }} + .Site.Params.mainSections)).Pages + }} + {{ partial "article-link/card.html" . }} {{ end }} -
    \ No newline at end of file + diff --git a/layouts/partials/recent-articles/list.html b/layouts/partials/recent-articles/list.html index 4e32dc51..9f3b763a 100644 --- a/layouts/partials/recent-articles/list.html +++ b/layouts/partials/recent-articles/list.html @@ -1,9 +1,9 @@ {{ $recentArticles := 5 }} {{ $recentArticles = .Site.Params.homepage.showRecentItems }} +
    - {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)).Pages - }} - {{ partial "article-link/simple.html" . }} + {{ range first $recentArticles (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections)).Pages }} + {{ partial "article-link/simple.html" . }} {{ end }} -
    \ No newline at end of file + diff --git a/layouts/partials/recent-articles/main.html b/layouts/partials/recent-articles/main.html index 65d722bb..418ee838 100644 --- a/layouts/partials/recent-articles/main.html +++ b/layouts/partials/recent-articles/main.html @@ -1,30 +1,30 @@ {{ $recentArticles := 5 }} {{ $showMoreLinkDest := "/posts/" }} {{ if .Site.Params.homepage.showRecent | default false }} -{{ if index .Site.Params.homepage "showRecentItems" }} -{{ $recentArticles = .Site.Params.homepage.showRecentItems }} -{{ end }} -

    {{ i18n "shortcode.recent_articles" | emojify }}

    + {{ if index .Site.Params.homepage "showRecentItems" }} + {{ $recentArticles = .Site.Params.homepage.showRecentItems }} + {{ end }} +

    {{ i18n "shortcode.recent_articles" | emojify }}

    -{{ if and .Site.Params.homepage.cardView (not .Site.Params.homepage.cardViewScreenWidth) | default false }} - {{ partial "recent-articles/cardview.html" . }} -{{ else if and .Site.Params.homepage.cardView .Site.Params.homepage.cardViewScreenWidth | default false }} - {{ partial "recent-articles/cardview-fullwidth.html" . }} -{{ else }} - {{ partial "recent-articles/list.html" . }} -{{ end }} + {{ if and .Site.Params.homepage.cardView (not .Site.Params.homepage.cardViewScreenWidth) | default false }} + {{ partial "recent-articles/cardview.html" . }} + {{ else if and .Site.Params.homepage.cardView .Site.Params.homepage.cardViewScreenWidth | default false }} + {{ partial "recent-articles/cardview-fullwidth.html" . }} + {{ else }} + {{ partial "recent-articles/list.html" . }} + {{ end }} -{{ if .Site.Params.homepage.showMoreLink | default false }} -{{ if index .Site.Params.homepage "showRecentItems" }} -{{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }} -{{ end }} - -{{ end }} + {{ if .Site.Params.homepage.showMoreLink | default false }} + {{ if index .Site.Params.homepage "showRecentItems" }} + {{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }} + {{ end }} + + {{ end }} {{ end }} diff --git a/layouts/partials/related.html b/layouts/partials/related.html index f24f86ca..8508b4c6 100644 --- a/layouts/partials/related.html +++ b/layouts/partials/related.html @@ -1,11 +1,11 @@ -{{ if .Params.showRelatedContent | default (.Site.Params.article.showRelatedContent | default false)}} -{{ $related := .Site.RegularPages.Related . | first .Site.Params.article.relatedContentLimit }} -{{ with $related }} -

    {{ i18n "article.related_articles" | emojify }}

    -
    - {{ range . }} - {{ partial "article-link/card-related.html" . }} +{{ if .Params.showRelatedContent | default (.Site.Params.article.showRelatedContent | default false) }} + {{ $related := .Site.RegularPages.Related . | first .Site.Params.article.relatedContentLimit }} + {{ with $related }} +

    {{ i18n "article.related_articles" | emojify }}

    +
    + {{ range . }} + {{ partial "article-link/card-related.html" . }} + {{ end }} +
    {{ end }} -
    {{ end }} -{{ end }} \ No newline at end of file diff --git a/layouts/partials/scroll-to-top.html b/layouts/partials/scroll-to-top.html index f84cbb5d..25dec90c 100644 --- a/layouts/partials/scroll-to-top.html +++ b/layouts/partials/scroll-to-top.html @@ -1,7 +1,9 @@ \ No newline at end of file +
    diff --git a/layouts/partials/search.html b/layouts/partials/search.html index 519144b8..29f6e982 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -1,12 +1,10 @@ + {{ end }} + {{ end }} +{{ end }} diff --git a/layouts/partials/sharing-links.html b/layouts/partials/sharing-links.html index 67b29235..83e63fe9 100644 --- a/layouts/partials/sharing-links.html +++ b/layouts/partials/sharing-links.html @@ -3,15 +3,14 @@
    {{ range . }} {{ with index $links . }} - - {{ partial "icon.html" .icon }} - + + {{ partial "icon.html" .icon }} + {{ end }} {{ end }}
    diff --git a/layouts/partials/term-link/card.html b/layouts/partials/term-link/card.html index 7f2e8adf..280a74d4 100644 --- a/layouts/partials/term-link/card.html +++ b/layouts/partials/term-link/card.html @@ -1,54 +1,51 @@
    - {{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} {{- with site.Params.images -}} - {{- range first 6 . }} - {{ end -}} + {{- range first 6 . }} + + {{ end -}} {{- else -}} - {{- $images := .Page.Resources.ByType "image" -}} - {{- $featured := $images.GetMatch "*feature*" -}} - {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} - {{- with $featured -}} - {{ if $disableImageOptimization }} - {{ with . }} -
    + {{- $images := .Page.Resources.ByType "image" -}} + {{- $featured := $images.GetMatch "*feature*" -}} + {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} + {{- with $featured -}} + {{ if $disableImageOptimization }} + {{ with . }} +
    + {{ end }} + {{ else }} + {{ with .Resize "600x" }} +
    + {{ end }} {{ end }} - {{ else }} - {{ with .Resize "600x" }} -
    - {{ end }} - {{ end }} - {{- else -}} - {{- with site.Params.images }} - {{ end -}} + {{- else -}} + {{- with site.Params.images }} + + {{ end -}} + {{- end -}} {{- end -}} - {{- end -}} - {{ if site.Params.taxonomy.showTermCount | default true }} - - - - {{ .Count }} + + + + {{ .Count }} + - {{ end }} +
    -
    {{ .Page.Title | emojify }}
    - -
    -
    - + class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"> + {{ .Page.Title | emojify }} +
    +
    - \ No newline at end of file + diff --git a/layouts/partials/term-link/text.html b/layouts/partials/term-link/text.html index c467cef0..edf71cf8 100644 --- a/layouts/partials/term-link/text.html +++ b/layouts/partials/term-link/text.html @@ -1,15 +1,15 @@
    -

    - {{ .Page.Title }} - {{ if site.Params.taxonomy.showTermCount | default true }} - · - - {{ .Count }} - - {{ end }} -

    -
    \ No newline at end of file +

    + {{ .Page.Title }} + {{ if site.Params.taxonomy.showTermCount | default true }} + · + + {{ .Count }} + + {{ end }} +

    + diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 35393cdd..b3263bda 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,4 +1,7 @@ -