This commit is contained in:
parent
f237551193
commit
0321812a29
|
@ -49,7 +49,9 @@
|
|||
"avatar_url": "https://avatars0.githubusercontent.com/u/11393826?v=4",
|
||||
"profile": "http://www.thatamazingprogrammer.com/",
|
||||
"contributions": [
|
||||
"code"
|
||||
"code",
|
||||
"bug",
|
||||
"doc"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -312,7 +314,113 @@
|
|||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "michael0liver",
|
||||
"name": "Michael Oliver",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/55017335?v=4",
|
||||
"profile": "https://michaeloliver.dev",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "epogrebnyak",
|
||||
"name": "Evgeny Pogrebnyak",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/9265326?v=4",
|
||||
"profile": "https://epogrebnyak.github.io",
|
||||
"contributions": [
|
||||
"bug",
|
||||
"ideas"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "sosiristseng",
|
||||
"name": "Wen Wei Tseng",
|
||||
"avatar_url": "https://avatars2.githubusercontent.com/u/40054455?v=4",
|
||||
"profile": "https://sosiristseng.github.io",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "sheldonhull",
|
||||
"name": "sheldonhull",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/3526320?v=4",
|
||||
"profile": "https://www.sheldonhull.com",
|
||||
"contributions": [
|
||||
"code",
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "jadmadi",
|
||||
"name": "Madi",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/29486218?v=4",
|
||||
"profile": "https://github.com/jadmadi",
|
||||
"contributions": [
|
||||
"code",
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "trmendes",
|
||||
"name": "Thiago Mendes",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/16507629?v=4",
|
||||
"profile": "https://tmendes.gitlab.io/28lbackpack",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "aiyasin",
|
||||
"name": "Yasin",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/61509470?v=4",
|
||||
"profile": "http://aimoon.top",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "aplatanado",
|
||||
"name": "Jesús Torres",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/266452?v=4",
|
||||
"profile": "http://www.jesustorres.es/",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "ktw717",
|
||||
"name": "Karl Webster",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/19327709?v=4",
|
||||
"profile": "https://github.com/ktw717",
|
||||
"contributions": [
|
||||
"code",
|
||||
"doc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "OnlyFor",
|
||||
"name": "OnlyFor",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/16849187?v=4",
|
||||
"profile": "https://github.com/OnlyFor",
|
||||
"contributions": [
|
||||
"code",
|
||||
"doc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "tbm98",
|
||||
"name": "Minh Tran",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/52562340?v=4",
|
||||
"profile": "https://tbm98.dev",
|
||||
"contributions": [
|
||||
"code",
|
||||
"bug"
|
||||
]
|
||||
}
|
||||
],
|
||||
"contributorsPerLine": 7
|
||||
"contributorsPerLine": 7,
|
||||
"skipCi": true
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -52,6 +52,8 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
|||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
|
@ -75,7 +77,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
|||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(git)
|
||||
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
|
@ -107,7 +109,5 @@ source $ZSH/oh-my-zsh.sh
|
|||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
# Disable Powerlevel10k configuration wizard
|
||||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
|
||||
export GPG_TTY=$(tty)
|
||||
|
|
|
@ -4,25 +4,18 @@ FROM klakegg/hugo:ext-ubuntu
|
|||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install required packages
|
||||
RUN apt update && \
|
||||
apt install -y sudo \
|
||||
curl \
|
||||
gnupg2 \
|
||||
linuxbrew-wrapper \
|
||||
locales \
|
||||
zsh \
|
||||
wget \
|
||||
powerline \
|
||||
fonts-powerline \
|
||||
software-properties-common \
|
||||
# set up locale
|
||||
&& locale-gen en_US.UTF-8
|
||||
|
||||
# Install git
|
||||
RUN add-apt-repository -y ppa:git-core/ppa && apt update && apt install git -y
|
||||
RUN apt update
|
||||
RUN apt install -y curl
|
||||
RUN apt install -y gnupg2
|
||||
RUN apt install -y zsh
|
||||
RUN apt install -y sudo
|
||||
RUN apt install -y locales
|
||||
RUN apt install -y vim
|
||||
RUN apt install -y fontconfig
|
||||
RUN locale-gen en_US.UTF-8
|
||||
|
||||
# Install Node.js
|
||||
RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
||||
RUN apt install nodejs
|
||||
|
||||
# Switch back to dialog for any ad-hoc use of apt-get
|
||||
|
@ -52,14 +45,23 @@ ENV TERM xterm
|
|||
# Set the default shell to bash rather than sh
|
||||
ENV SHELL /bin/zsh
|
||||
|
||||
# Install Cascadia Code Nerd Font
|
||||
RUN mkdir -p ~/.local/share/fonts
|
||||
RUN cd ~/.local/share/fonts && curl -fLo "Caskaydia Cove Regular Nerd Font Complete Mono.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete%20Mono.otf?raw=true
|
||||
RUN cd ~/.local/share/fonts && curl -fLo "Caskaydia Cove Regular Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Regular%20Nerd%20Font%20Complete.otf?raw=true
|
||||
RUN fc-cache -fv
|
||||
|
||||
# Run the installation script
|
||||
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
|
||||
RUN sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
|
||||
# Install powerlevel10k theme
|
||||
RUN git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
|
||||
RUN git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
|
||||
|
||||
# Install syntax highlighting
|
||||
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.zsh-syntax-highlighting --depth 1
|
||||
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||
|
||||
# Install zsh autosuggestions
|
||||
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
|
||||
# Add .zsh configuration
|
||||
ADD .p10k.zsh $HOME
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"settings": {
|
||||
"resmon.show.battery": false,
|
||||
"resmon.show.cpufreq": false,
|
||||
"terminal.integrated.fontFamily": "'Source Code Pro for Powerline', 'Hack Nerd Font'",
|
||||
"terminal.integrated.fontFamily": "CaskaydiaCove NF, Cascadia Mono, Consolas, 'Courier New', monospace",
|
||||
"terminal.integrated.shell.linux": "/bin/zsh"
|
||||
},
|
||||
"extensions": [
|
||||
|
@ -14,7 +14,8 @@
|
|||
"visualstudioexptteam.vscodeintellicode",
|
||||
"eamodio.gitlens",
|
||||
"mutantdino.resourcemonitor",
|
||||
"budparr.language-hugo-vscode"
|
||||
"budparr.language-hugo-vscode",
|
||||
"vscode-icons-team.vscode-icons"
|
||||
],
|
||||
"runArgs": []
|
||||
"forwardPorts": [1313]
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ labels: bug
|
|||
|
||||
## Describe the bug
|
||||
|
||||
Briefly describe the issue you are experiencing, what you were trying to do and what happened instead. Remember, this is _not_ a place to ask questions. For that, go to the official [Discord channel](https://discord.com/channels/777188233284681768/777188575485493259)!
|
||||
Briefly describe the issue you are experiencing, what you were trying to do and what happened instead. Remember, this is _not_ a place to ask questions. For that, go to the [github discussions page!](https://github.com/sunt-programator/CodeIT/discussions)
|
||||
|
||||
## Expected behavior
|
||||
|
||||
|
|
2
themes/CodeIT/.github/dependabot.yml
vendored
2
themes/CodeIT/.github/dependabot.yml
vendored
|
@ -11,4 +11,4 @@ updates:
|
|||
interval: "daily"
|
||||
commit-message:
|
||||
# Prefix all commit messages with "npm"
|
||||
prefix: "npm"
|
||||
prefix: "build(npm)"
|
||||
|
|
4
themes/CodeIT/.github/workflows/deploy.yml
vendored
4
themes/CodeIT/.github/workflows/deploy.yml
vendored
|
@ -1,8 +1,8 @@
|
|||
name: "Deploy status"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- "v*"
|
||||
jobs:
|
||||
deploy-blog:
|
||||
name: Deploying the static pages to the FTP server
|
||||
|
|
3
themes/CodeIT/.gitignore
vendored
3
themes/CodeIT/.gitignore
vendored
|
@ -17,3 +17,6 @@ $RECYCLE.BIN/
|
|||
|
||||
# Linux
|
||||
.directory
|
||||
|
||||
#idea IDE
|
||||
.idea
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
{ "type": "test", "hidden": true },
|
||||
{ "type": "build", "section": "Build changes" },
|
||||
{ "type": "ci", "section": "CI/CD configuration changes" }
|
||||
]
|
||||
],
|
||||
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}"
|
||||
}
|
||||
|
|
2
themes/CodeIT/.vscode/extensions.json
vendored
2
themes/CodeIT/.vscode/extensions.json
vendored
|
@ -6,6 +6,6 @@
|
|||
"visualstudioexptteam.vscodeintellicode",
|
||||
"eamodio.gitlens",
|
||||
"mutantdino.resourcemonitor",
|
||||
"budparr.language-hugo-vscode"
|
||||
"vscode-icons-team.vscode-icons"
|
||||
]
|
||||
}
|
||||
|
|
4
themes/CodeIT/.vscode/settings.json
vendored
4
themes/CodeIT/.vscode/settings.json
vendored
|
@ -4,5 +4,7 @@
|
|||
".stylelintrc": "json",
|
||||
".lintstagedrc": "json",
|
||||
".all-contributorsrc": "json",
|
||||
}
|
||||
},
|
||||
"terminal.integrated.fontFamily": "CaskaydiaCove NF, Cascadia Mono, Consolas, 'Courier New', monospace",
|
||||
"editor.fontLigatures": true
|
||||
}
|
||||
|
|
|
@ -2,6 +2,177 @@
|
|||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## [0.2.0](https://github.com/sunt-programator/CodeIT/compare/v0.1.2...v0.2.0) (2021-08-09)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **localstorage:** restricted adding the theme option when the cookie consent is disabled ([f4f46a8](https://github.com/sunt-programator/CodeIT/commit/f4f46a88ddd0189e42a0881ca18a489ecede9724)), closes [#145](https://github.com/sunt-programator/CodeIT/issues/145)
|
||||
* **mapbox:** added the possibility to load geojson file ([d2fd6d7](https://github.com/sunt-programator/CodeIT/commit/d2fd6d75cbd4579b551f530b8cb7eed725f91ef8))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **gist:** fixed the lost of indentation ([650a791](https://github.com/sunt-programator/CodeIT/commit/650a791a16af52d5743d09529d7fe089540b53bb)), closes [sunt-programator/CodeIT#173](https://github.com/sunt-programator/CodeIT/issues/173) [sunt-programator/CodeIT#173](https://github.com/sunt-programator/CodeIT/issues/173)
|
||||
* **gist:** fixed the lost of indentation ([0f2081d](https://github.com/sunt-programator/CodeIT/commit/0f2081db3f83ae5983da5c57a096f6ffe000b69c))
|
||||
* **katex:** added overflow to show correctly on mobile devices ([9f84d2f](https://github.com/sunt-programator/CodeIT/commit/9f84d2f507470d6021b37f59e75ab2f91fde748a)), closes [#194](https://github.com/sunt-programator/CodeIT/issues/194)
|
||||
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* update .all-contributorsrc [skip ci] ([588cc5d](https://github.com/sunt-programator/CodeIT/commit/588cc5ddd70d6e14f8dcab3ee0026eb367a93928))
|
||||
* update .all-contributorsrc [skip ci] ([07abfa9](https://github.com/sunt-programator/CodeIT/commit/07abfa9a5823180a4f6ba6f68daf965ee65accb8))
|
||||
* update .all-contributorsrc [skip ci] ([ac5914c](https://github.com/sunt-programator/CodeIT/commit/ac5914cc2857102c7f89f8b9bcfabe2b9c014988))
|
||||
* update .all-contributorsrc [skip ci] ([a7c218c](https://github.com/sunt-programator/CodeIT/commit/a7c218cad0a17c186a63ccde75840b24fa639df3))
|
||||
* update .all-contributorsrc [skip ci] ([25e10de](https://github.com/sunt-programator/CodeIT/commit/25e10deae075a0886f39196553c1ed1bb8052e6a))
|
||||
* update README.md [skip ci] ([8700cd9](https://github.com/sunt-programator/CodeIT/commit/8700cd958aa6f3415fd82d3cd920ab188d8b0fc4))
|
||||
* update README.md [skip ci] ([f89f119](https://github.com/sunt-programator/CodeIT/commit/f89f119b32fd1a8572fde1f2fac89a4a786db512))
|
||||
* update README.md [skip ci] ([59fb620](https://github.com/sunt-programator/CodeIT/commit/59fb620d90e7d296afd872d89add17d4510e6c96))
|
||||
* update README.md [skip ci] ([de65a1d](https://github.com/sunt-programator/CodeIT/commit/de65a1d2142f4c91d102ebbd7509d9f294d1b037))
|
||||
* update README.md [skip ci] ([bd1368e](https://github.com/sunt-programator/CodeIT/commit/bd1368e1f75876f0528a56cf7ae4e00b9194586b))
|
||||
|
||||
|
||||
### CI/CD configuration changes
|
||||
|
||||
* **dependabot:** removed automerge action ([049ea8b](https://github.com/sunt-programator/CodeIT/commit/049ea8b55f58f00e59e3589c0a7e4c997582f9ca))
|
||||
* **deploy:** changed trigger event to tag pushing ([7a6850b](https://github.com/sunt-programator/CodeIT/commit/7a6850b5de8dbbb15522752724de563edb3f5a90))
|
||||
|
||||
|
||||
### Build changes
|
||||
|
||||
* **js:** removed compiled js files ([ca7fcf5](https://github.com/sunt-programator/CodeIT/commit/ca7fcf5e228f9caf28587167b60cb92b19eb030c))
|
||||
* **npm:** updated packages ([17b56f8](https://github.com/sunt-programator/CodeIT/commit/17b56f8ea48fbc76b8ca2b18b432cae5e7d63732))
|
||||
* **npm:** updated packages ([daaadea](https://github.com/sunt-programator/CodeIT/commit/daaadeaded7649be9ffda6fc5074ff06b32b9c52))
|
||||
* **npm:** updated packages ([2ceff1e](https://github.com/sunt-programator/CodeIT/commit/2ceff1e5cbfb42754f9b88d54068bcf0f38948f3))
|
||||
* **npm:** updated packages ([131e1e9](https://github.com/sunt-programator/CodeIT/commit/131e1e9329a74b1d59c182d7c3602333f99bb2bd))
|
||||
* **npm:** updated packages ([a74cdcf](https://github.com/sunt-programator/CodeIT/commit/a74cdcf1dfd2e1ceb0a997ae3a045c8b088abe24))
|
||||
* ignored the 'missing Instagram AccessToken' error ([248048c](https://github.com/sunt-programator/CodeIT/commit/248048cbb46c93dc0f6775c7b8399f82965f5d9d))
|
||||
* **npm:** updated packages ([01ed5d2](https://github.com/sunt-programator/CodeIT/commit/01ed5d28652d2710ccd6a83d07af1a7c0619ba70))
|
||||
* **npm:** updated packages ([1fdda4d](https://github.com/sunt-programator/CodeIT/commit/1fdda4d4ca1ee54c56e95b307985170e330d9a49))
|
||||
* **npm:** updated packages ([fab6811](https://github.com/sunt-programator/CodeIT/commit/fab6811bac4f6ab2bc4f7f7f67e4d9fa573555c4))
|
||||
* **npm:** updated packages ([9904b35](https://github.com/sunt-programator/CodeIT/commit/9904b35243cdb10b1fc3fdb4690e362449b9d8b9))
|
||||
* **npm:** updated packages ([fe9ee8c](https://github.com/sunt-programator/CodeIT/commit/fe9ee8cacb0f993579e955395cb93f6917b73769))
|
||||
* **npm:** updated packages ([5cedad5](https://github.com/sunt-programator/CodeIT/commit/5cedad5958bc8196235b9bf9625222b1d7140bc4))
|
||||
* **npm:** updated packages ([272899d](https://github.com/sunt-programator/CodeIT/commit/272899d77fb598902e1549e8fc49ceaf572f91f9))
|
||||
|
||||
|
||||
### Other changes
|
||||
|
||||
* **devcontainer:** changed configurations ([a9f3d95](https://github.com/sunt-programator/CodeIT/commit/a9f3d95a37f0f6b177b3abd8c6e356582404a9e9))
|
||||
* **gitignore:** ignored compiled js files ([fb48140](https://github.com/sunt-programator/CodeIT/commit/fb481403be14441d917ebc2b40d821c09dd7342b))
|
||||
|
||||
## [0.1.2](https://github.com/sunt-programator/CodeIT/compare/v0.1.0...v0.1.2) (2021-05-02)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **avatar:** added alt text ([dbd66ba](https://github.com/sunt-programator/CodeIT/commit/dbd66ba290571e474b6f67527fa755da4dc5b57c)), closes [#83](https://github.com/sunt-programator/CodeIT/issues/83)
|
||||
* **orcid:** added ORCID social button ([57b4180](https://github.com/sunt-programator/CodeIT/commit/57b418061ca076d8dae4187edc94bf7432eae699)), closes [#82](https://github.com/sunt-programator/CodeIT/issues/82)
|
||||
* **telegram:** added Telegram sharing option ([7614d2e](https://github.com/sunt-programator/CodeIT/commit/7614d2ef1ef0d548690bdf9ce2bdf55251d64b03)), closes [#93](https://github.com/sunt-programator/CodeIT/issues/93)
|
||||
* 💄 add h3-h5 header-mark before style to improve header display on single page posts ([4b35855](https://github.com/sunt-programator/CodeIT/commit/4b35855c31069d2de03f14ec7f114b09cb294250))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** fixed search icon shiftin on Firefox browser ([d46221c](https://github.com/sunt-programator/CodeIT/commit/d46221ce1148f1a9eeeef6c4d063632586d2a7e3)), closes [#76](https://github.com/sunt-programator/CodeIT/issues/76)
|
||||
* **rss:** fixed wrong author value ([8d5b0dc](https://github.com/sunt-programator/CodeIT/commit/8d5b0dc1e7553fa09741485b22d0299967cd575e)), closes [#116](https://github.com/sunt-programator/CodeIT/issues/116)
|
||||
* **style:** gist style improvements ([976eb12](https://github.com/sunt-programator/CodeIT/commit/976eb124d9949effd0922dfd38d60621be77a8cc))
|
||||
* **style:** improve gist markdown file rendering ([da4ed46](https://github.com/sunt-programator/CodeIT/commit/da4ed46db8425b6da58b051298ce34b393dd796a))
|
||||
* **style:** remove whitespace setting to preserve gist indentation ([0f37c69](https://github.com/sunt-programator/CodeIT/commit/0f37c69852e59d06f300e6d9e6cbada4442d3877))
|
||||
|
||||
|
||||
### Build changes
|
||||
|
||||
* updated packages ([ea3e157](https://github.com/sunt-programator/CodeIT/commit/ea3e157be62f062b91ad29cd50ecabbc92909179))
|
||||
* updated packages ([fc3ba71](https://github.com/sunt-programator/CodeIT/commit/fc3ba71577202db77123ebf340b697d658993055))
|
||||
* updated packages ([16aa115](https://github.com/sunt-programator/CodeIT/commit/16aa115d89dcf4227499c09cd6495f9a1efb9b76))
|
||||
* updated packages ([fa12232](https://github.com/sunt-programator/CodeIT/commit/fa12232ed47e9aaee3112b0e72b89feed21ae5e5))
|
||||
|
||||
|
||||
### CI/CD configuration changes
|
||||
|
||||
* **dependabot:** added job ([0502b08](https://github.com/sunt-programator/CodeIT/commit/0502b0897b0f7e89e441bfd5317cbfaee0b6c6d5))
|
||||
* changed dependabot action ([f79d41b](https://github.com/sunt-programator/CodeIT/commit/f79d41b4f7f77f8d17ba228e93912bdeca94d37a))
|
||||
* **dependabot:** added auto merger action ([a8ada22](https://github.com/sunt-programator/CodeIT/commit/a8ada228915bcc79862dac952c85ca72db0ce386))
|
||||
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* update .all-contributorsrc [skip ci] ([ea1305c](https://github.com/sunt-programator/CodeIT/commit/ea1305c4721fa7e49583871c13089cc1ff8a8cd7))
|
||||
* update README.md [skip ci] ([1d85835](https://github.com/sunt-programator/CodeIT/commit/1d858354647133235f932a26ce2cf014756330d7))
|
||||
* **readme:** added emoji on titles ([7e49cdf](https://github.com/sunt-programator/CodeIT/commit/7e49cdf87197a674fc4b6b381dfff30a45324b38))
|
||||
* **readme:** removed TOC since Github implemented it ([66812e2](https://github.com/sunt-programator/CodeIT/commit/66812e277920a80684c021617fa2a50893c7f67b))
|
||||
* update .all-contributorsrc [skip ci] ([6245177](https://github.com/sunt-programator/CodeIT/commit/6245177a5a2b0ad1b8c5972d9e19a718b3313d42))
|
||||
* update .all-contributorsrc [skip ci] ([8969557](https://github.com/sunt-programator/CodeIT/commit/8969557c24e8a967a25c47e7e783b98fe36031c1))
|
||||
* update .all-contributorsrc [skip ci] ([1840013](https://github.com/sunt-programator/CodeIT/commit/18400135d2d8008280db405f5d9ad2208c8b2e37))
|
||||
* update .all-contributorsrc [skip ci] ([f93fcac](https://github.com/sunt-programator/CodeIT/commit/f93fcac9ce8cd92b02ce82125e33c6394d820ebc))
|
||||
* update .all-contributorsrc [skip ci] ([98b25de](https://github.com/sunt-programator/CodeIT/commit/98b25de39c6085408e231b7843ea14a933e7ba58))
|
||||
* update .all-contributorsrc [skip ci] ([122cbf8](https://github.com/sunt-programator/CodeIT/commit/122cbf8058e0526e78a08b2da4a11ff02eb1582c))
|
||||
* update .all-contributorsrc [skip ci] ([ac3042e](https://github.com/sunt-programator/CodeIT/commit/ac3042e6a3bd7ca65987611af34bc8e9a54a1fa2))
|
||||
* update .all-contributorsrc [skip ci] ([e1df683](https://github.com/sunt-programator/CodeIT/commit/e1df683cc6c8e32e8856d0250b6f874c10fa3a80))
|
||||
* update .all-contributorsrc [skip ci] ([e25e6eb](https://github.com/sunt-programator/CodeIT/commit/e25e6eb26a6d69c2e0654df5a64d33e31e563b96))
|
||||
* update README.md [skip ci] ([2b1ff75](https://github.com/sunt-programator/CodeIT/commit/2b1ff750fc6deb0c849f1461d52cd68cb83cd071))
|
||||
* update README.md [skip ci] ([058153e](https://github.com/sunt-programator/CodeIT/commit/058153ecef723aefaf38a4bbe809077270cb2eb6))
|
||||
* update README.md [skip ci] ([b4f0d34](https://github.com/sunt-programator/CodeIT/commit/b4f0d34164b73c4dbc3a9d939e2c002d1827a003))
|
||||
* update README.md [skip ci] ([6705912](https://github.com/sunt-programator/CodeIT/commit/6705912021d80b6fff61d4d2b64c402068ec925f))
|
||||
* update README.md [skip ci] ([fb23183](https://github.com/sunt-programator/CodeIT/commit/fb23183bc63bf8cd934f21a0680145a5dc898a62))
|
||||
* **preview-image:** changed preview image of the theme ([c832e33](https://github.com/sunt-programator/CodeIT/commit/c832e337d7861124f57584049c8a6cfd794ffb04)), closes [#29](https://github.com/sunt-programator/CodeIT/issues/29)
|
||||
* update README.md [skip ci] ([c33db6b](https://github.com/sunt-programator/CodeIT/commit/c33db6bd71fc893e9f02688283c0385c77a4fb4d))
|
||||
* update README.md [skip ci] ([c9589eb](https://github.com/sunt-programator/CodeIT/commit/c9589ebe9959df61d2304df74793b748e4ca9c3b))
|
||||
* update README.md [skip ci] ([076ae7f](https://github.com/sunt-programator/CodeIT/commit/076ae7f54646980427932f927e8f5586f78e0f40))
|
||||
* update README.md [skip ci] ([e844580](https://github.com/sunt-programator/CodeIT/commit/e844580eec5d75c9720238b91c983bc27f9d64f3))
|
||||
|
||||
|
||||
### Other changes
|
||||
|
||||
* changed dev container configs ([b575a22](https://github.com/sunt-programator/CodeIT/commit/b575a22cfdcb512939b02eea024c32470bea5090))
|
||||
* enabled fingerprint ([6ed8392](https://github.com/sunt-programator/CodeIT/commit/6ed8392c88e6036680f94239c6b63600d7f20d32))
|
||||
* **release:** 0.1.1 ([f13aab5](https://github.com/sunt-programator/CodeIT/commit/f13aab53547d2bd31cad866c51e1d0e5bd0d37fc))
|
||||
* **versionrc:** added compare URL format ([37fd853](https://github.com/sunt-programator/CodeIT/commit/37fd853cb108777d092d84991a9e7d9679b96f6b))
|
||||
|
||||
## [0.1.1](https://github.com/sunt-programator/CodeIT/compare/v0.1.0...v0.1.1) (2021-02-28)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* 💄 add h3-h5 header-mark before style to improve header display on single page posts ([4b35855](https://github.com/sunt-programator/CodeIT/commit/4b35855c31069d2de03f14ec7f114b09cb294250))
|
||||
* **avatar:** added alt text ([dbd66ba](https://github.com/sunt-programator/CodeIT/commit/dbd66ba290571e474b6f67527fa755da4dc5b57c)), closes [#83](https://github.com/sunt-programator/CodeIT/issues/83)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** fixed search icon shiftin on Firefox browser ([d46221c](https://github.com/sunt-programator/CodeIT/commit/d46221ce1148f1a9eeeef6c4d063632586d2a7e3)), closes [#76](https://github.com/sunt-programator/CodeIT/issues/76)
|
||||
|
||||
|
||||
### Documentation changes
|
||||
|
||||
* update .all-contributorsrc [skip ci] ([f93fcac](https://github.com/sunt-programator/CodeIT/commit/f93fcac9ce8cd92b02ce82125e33c6394d820ebc))
|
||||
* update .all-contributorsrc [skip ci] ([98b25de](https://github.com/sunt-programator/CodeIT/commit/98b25de39c6085408e231b7843ea14a933e7ba58))
|
||||
* update .all-contributorsrc [skip ci] ([122cbf8](https://github.com/sunt-programator/CodeIT/commit/122cbf8058e0526e78a08b2da4a11ff02eb1582c))
|
||||
* update .all-contributorsrc [skip ci] ([ac3042e](https://github.com/sunt-programator/CodeIT/commit/ac3042e6a3bd7ca65987611af34bc8e9a54a1fa2))
|
||||
* update .all-contributorsrc [skip ci] ([e1df683](https://github.com/sunt-programator/CodeIT/commit/e1df683cc6c8e32e8856d0250b6f874c10fa3a80))
|
||||
* update .all-contributorsrc [skip ci] ([e25e6eb](https://github.com/sunt-programator/CodeIT/commit/e25e6eb26a6d69c2e0654df5a64d33e31e563b96))
|
||||
* update README.md [skip ci] ([6705912](https://github.com/sunt-programator/CodeIT/commit/6705912021d80b6fff61d4d2b64c402068ec925f))
|
||||
* update README.md [skip ci] ([fb23183](https://github.com/sunt-programator/CodeIT/commit/fb23183bc63bf8cd934f21a0680145a5dc898a62))
|
||||
* **preview-image:** changed preview image of the theme ([c832e33](https://github.com/sunt-programator/CodeIT/commit/c832e337d7861124f57584049c8a6cfd794ffb04)), closes [#29](https://github.com/sunt-programator/CodeIT/issues/29)
|
||||
* update README.md [skip ci] ([c33db6b](https://github.com/sunt-programator/CodeIT/commit/c33db6bd71fc893e9f02688283c0385c77a4fb4d))
|
||||
* update README.md [skip ci] ([c9589eb](https://github.com/sunt-programator/CodeIT/commit/c9589ebe9959df61d2304df74793b748e4ca9c3b))
|
||||
* update README.md [skip ci] ([076ae7f](https://github.com/sunt-programator/CodeIT/commit/076ae7f54646980427932f927e8f5586f78e0f40))
|
||||
* update README.md [skip ci] ([e844580](https://github.com/sunt-programator/CodeIT/commit/e844580eec5d75c9720238b91c983bc27f9d64f3))
|
||||
|
||||
|
||||
### Build changes
|
||||
|
||||
* updated packages ([ea3e157](https://github.com/sunt-programator/CodeIT/commit/ea3e157be62f062b91ad29cd50ecabbc92909179))
|
||||
* updated packages ([fc3ba71](https://github.com/sunt-programator/CodeIT/commit/fc3ba71577202db77123ebf340b697d658993055))
|
||||
* updated packages ([16aa115](https://github.com/sunt-programator/CodeIT/commit/16aa115d89dcf4227499c09cd6495f9a1efb9b76))
|
||||
* updated packages ([fa12232](https://github.com/sunt-programator/CodeIT/commit/fa12232ed47e9aaee3112b0e72b89feed21ae5e5))
|
||||
|
||||
|
||||
### Other changes
|
||||
|
||||
* **versionrc:** added compare URL format ([37fd853](https://github.com/sunt-programator/CodeIT/commit/37fd853cb108777d092d84991a9e7d9679b96f6b))
|
||||
|
||||
## 0.1.0 (2020-12-26)
|
||||
|
||||
### Features
|
||||
|
|
|
@ -16,7 +16,7 @@ read [Why to choose CodeIT](#why-choose-CodeIT) so that you can choose the one t
|
|||
|
||||
![Hugo Theme CodeIT](https://github.com/sunt-programator/CodeIT/raw/master/images/Apple-Devices-Preview.png)
|
||||
|
||||
## Brief history
|
||||
## :hourglass_flowing_sand: Brief history
|
||||
|
||||
This theme is based on the original [LoveIt](https://github.com/dillonzq/LoveIt) theme. The original theme was loved by many users, but since May 2020 it has not been maintained.
|
||||
|
||||
|
@ -24,11 +24,11 @@ We tried to contact the theme [owner](https://github.com/dillonzq), but without
|
|||
|
||||
So we decided to create and maintain the theme with a new name, keeping the original style, but continuously improving it. Feel free to contribute to this theme 😊.
|
||||
|
||||
## [Demo Site](https://codeit.suntprogramator.dev/)
|
||||
## :computer: Demo Site
|
||||
|
||||
To see this theme in action, here is a live [demo site](https://codeit.suntprogramator.dev/) that is rendered with the **CodeIT** theme.
|
||||
|
||||
## Why choose CodeIT
|
||||
## :question: Why choose CodeIT
|
||||
|
||||
Compared to the original LeaveIt theme and the KeepIt theme, the CodeIT theme has the following modifications.
|
||||
|
||||
|
@ -64,9 +64,9 @@ the CodeIT theme may be more suitable for you.
|
|||
|
||||
I hope you will CodeIT 👩💻!
|
||||
|
||||
## Features
|
||||
## :open_book: Features
|
||||
|
||||
### Performance and SEO
|
||||
### :zap: Performance and SEO
|
||||
|
||||
- Optimized for **performance**: 99/100 on mobile and 100/100 on the desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights)
|
||||
- Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
|
||||
|
@ -77,7 +77,7 @@ I hope you will CodeIT 👩💻!
|
|||
- **CDN** for third-party libraries supported
|
||||
- Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
|
||||
|
||||
### Appearance and Layout
|
||||
### :desktop_computer: Appearance and Layout
|
||||
|
||||
- **Responsive** layout
|
||||
- **Light/Dark** mode
|
||||
|
@ -87,7 +87,7 @@ I hope you will CodeIT 👩💻!
|
|||
- **Multilanguage** supported and i18n ready
|
||||
- Beautiful **CSS animation**
|
||||
|
||||
### Social and Comment Systems
|
||||
### :thought_balloon: Social and Comment Systems
|
||||
|
||||
- **Gravatar** supported by [Gravatar](https://gravatar.com)
|
||||
- Local **Avatar** supported
|
||||
|
@ -100,8 +100,10 @@ I hope you will CodeIT 👩💻!
|
|||
- **Telegram comments** system supported by [Telegram Comments](https://comments.app/)
|
||||
- **Commento** comment system supported by [Commento](https://commento.io/)
|
||||
- **Utterances** comment system supported by [Utterances](https://utteranc.es/)
|
||||
- **Waline** comment system supported by [Waline](https://waline.js.org/)
|
||||
- **Twikoo** comment system supported by [Twikoo](https://twikoo.js.org/)
|
||||
|
||||
### Extended Features
|
||||
### :sparkles: Extended Features
|
||||
|
||||
- **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
|
||||
- **Twemoji** supported
|
||||
|
@ -125,7 +127,7 @@ I hope you will CodeIT 👩💻!
|
|||
- **Cookie consent banner** supported by [cookieconsent](https://github.com/osano/cookieconsent)
|
||||
- ...
|
||||
|
||||
## Add the theme to your blog
|
||||
## :dart: Add the theme to your blog
|
||||
|
||||
First, download the theme from GitHub and add it to your site’s themes directory:
|
||||
|
||||
|
@ -147,7 +149,7 @@ Then, add the theme to the site configuration:
|
|||
echo 'theme = "CodeIT"' >> config.toml
|
||||
```
|
||||
|
||||
## [Build documentation instructions](https://codeit.suntprogramator.dev/categories/documentation/)
|
||||
## :page_facing_up: [Build documentation instructions](https://codeit.suntprogramator.dev/categories/documentation/)
|
||||
|
||||
You can build the theme documentation locally by using a [devcontainer](https://code.visualstudio.com/docs/remote/containers) or by manually install the [`Hugo`](https://gohugo.io/getting-started/installing).
|
||||
The main advantage of the `devcontainer` is that you will have a preconfigured container with all tools required for developing and building the theme documentation.
|
||||
|
@ -156,7 +158,7 @@ The main advantage of the `devcontainer` is that you will have a preconfigured c
|
|||
hugo server --source=exampleSite
|
||||
```
|
||||
|
||||
## Multilingual and i18n
|
||||
## :earth_africa: Multilingual and i18n
|
||||
|
||||
CodeIT supports the following languages:
|
||||
|
||||
|
@ -176,11 +178,11 @@ CodeIT supports the following languages:
|
|||
|
||||
[Languages Compatibility](https://codeit.suntprogramator.dev/theme-documentation-basics/#language-compatibility)
|
||||
|
||||
## Questions, ideas, bugs, pull requests
|
||||
## :question: Questions, ideas, bugs, pull requests
|
||||
|
||||
All feedback is welcome! Head over to the [issue tracker](https://github.com/sunt-programator/CodeIT/issues).
|
||||
|
||||
## License
|
||||
## :scroll: License
|
||||
|
||||
CodeIT is licensed under the **MIT** license. Check the [LICENSE file](https://github.com/sunt-programator/CodeIT/blob/master/LICENSE) for details.
|
||||
|
||||
|
@ -211,13 +213,13 @@ Thanks to the authors of the following resources included in the theme:
|
|||
- [Valine](https://valine.js.org/)
|
||||
- [cookieconsent](https://github.com/osano/cookieconsent)
|
||||
|
||||
## Sponsor
|
||||
## :moneybag: Sponsor
|
||||
|
||||
If you enjoy the theme, please consider buying me a coffee ☕️.
|
||||
|
||||
- [PayPal](https://paypal.me/victorpogor)
|
||||
|
||||
## Contributors ✨
|
||||
## :tada: Contributors
|
||||
|
||||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
||||
|
||||
|
@ -229,7 +231,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|||
<td align="center"><a href="https://suntprogramator.dev/"><img src="https://avatars1.githubusercontent.com/u/24962085?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Victor Pogor</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=victor-pogor" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Avictor-pogor" title="Bug reports">🐛</a> <a href="#projectManagement-victor-pogor" title="Project Management">📆</a></td>
|
||||
<td align="center"><a href="https://github.com/dillonzq"><img src="https://avatars1.githubusercontent.com/u/30786232?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dillon</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=dillonzq" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Adillonzq" title="Bug reports">🐛</a> <a href="#projectManagement-dillonzq" title="Project Management">📆</a></td>
|
||||
<td align="center"><a href="https://giuseppepignataro.eu/"><img src="https://avatars0.githubusercontent.com/u/16869546?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Giuseppe Pignataro</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Fastbyte01" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3AFastbyte01" title="Bug reports">🐛</a> <a href="#projectManagement-Fastbyte01" title="Project Management">📆</a></td>
|
||||
<td align="center"><a href="http://www.thatamazingprogrammer.com/"><img src="https://avatars0.githubusercontent.com/u/11393826?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christopher C. Johnson</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Code">💻</a></td>
|
||||
<td align="center"><a href="http://www.thatamazingprogrammer.com/"><img src="https://avatars0.githubusercontent.com/u/11393826?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christopher C. Johnson</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3AProgramazing" title="Bug reports">🐛</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://astropengu.in/"><img src="https://avatars2.githubusercontent.com/u/13254278?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akio Taniguchi</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=astropenguin" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://www.holo.co.de/"><img src="https://avatars0.githubusercontent.com/u/6415842?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dave A-W</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=DaveA-W" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://blog.realsangil.net/"><img src="https://avatars1.githubusercontent.com/u/15508203?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sangil Park</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=realsangil" title="Code">💻</a></td>
|
||||
|
@ -267,6 +269,21 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|||
<td align="center"><a href="https://github.com/SilkeHenderickx"><img src="https://avatars0.githubusercontent.com/u/28140438?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Silke Henderickx</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=SilkeHenderickx" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://ghos.in/"><img src="https://avatars1.githubusercontent.com/u/26043355?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ghosin</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Ghosin" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://automationd.com/"><img src="https://avatars2.githubusercontent.com/u/1790594?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dmitry Kireev</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=AutomationD" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://michaeloliver.dev"><img src="https://avatars3.githubusercontent.com/u/55017335?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michael Oliver</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=michael0liver" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://epogrebnyak.github.io"><img src="https://avatars3.githubusercontent.com/u/9265326?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Evgeny Pogrebnyak</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Aepogrebnyak" title="Bug reports">🐛</a> <a href="#ideas-epogrebnyak" title="Ideas, Planning, & Feedback">🤔</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://sosiristseng.github.io"><img src="https://avatars2.githubusercontent.com/u/40054455?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Wen Wei Tseng</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sosiristseng" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://www.sheldonhull.com"><img src="https://avatars.githubusercontent.com/u/3526320?v=4?s=100" width="100px;" alt=""/><br /><sub><b>sheldonhull</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sheldonhull" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Asheldonhull" title="Bug reports">🐛</a></td>
|
||||
<td align="center"><a href="https://github.com/jadmadi"><img src="https://avatars.githubusercontent.com/u/29486218?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Madi</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=jadmadi" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Ajadmadi" title="Bug reports">🐛</a></td>
|
||||
<td align="center"><a href="https://tmendes.gitlab.io/28lbackpack"><img src="https://avatars.githubusercontent.com/u/16507629?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Thiago Mendes</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=trmendes" title="Code">💻</a></td>
|
||||
<td align="center"><a href="http://aimoon.top"><img src="https://avatars.githubusercontent.com/u/61509470?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yasin</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Aaiyasin" title="Bug reports">🐛</a></td>
|
||||
<td align="center"><a href="http://www.jesustorres.es/"><img src="https://avatars.githubusercontent.com/u/266452?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jesús Torres</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=aplatanado" title="Code">💻</a></td>
|
||||
<td align="center"><a href="https://github.com/ktw717"><img src="https://avatars.githubusercontent.com/u/19327709?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Karl Webster</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=ktw717" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=ktw717" title="Documentation">📖</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="https://github.com/OnlyFor"><img src="https://avatars.githubusercontent.com/u/16849187?v=4?s=100" width="100px;" alt=""/><br /><sub><b>OnlyFor</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=OnlyFor" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=OnlyFor" title="Documentation">📖</a></td>
|
||||
<td align="center"><a href="https://tbm98.dev"><img src="https://avatars.githubusercontent.com/u/52562340?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Minh Tran</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=tbm98" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Atbm98" title="Bug reports">🐛</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
|
@ -116,7 +116,15 @@
|
|||
> h2 > .header-mark::before {
|
||||
content: "#";
|
||||
}
|
||||
|
||||
> h3 > .header-mark::before {
|
||||
content: "##";
|
||||
}
|
||||
> h4 > .header-mark::before {
|
||||
content: "###";
|
||||
}
|
||||
> h5 > .header-mark::before {
|
||||
content: "####";
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
|
@ -278,6 +286,7 @@
|
|||
@import "../_partial/_single/mapbox";
|
||||
@import "../_partial/_single/music";
|
||||
@import "../_partial/_single/bilibili";
|
||||
@import "../_partial/_single/katex";
|
||||
|
||||
hr {
|
||||
margin: 1rem 0;
|
||||
|
|
|
@ -96,6 +96,8 @@ header {
|
|||
.search-toggle {
|
||||
left: 0.5rem;
|
||||
right: auto;
|
||||
top: -1.125rem;
|
||||
bottom: -1.125rem;
|
||||
}
|
||||
|
||||
.search-loading {
|
||||
|
|
|
@ -34,10 +34,10 @@ pre,
|
|||
.highlight table,
|
||||
.highlight tr,
|
||||
.highlight td {
|
||||
background: $code-background-color;
|
||||
background: $code-background-color !important;
|
||||
|
||||
[theme="dark"] & {
|
||||
background: $code-background-color-dark;
|
||||
background: $code-background-color-dark !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ pre,
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
border: none !important;
|
||||
white-space: nowrap;
|
||||
white-space: pre;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -229,7 +229,15 @@ pre,
|
|||
.gist-file,
|
||||
.gist-data,
|
||||
.gist-meta {
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.gist-file {
|
||||
border-color: $global-font-secondary-color;
|
||||
|
||||
[theme="dark"] & {
|
||||
border-color: $global-font-secondary-color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
.gist-meta {
|
||||
|
@ -243,10 +251,14 @@ pre,
|
|||
}
|
||||
}
|
||||
|
||||
color: $global-font-color;
|
||||
|
||||
[theme="dark"] & {
|
||||
color: $global-font-color-dark;
|
||||
|
||||
// imported from https://github.com/lonekorean/gist-syntax-themes/blob/master/stylesheets/one-dark.css
|
||||
.highlight {
|
||||
background: #141414;
|
||||
background: none;
|
||||
}
|
||||
.blob-num,
|
||||
.blob-code-inner,
|
||||
|
|
4
themes/CodeIT/assets/css/_partial/_single/_katex.scss
Normal file
4
themes/CodeIT/assets/css/_partial/_single/_katex.scss
Normal file
|
@ -0,0 +1,4 @@
|
|||
.katex, .katex-display{
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
|
@ -37,12 +37,12 @@ libFiles:
|
|||
# typeit@7.0.4 https://github.com/alexmacarthur/typeit
|
||||
typeitJS: typeit@7.0.4/dist/typeit.min.js
|
||||
# katex@0.11.1 https://katex.org/
|
||||
katexCSS: katex@0.11.1/dist/katex.min.css
|
||||
katexJS: katex@0.11.1/dist/katex.min.js
|
||||
katexAutoRenderJS: katex@0.11.1/dist/contrib/auto-render.min.js
|
||||
katexCopyTexCSS: katex@0.11.1/dist/contrib/copy-tex.min.css
|
||||
katexCopyTexJS: katex@0.11.1/dist/contrib/copy-tex.min.js
|
||||
katexMhchemJS: katex@0.11.1/dist/contrib/mhchem.min.js
|
||||
katexCSS: katex@0.13.11/dist/katex.min.css
|
||||
katexJS: katex@0.13.11/dist/katex.min.js
|
||||
katexAutoRenderJS: katex@0.13.11/dist/contrib/auto-render.min.js
|
||||
katexCopyTexCSS: katex@0.13.11/dist/contrib/copy-tex.min.css
|
||||
katexCopyTexJS: katex@0.13.11/dist/contrib/copy-tex.min.js
|
||||
katexMhchemJS: katex@0.13.11/dist/contrib/mhchem.min.js
|
||||
# mermaid@8.5.1 https://github.com/knsv/mermaid
|
||||
mermaidJS: mermaid@8.5.1/dist/mermaid.min.js
|
||||
# echarts@4.8.0 https://echarts.apache.org/
|
||||
|
@ -64,3 +64,7 @@ libFiles:
|
|||
# cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
||||
cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css
|
||||
cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js
|
||||
# twikoo@1.4.3 https://github.com/imaegoo/twikoo
|
||||
twikooJS: twikoo@1.4.3/dist/twikoo.all.min.js
|
||||
# waline@1.3.3 https://github.com/walinejs/waline
|
||||
walineJS: waline/client@1.3.3/dist/Waline.min.js
|
||||
|
|
|
@ -4,7 +4,7 @@ github:
|
|||
Prefix: https://github.com/
|
||||
Title: GitHub
|
||||
Icon:
|
||||
Class: fab fa-github-alt fa-fw
|
||||
Class: fab fa-github fa-fw
|
||||
|
||||
# 002: LinkedIn
|
||||
linkedin:
|
||||
|
@ -156,7 +156,7 @@ stackoverflow:
|
|||
Prefix: https://stackoverflow.com/users/
|
||||
Title: Stack Overflow
|
||||
Icon:
|
||||
Class: fab fa-codepen fa-fw
|
||||
Class: fab fa-stack-overflow
|
||||
|
||||
# 021: 微博
|
||||
weibo:
|
||||
|
@ -509,3 +509,12 @@ rss:
|
|||
Newtab: true
|
||||
Icon:
|
||||
Class: fas fa-rss fa-fw
|
||||
|
||||
# 065: RSS
|
||||
orcid:
|
||||
Weight: 65
|
||||
Prefix: https://orcid.org/
|
||||
Title: ORCID
|
||||
Newtab: true
|
||||
Icon:
|
||||
Class: fab fa-orcid fa-fw
|
||||
|
|
2
themes/CodeIT/assets/js/theme.min.js
vendored
2
themes/CodeIT/assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -15,7 +15,7 @@ lg-zoom.js@1.2.0 https://github.com/sachinchoolur/lg-zoom.js
|
|||
clipboard.js@2.0.6 https://github.com/zenorocha/clipboard.js
|
||||
sharer.js@0.4.0 https://github.com/ellisonleao/sharer.js
|
||||
typeit@7.0.4 https://github.com/alexmacarthur/typeit
|
||||
katex@0.11.1 https://katex.org/
|
||||
katex@0.13.11 https://katex.org/
|
||||
mermaid@8.5.1 https://github.com/knsv/mermaid
|
||||
echarts@4.8.0 https://echarts.apache.org/
|
||||
mapbox-gl@1.10.1 https://github.com/mapbox/mapbox-gl-js
|
||||
|
@ -24,3 +24,5 @@ meting@2.0.1 https://github.com/metowolf/MetingJS
|
|||
gitalk@1.6.2 https://github.com/gitalk/gitalk
|
||||
valine@1.4.14 https://valine.js.org/
|
||||
cookieconsent@3.1.1 https://github.com/osano/cookieconsent
|
||||
twikoo@1.4.3 https://github.com/imaegoo/twikoo
|
||||
waline@1.3.3 https://github.com/walinejs/waline
|
||||
|
|
|
@ -1 +1 @@
|
|||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),a=function(e,t,r){for(var n=r,o=0,a=e.length;n<t.length;){var i=t[n];if(o<=0&&t.slice(n,n+a)===e)return n;"\\"===i?n++:"{"===i?o++:"}"===i&&o--,n++}return-1},i=function(e,t,r,n){for(var o=[],i=0;i<e.length;i++)if("text"===e[i].type){var l=e[i].data,d=!0,s=0,f=void 0;for(-1!==(f=l.indexOf(t))&&(s=f,o.push({type:"text",data:l.slice(0,s)}),d=!1);;){if(d){if(-1===(f=l.indexOf(t,s)))break;o.push({type:"text",data:l.slice(s,f)}),s=f}else{if(-1===(f=a(r,l,s+t.length)))break;o.push({type:"math",data:l.slice(s+t.length,f),rawData:l.slice(s,f+r.length),display:n}),s=f+r.length}d=!d}o.push({type:"text",data:l.slice(s)})}else o.push(e[i]);return o},l=function(e,t){for(var r=function(e,t){for(var r=[{type:"text",data:e}],n=0;n<t.length;n++){var o=t[n];r=i(r,o.left,o.right,o.display||!1)}return r}(e,t.delimiters),n=document.createDocumentFragment(),a=0;a<r.length;a++)if("text"===r[a].type)n.appendChild(document.createTextNode(r[a].data));else{var l=document.createElement("span"),d=r[a].data;t.displayMode=r[a].display;try{t.preProcess&&(d=t.preProcess(d)),o.a.render(d,l,t)}catch(e){if(!(e instanceof o.a.ParseError))throw e;t.errorCallback("KaTeX auto-render: Failed to parse `"+r[a].data+"` with ",e),n.appendChild(document.createTextNode(r[a].rawData));continue}n.appendChild(l)}return n};t.default=function(e,t){if(!e)throw new Error("No element provided to render");var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},function e(t,r){for(var n=0;n<t.childNodes.length;n++){var o=t.childNodes[n];if(3===o.nodeType){var a=l(o.textContent,r);n+=a.childNodes.length-1,t.replaceChild(a,o)}else 1===o.nodeType&&function(){var t=" "+o.className+" ";-1===r.ignoredTags.indexOf(o.nodeName.toLowerCase())&&r.ignoredClasses.every(function(e){return-1===t.indexOf(" "+e+" ")})&&e(o,r)}()}}(e,r)}}]).default});
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,(function(e){return function(){"use strict";var t={974:function(t){t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var a={};return function(){n.d(a,{default:function(){return s}});var e=n(974),t=n.n(e),r=function(e,t,r){for(var n=r,a=0,i=e.length;n<t.length;){var o=t[n];if(a<=0&&t.slice(n,n+i)===e)return n;"\\"===o?n++:"{"===o?a++:"}"===o&&a--,n++}return-1},i=/^\\begin{/,o=function(e,t){for(var n,a=[],o=new RegExp("("+t.map((function(e){return e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")})).join("|")+")");-1!==(n=e.search(o));){n>0&&(a.push({type:"text",data:e.slice(0,n)}),e=e.slice(n));var l=t.findIndex((function(t){return e.startsWith(t.left)}));if(-1===(n=r(t[l].right,e,t[l].left.length)))break;var d=e.slice(0,n+t[l].right.length),s=i.test(d)?d:e.slice(t[l].left.length,n);a.push({type:"math",data:s,rawData:d,display:t[l].display}),e=e.slice(n+t[l].right.length)}return""!==e&&a.push({type:"text",data:e}),a},l=function(e,r){var n=o(e,r.delimiters);if(1===n.length&&"text"===n[0].type)return null;for(var a=document.createDocumentFragment(),i=0;i<n.length;i++)if("text"===n[i].type)a.appendChild(document.createTextNode(n[i].data));else{var l=document.createElement("span"),d=n[i].data;r.displayMode=n[i].display;try{r.preProcess&&(d=r.preProcess(d)),t().render(d,l,r)}catch(e){if(!(e instanceof t().ParseError))throw e;r.errorCallback("KaTeX auto-render: Failed to parse `"+n[i].data+"` with ",e),a.appendChild(document.createTextNode(n[i].rawData));continue}a.appendChild(l)}return a},d=function e(t,r){for(var n=0;n<t.childNodes.length;n++){var a=t.childNodes[n];if(3===a.nodeType){var i=l(a.textContent,r);i&&(n+=i.childNodes.length-1,t.replaceChild(i,a))}else 1===a.nodeType&&function(){var t=" "+a.className+" ";-1===r.ignoredTags.indexOf(a.nodeName.toLowerCase())&&r.ignoredClasses.every((function(e){return-1===t.indexOf(" "+e+" ")}))&&e(a,r)}()}},s=function(e,t){if(!e)throw new Error("No element provided to render");var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},d(e,r)}}(),a=a.default}()}));
|
|
@ -1 +1 @@
|
|||
.katex,.katex-display{user-select:all;-moz-user-select:all;-webkit-user-select:all;-ms-user-select:all}
|
||||
.katex,.katex-display{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}
|
||||
|
|
|
@ -1 +1 @@
|
|||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(0);var r={inline:["$","$"],display:["$$","$$"]},o=function(e,t){void 0===t&&(t=r);for(var n=e.querySelectorAll(".katex-mathml + .katex-html"),o=0;o<n.length;o++){var l=n[o];l.remove?l.remove(null):l.parentNode.removeChild(l)}for(var i=e.querySelectorAll(".katex-mathml"),a=0;a<i.length;a++){var u=i[a],f=u.querySelector("annotation");f&&(u.replaceWith?u.replaceWith(f):u.parentNode.replaceChild(f,u),f.innerHTML=t.inline[0]+f.innerHTML+t.inline[1])}for(var c=e.querySelectorAll(".katex-display annotation"),d=0;d<c.length;d++){var p=c[d];p.innerHTML=t.display[0]+p.innerHTML.substr(t.inline[0].length,p.innerHTML.length-t.inline[0].length-t.inline[1].length)+t.display[1]}return e};document.addEventListener("copy",function(e){var t=window.getSelection();if(!t.isCollapsed){var n=t.getRangeAt(0).cloneContents();if(n.querySelector(".katex-mathml")){for(var r=[],l=0;l<n.childNodes.length;l++)r.push(n.childNodes[l].outerHTML);e.clipboardData.setData("text/html",r.join("")),e.clipboardData.setData("text/plain",o(n).textContent),e.preventDefault()}}})}]).default});
|
||||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var l in n)("object"==typeof exports?exports:e)[l]=n[l]}}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={},t={inline:["$","$"],display:["$$","$$"]},n=function(e,n){void 0===n&&(n=t);for(var l=e.querySelectorAll(".katex-mathml + .katex-html"),r=0;r<l.length;r++){var i=l[r];i.remove?i.remove(null):i.parentNode.removeChild(i)}for(var o=e.querySelectorAll(".katex-mathml"),a=0;a<o.length;a++){var d=o[a],f=d.querySelector("annotation");f&&(d.replaceWith?d.replaceWith(f):d.parentNode.replaceChild(f,d),f.innerHTML=n.inline[0]+f.innerHTML+n.inline[1])}for(var c=e.querySelectorAll(".katex-display annotation"),s=0;s<c.length;s++){var p=c[s];p.innerHTML=n.display[0]+p.innerHTML.substr(n.inline[0].length,p.innerHTML.length-n.inline[0].length-n.inline[1].length)+n.display[1]}return e};return document.addEventListener("copy",(function(e){var t=window.getSelection();if(!t.isCollapsed){var l=t.getRangeAt(0).cloneContents();if(l.querySelector(".katex-mathml")){for(var r=[],i=0;i<l.childNodes.length;i++)r.push(l.childNodes[i].outerHTML);e.clipboardData.setData("text/html",r.join("")),e.clipboardData.setData("text/plain",n(l).textContent),e.preventDefault()}}})),e=e.default}()}));
|
2
themes/CodeIT/assets/lib/katex/katex.min.css
vendored
2
themes/CodeIT/assets/lib/katex/katex.min.css
vendored
File diff suppressed because one or more lines are too long
2
themes/CodeIT/assets/lib/katex/katex.min.js
vendored
2
themes/CodeIT/assets/lib/katex/katex.min.js
vendored
File diff suppressed because one or more lines are too long
2
themes/CodeIT/assets/lib/katex/mhchem.min.js
vendored
2
themes/CodeIT/assets/lib/katex/mhchem.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 137 KiB |
2
themes/CodeIT/assets/lib/twikoo/twikoo.all.min.js
vendored
Normal file
2
themes/CodeIT/assets/lib/twikoo/twikoo.all.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
themes/CodeIT/assets/lib/waline/Waline.min.js
vendored
Normal file
2
themes/CodeIT/assets/lib/waline/Waline.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
baseURL = "https://example.com"
|
||||
baseURL = "https://codeit.suntprogramator.dev"
|
||||
# [en, zh-cn, fr, pl, ...] determines default content language
|
||||
defaultContentLanguage = "en"
|
||||
# theme
|
||||
|
@ -16,8 +16,8 @@ enableGitInfo = true
|
|||
# whether to use emoji code
|
||||
enableEmoji = true
|
||||
|
||||
# Ignore get JSON errors.
|
||||
ignoreErrors = ["error-remote-getjson"]
|
||||
# Ignore build errors.
|
||||
ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
|
@ -138,9 +138,12 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -218,6 +221,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true
|
||||
Orcid = ""
|
||||
[languages.en.params.social.Mastodon]
|
||||
id = "@xxxx"
|
||||
prefix = "https://mastodon.technology/"
|
||||
|
@ -338,6 +342,8 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
gravatarEmail = ""
|
||||
# 主页显示头像的 URL
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# 主页显示的网站标题 (支持 HTML 格式)
|
||||
title = ""
|
||||
# 主页显示的网站副标题
|
||||
|
@ -419,6 +425,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Bilibili = "xxxx"
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true
|
||||
Orcid = ""
|
||||
|
||||
[languages.fr]
|
||||
weight = 3
|
||||
|
@ -534,6 +541,8 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
|
@ -615,6 +624,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true
|
||||
Orcid = ""
|
||||
|
||||
[params]
|
||||
# CodeIT theme version
|
||||
|
@ -624,7 +634,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
# public git repo url only then enableGitInfo is true
|
||||
gitRepo = "https://github.com/sunt-programator/CodeIT"
|
||||
# which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5")
|
||||
fingerprint = ""
|
||||
fingerprint = "sha256"
|
||||
# date format
|
||||
dateFormat = "2006-01-02"
|
||||
# website images for Open Graph and Twitter Cards
|
||||
|
@ -778,6 +788,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
Telegram = false
|
||||
# Comment config
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -843,6 +854,15 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.app"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.app"
|
||||
|
||||
# Third-party library config
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
@ -902,7 +922,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
id = ""
|
||||
# server url for your tracker if you're self hosting
|
||||
server = ""
|
||||
# Plausible Analytics
|
||||
# {{< version 0.1.0 >}} Plausible Analytics
|
||||
[params.analytics.plausible]
|
||||
domain = ""
|
||||
|
||||
|
@ -961,7 +981,7 @@ ignoreErrors = ["error-remote-getjson"]
|
|||
|
||||
# Author config
|
||||
[author]
|
||||
name = "xxxx"
|
||||
name = "CodeIT"
|
||||
email = ""
|
||||
link = ""
|
||||
|
||||
|
|
|
@ -312,9 +312,12 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
subtitle = "This is My New Hugo Site"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -396,7 +399,9 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Matrix = ""
|
||||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true #
|
||||
RSS = true
|
||||
# {{< version 0.1.2 >}} Open Researcher and Contributor ID
|
||||
Orcid = ""
|
||||
|
||||
# Page config
|
||||
[params.page]
|
||||
|
@ -491,6 +496,8 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
# {{< version 0.1.2 >}}
|
||||
Telegram = false
|
||||
# Comment config
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -556,6 +563,17 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
# {{< version 0.2.0 >}} {{< link "https://waline.js.org/en/" "Waline" >}} comment config
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.com"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
# {{< version 0.2.0 >}} {{< link "https://twikoo.js.org" "Twikoo" >}} comment config
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.com"
|
||||
|
||||
# Third-party library config
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
|
|
@ -317,9 +317,12 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
gravatarEmail = ""
|
||||
# URL of avatar shown in home page
|
||||
avatarURL = "/images/avatar.png"
|
||||
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
|
||||
avatarAlt = ""
|
||||
# title shown in home page (HTML format is supported)
|
||||
title = ""
|
||||
# subtitle shown in home page
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
subtitle = "This is My New Hugo Site"
|
||||
# whether to use typeit animation for subtitle
|
||||
typeit = true
|
||||
|
@ -401,7 +404,9 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Matrix = ""
|
||||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true #
|
||||
RSS = true
|
||||
# {{< version 0.1.2 >}} Open Researcher and Contributor ID
|
||||
Orcid = ""
|
||||
|
||||
# Page config
|
||||
[params.page]
|
||||
|
@ -496,6 +501,8 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
# {{< version 0.1.2 >}}
|
||||
Telegram = false
|
||||
# Comment config
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -561,6 +568,16 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
# {{< version 0.2.0 >}} {{< link "https://waline.js.org/en/" "Waline" >}} comment config
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.com"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
# {{< version 0.2.0 >}} {{< link "https://twikoo.js.org" "Twikoo" >}} comment config
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.com"
|
||||
# Third-party library config
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
|
|
@ -319,6 +319,7 @@ hugo
|
|||
title = ""
|
||||
# 主页显示的网站副标题
|
||||
subtitle = "这是我的全新 Hugo 网站"
|
||||
# {{< version 0.1.1 changed >}} (HTML format is supported)
|
||||
# 是否为副标题显示打字机动画
|
||||
typeit = true
|
||||
# 是否显示社交账号
|
||||
|
@ -399,7 +400,9 @@ hugo
|
|||
Matrix = ""
|
||||
Bilibili = ""
|
||||
Email = "xxxx@xxxx.com"
|
||||
RSS = true #
|
||||
RSS = true
|
||||
# {{< version 0.1.2 >}} Open Researcher and Contributor ID
|
||||
Orcid = ""
|
||||
|
||||
# 文章页面配置
|
||||
[params.page]
|
||||
|
@ -494,6 +497,8 @@ hugo
|
|||
Skype = false
|
||||
Trello = false
|
||||
Mix = false
|
||||
# {{< version 0.1.2 >}}
|
||||
Telegram = false
|
||||
# 评论系统设置
|
||||
[params.page.comment]
|
||||
enable = true
|
||||
|
@ -559,6 +564,17 @@ hugo
|
|||
label = ""
|
||||
lightTheme = "github-light"
|
||||
darkTheme = "github-dark"
|
||||
# {{< version 0.2.0 >}} {{< link "https://waline.js.org/" "Waline" >}} 评论系统设置
|
||||
[params.page.comment.waline]
|
||||
enable = false
|
||||
serverURL = "https://xxx.vercel.com"
|
||||
visitor = true
|
||||
dark = 'auto'
|
||||
# {{< version 0.2.0 >}} {{< link "https://twikoo.js.org" "Twikoo" >}} 评论系统设置
|
||||
[params.page.comment.twikoo]
|
||||
enable = false
|
||||
evnId = "https://xxx.vercel.com"
|
||||
|
||||
# 第三方库配置
|
||||
[params.page.library]
|
||||
[params.page.library.css]
|
||||
|
|
|
@ -959,6 +959,10 @@ The `mapbox` shortcode has the following named parameters to use Mapbox GL JS:
|
|||
|
||||
Height of the map, default value is `20rem`.
|
||||
|
||||
- **properties** _[optional]_
|
||||
|
||||
GeoJSON sources and the layers of the map.
|
||||
|
||||
Example simple `mapbox` input:
|
||||
|
||||
```markdown
|
||||
|
@ -983,6 +987,16 @@ The rendered output looks like this:
|
|||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/navigation-preview-day-v4?optimize=true" "mapbox://styles/mapbox/navigation-preview-night-v4?optimize=true" >}}
|
||||
|
||||
Example `mapbox` input with the GetJSON data:
|
||||
|
||||
```markdown
|
||||
{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}}
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}}
|
||||
|
||||
## 8 music
|
||||
|
||||
The `music` shortcode embeds a responsive music player based on [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS).
|
||||
|
|
|
@ -964,6 +964,10 @@ The `mapbox` shortcode has the following named parameters to use Mapbox GL JS:
|
|||
|
||||
Height of the map, default value is `20rem`.
|
||||
|
||||
- **properties** _[optional]_
|
||||
|
||||
GeoJSON sources and the layers of the map.
|
||||
|
||||
Example simple `mapbox` input:
|
||||
|
||||
```markdown
|
||||
|
@ -988,6 +992,16 @@ The rendered output looks like this:
|
|||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/navigation-preview-day-v4?optimize=true" "mapbox://styles/mapbox/navigation-preview-night-v4?optimize=true" >}}
|
||||
|
||||
Example `mapbox` input with the GetJSON data:
|
||||
|
||||
```markdown
|
||||
{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}}
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}}
|
||||
|
||||
## 8 music
|
||||
|
||||
The `music` shortcode embeds a responsive music player based on [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS).
|
||||
|
|
|
@ -962,6 +962,10 @@ data = [
|
|||
|
||||
地图的高度, 默认值是 `20rem`.
|
||||
|
||||
- **properties** _[optional]_
|
||||
|
||||
GeoJSON sources and the layers of the map.
|
||||
|
||||
一个简单的 `mapbox` 示例:
|
||||
|
||||
```markdown
|
||||
|
@ -986,6 +990,16 @@ data = [
|
|||
|
||||
{{< mapbox -122.252 37.453 10 false "mapbox://styles/mapbox/streets-zh-v1?optimize=true" >}}
|
||||
|
||||
Example `mapbox` input with the GetJSON data:
|
||||
|
||||
```markdown
|
||||
{{</* mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" */>}}
|
||||
```
|
||||
|
||||
The rendered output looks like this:
|
||||
|
||||
{{< mapbox lng=28.836 lat=47.021 zoom=8 marked=false properties="/static/features-layers.json" >}}
|
||||
|
||||
## 8 music
|
||||
|
||||
`music` shortcode 基于 [APlayer](https://github.com/MoePlayer/APlayer) 和 [MetingJS](https://github.com/metowolf/MetingJS) 提供了一个内嵌的响应式音乐播放器.
|
||||
|
|
22
themes/CodeIT/exampleSite/static/features-layers.json
Normal file
22
themes/CodeIT/exampleSite/static/features-layers.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "logo",
|
||||
"properties": {
|
||||
"type": "geojson",
|
||||
"data": "/features.geojson"
|
||||
}
|
||||
}
|
||||
],
|
||||
"layers": [
|
||||
{
|
||||
"id": "logo-layer",
|
||||
"type": "fill",
|
||||
"source": "logo",
|
||||
"paint": {
|
||||
"fill-color": ["coalesce", ["get", "fill"], "#005c7c"],
|
||||
"fill-opacity": 0.5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
9212
themes/CodeIT/exampleSite/static/features.geojson
Normal file
9212
themes/CodeIT/exampleSite/static/features.geojson
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 222 KiB After Width: | Height: | Size: 750 KiB |
|
@ -18,7 +18,8 @@
|
|||
<body header-desktop="{{ .Site.Params.header.desktopMode }}" header-mobile="{{ .Site.Params.header.mobileMode }}">
|
||||
{{- /* Check theme isDark before body rendering */ -}}
|
||||
{{- $theme := .Site.Params.defaulttheme -}}
|
||||
<script type="text/javascript">(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('{{ $theme }}' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '{{ $theme }}' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>
|
||||
{{- $cookieConsentEnabled := .Site.Params.cookieconsent.enable -}}
|
||||
<script type="text/javascript">('{{ $cookieConsentEnabled }}' === 'true' && window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('{{ $theme }}' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '{{ $theme }}' === 'dark')) && document.body.setAttribute('theme', 'dark');</script>
|
||||
|
||||
<div id="mask"></div>
|
||||
|
||||
|
|
|
@ -2,6 +2,22 @@
|
|||
|
||||
{{- define "content" -}}
|
||||
{{- $params := .Scratch.Get "params" -}}
|
||||
|
||||
{{- $toc := $params.toc -}}
|
||||
{{- if eq $toc true -}}
|
||||
{{- $toc = .Site.Params.page.toc | default dict -}}
|
||||
{{- else if eq $toc false -}}
|
||||
{{- $toc = dict "enable" false -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Auto TOC */ -}}
|
||||
{{- if ne $toc.enable false -}}
|
||||
<div class="toc" id="toc-auto">
|
||||
<h2 class="toc-title">{{ T "contents" }}</h2>
|
||||
<div class="toc-content{{ if eq $toc.auto false }} always-active{{ end }}" id="toc-content-auto"></div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
<div class="page single special">
|
||||
{{- /* Title */ -}}
|
||||
<h1 class="single-title animated pulse faster">
|
||||
|
@ -13,6 +29,19 @@
|
|||
<h2 class="single-subtitle">{{ . }}</h2>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Static TOC */ -}}
|
||||
{{- if ne $toc.enable false -}}
|
||||
<div class="details toc" id="toc-static" kept="{{ if $toc.keepStatic }}true{{ end }}">
|
||||
<div class="details-summary toc-title">
|
||||
<span>{{ T "contents" }}</span>
|
||||
<span><i class="details-icon fas fa-angle-right"></i></span>
|
||||
</div>
|
||||
<div class="details-content toc-content" id="toc-content-static">
|
||||
{{- dict "Content" .TableOfContents "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Content */ -}}
|
||||
<div class="content" id="content">
|
||||
{{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
|
||||
<channel>
|
||||
<title>
|
||||
{{- .Site.Title -}}
|
||||
|
|
|
@ -124,6 +124,47 @@
|
|||
Please enable JavaScript to view the comments powered by <a href="https://utteranc.es/">Utterances</a>.
|
||||
</noscript>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Waline Comment System */ -}}
|
||||
{{- $waline := $comment.waline | default dict -}}
|
||||
{{- if $waline.enable -}}
|
||||
<div id="waline"></div>
|
||||
{{- $source := $cdn.walineJS | default "/lib/waline/Waline.min.js" -}}
|
||||
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
||||
<script src='{{ $source }}'></script>
|
||||
<script>
|
||||
Waline({
|
||||
el: '#waline',
|
||||
serverURL: '{{ $waline.serverURL }}',
|
||||
visitor: '{{ $waline.visitor }}',
|
||||
dark: '{{ $waline.dark }}',
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by <a href="https://waline.js.org/">Waline</a>.
|
||||
</noscript>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Twikoo Comment System */ -}}
|
||||
{{- $twikoo := $comment.twikoo | default dict -}}
|
||||
{{- if $twikoo.enable -}}
|
||||
<div id="twikoo"></div>
|
||||
{{- $source := $cdn.twikooJS | default "/lib/twikoo/twikoo.all.min.js" -}}
|
||||
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}}
|
||||
<script src='{{ $source }}'></script>
|
||||
<script>
|
||||
twikoo.init({
|
||||
envId: '{{ $twikoo.evnId }}',
|
||||
el: '#twikoo',
|
||||
// region: 'ap-guangzhou',
|
||||
// path: 'window.location.pathname',
|
||||
})
|
||||
</script>
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by <a href="https://twikoo.js.org/">Twikoo</a>.
|
||||
</noscript>
|
||||
{{- end -}}
|
||||
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{{- $content := .Content -}}
|
||||
|
||||
{{- if $content -}}
|
||||
|
||||
{{- if .Ruby -}}
|
||||
{{- $content = partial "function/ruby.html" $content -}}
|
||||
{{- end -}}
|
||||
|
@ -16,4 +18,6 @@
|
|||
|
||||
{{- $content = partial "function/escape.html" $content -}}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
{{- return $content -}}
|
||||
|
|
|
@ -7,16 +7,17 @@
|
|||
{{- if $avatar -}}
|
||||
<div class="home-avatar">
|
||||
{{- $menus := $.Site.Menus.main | default slice -}}
|
||||
{{- $avatarAlt := $profile.avatarAlt | default .Site.Author.name -}}
|
||||
{{- with index $menus 0 -}}
|
||||
{{- $url := .URL | relLangURL -}}
|
||||
{{- with .Page -}}
|
||||
{{- $url = .RelPermalink -}}
|
||||
{{- end -}}
|
||||
<a href="{{ $url }}"{{ with .Title | default .Name }} title="{{ . }}"{{ end }}{{ if (urls.Parse $url).Host }} rel="noopener noreferrer" target="_blank"{{ end }}>
|
||||
{{- dict "Src" $avatar | partial "plugin/image.html" -}}
|
||||
{{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}}
|
||||
</a>
|
||||
{{- else -}}
|
||||
{{- dict "Src" $avatar | partial "plugin/image.html" -}}
|
||||
{{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
@ -34,7 +35,7 @@
|
|||
<div id="{{ $id }}" class="typeit"></div>
|
||||
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
|
||||
{{- else -}}
|
||||
{{- . -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- end -}}
|
||||
</h2>
|
||||
{{- end -}}
|
||||
|
|
|
@ -196,4 +196,11 @@
|
|||
{{- dict "Class" "fab fa-mix fa-fw" | partial "plugin/icon.html" -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 029: Telegram */ -}}
|
||||
{{- if $share.Telegram -}}
|
||||
<a href="javascript:void(0);" title="{{ T `shareOn` }} Telegram" data-sharer="telegram" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
|
||||
{{- dict "Class" "fab fa-telegram-plane fa-fw" | partial "plugin/icon.html" -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{- $params := .Page.Params | merge .Site.Params.Page | merge (dict "author" .Site.Author.name) -}}
|
||||
{{- $params := .Page.Params | merge .Site.Params.Page | merge (dict "author" .Site.Author.name "email" .Site.Author.email) -}}
|
||||
<item>
|
||||
<title>
|
||||
{{- .Page.Title -}}
|
||||
|
@ -9,9 +9,16 @@
|
|||
<pubDate>
|
||||
{{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
|
||||
</pubDate>
|
||||
{{- with $params.email -}}
|
||||
<author>
|
||||
{{- .params.author | default (T "author") -}}
|
||||
{{- $params.email -}}
|
||||
</author>
|
||||
{{- end -}}
|
||||
{{- with $params.author -}}
|
||||
<dc:creator>
|
||||
{{- $params.author -}}
|
||||
</dc:creator>
|
||||
{{- end -}}
|
||||
<guid>
|
||||
{{- .Page.Permalink -}}
|
||||
</guid>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
|
||||
<channel>
|
||||
<title>
|
||||
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
|
||||
|
|
|
@ -60,6 +60,17 @@
|
|||
<i class="far fa-eye fa-fw"></i> <span class=leancloud-visitors-count></span> {{ T "views" }}
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- if $comment.enable | and $comment.waline.enable | and $comment.waline.visitor -}}
|
||||
<span id="{{ .RelPermalink }}" class="leancloud_visitors" data-flag-title="{{ .Title }}">
|
||||
<i class="far fa-eye fa-fw"></i> <span class=leancloud-visitors-count></span> {{ T "views" }}
|
||||
</span>
|
||||
<a href="#comments" id="post-meta-vcount" title="{{ T `viewComments` }}">
|
||||
<i class="fas fa-comment fa-fw"></i> <span id="{{ .RelPermalink }}" class="waline-comment-count"></span> 条评论
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- if $comment.enable | and $comment.twikoo.enable -}}
|
||||
<i class="far fa-eye fa-fw"></i> <span id="twikoo_visitors">0</span> {{ T "views" }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
{{- $fullscreen := $mapbox.fullscreen -}}
|
||||
{{- $width := "100%" -}}
|
||||
{{- $height := "20rem" -}}
|
||||
{{- $properties := "" -}}
|
||||
|
||||
{{- if .IsNamedParams -}}
|
||||
{{- $lightStyle = .Get "light-style" | default $lightStyle -}}
|
||||
|
@ -22,12 +23,16 @@
|
|||
{{- $fullscreen = .Get "fullscreen" | ne false | and $fullscreen -}}
|
||||
{{- $width = .Get "width" | default $width -}}
|
||||
{{- $height = .Get "height" | default $height -}}
|
||||
{{- $properties = .Get "properties" | default "" -}}
|
||||
{{- else -}}
|
||||
{{- $lightStyle = .Get 4 | default $lightStyle -}}
|
||||
{{- $darkStyle = .Get 5 | default $darkStyle -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $optionsJson := getJSON $properties -}}
|
||||
|
||||
{{- $darkStyle = $darkStyle | default $lightStyle -}}
|
||||
{{- $options := dict "lng" $lng "lat" $lat "zoom" $zoom "marked" $marked "lightStyle" $lightStyle "darkStyle" $darkStyle "geolocate" $geolocate "navigation" $navigation "scale" $scale "fullscreen" $fullscreen -}}
|
||||
{{- $options := dict "lng" $lng "lat" $lat "zoom" $zoom "marked" $marked "lightStyle" $lightStyle "darkStyle" $darkStyle "geolocate" $geolocate "navigation" $navigation "scale" $scale "fullscreen" $fullscreen "optionsJson" $optionsJson -}}
|
||||
{{- $id := dict "Content" $options "Scratch" .Page.Scratch | partial "function/id.html" -}}
|
||||
<div class="mapbox" id="{{ $id }}" style="width: {{ $width }}; height: {{ $height }};"></div>
|
||||
{{- .Page.Scratch.SetInMap "this" "mapbox" true -}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
|
||||
<channel>
|
||||
<title>
|
||||
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
|
||||
|
|
19037
themes/CodeIT/package-lock.json
generated
19037
themes/CodeIT/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,40 +1,39 @@
|
|||
{
|
||||
"name": "codeit-src",
|
||||
"description": "CodeIT theme source file",
|
||||
"version": "0.1.0",
|
||||
"version": "0.2.0",
|
||||
"homepage": "https://codeit.suntprogramator.dev/",
|
||||
"author": "Victor Pogor",
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.12.16",
|
||||
"@babel/core": "^7.12.16",
|
||||
"@babel/preset-env": "^7.12.16",
|
||||
"@commitlint/cli": "^11.0.0",
|
||||
"@commitlint/config-conventional": "^11.0.0",
|
||||
"@babel/cli": "^7.14.8",
|
||||
"@babel/core": "^7.14.8",
|
||||
"@babel/preset-env": "^7.14.8",
|
||||
"@commitlint/cli": "^13.1.0",
|
||||
"@commitlint/config-conventional": "^13.1.0",
|
||||
"all-contributors-cli": "^6.20.0",
|
||||
"babel-preset-minify": "^0.5.1",
|
||||
"babelify": "^10.0.0",
|
||||
"browserify": "^17.0.0",
|
||||
"commitizen": "^4.2.3",
|
||||
"core-js": "^3.8.3",
|
||||
"commitizen": "^4.2.4",
|
||||
"core-js": "^3.16.1",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^7.20.0",
|
||||
"eslint-config-prettier": "^7.2.0",
|
||||
"husky": "^5.0.9",
|
||||
"lint-staged": "^10.5.4",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"husky": "^7.0.1",
|
||||
"lint-staged": "^11.1.2",
|
||||
"markdownlint": "^0.23.1",
|
||||
"minimist": "^1.2.5",
|
||||
"prettier": "2.2.1",
|
||||
"prettier": "^2.3.2",
|
||||
"segmentit": "^2.0.3",
|
||||
"standard-version": "^9.1.0",
|
||||
"stylelint": "^13.10.0",
|
||||
"standard-version": "^9.3.1",
|
||||
"stylelint": "^13.13.1",
|
||||
"stylelint-config-prettier": "^8.0.2",
|
||||
"stylelint-config-standard": "^20.0.0",
|
||||
"stylelint-scss": "^3.19.0"
|
||||
"stylelint-config-standard": "^22.0.0",
|
||||
"stylelint-scss": "^3.20.1"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx npm-force-resolutions",
|
||||
"babel": "npx babel src/js --out-file assets/js/theme.min.js --source-maps",
|
||||
"build": "npm run babel && hugo -v --source=exampleSite --themesDir ../.. --gc",
|
||||
"build-lunr-segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
|
||||
|
@ -48,9 +47,6 @@
|
|||
"release:patch": "standard-version -s --release-as patch",
|
||||
"release:major": "standard-version -s --release-as major"
|
||||
},
|
||||
"resolutions": {
|
||||
"minimist": "^1.2.5"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sunt-programator/CodeIT.git"
|
||||
|
|
|
@ -102,7 +102,7 @@ class Theme {
|
|||
document.body.setAttribute("theme", "light");
|
||||
else document.body.setAttribute("theme", "dark");
|
||||
this.isDark = !this.isDark;
|
||||
window.localStorage &&
|
||||
this.config.cookieconsent && window.localStorage &&
|
||||
localStorage.setItem("theme", this.isDark ? "dark" : "light");
|
||||
for (let event of this.switchThemeEventSet) event();
|
||||
},
|
||||
|
@ -576,8 +576,8 @@ class Theme {
|
|||
const $headerLinkElements = document.getElementsByClassName("headerLink");
|
||||
const headerIsFixed =
|
||||
document.body.getAttribute("header-desktop") !== "normal";
|
||||
const headerHeight = document.getElementById("header-desktop")
|
||||
.offsetHeight;
|
||||
const headerHeight =
|
||||
document.getElementById("header-desktop").offsetHeight;
|
||||
const TOP_SPACING = 20 + (headerIsFixed ? headerHeight : 0);
|
||||
const minTocTop = $toc.offsetTop;
|
||||
const minScrollTop =
|
||||
|
@ -610,8 +610,8 @@ class Theme {
|
|||
let activeTocIndex = $headerLinkElements.length - 1;
|
||||
for (let i = 0; i < $headerLinkElements.length - 1; i++) {
|
||||
const thisTop = $headerLinkElements[i].getBoundingClientRect().top;
|
||||
const nextTop = $headerLinkElements[i + 1].getBoundingClientRect()
|
||||
.top;
|
||||
const nextTop =
|
||||
$headerLinkElements[i + 1].getBoundingClientRect().top;
|
||||
if (
|
||||
(i == 0 && thisTop > INDEX_SPACING) ||
|
||||
(thisTop <= INDEX_SPACING && nextTop > INDEX_SPACING)
|
||||
|
@ -708,6 +708,7 @@ class Theme {
|
|||
geolocate,
|
||||
scale,
|
||||
fullscreen,
|
||||
optionsJson,
|
||||
} = this.data[$mapbox.id];
|
||||
const mapbox = new mapboxgl.Map({
|
||||
container: $mapbox,
|
||||
|
@ -741,6 +742,18 @@ class Theme {
|
|||
if (fullscreen) {
|
||||
mapbox.addControl(new mapboxgl.FullscreenControl());
|
||||
}
|
||||
if (typeof optionsJson === "object" && optionsJson !== null) {
|
||||
console.log(optionsJson);
|
||||
mapbox.on("load", function () {
|
||||
for (const source of optionsJson.sources) {
|
||||
mapbox.addSource(source.id, source.properties);
|
||||
}
|
||||
|
||||
for (const layer of optionsJson.layers) {
|
||||
mapbox.addLayer(layer);
|
||||
}
|
||||
});
|
||||
}
|
||||
mapbox.addControl(new MapboxLanguage());
|
||||
this._mapboxArr.push(mapbox);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue