Compare commits

...

497 Commits
1.0 ... main

Author SHA1 Message Date
Junyi
0500942ded
Merge pull request #83 from Junyi-99/Junyi-99-patch-1 2024-11-22 04:39:50 +00:00
Junyi
48c4e20a7d
Update README.md 2024-11-22 12:39:39 +08:00
Junyi
1fa083e0a4
Merge pull request #82 from Junyi-99/Junyi-99-patch-1 2024-11-22 04:39:08 +00:00
Junyi
c08222376c
Update README.md 2024-11-22 12:38:25 +08:00
Junyi
2b390c73d5
Merge pull request #80 from Junyi-99/feat-better-preview 2024-11-18 14:33:05 +08:00
Junyi Hou
c9043c7fcb fix: netlify script 2024-11-18 14:32:07 +08:00
Junyi Hou
40ec45006c feature: enhanced table 2024-11-17 20:20:34 +08:00
Junyi Hou
c434a66c44 fix: table too wide on small devices 2024-11-17 20:10:41 +08:00
Junyi Hou
31d741c932 update the readme 2024-11-17 19:45:22 +08:00
Junyi Hou
d18fb480d3 fix: the readme and make the code block scrollable 2024-11-17 19:44:18 +08:00
Junyi Hou
6b98e015c6 update .gitignore 2024-11-17 19:23:44 +08:00
Junyi Hou
c92d59921f fix: customCSS error message 2024-11-17 19:22:31 +08:00
Junyi Hou
2a6d9b31f8 feat: better preview for math and mermaid 2024-11-17 19:19:14 +08:00
Junyi
8dc8e9ff97
Merge pull request #79 from Junyi-99/feat-77 2024-11-17 16:54:40 +08:00
Junyi Hou
fcd91ec6ff add: bluesky social icon #77 2024-11-17 16:54:09 +08:00
Junyi
95844a6f7a
Merge pull request #63 from Junyi-99/Junyi-99-patch-1
Update README.md
2024-09-11 12:21:34 +08:00
Junyi
d652a8e31c
Update README.md 2024-09-11 12:21:21 +08:00
Junyi
d9b7678e64
Merge pull request #62 from Junyi-99/develop
Develop
2024-09-11 12:09:18 +08:00
Junyi Hou
ac2950a4c0
fix: icon now shown in other languages. 2024-09-11 12:06:53 +08:00
Junyi Hou
422f416612
align with latest Hugo. Hugo is a piece of shit! 2024-09-11 11:57:49 +08:00
Junyi Hou
f53cc0573b upgrade config 2024-08-15 15:54:53 +08:00
Junyi Hou
9b689084a3 upgrade DisqusShortname 2024-08-15 13:43:06 +08:00
Junyi Hou
6806902501 add feat: load "icon.svg" in the posts foler 2024-07-25 16:08:42 +08:00
Junyi
cc7b31bbd0
Merge pull request #59 from Junyi-99/feat-experimental-config
update tracking code
2024-06-14 15:50:21 +08:00
Junyi Hou
0ceec0db71 update GoogleAnalytics for ExampleSite 2024-06-14 15:48:44 +08:00
Junyi
a42dfbdbca
Merge pull request #58 from Junyi-99/feat-experimental-config
Update Readme
2024-06-14 15:41:36 +08:00
Junyi Hou
793e1778cb update readme 2024-06-14 15:40:38 +08:00
Junyi Hou
d3d7541077 update Readme 2024-06-14 15:33:49 +08:00
Junyi
fbd7b4c939
Merge pull request #57 from Junyi-99/feat-experimental-config
add: added error message when customCSS not exist
2024-06-14 15:31:36 +08:00
Junyi
0717eded21
Merge pull request #56 from joaosenger/fix-google-analytics
Fix: google analytics
2024-06-12 01:16:14 +08:00
Junyi
1d9a2eb91a
Merge pull request #53 from massifsurfer/patch-1
Create ce.yaml
2024-06-12 01:08:48 +08:00
Joao Senger
f5bb357b12 fix: gtagexample 2024-06-11 10:36:37 -03:00
Joao Senger
728414737c fix: googleAnalytics 2024-06-11 10:27:58 -03:00
Joao Senger
14d0777437 feat: googleAnalytics 2024-06-11 10:21:37 -03:00
Vlad Grigorian
8e659b1110
Create ce.yaml
i18n for Chechen language
2024-06-08 20:33:09 +03:00
Junyi Hou
2259c04f32 add: added error message when customCSS not exist 2024-05-13 11:03:14 +08:00
Junyi
fc83e3314e
Merge pull request #51 from Junyi-99/feat-experimental-config
fix bug
2024-05-07 16:03:37 +08:00
Junyi Hou
bd3ab84db8 update: change demo site posts order to attract more peoples. 2024-05-07 16:03:03 +08:00
Junyi Hou
8f622b49cf fix: fix the linenumber disappearing because of fix previous bug. 2024-05-07 15:56:37 +08:00
Junyi Hou
5583510cdd fix: fix #47 2024-05-07 15:49:30 +08:00
Junyi
80a6c24950
Merge pull request #50 from Hanse00/main
Corrects readNextPosts logic
2024-05-07 01:36:00 +08:00
Philip Mallegol-Hansen
8c718ed668
Corrects readNextPosts logic
The docs at https://gohugo.io/functions/collections/isset/ specify that the isset function must be called with a lowercase representation of the key we wish to check.

If we do not, the function always returns false.
2024-05-06 10:01:20 -07:00
Junyi
a860ae9764
Merge pull request #46 from Junyi-99/feat-experimental-config
fix: fix the sitemap url
2024-05-03 01:30:49 +08:00
Junyi Hou
c3a7039b35 fix the sitemap url 2024-05-03 01:30:14 +08:00
Junyi
d27aa62d9e
Merge pull request #44 from Hanse00/main 2024-05-02 13:04:38 +08:00
Philip Mallegol-Hansen
5b402c4b5d
Merge branch 'Junyi-99:main' into main 2024-05-01 14:14:28 -07:00
Philip Mallegol-Hansen
8c4d7defca
Improves ToC logic to account for both site and page configuration 2024-05-01 13:58:51 -07:00
Junyi
6f57af9f0a
Merge pull request #45 from Junyi-99/feat-experimental-config
Feat experimental config
2024-05-01 14:36:07 +08:00
Philip Mallegol-Hansen
7484d058f2
Corrects logic for enabling ToC 2024-04-30 22:46:39 -07:00
Junyi Hou
4f04a33623 del: remove experimental configs to reduce misleading.
these configs has not been implemented.
2024-04-29 15:50:00 +08:00
Junyi Hou
b782018b8c update: hide all summary rendering tests because Hugo refused to fix the bug. 2024-04-29 15:47:00 +08:00
Junyi
f9b293c17d
Merge pull request #43 from ChenYin626/main
added support for police beian for China ISP
2024-04-29 15:40:34 +08:00
chenyin
b44d2a736c added support for police beian for China ISP 2024-04-29 15:23:22 +08:00
Junyi
bd0cd40fbd
Merge pull request #42 from Junyi-99/Junyi-99-patch-2
Update README.md
2024-04-29 12:24:33 +08:00
Junyi
48f1064af1
Update README.md 2024-04-29 12:22:40 +08:00
Junyi
3310c840fd
Merge pull request #41 from Junyi-99/feat-experimental-config
add: added support for ICP beian for China ISP
2024-04-29 12:09:59 +08:00
Junyi Hou
06a4f7aceb add: added support for ICP beian for China ISP 2024-04-29 12:09:19 +08:00
Junyi
8b402ff168
Merge pull request #39 from Junyi-99/feat-experimental-config
Merge feat-experimental-config
2024-04-28 01:59:57 +08:00
Junyi
007dc9d929 Merge branch 'feat-experimental-config' of https://github.com/Junyi-99/hugo-theme-anubis2 into feat-experimental-config 2024-04-28 01:59:29 +08:00
Junyi
01358cd31f fix: there is a hugo bug, so disble the summary rendering test. 2024-04-28 01:58:45 +08:00
Junyi
fb52f33321
Merge branch 'main' into feat-experimental-config 2024-04-28 01:48:12 +08:00
Junyi
4d6fbc8c9a
Merge pull request #38 from Junyi-99/Junyi-99-patch-1
Update README.md
2024-04-26 13:14:47 +08:00
Junyi
a60fc4661f
Update README.md 2024-04-26 13:14:36 +08:00
Junyi Hou
893f4a77a4 update: "rssIcon" defaults to "true" && "readNextPosts" defaults to "3" 2024-04-26 12:46:52 +08:00
Junyi Hou
e7a93e2088 update: "colorThemeSwitcher" defaults to "true" 2024-04-26 12:37:08 +08:00
Junyi Hou
87172dbdfc update: "toc" defaults to "true" 2024-04-26 12:31:17 +08:00
Junyi Hou
e57e3dd83d update "author" parameter 2024-04-26 12:29:07 +08:00
Junyi Hou
64ffd77659 update demos 2024-04-25 13:41:05 +08:00
Junyi Hou
d9cb67008f add: added support for codefences highlight test 2024-04-23 20:09:41 +08:00
Junyi Hou
5fc27f5285 add: added a shortcode "icon" 2024-04-23 19:31:41 +08:00
Junyi Hou
9507d51bd2 fix: fix the scroll bar issue (when codefence only have one line, the copy-btn will make a scrool bar) 2024-04-23 18:59:16 +08:00
Junyi
adce82a54c fix: fix the scroll bar shows when there are only one line in ``` 2024-04-23 13:44:24 +08:00
Junyi
764e110d32 fix: fix the "pre" and "code" have different width when codefences are too wide 2024-04-23 13:00:52 +08:00
Junyi
6965a86c4d add: added support for "lineno" in codefences, added support for "<kbd>" tag 2024-04-23 12:53:21 +08:00
Junyi
18110d3f43
Merge pull request #36 from gsingh93/css
Fix template formatting in main.css
2024-04-17 18:58:09 +08:00
Gulshan Singh
1f6787278d Fix template formatting in main.css 2024-04-17 01:31:49 -07:00
Junyi Hou
dca1ced53c update Readme 2024-04-14 21:34:26 +08:00
Junyi Hou
68a33f8d40 feat: disable selection for social icons 2024-04-10 14:12:00 +08:00
Junyi Hou
a44399eb41 feat: multi-language divider style 2024-04-10 13:55:14 +08:00
Junyi Hou
068a362879 fix: typo in hugo.toml 2024-04-09 20:54:46 +08:00
Junyi Hou
4c59bcb723 feat: experimental configuration 2024-04-09 20:52:16 +08:00
Junyi Hou
3f5f3d7ced optimize for SEO 2024-04-09 20:45:19 +08:00
Junyi Hou
2c8a0e374e Merge branch 'feat-math-on-demand' into pre-release 2024-04-09 20:43:38 +08:00
Junyi Hou
84276e542d feat: enhance accessibility 2024-04-09 20:36:45 +08:00
Junyi Hou
90a5c66d8b add: Added on-demand mathjax load to speedup performance 2024-04-09 20:30:37 +08:00
Junyi Hou
1c2abf59d0 update example posts 2024-04-09 20:22:36 +08:00
Junyi Hou
230bc7ddc8 remove subpage in a page 2024-04-09 20:22:28 +08:00
Junyi Hou
0f646e7082 rename post -> posts 2024-04-09 20:14:49 +08:00
Junyi Hou
41c5286796 update example site config 2024-04-09 20:03:52 +08:00
Junyi Hou
a1cd164e9a pre-commit formatter 2024-04-09 20:03:09 +08:00
Junyi Hou
ddec81c876 advanced style 2024-04-09 19:56:30 +08:00
Junyi Hou
9f33764cff fix: PermaLink to RelPermalink 2024-04-09 19:33:28 +08:00
Junyi Hou
f774d2689d fix the baseURL 2024-04-09 19:25:48 +08:00
Junyi Hou
d979f023f4 add: feature of sass 2024-04-09 19:18:45 +08:00
Junyi
d57d8a7958
Merge pull request #31 from Junyi-99/feat-copy-btn
change the style of copy-btn
2024-04-09 16:59:00 +08:00
Junyi Hou
b83804c92b change the style of copy-btn 2024-04-09 16:58:28 +08:00
Junyi
81966ce9d5
Merge pull request #30 from Junyi-99/feat-mermaid
Feat mermaid & mermaid theme switch
2024-04-09 16:43:39 +08:00
Junyi Hou
3ae4b0a8b0 feat: mermaid theme auto switch 2024-04-09 16:42:47 +08:00
Junyi Hou
d557d2e08d fix: the <code> render error 2024-04-09 16:39:38 +08:00
Junyi Hou
ce5f1811c4 add: mermaid support 2024-04-09 15:20:53 +08:00
Junyi
775f4e9de0
Merge pull request #29 from Junyi-99/feature-main
feat: add more social icons
2024-04-08 15:11:28 +08:00
Junyi
1403fd5e54
Merge pull request #28 from Junyi-99/fix-main
Fix main
2024-04-08 15:10:57 +08:00
Junyi Hou
2e323fe4a4 fix translation for zh-cn 2024-04-08 15:07:31 +08:00
Junyi Hou
519c64a321 update social icons in demosite 2024-04-08 15:01:26 +08:00
Junyi Hou
5df8a10c07 add more social icons 2024-04-08 14:58:39 +08:00
Junyi Hou
a38138fddf fix: wrong style in light theme 2024-04-08 14:11:45 +08:00
Junyi
8a4e9e4a71
Merge pull request #27 from Junyi-99/Junyi-99-patch-3
Update README.md
2024-03-27 16:36:47 +08:00
Junyi
971ede9b78
Update README.md 2024-03-27 16:36:38 +08:00
Junyi
ae7bdce5dd
Merge pull request #23 from Junyi-99/feature-main
fix giscus color switch
2024-03-18 18:38:35 +08:00
Junyi Hou
00ac00f3fb fix giscus color switch 2024-03-18 18:38:18 +08:00
Junyi
05d41821bb
Merge. Bug fixes for <code> and ThemeSwitch for Giscus
Feature main
2024-03-18 16:59:26 +08:00
Junyi Hou
74015da3e5 add: support theme switch for giscus 2024-03-18 16:58:43 +08:00
Junyi Hou
3cd15e9a35 fix a bug in toc selector 2024-03-18 16:58:35 +08:00
Junyi Hou
cf18ae777f fix the bug in <code> 2024-03-18 16:58:00 +08:00
Junyi
210f29c973
Merge pull request #21 from Junyi-99/feature-main
update font for <code>
2024-03-18 15:15:33 +08:00
Junyi Hou
73be65adfb update font for <code> 2024-03-18 15:15:07 +08:00
Junyi
af146e9d96
Merge pull request #20 from Junyi-99/feature-main
Add umami track icon in footer. Update exampleSite
2024-03-18 12:47:20 +08:00
Junyi Hou
e8ddc45ef9 add umami track 2024-03-18 12:46:45 +08:00
Junyi Hou
794065354a add analyze icon in footer if "umami.shareUrl" is set. 2024-03-18 12:33:50 +08:00
Junyi
d922ef7c39
Merge pull request #19 from Junyi-99/Junyi-99-patch-2
Update README.md
2024-03-18 12:13:34 +08:00
Junyi
104b9fc4ec
Update README.md 2024-03-18 12:13:23 +08:00
Junyi
bfb5aab0a7
Merge pull request #18 from Junyi-99/feature-main
Change: "style" to "colorTheme"
2024-03-13 17:50:39 +08:00
Junyi
10894a27ae
Merge branch 'main' into feature-main 2024-03-13 17:50:33 +08:00
Junyi Hou
c7e98bf40a update exampleSite 2024-03-13 17:14:06 +08:00
Junyi Hou
c6c1275963 delete "exampleSite" 2024-03-13 16:59:53 +08:00
Junyi Hou
4bd6cadc3b finished moving "style" to "colorTheme, colorThemeSwitcher" 2024-03-13 16:59:22 +08:00
Junyi Hou
80298828e7 add colorThemeSwitcher 2024-03-13 16:54:18 +08:00
Junyi Hou
4629494c03 rename "style" to "colorTheme", add "colorThemeSwitcher" 2024-03-13 16:42:54 +08:00
Junyi Hou
9e2a23e83b remove config file exmaple 2024-03-13 16:38:52 +08:00
Junyi Hou
8aba514632 remove hugo code in .css files. 2024-03-13 16:38:42 +08:00
Junyi Hou
a29bf0d7b0 rename "social.html" to "social-icons.html" 2024-03-13 16:14:36 +08:00
Junyi Hou
4cba618ce1 bug fix: DOMContentLoaded 2024-03-13 16:14:18 +08:00
Junyi
10c0121f3d
Merge pull request #15 from Junyi-99/Junyi-99-patch-1
Update README.md
2024-03-11 21:59:25 +08:00
Junyi
057b201caa
Update README.md 2024-03-11 21:59:01 +08:00
Junyi Hou
e61809d59a fix: the margin of rss icon is lesser than others 2024-03-08 11:20:33 +08:00
Junyi
d2a006804e
Merge pull request #14 from Junyi-99/feature-main-2
update project preview images
2024-03-06 14:37:49 +08:00
Junyi Hou
9e4757a056 update project picture 2024-03-06 14:36:42 +08:00
Junyi Hou
ee27dacd6a update preview image 2024-03-06 14:32:08 +08:00
Junyi
a50af6c785
Merge pull request #12 from Junyi-99/feature-main-2
update icons
2024-03-06 14:22:44 +08:00
Junyi Hou
6eabf271ce update icons 2024-03-06 14:22:23 +08:00
Junyi
6eaf3539fe
Merge pull request #11 from Junyi-99/feature-main
Feature main
2024-03-06 14:02:19 +08:00
Junyi Hou
80fe4bad84 update: nextlify deployment 2024-03-06 14:01:51 +08:00
Junyi Hou
79b242d3d1 add: tell user the mathjax is too heavy 2024-03-06 13:55:23 +08:00
Junyi Hou
5fe1f290b0 update metadata 2024-03-06 13:52:48 +08:00
Junyi Hou
a7fb20a7ed add: replace 1.5em with variables 2024-03-06 13:34:22 +08:00
Junyi Hou
4655d3e4ac remove .rej file 2024-03-06 13:27:42 +08:00
Junyi Hou
3d600a74c3 fix: the ToC shown on non-toc pages 2024-03-06 13:24:28 +08:00
Junyi
ada44ff67d
Merge pull request #10 from Junyi-99/fix-ToC-cannot-click
Fix to c cannot click
2024-03-04 19:44:51 +08:00
Junyi Hou
e9269aadb8 fix bug 2024-03-04 19:44:29 +08:00
Junyi Hou
0f2fc30529 add: smooth scroll 2024-03-04 19:40:35 +08:00
Junyi Hou
8009f28d92 fix bug 2024-03-04 19:40:18 +08:00
Junyi
7df9d3d0a1
Merge pull request #9 from Junyi-99/feature-noselect-for-ToC
add noselect for ToC
2024-03-04 19:34:47 +08:00
Junyi Hou
5ba1746266 add noselect for ToC 2024-03-04 19:34:27 +08:00
Junyi
e96eefacf4
Merge pull request #8 from Junyi-99/feature-expanded-toc
add: expandable ToC
2024-03-04 19:15:57 +08:00
Junyi Hou
528a25fed5 add: expandable ToC 2024-03-04 19:15:27 +08:00
Junyi
e319a2414e
Merge pull request #7 from Junyi-99/junyi-update-code
update <code>
2024-03-04 18:53:52 +08:00
Junyi Hou
de276c5b18 update <code> 2024-03-04 18:53:25 +08:00
Junyi
de89f02ac7
Merge pull request #6 from Junyi-99/feature-theme-update
Feature theme update
2024-03-04 15:17:46 +08:00
Junyi Hou
167685313d change theme switcher 2024-03-04 15:17:16 +08:00
Junyi Hou
41359247d2 updt: footer 2024-03-04 15:08:49 +08:00
Junyi Hou
a140817288 update the datetime and "Read next" 2024-03-04 15:05:53 +08:00
Junyi Hou
90703b270f remove links of the <time> 2024-03-04 14:53:47 +08:00
Junyi Hou
ababd036b8 update the margin of "To all ..." 2024-03-04 14:53:05 +08:00
Junyi Hou
6daffab512 updt: <h2> rendering 2024-03-04 14:51:17 +08:00
Junyi
28434af973
Merge pull request #5 from Junyi-99/Junyi-99-patch-3
Update README.md
2024-03-04 14:43:53 +08:00
Junyi
13027bb92d
Update README.md 2024-03-04 14:43:45 +08:00
Junyi
8102136cba
Merge pull request #4 from Junyi-99/submit-theme
add screenshot according to the official manual
2024-01-15 21:22:52 +08:00
Junyi Hou
a95699f64d add screenshot according to the official manual 2024-01-15 21:21:05 +08:00
Junyi
de9df2205d
Merge pull request #3 from Junyi-99/Junyi-99-patch-2
Update README.md
2024-01-15 21:02:02 +08:00
Junyi
e139e62c1f
Merge pull request #2 from Junyi-99/Junyi-99-patch-2-1
Update README.md
2024-01-15 21:00:07 +08:00
Junyi
7d746acb4d
Update README.md 2024-01-15 20:59:34 +08:00
Junyi
5151f55b04
Update README.md 2024-01-15 20:59:23 +08:00
Junyi
10eb98e4b1
Merge pull request #1 from Junyi-99/Junyi-99-patch-1
Update README.md
2024-01-15 10:11:38 +08:00
Junyi
3cb64e57e6
Update README.md 2024-01-15 10:09:44 +08:00
Junyi Hou
a425e2b5b8 updt: chinese 2024-01-14 22:01:46 +08:00
Junyi Hou
551d682d88 updt: multilingual 2024-01-14 21:58:45 +08:00
Junyi Hou
a8f6c5e8a6 add: netlify status 2024-01-14 21:56:02 +08:00
Junyi Hou
6e6ceb8d51 updt: modify more authors 2024-01-14 21:54:19 +08:00
Junyi Hou
ff6c9b7eb9 updt: to anubis2 2024-01-14 17:50:55 +08:00
Junyi Hou
423fb34734 Update Readme 2024-01-14 17:33:50 +08:00
Junyi Hou
b2702eff55 Merge branch 'main' of https://github.com/Mitrichius/hugo-theme-anubis into anubis
# Conflicts:
#	README.md
#	assets/css/main.css
#	layouts/partials/header.html
2024-01-14 17:09:16 +08:00
Dmitry Kolosov
8a718f7418
Update README.md 2024-01-08 20:43:52 +01:00
Dmitry Kolosov
d77e0d6d55 update theme screenshots 2024-01-08 20:35:44 +01:00
Dmitry Kolosov
7a64e5f43b
Merge pull request #210 from Mitrichius/new-theme-switcher-167
Change theme switcher to icon #167
2024-01-08 20:25:43 +01:00
Dmitry Kolosov
04788aae9a
Merge pull request #209 from Mitrichius/fix-linenos-margin-152
Fix margin for linenos pre block #152
2024-01-08 20:23:33 +01:00
Dmitry Kolosov
f9fb2a07db
Merge pull request #208 from Mitrichius/fix-deprecated-locale-param
Change locale to languageCode in language section
2024-01-08 20:23:04 +01:00
Dmitry Kolosov
961ebdf64a fix margin for linenos pre block #152 2024-01-08 18:38:01 +01:00
Dmitry Kolosov
f20388b864 change locale to languageCode in language section 2024-01-08 17:54:37 +01:00
Dmitry Kolosov
ae1e0fc880 change theme switcher to icon #167 2024-01-08 17:45:37 +01:00
Junyi
721386b2a7
Update README.md 2024-01-04 12:14:27 +08:00
Junyi
ef78df20eb
Merge pull request #1 from Mitrichius/main
Merge
2024-01-04 12:12:50 +08:00
Dmitry Kolosov
57eb2998cf
Merge pull request #206 from Mitrichius/giscus-readme
Add info about Giscus to Readme
2023-12-04 18:59:53 +01:00
Dmitry Kolosov
882b78293d
Add info about Giscus to Readme 2023-12-04 18:59:42 +01:00
Junyi Hou
879fab29eb add: disable select for some component. 2023-11-18 19:54:41 +08:00
Junyi Hou
c9e7a81509 add: card style 2023-11-18 16:19:26 +08:00
Junyi Hou
e22ce50d40 modify: the background and navbar. 2023-11-18 15:28:43 +08:00
Junyi Hou
d7a3b9a030 remove opengraph and twitter 2023-11-01 15:17:34 +08:00
Junyi
8bd3099b23
Update README.md
add "Giscus" in comment systems
2023-09-19 13:58:21 +08:00
Dmitry Kolosov
01c3a53f12
Merge pull request #203 from Junyi-99/main
add Giscus support
2023-09-18 20:24:56 +02:00
Junyi Hou
8559a8aa26 add Giscus support 2023-09-18 12:04:34 +08:00
Dmitry Kolosov
e4e2c0bc41
Merge pull request #201 from Mitrichius/sort-post-languages
sort post languages
2023-09-03 11:42:35 +02:00
Dmitry Kolosov
165ec4ca10 sort post languages 2023-09-03 11:42:14 +02:00
Dmitry Kolosov
d214b9e410
Merge pull request #200 from Mitrichius/revert-code-highlighting-colors-light-theme
Revert code highlighting colors in light theme #193
2023-08-12 10:41:42 +02:00
Dmitry Kolosov
5195c1fb99 revert code highlighting colors in light theme #193 2023-08-12 10:38:52 +02:00
Dmitry Kolosov
d6d76db80b
Merge pull request #199 from Mitrichius/markdonify-titles-198
Markdonify titles #198
2023-08-12 10:29:22 +02:00
Dmitry Kolosov
c2a5399259 markdonify titles #198 2023-08-12 10:28:38 +02:00
Dmitry Kolosov
7aefd3b314
Merge pull request #197 from Mitrichius/fix-video-shortcode-css
fix css for video in short list
2023-08-03 19:10:46 +02:00
Dmitry Kolosov
4925f4683f fix css for video in short list 2023-08-03 19:10:18 +02:00
Dmitry Kolosov
86078074c1
Merge pull request #196 from Mitrichius/add-video-shortcode
Add video shortcode
2023-08-03 18:41:05 +02:00
Dmitry Kolosov
2cdfded2e5 add video shortcode 2023-08-03 18:36:21 +02:00
Dmitry Kolosov
cdc5532b60
Merge pull request #195 from deining/fix-typos
Fixing multilingual example site
2023-07-26 13:02:46 +03:00
Andreas Deininger
544c542087 Fix multilingual example site
Rename config.toml to hugo.toml
2023-07-24 12:22:51 +02:00
Andreas Deininger
f962ed5ba8 Fixing typos 2023-07-24 12:08:05 +02:00
Dmitry Kolosov
7ba8c815fc
Merge pull request #194 from Mitrichius/fix-post-pagination-without-title
Fix post pagination without post titles
2023-07-24 11:44:29 +03:00
Dmitry Kolosov
e3f0473727 fix post pagination without post titles 2023-07-24 10:44:01 +02:00
Dmitry Kolosov
d5bd8c2848
Merge pull request #192 from Mitrichius/hide-hidden-posts-in-sitemap-189
Hide hidden posts in sitemap #189
2023-07-22 15:45:46 +03:00
Dmitry Kolosov
7b80203c10 hide hidden posts in sitemap #189 2023-07-22 14:45:27 +02:00
Dmitry Kolosov
7f95692d9a
Merge pull request #191 from Mitrichius/add-pagination-to-short-list-with-full-content
Add pagination to short list with full content
2023-07-20 20:04:07 +03:00
Dmitry Kolosov
03c0eb6f81 add pagination to short list with full content 2023-07-20 19:02:59 +02:00
Dmitry Kolosov
78a72c29a6
Merge pull request #190 from Mitrichius/fix-img-in-short-list-page
Fix img style in stort list page
2023-07-20 19:38:56 +03:00
Dmitry Kolosov
56b290195e fix img style in stort list page 2023-07-20 18:38:17 +02:00
Dmitry Kolosov
e2c522d776
Merge pull request #188 from Mitrichius/add-full-content-mode-for-list-page
Add param sectionsWithFullContentOnListPage
2023-07-06 17:13:57 +03:00
Dmitry Kolosov
a72767da4a add param sectionsWithFullContentOnListPage 2023-07-06 16:11:45 +02:00
Dmitry Kolosov
2483e4b593
Merge pull request #187 from Mitrichius/change-theme-author-site
Change theme author site
2023-07-06 13:29:59 +03:00
Dmitry Kolosov
5d97211eeb change theme author site 2023-07-06 12:29:29 +02:00
Dmitry Kolosov
598b5686a9
Merge pull request #185 from SandaruKasa/style-culling
Cull excessive JS/CSS for `{dark,light}-without-swticher` styles
2023-07-06 13:26:32 +03:00
Dmitry Kolosov
70b24a8171
Merge pull request #186 from SandaruKasa/toc
Table of Contents
2023-07-06 13:02:48 +03:00
SandaruKasa
f9cd1790d6
Table of Contents 2023-07-04 22:31:45 +03:00
SandaruKasa
f4e0412244
Cull excessive JS/CSS for {dark,light}-without-swticher styles 2023-07-04 20:47:51 +03:00
Dmitry Kolosov
f6769864be
Merge pull request #184 from SandaruKasa/last-modified
`lastMod` support
2023-06-25 13:21:59 +03:00
SandaruKasa
b169058e71
lastMod support 2023-06-07 01:21:31 +03:00
Dmitry Kolosov
53cbfc5b10
Merge pull request #178 from Mitrichius/add-post-link-to-dates
Add link to post for post date
2023-05-12 19:26:29 +02:00
Dmitry Kolosov
b663c7eb74 add link to post for post date 2023-05-12 19:25:51 +02:00
Dmitry Kolosov
a9272e10f0
Merge pull request #177 from Mitrichius/fix-164-taxonomy-with-space
Fix taxonomy with space #164
2023-05-05 21:20:16 +02:00
Dmitry Kolosov
9e6f53888e fix taxonomy with space #164 2023-05-05 21:16:26 +02:00
Dmitry Kolosov
901df3239e
Merge pull request #166 from cambid/umami
Support for Umami analytics
2023-04-28 13:12:56 +02:00
Dmitry Kolosov
335cc72ccc
Merge pull request #168 from BalintCsala/master
Fixes issue when localStorage is disabled
2023-04-25 19:10:28 +02:00
Dmitry Kolosov
abe0c67b3c
Merge pull request #176 from Mitrichius/author-taxonomy
Add info about author taxonomy to README, fix ru i18n
2023-04-25 16:31:31 +02:00
Dmitry Kolosov
77d1d4255d add info about author taxonomy to README, fix ru i18n 2023-04-25 16:30:50 +02:00
Dmitry Kolosov
b53b8dea2a
Merge pull request #169 from myml/authors
feat: Support to show the authors of the article
2023-04-24 20:17:05 +02:00
Soumya Parihar
b6f42fc326
added bengali support #language (#173)
* added bengali support
2023-04-19 11:00:44 +02:00
Dmitry Kolosov
e451ede908 add mastodon to predefined list of social icons 2023-04-17 20:39:30 +02:00
Dmitry Kolosov
2a2d5bad50 add info to readme and example configs about mathjax 2023-04-17 20:37:40 +02:00
Dmitry Kolosov
95a8df754c
Merge pull request #171 from eddumelendez/es
Add lang `es`
2023-03-03 14:32:43 +01:00
Eddú Meléndez
42752f43c4
Add lang es 2023-03-03 02:43:21 -06:00
myml
332ee3cb2d
feat: Support to show the author of the article 2023-02-16 11:53:10 +08:00
BalintCsala
0aae2d0678 Fixes issue when localStorage is disabled 2022-11-01 15:12:04 +01:00
Jan Fader
3ffaa7651f
add missing url for umami 2022-08-13 08:45:43 +02:00
Jan Fader
005afbf045
add support for umami 2022-08-13 08:41:36 +02:00
Dmitry Kolosov
d4ba47cd21
Merge pull request #163 from pndv/update-readme
Update README.md installation section
2022-07-25 20:07:31 +03:00
Dmitry Kolosov
e3b162689c
Merge pull request #162 from cychen2021/master
Add support for MathJax
2022-07-25 20:04:40 +03:00
Vinay Pandey
c92963b8ac Update README.md installation section
* Update the portion about initialising as Hugo module
* Fix the link in `setup guide`
2022-06-22 23:18:15 -07:00
Chuyang Chen
8aac26a42b Add support for MathJax 2022-06-10 22:01:20 +08:00
Dmitry Kolosov
769fbb55e3
Merge pull request #161 from elibroftw/master
fix #156 improve copy code button
2022-06-07 20:09:09 +03:00
Elijah Lopez
c7d2f8b25a fix #156 improve copy code button 2022-06-07 10:49:23 -04:00
Dmitry Kolosov
55b3437bfd
Merge pull request #160 from mautsh/master
add id.yaml
2022-06-06 18:53:24 +03:00
mautsh
58f8068e2d add id yaml (Bahasa Indonesia) 2022-06-01 19:37:44 +07:00
Dmitry Kolosov
fa6d517cad add locale param for multilang #155 2022-05-29 18:03:39 +03:00
Dmitry Kolosov
de92845ab7
Merge pull request #154 from cambid/add-isso-feed
Add isso feed of comments
2022-05-29 15:54:50 +03:00
Dmitry Kolosov
cdef276335 add overflow: auto to hightlight class #152 2022-05-22 13:58:46 +03:00
Jan Fader
21aab53e09
make feed-link clickable 2022-05-22 12:32:32 +02:00
Jan Fader
f8c6877c16
Merge branch 'master' of https://github.com/Mitrichius/hugo-theme-anubis into add-isso-feed 2022-05-22 11:40:56 +02:00
Jan Fader
7f30ae2ec1
add setting for isso-feed 2022-05-22 11:37:59 +02:00
Dmitry Kolosov
edc508fa62 fix single page menu urls, update example sites #151 2022-05-21 14:51:30 +03:00
Dmitry Kolosov
ae6b41de47 add disableComments option #147 2022-04-12 20:11:58 +03:00
Dmitry Kolosov
c4665390d2 change pre colors #148 2022-04-11 21:10:25 +03:00
Dmitry Kolosov
58c29c6ea6
Merge pull request #149 from carson541/master
fix: theme switcher not change button text
2022-04-11 20:56:37 +03:00
Dmitry Kolosov
d1e4845db5
Merge pull request #146 from pndv/init-go-module
Initialise `go` module
2022-04-11 20:36:35 +03:00
Carson Chen
3024735e37 fix: theme switcher not change button text 2022-04-10 09:34:06 +08:00
Vinay Pandey
47c089fcd9 Initialise go module
* This will enable the theme to be imported as `hugo` module with a simple `module.imports` in the `config` file
* Removes the messy git submodule
2022-04-05 23:51:18 -07:00
Dmitry Kolosov
6c20822bc1
Add GraphComment info to Readme 2022-02-26 17:30:52 +03:00
Dmitry Kolosov
0af5554f87
Merge pull request #145 from syahravi/graphcomment
add partial "graphcomment"
2022-02-26 17:28:08 +03:00
Syahravi
17155479e0 merge single.html partial graphcomment 2022-02-26 15:21:10 +07:00
Syahravi
18196328d7 add graphcomment 2022-02-26 15:13:01 +07:00
Dmitry Kolosov
87949e616c
Merge pull request #142 from steveyiyo/master
Add a Custom 404 Page
2022-02-22 21:49:14 +03:00
SteveYi
50b0d8dc73
Fix suggestion 2022-02-23 00:35:22 +08:00
Dmitry Kolosov
aa98e52c42
Merge pull request #144 from Mitrichius/see-next-section/#44
Added support for meta keywords #137
2022-02-22 18:44:47 +03:00
Dmitry Kolosov
e98fcde09a added support for meta keywords #137 2022-02-22 18:44:32 +03:00
SteveYi
6d928371d5
Add 404 Page 2022-02-22 03:34:46 +08:00
Dmitry Kolosov
8e618548da
Merge pull request #141 from Mitrichius/see-next-section/#44
Add See Next section
2022-02-18 14:44:40 +03:00
Dmitry Kolosov
ed55969059
Merge pull request #140 from Mitrichius/remove-flash-dark-theme/#139
Remove flash for dark theme on loading
2022-02-18 14:44:32 +03:00
Dmitry Kolosov
179923826f Remove flash for dark theme on loading #139 2022-02-18 14:40:24 +03:00
Dmitry Kolosov
4503d1b7a3 Add See Next section #44 2022-02-18 12:29:49 +03:00
Dmitry Kolosov
5c94f0297f add netlify config examples #138 2022-02-17 15:31:44 +03:00
Dmitry Kolosov
a1a83ea1de extract site-title to layout #137 2022-02-12 10:19:24 +03:00
Dmitry Kolosov
0a9b5ae9bb consider real rss feed link (baseName) for social icon #136 2022-01-28 19:32:57 +03:00
Dmitry Kolosov
2f24c40515 add inline attributes to render heading template #135 2022-01-24 21:25:12 +03:00
Dmitry Kolosov
47a0734cce add rssAsSocialIcon param #128 2022-01-19 18:49:55 +03:00
Dmitry Kolosov
05206ec021 add copy code button and config param #122 2022-01-18 19:57:01 +03:00
Dmitry Kolosov
4be0a7b13a bump hugo version 2022-01-16 15:59:45 +03:00
Dmitry Kolosov
990799a86a changed anchor to icon #123 2022-01-12 22:31:44 +03:00
Dmitry Kolosov
6372a927bc
Merge pull request #134 from KyleKun/master
add pt.yaml
2022-01-09 11:12:59 +03:00
KyleKun
906a893e43 add pt.yaml 2022-01-08 20:31:04 -03:00
Dmitry Kolosov
16d448481c
Merge pull request #133 from jixunmoe/feat/permalink-pr
fix: use generated permalink from hugo
2022-01-03 12:56:41 +03:00
Jixun Wu
b8c6c7e23b fix: category should not print hash 2022-01-03 09:23:16 +00:00
Dmitry Kolosov
c716d2f396
Merge pull request #130 from jixunmoe/master
allow emoji to be used in i18n override
2022-01-03 12:08:21 +03:00
Dmitry Kolosov
3aa9da5943 manually humanize i18n 2022-01-03 12:07:28 +03:00
Jixun Wu
bb8d4de6b1 fix: use generated permalink from hugo 2021-12-31 22:03:40 +00:00
Jixun Wu
eaafa7cfde fix: allow emoji to be used in i18n override 2021-12-31 19:48:26 +00:00
Dmitry Kolosov
31bb3493eb
Merge pull request #129 from Mitrichius/anchor-headings/#123
Add anchor headings
2021-12-27 23:09:46 +03:00
Dmitry Kolosov
5d199f595e Revert "changed anchor to icon #123"
This reverts commit a5e44ced3c.
2021-12-27 23:06:21 +03:00
Dmitry Kolosov
a5e44ced3c changed anchor to icon #123 2021-12-27 23:02:57 +03:00
Dmitry Kolosov
fb130db4c3 add anchor headings #123 2021-12-27 22:28:46 +03:00
Dmitry Kolosov
c5f026eed9
Merge pull request #125 from cambid/add-isso
add isso comment to posts
2021-12-27 21:40:38 +03:00
Dmitry Kolosov
4a08d66d5a
Merge pull request #126 from Althorion/patch-1
Fix typos in Polish translation
2021-12-27 20:26:40 +03:00
Dmitry Kolosov
66e342364f
Merge pull request #127 from Mitrichius/hidden-param/124
Add hidden page param #124
2021-12-27 20:20:30 +03:00
Dmitry Kolosov
68892b834f hide hidden page from search engines #124 2021-12-27 20:18:00 +03:00
Dmitry Kolosov
36f693a61c do not count hidden pages in taxonomy pages #124 2021-12-27 20:17:40 +03:00
Dmitry Kolosov
0c92c7b71a add hidden page param #124 2021-12-24 12:45:58 +03:00
Althorion
7796d621f0
Fix typos in Polish translation 2021-12-24 00:05:23 +01:00
Jan Fader
33a9a5e367
split isso parameters in mandatory and optional and add them to the config in the README 2021-12-23 20:02:36 +01:00
Jan Fader
4dcd78397f
black text in textarea for isso 2021-12-23 16:26:48 +01:00
Jan Fader
0486819358
add ISSO to README 2021-12-22 18:07:53 +01:00
Jan Fader
0dee64635d
move actual code to partial 2021-12-22 18:04:13 +01:00
Jan Fader
ce0091ed5e
add isso comment to posts 2021-12-22 17:38:58 +01:00
Dmitry Kolosov
0b15d3bc48
Merge pull request #121 from Mitrichius/fix-safari-reader-view
Remove lang switcher from reader view #14
2021-12-19 14:36:07 +03:00
Dmitry Kolosov
e3e9ce62d2 remove lang switcher from reader view #14 2021-12-19 14:32:24 +03:00
Dmitry Kolosov
61f5b5facf bump hugo version 2021-12-18 16:16:21 +03:00
Dmitry Kolosov
10c340b011 add custom urls for predefined social icons #120 2021-12-18 15:07:34 +03:00
Dmitry Kolosov
e1d08892de add word-wrap for long text in mobile 2021-12-14 20:47:04 +03:00
Dmitry Kolosov
45993c5c36 fix element area movement on link hover 2021-12-07 19:57:05 +03:00
Dmitry Kolosov
8fcafdba4b add demosite to theme config 2021-12-02 14:13:50 +03:00
Dmitry Kolosov
4b3884d165 fix code with white background #119 2021-12-02 10:12:38 +03:00
Dmitry Kolosov
51c16f2f69 fix language switcher position in archive page 2021-11-29 23:45:57 +03:00
Dmitry Kolosov
eda07c11d0
Merge pull request #118 from Mitrichius/fix-code-tag-style
Add bg/fg color to code html tag #117
2021-11-16 09:53:21 +03:00
Dmitry Kolosov
974067ac30 add bg/fg color to code html tag #117 2021-11-16 09:48:49 +03:00
Dmitry Kolosov
ee6c3e71e5
Merge pull request #116 from Mitrichius/fix-twiiter-warning
Fix twitter warning
2021-11-12 19:14:16 +03:00
Dmitry Kolosov
b144b75d7d fix twitter warning 2021-11-12 19:12:01 +03:00
Dmitry Kolosov
c0004087d8
Merge pull request #115 from iakunin/2021-11-07-language-switcher
Fixing UX-issue with language-switcher
2021-11-07 18:28:14 +03:00
Maksim Iakunin
94ae51278b
Fixing the comment 07cd76e783 (r744256956) 2021-11-07 18:16:42 +03:00
Dmitry Kolosov
54317def91
Merge pull request #114 from iakunin/2021-11-07-taxonomy-backlink-bug
Fixing bug with wrong "goToAll" link on taxonomy page (tags, categories)
2021-11-07 15:52:39 +03:00
Dmitry Kolosov
8e5381f812
Merge pull request #113 from iakunin/2021-11-07-wrong-categories-links
Fixing wrong categories links below the post
2021-11-07 15:48:10 +03:00
Dmitry Kolosov
55525e11aa
Merge pull request #112 from iakunin/2021-11-06-pagination-bug
Fixing pagination bug
2021-11-07 15:46:58 +03:00
Maksim Iakunin
07cd76e783
Fixing UX-issue with language-switcher 2021-11-07 15:20:24 +03:00
Maksim Iakunin
fde604b1e5
Fixing bug with wrong "goToAll" link on taxonomy page (tags, categories) 2021-11-07 13:35:43 +03:00
Maksim Iakunin
d8e840e0b7
Fixing wrong categories links below the post (just by analogy with tag links) 2021-11-07 00:21:17 +03:00
Maksim Iakunin
7be92b228e
Fixing pagination bug when baseUrl contains not only hostname, but also some path (for example: http://localhost/some/prefix) 2021-11-06 23:15:00 +03:00
Dmitry Kolosov
837417e19f
Merge pull request #111 from Mitrichius/netlify-deploy-preview
Add netlify config
2021-11-02 19:08:07 +03:00
Dmitry Kolosov
fda5c9acc8 change theme style in example sites 2021-11-02 19:01:55 +03:00
Dmitry Kolosov
e128cbde09 add netlify badge and demo link to readme 2021-11-02 19:01:05 +03:00
Dmitry Kolosov
18945c4bd5 add netlify config 2021-11-02 18:49:00 +03:00
Dmitry Kolosov
fd6a2df136
Merge pull request #110 from iakunin/2021-10-24_extracting_favicons_partial
Extracting favicons to a separate partition.
2021-10-25 08:57:32 +03:00
Maksim Iakunin
e67afd8157
Extracting favicons to a separate partition.
This is needed to overriding in the client's code.
2021-10-24 15:24:48 +03:00
Dmitry Kolosov
ff9c340717
Merge pull request #109 from iakunin/2021-10-22_bug-with-title
Fixing a bug with empty <title>
2021-10-22 13:10:54 +03:00
Maksim Iakunin
302a1e18a8
Fixing a bug with empty <title> 2021-10-22 12:51:33 +03:00
Dmitry Kolosov
d33134ecdd
Merge pull request #107 from iakunin/2021-10-19_meta-description
Fixing a bug with `<meta name=description>`
2021-10-21 08:58:56 +03:00
Maksim Iakunin
4001d5e92f
Merge branch 'master' into 2021-10-19_meta-description 2021-10-20 16:43:34 +03:00
Dmitry Kolosov
04b2081f6e
Merge pull request #108 from Mitrichius/revert-105-master
Revert "Tweak theme to detect and use front matter "description" field"
2021-10-20 14:56:42 +03:00
Dmitry Kolosov
27d8b86b44
Revert "Tweak theme to detect and use front matter "description" field" 2021-10-20 14:55:39 +03:00
Dmitry Kolosov
552820a982
Merge pull request #106 from iakunin/2021-10-19_extracting-title
Extracting <title> to be able to override it in the client code
2021-10-20 14:48:08 +03:00
Maksim Iakunin
30ca3e0a08
Fixing a bug with <meta name=description> 2021-10-19 20:06:44 +03:00
Maksim Iakunin
9b375d4a98
Extracting <title> to be able to override it in the client code 2021-10-19 20:00:18 +03:00
Dmitry Kolosov
8b3e9c711e
Merge pull request #105 from Qrbaker/master
Tweak theme to detect and use front matter "description" field
2021-10-13 09:43:35 +03:00
Quentin Baker
f5b19225a0 use safeHTML on summary text 2021-10-12 14:49:21 -04:00
Quentin Baker
89357fefec modified post summary to use desc if provided 2021-10-12 14:48:03 -04:00
Dmitry Kolosov
a89f25c400
Merge pull request #104 from iakunin/issue-103
#103: extracting disqus code to separate file
2021-10-11 09:15:56 +03:00
Maksim Iakunin
0dbddf0e2d
#103: extracting disqus code to separate file layouts/partials/disqus.html.
It'll give all the opportunities to override this partial on the client-side.
2021-10-10 15:07:21 +03:00
Dmitry Kolosov
4768cf6f9c
Merge pull request #102 from iakunin/issue-101
#101: Simplifying environment detection
2021-10-06 09:32:49 +03:00
Maksim Iakunin
4d405ead5d
#101: Simplifying environment detection 2021-10-05 16:18:47 +03:00
Dmitry Kolosov
f996392dda
Merge pull request #99 from iakunin/issue-98
Fixing bug with social icons
2021-10-01 08:38:23 +03:00
Maksim Iakunin
3905dee767
#98: replacing readFile with partial for predefined icons
This approach has been taken from another popular hugo-theme `ananke`:
e3f7fbe39d/layouts/partials/social-follow.html (L41)
2021-09-30 18:35:35 +03:00
Dmitry Kolosov
9ca723f576
Merge pull request #96 from iakunin/issue-95
Fixing broken pagination links on the post page
2021-08-24 21:22:04 +03:00
Maksim Iakunin
7cb4583894
#95: fixing link to next/prev post in the post page by analogy with post summary (layouts/partials/post-summary.html) 2021-08-24 19:47:00 +03:00
Dmitry Kolosov
5dab60e04a add zh-cn translation 2021-07-19 09:24:15 +03:00
Dmitry Kolosov
fb75ebbd83 increase margin-bottom for article header 2021-07-17 14:55:28 +03:00
Dmitry Kolosov
11c874e3b0
Merge pull request #93 from tinect/patch-1
fix: put quotes around BaseUrl for author
2021-07-14 09:44:05 +03:00
tinect
60cd0bf6c6
fix: put quotes around BaseUrl for author 2021-07-14 00:52:52 +02:00
Dmitry Kolosov
6b9c2ef4eb rename partials for consistency 2021-07-09 19:00:52 +03:00
Dmitry Kolosov
de6decde38 show languages for posts #92 2021-07-08 23:32:45 +03:00
Dmitry Kolosov
866556ffb3
Merge pull request #91 from vringar/fixing_list
Only show pages that are part of this list
2021-06-29 11:05:06 +03:00
vringar
fe94f1b2ff Use .Pages instead of site.RegularPages in list.html
This results in Section Pages only showing the
pages of their respective Sections instead
of showing all available articles.
2021-06-28 14:44:57 +02:00
Dmitry Kolosov
a6b89f92e2
Merge pull request #89 from theEndBeta/master
allow non-standard urls (for telegram, etc) in social links
2021-06-28 08:59:13 +03:00
Aidan Stein
b29bceddc0 allow non-standard urls (for telegram, etc) in social links 2021-06-27 17:49:19 -04:00
Dmitry Kolosov
7fb4482d20 update exampleSites config to pass the demo 2021-06-25 21:50:11 +03:00
Dmitry Kolosov
d55cc982da fix errors on theme building 2021-06-17 13:18:18 +03:00
Dmitry Kolosov
b3560b9aaa
Merge pull request #86 from TheDocTrier/patch-2
Stop changing display style of summary to block
2021-06-11 12:02:45 +03:00
Michael Bradley
cf1ece579e
Stop changing display style of summary to block 2021-06-10 04:45:27 -07:00
Dmitry Kolosov
c743743f42 update screenshot 2021-05-17 21:26:03 +03:00
Dmitry Kolosov
269283077f social services icons support #6 2021-05-17 21:14:12 +03:00
Dmitry Kolosov
dc52fdf1b0 add support to disable summary #85 2021-04-13 20:20:58 +03:00
Dmitry Kolosov
b9c021cab7 fix support for GA v4 #84 2021-04-11 17:32:40 +03:00
Dmitry Kolosov
2308811cac update readme - add quotes 2021-04-11 17:23:06 +03:00
Dmitry Kolosov
bc5039bc5f update readme - GA v4 resource id 2021-04-11 17:08:17 +03:00
Dmitry Kolosov
f78a7b2f98 add support for GA v4 #84 2021-04-11 17:00:58 +03:00
Dmitry Kolosov
1ddecf607d
Add info about extended hugo version to README 2021-03-15 19:30:26 +03:00
Dmitry Kolosov
c443fceaef
Merge pull request #80 from thisni1s/main
Footer-extra, pagination-extra, post-info, webmention-url
2021-02-25 10:41:22 +03:00
Nils Kempen
b670876681 add webmention url to README and add override notice to pagination-extra 2021-02-24 20:43:51 +01:00
Nils Kempen
1d9a8846ec fix hcard in postInfo 2021-02-24 15:24:51 +01:00
Nils Kempen
89ce9761a4 - Move footer-extra inside copyright diff 2021-02-23 21:49:44 +01:00
Dmitry Kolosov
ec4911a3ab
Merge pull request #79 from forty/forty/move-custom-css-in-main-css
Merge customCSS inside main CSS
2021-02-22 12:48:39 +03:00
Quentin Barbe
2b1f281384
Merge customCSS inside main CSS 2021-02-19 23:45:09 +01:00
Dmitry Kolosov
b43d933019
Merge pull request #77 from Ambroisie/add-rss-disable-feature
Allow hiding posts from RSS feed
2021-01-24 13:40:34 +03:00
Bruno BELANYI
549c98a109 Mention 'hide_feed' in README 2021-01-23 16:15:00 +01:00
Bruno BELANYI
d479fbd802 allow hiding post from RSS feed
This uses the `disable_feed` parameter from a post's frontmatter
2021-01-23 16:10:57 +01:00
Dmitry Kolosov
21306c4ab5
Merge pull request #76 from leonhfr/feature/utterances
uteranc.es support
2021-01-23 15:51:51 +03:00
Dmitry Kolosov
61f76a9c23
Merge pull request #78 from devidwolf/patch-1
correct German translations
2021-01-23 15:33:31 +03:00
David Wolf
377dc0918e
Update de.yaml 2021-01-22 13:34:44 +01:00
Dmitry Kolosov
3620926038 microformats: add h-entry and h-feed #75 2021-01-20 22:12:50 +03:00
Dmitry Kolosov
c1dce73359 microformats: add h-card #75 2021-01-20 21:10:47 +03:00
Leon
c86bdecb0a [FEATURE] Utteranc.es support 2021-01-17 17:16:45 +01:00
Dmitry Kolosov
723c94d0d4 support webmentions #75 2021-01-11 21:40:41 +03:00
Dmitry Kolosov
b89babe209 add header-extra and footer-extra for overriding 2021-01-11 21:39:27 +03:00
Dmitry Kolosov
2731e215f7
Merge pull request #74 from aerogus/master
french corrections
2020-12-17 09:02:38 +03:00
Guillaume Seznec
a19a904752 french corrections 2020-12-16 21:21:46 +01:00
Dmitry Kolosov
a7c8f5696c
add features to README 2020-12-16 19:08:24 +03:00
Dmitry Kolosov
19c9c7bf28 Remove right margin fot theme switcher #73 2020-11-29 14:43:54 +03:00
Dmitry Kolosov
40f86332bb
Add note to README about custom CSS 2020-11-24 18:34:59 +03:00
Dmitry Kolosov
0a0c127936
Remove mentions of "static" dir from readme 2020-11-08 14:55:02 +03:00
Dmitry Kolosov
4326ae8aa8 Remove instagram shortcode from example sites. Fix #70 2020-11-06 09:31:53 +03:00
Dmitry Kolosov
e9ee82e764 Fingerprint and minify all resources, move custom css and js to assets dir 2020-11-04 19:46:19 +03:00
Dmitry Kolosov
4c1ba11756 Remove nested lists margin. Fix #41 2020-10-29 20:47:49 +03:00
Dmitry Kolosov
8941672089 Fix hr 2020-10-29 19:37:02 +03:00
Dmitry Kolosov
af90f96cfe
Merge pull request #68 from TheDocTrier/master
Replace css rules for nav links to assist flow
2020-10-28 18:16:13 +03:00
Michael Bradley
61c2888a0a Replace css rules for nav links to assist flow 2020-10-26 23:56:21 -07:00
Dmitry Kolosov
460a61701f
Merge pull request #67 from forty/forty/minify-css-in-prod
Minify CSS file for production builds
2020-10-26 18:07:02 +03:00
Quentin Barbe
8f5c578e1d
Minify CSS file for production builds 2020-10-25 23:20:32 +01:00
Dmitry Kolosov
82d6d8519c
Merge pull request #65 from forty/forty/merge-style-sheets
Merge style sheets for light and dark themes into a single resource
2020-10-25 14:18:08 +03:00
Quentin Barbe
db7e6254fa
Merge style sheets for light and dark themes into a single resource
This will avoid having inline style, which is annoying for stricter CSP.
It should improve performances, as there is only a single file to load.
As a bonus, I also included resource fingerprinting, which will avoid breaking
the cache when it's not needed, and adds subresource integrity checksum.
2020-10-23 13:58:37 +02:00
Dmitry Kolosov
9e524ff754 Fix title on the index page 2020-10-07 22:27:47 +03:00
Dmitry Kolosov
85ebe8d6d4
Update theme tags 2020-10-04 14:32:58 +03:00
Dmitry Kolosov
350ae2dae9
Merge pull request #58 from thenktor/master
some new features and bug fixes
2020-09-07 21:10:36 +03:00
Dmitry Kolosov
d40b63815f
Merge branch 'master' into master 2020-09-07 21:09:26 +03:00
Dmitry Kolosov
78b91b820c
Merge pull request #62 from TheDocTrier/patch-1
Add margin-bottom to theme-switcher.
2020-09-05 17:49:35 +03:00
Michael Bradley
83e791d5c1 Add margin-bottom to theme-switcher. 2020-09-04 16:29:55 -07:00
Dmitry Kolosov
95e5785c72
Merge pull request #60 from bhamill638/updating-nav-bar
Having no menu items in config results in empty nav bar with a different background colour on small screens
2020-08-29 10:03:24 +03:00
Dmitry Kolosov
48c70b333a
Limit sites menu condition to only main section 2020-08-29 10:02:58 +03:00
Brian Hamill
3675771935 Updating nav bar to only display when there are menu items in the config file 2020-08-28 15:51:29 +01:00
Brian Hamill
c1bcf8c340 Updating README and head.html with minor changes 2020-08-16 18:47:43 +01:00
Dmitry Kolosov
09ad21a626
Merge pull request #59 from cheetosysst/master
Add zh-tw tw.yaml
2020-08-16 12:51:21 +03:00
cheetosysst
9f38f875d6
Add zh-tw tw.yaml 2020-08-16 12:26:44 +08:00
Dmitry Kolosov
273984529f Add translations for dark/light theme 2020-08-12 22:25:29 +03:00
Dmitry Kolosov
3d08f96509 Add optional Read more. Close #47 2020-08-12 22:25:08 +03:00
Dmitry Kolosov
09f5cf0373
Update Readme 2020-08-08 11:25:27 +03:00
Dmitry Kolosov
5f4719fbcc fix submenu error in example site #53 2020-08-03 20:13:49 +03:00
Dmitry Kolosov
488c42075a
Add badges to REAME 2020-08-01 20:21:48 +03:00
Thorsten
6e3905456f
Update de.yaml
typo fixed
2020-07-30 21:54:03 +02:00
Thorsten
2a424f0789
Update de.yaml
Changed capitilization, some more translations
2020-07-30 21:53:33 +02:00
Thorsten
6dce3ef5df
Merge branch 'master' into master 2020-07-30 21:50:34 +02:00
Thorsten
403b94dba5
Update static/css/style.css
Co-authored-by: Dmitry Kolosov <Mitrichius@users.noreply.github.com>
2020-07-30 21:37:55 +02:00
Thorsten
b1de9f056e
Update layouts/partials/postInfo.html
Co-authored-by: Dmitry Kolosov <Mitrichius@users.noreply.github.com>
2020-07-30 21:37:16 +02:00
Dmitry Kolosov
a9927e6536 Fix footer for multilingual site 2020-07-30 21:35:53 +03:00
Thorsten
c76b46c62a
Update pagination.html
These strings are defined by humans and do not need to be humanized. Also humanize leads to wrong capitalization (only first letter is capitalized).
2020-07-25 23:14:10 +02:00
Thorsten
2a20fd917e
Merge pull request #1 from thenktor/patch-1
Create de.yaml
2020-07-25 23:01:09 +02:00
Thorsten
8dd41ab45e
Update style.css
Added style for footer-menu
2020-07-25 22:48:45 +02:00
Thorsten
b2e2aa44d8
Update footer.html
Added a footer menu
2020-07-25 22:47:39 +02:00
Thorsten
f0969d9a3f
Update postInfo.html
Fix wrong category links
2020-07-25 21:53:56 +02:00
Dmitry Kolosov
fe617fe6f9
Merge pull request #57 from thenktor/patch-1
Create de.yaml
2020-07-25 01:27:30 +03:00
Thorsten
4e781393f1
Create de.yaml
German translation
2020-07-24 23:40:59 +02:00
Dmitry Kolosov
d635585044 Update font-family and remove font import from google. Close #52 2020-07-24 19:38:58 +03:00
Dmitry Kolosov
796a954a17 Change hr and borders colors in dark theme 2020-07-19 00:24:11 +03:00
Dmitry Kolosov
862a606590 Add custom JS support. CLose #42 2020-07-09 22:42:23 +03:00
Dmitry Kolosov
2b180e6bae
Merge pull request #51 from Mitrichius/dark-theme
Dark theme
2020-07-09 22:23:49 +03:00
Dmitry Kolosov
d0635a3695
Merge branch 'master' into dark-theme 2020-07-09 22:23:37 +03:00
Dmitry Kolosov
aedb7a3aa8 Small fixes 2020-07-09 22:21:39 +03:00
Dmitry Kolosov
28e56764fd Update Readme 2020-07-09 22:19:33 +03:00
Dmitry Kolosov
5be39c3882 Dark theme 2020-07-09 22:15:38 +03:00
Dmitry Kolosov
6aedfa2734
Merge pull request #50 from lpmi-13/fix_insecure_link
add rel attribute to address lighthouse audit issue
2020-06-25 22:53:11 +03:00
Adam Leskis
3975db6103 add rel attribute to address lighthouse audit issue
This link was getting flagged in lighthouse audits, so adding the `rel` attribute
to address it.

Used both `noopener` and `noreferrer`, since some older browsers don't support
`noopener`.
2020-06-25 12:08:20 +01:00
Dmitry Kolosov
32818dacf1 WIP: dark theme 2020-06-24 23:00:36 +03:00
Dmitry Kolosov
193fbeca7c Add support for single page menu 2020-06-24 22:21:59 +03:00
Dmitry Kolosov
6e0b0b6fc7 Add pencil icon to drafts 2020-06-21 23:02:58 +03:00
Dmitry Kolosov
4c54e7a425 Enable html render for example sites and updated config example in
README #40
2020-06-13 19:32:10 +03:00
Dmitry Kolosov
27451bd00e Add style for figcaption 2020-06-12 15:31:45 +03:00
Dmitry Kolosov
3a3518c18a Add head-extra for overriding 2020-06-09 22:45:50 +03:00
Dmitry Kolosov
3676a7c18e Fix single post pagination 2020-06-07 14:25:18 +03:00
Dmitry Kolosov
899d9fd52d Add pagination for post single page. Close #22 2020-06-07 14:20:40 +03:00
Dmitry Kolosov
9ea38661fb Add pagination for taxonomies. Close #20 2020-06-07 13:36:02 +03:00
Dmitry Kolosov
82727c8e8a Add favorite posts. Close #19 2020-06-06 22:05:21 +03:00
Dmitry Kolosov
518f134ac2 Remove series taxonomy from example sites 2020-06-06 16:56:33 +03:00
Dmitry Kolosov
d8461318ef Update README about robots.txt 2020-06-06 16:44:52 +03:00
Dmitry Kolosov
3d2abb5cfa Add default robots.txt. Close ##21 2020-06-05 20:31:54 +03:00
Dmitry Kolosov
f8131480d1
Merge pull request #38 from hashier/patch-1
fix(typo): double space
2020-06-05 19:00:15 +03:00
Christopher Loessl
091c7de9d5
fix(typo): double space 2020-06-05 17:32:01 +02:00
Dmitry Kolosov
b9d3cc1a3a Fix pagination: relative links instead of absolute 2020-06-03 23:58:20 +03:00
Dmitry Kolosov
17c498dd13 Fix deprecation error about markup type mmark on example sites 2020-06-03 23:39:17 +03:00
Dmitry Kolosov
b5b99ad1ad Fix margin for automatic post summary 2020-06-03 23:26:07 +03:00
Dmitry Kolosov
0ac19e409b Update Readme: images and css paths are relative to static directory 2020-05-30 15:25:44 +03:00
Dmitry Kolosov
3c48720b22
Add information about multilingual mode to Readme 2020-05-27 22:50:15 +03:00
Dmitry Kolosov
0c8ce3901a
Merge pull request #34 from pasierb/multilingual_support
Multilingual support
2020-05-27 22:38:40 +03:00
Dmitry Kolosov
391fe8e5b1 Add dateFormat option. Close #5 2020-05-24 22:55:32 +03:00
Michal Pasierbski
b90922a68f Add language select 2020-05-24 18:30:37 +02:00
Michal Pasierbski
0c40eb4ab7 Add example site with multiple lanaguges 2020-05-24 18:11:30 +02:00
Michal Pasierbski
3f5dced32f Add multilingual support 2020-05-24 18:07:02 +02:00
Michal Pasierbski
9d324b29a7 Add Polish i18n 2020-05-24 18:06:02 +02:00
Dmitry Kolosov
63b73e6d2b Update README: update config section. Close #32 2020-05-14 22:33:21 +03:00
Dmitry Kolosov
2fc2766a24 Add support for _index.md. Close #31 2020-05-07 22:02:59 +03:00
Dmitry Kolosov
1074bfcae3
Add GA info to README. Close #30 2020-05-07 20:05:13 +03:00
Dmitry Kolosov
127f3a40ba Fix rss link. Close #28 2020-04-29 22:27:53 +03:00
Dmitry Kolosov
9b1c2169e9 Update README 2020-04-26 15:24:28 +03:00
Dmitry Kolosov
e05d86f6fe Add skip to main content link (accessibility). Close #24 2020-04-26 15:18:55 +03:00
Dmitry Kolosov
f796d328e5 Fix scroll for pre tag. Close #27 2020-04-26 14:53:07 +03:00
Dmitry Kolosov
c95c954a4f
Merge pull request #26 from aerogus/master
french translation
2020-04-26 14:41:03 +03:00
Dmitry Kolosov
b8fbc2dca7
Merge pull request #25 from kcollasarundell/custom-css-support
Add support for custom CSS files. Close #12
2020-04-26 14:39:42 +03:00
Guillaume Seznec
944ee7139f french translation 2020-04-13 12:39:42 +02:00
Kevin Collas-Arundell
c6754e5264 Add support for custom CSS files
This allows end users to add additional CSS files for use in their site.
They would do this by adding
```
[params]
  customCSS = [
    "mycss.css"
  ]
```
into their config file.
2020-04-06 17:57:16 +10:00
Dmitry Kolosov
43d588d7cd
Merge pull request #23 from sams96/tag-link-fix
Fixed broken link on tags with spaces
2020-04-01 14:14:00 +03:00
Sam Smith
ce1b32b427
Fixed broken link on tags with spaces
Clicking the link to tag with a space would 404, this adds a hyphen
which links to the correct page.
2020-03-08 17:10:05 +00:00
182 changed files with 4322 additions and 767 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
public/
.DS_Store

32
Features.md Normal file
View File

@ -0,0 +1,32 @@
# Features
1. Automatic Dark/Light mode based on system settings
2. Dark/Light mode switcher
3. Automatic Diagram dark/light switch
4. Automatic Giscus dark/light switch
| Feature (light/dark mode) | Anubis2 |
| ---------------------------------------------------------------------- | ------- |
| Line Number (table) and Hilight Lines | ✅ |
| Line Number (true) and Hilight Lines | ✅ |
| Line Number (inline) and Hilight Lines | ✅ |
| Line Number (false) and Hilight Lines | ✅ |
| Line Number (table) and Hilight Lines and Anchor Line | ✅ |
| Line Number (table) and Hilight Inline | ✅ |
| Highlight Shortcode, Line Number (table) and Hilight Lines and Anchor | ✅ |
| Highlight Shortcode, Line Number (inline) and Hilight Lines and Anchor | ✅ |
| Highlight Shortcode, Line Number (false) and Hilight Lines and Anchor | ✅ |
| Mermaid Support (No Config, Lazy Load, Dark/Light Auto Switch) | ✅ |
| MathJax Support (No Config, Lazy Load, Dark/Light Auto Switch) | ✅ |
| Giscus Support (Dark/Light Auto Switch) | ✅ |
| Umami Support (Dark/Light Auto Switch) | ✅ |
| Multi-Author Support | ✅ |
| Multi-Language Support | ✅ |
| Support for \<code\> tag | ✅ |
| Support for \<pre\> tag | ✅ |
| Support for \<kbd\> tag | ✅ |
| Support for \<mark\> tag | ✅ |
| Passed CodePreKbdMark test | ✅ |
| Passed All 8 Summary Rendering Tests | ✅ 8/8 |
| Mermaid dark/light manual switch | ✅ |
| Mermaid dark/light auto switch | ✅ |

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2020 Dmitry Kolosov
Copyright (c) 2020 Junyi
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@ -17,4 +17,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

130
README.md
View File

@ -1,74 +1,100 @@
# Anubis Theme for Hugo
# Anubis2 Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Netlify Status](https://api.netlify.com/api/v1/badges/750dfb45-73dc-4a96-8920-e701e0196959/deploy-status)](https://app.netlify.com/sites/hugo-theme-anubis2/deploys)
Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/).
Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo.io/), check our [Demo](https://www.junyi.dev/).
![Anubis Screenshot](https://raw.githubusercontent.com/mitrichius/hugo-theme-anubis/master/images/screenshot.png)
![image](https://github.com/Junyi-99/hugo-theme-anubis2/assets/14367694/8d9a591b-e168-4328-a770-eb2e8f04f657)
## Features
| Light | Dark (Code) | Dark (Math) |
| :------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------: |
| <img width="1166" alt="demo1" src="https://github.com/user-attachments/assets/dbdd43bc-3efe-4fdf-ab8f-f20af2cf9229"> | <img width="1112" alt="demo3" src="https://github.com/user-attachments/assets/7356ef18-00c7-44c9-91d9-0dfb9b500910"> | <img width="1166" alt="demo2" src="https://github.com/user-attachments/assets/46e19440-b054-4df9-968b-7920d74f3d80"> |
- Pagination
- Tags/Categories support
- Archive
- Mobile support
- Google Analytics
- Disqus
> [!IMPORTANT]
> **Update Your Blog Configuration**
> Please ensure your blog configuration file (`hugo.toml`, `hugo.yaml`, or `hugo.json`) is updated to the latest version provided with the template.
>
> **Hugo frequently changes its configuration file structure**, which may lead to compatibility issues if your configuration is outdated.
>
> Check the [Anubis2 template](https://github.com/Junyi-99/hugo-theme-anubis2/tree/main/exampleSiteMultilingual) for the latest config file.
## Highlighted Features
- Multilingual
- Dark / Light mode (Automatic switch based on system settings)
- Table of Contents
- Comment Support (Giscus, Disque, ISSO, Utterances, GraphComment)
- Analytics (Google, Umami)
- RSS feeds
- Mobile Support
- [Full Features](wiki/Full-Features)
## Installation
## Installation & Configuration
Inside the folder of your Hugo site run:
You need to install an extended version of Hugo to run this theme.
$ git submodule add https://github.com/mitrichius/hugo-theme-anubis.git themes/anubis
For more information read the [official setup guide of Hugo](https://gohugo.io/installation/).
For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.
### Install theme as Git Submodule
## Getting started
After installing the theme successfully it requires a just a few more steps to get your site running.
Inside the folder of your Hugo site, run:
### Update config file
Example:
```yaml
languageCode: "en-us"
baseUrl = ""
title: "Anubis"
theme: "anubis"
paginate: 10
disqusShortname: yourdiscussshortname
googleAnalytics: UA-123-45
menu:
main:
- identifier: archive
name: Archive
title: Archive
url: /posts/
weight: 0
params:
author: ""
description: ""
images:
- images/og-featured.png
```bash
git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis2
```
### Check your site
That's all, let's configure anubis2.
In order to see your site in action, run Hugo's built-in local server.
### Configure your site
`$ hugo server`
Don't be panic, configure Anubis2 is really **simple**.
Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser.
**This is the minimum configuration:**
```toml
baseURL = "https://hugo-theme-anubis2.netlify.app/"
languageCode = "en-us"
theme = "anubis2"
title = "Anubis2 Demo Site"
[params.author]
name = "Junyi"
[markup.goldmark.renderer]
unsafe = true # true | false; Enable unsafe mode to have a better experience
[markup.highlight]
style = 'base16-snazzy' # Chroma style, find more at here: https://swapoff.org/chroma/playground/
```
You are encouraged keeping other fields as defaults and fine-tune them when you have time! (see [Full Configuration Examples](https://github.com/Junyi-99/hugo-theme-anubis2/wiki/Configuration-Example))
In the other way, you can check out the example site's [configuration file](exampleSiteMultilingual/hugo.toml)
## Run your site
In order to see your site, run Hugo's built-in local server.
```bash
hugo server
```
Now enter [`http://localhost:1313`](http://localhost:1313/) in the address bar of your browser to open your site.
## Update Anubis2 to the latest version
In your Hugo site folder, run this command:
```bash
git submodule update --remote
```
## Contributing
If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues).
## TODO
See [issues](https://github.com/mitrichius/hugo-theme-anubis/issues).
If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/Junyi-99/hugo-theme-anubis2/issues) or make a PR.
## License
MIT
(c) Dmitry Kolosov
2020
MIT © Junyi, 2024

View File

@ -3,4 +3,3 @@ title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

77
assets/css/dark.css Normal file
View File

@ -0,0 +1,77 @@
@media (prefers-color-scheme: dark) {
html {
--font-color: #dadadb;
--bg-color: #1d1e20;
--card-color: #2e2e33;
--card-border-color: #333333;
--link-color: #599ada;
--link-state-color: #ff5858;
--link-state-border-color: rgba(238, 54, 54, 0.5);
--thead-bg-color: #343a40;
--table-border-color: lightgrey;
--nav-bg-color: #2e2e33;
--nav-link-color: #b6b6b6;
--pre-color: #f8f8f2;
--pre-bg-color: #292b2d;
--pre-border-color: rgba(175, 184, 193, 0.3);
--kbd-bg-color: #404347;
--bq-color: #ccc;
--hr-color: #333;
--pagination-bg-color: #2e2e33;
--pagination-link-color: #b6b6b6;
--pagination-border-color: #333333;
--pagination-border-radius: 5px;
--post-info-color: grey;
--switcher-color: #fff;
--svg-color: #ccc;
--svg-state-color: #ff5858;
}
}
/* Same as above. */
html[data-theme='dark'] {
--font-color: #dadadb;
--bg-color: #1d1e20;
--card-color: #2e2e33;
--card-border-color: #333333;
--link-color: #599ada;
--link-state-color: #ff5858;
--link-state-border-color: rgba(238, 54, 54, 0.5);
--thead-bg-color: #343a40;
--table-border-color: lightgrey;
--nav-bg-color: #2e2e33;
--nav-link-color: #b6b6b6;
--pre-color: #f8f8f2;
--pre-bg-color: #292b2d;
--pre-border-color: rgba(175, 184, 193, 0.3);
--kbd-bg-color: #404347;
--bq-color: #ccc;
--hr-color: #333;
--pagination-bg-color: #2e2e33;
--pagination-link-color: #b6b6b6;
--pagination-border-color: #333333;
--pagination-border-radius: 5px;
--post-info-color: grey;
--switcher-color: #fff;
--svg-color: #ccc;
--svg-state-color: #ff5858;
}

76
assets/css/light.css Normal file
View File

@ -0,0 +1,76 @@
@media (prefers-color-scheme: light) {
html {
--font-color: #1e1e1e;
--bg-color: #ffffff;
--card-color: #fafafa;
--card-border-color: #eeeeee;
--link-color: #1d60a3;
--link-state-color: rgb(163, 29, 29);
--link-state-border-color: rgba(163, 29, 29, 0.5);
--thead-bg-color: lightgrey;
--table-border-color: lightgrey;
--nav-bg-color: #fafafa;
--nav-link-color: #696969;
--pre-color: rgb(31, 35, 40);
--pre-bg-color: #eff1f2;
--pre-border-color: #e1e5e9;
--kbd-bg-color: #f7f7f7;
--bq-color: #ccc;
--hr-color: #ccc;
--pagination-bg-color: #fafafa;
--pagination-link-color: #696969;
--pagination-border-color: #eeeeee;
--pagination-border-radius: 5px;
--post-info-color: grey;
--switcher-color: #333;
--svg-color: #333;
--svg-state-color: #a31d1d;
}
}
html[data-theme="light"] {
--font-color: #1e1e1e;
--bg-color: #ffffff;
--card-color: #fafafa;
--card-border-color: #eeeeee;
--link-color: #1d60a3;
--link-state-color: rgb(163, 29, 29);
--link-state-border-color: rgba(163, 29, 29, 0.5);
--thead-bg-color: lightgrey;
--table-border-color: lightgrey;
--nav-bg-color: #fafafa;
--nav-link-color: #696969;
--pre-color: rgb(31, 35, 40);
--pre-bg-color: #eff1f2;
--pre-border-color: #e1e5e9;
--kbd-bg-color: #f7f7f7;
--bq-color: #ccc;
--hr-color: #ccc;
--pagination-bg-color: #fafafa;
--pagination-link-color: #696969;
--pagination-border-color: #eeeeee;
--pagination-border-radius: 5px;
--post-info-color: grey;
--switcher-color: #333;
--svg-color: #333;
--svg-state-color: #a31d1d;
}

965
assets/css/main.css Normal file
View File

@ -0,0 +1,965 @@
/* Basic */
:root {
--card-border-radius: 0.5em;
--card-margin: 1.5em;
--icon-margin-left: 1em;
--icon-margin-top: 1em;
}
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/* 1 */
-ms-text-size-adjust: 100%;
/* 2 */
-webkit-text-size-adjust: 100%;
/* 2 */
scroll-behavior: smooth;
}
body {
margin: 0;
font-size: 18px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
color: var(--font-color);
background: var(--bg-color);
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
display: block;
}
.container {
max-width: 42em;
margin: 0 auto;
}
main {
outline: none;
}
/* Table of Contents */
.toc {
cursor: zoom-in;
display: block;
margin-top: 1em;
margin-bottom: 1em;
padding: 0.5em 1em;
/* top & bottom, left & right */
border: 1px solid var(--card-border-color);
border-radius: var(--card-border-radius);
background: var(--card-color);
font-size: 14px;
font-weight: bold;
}
.toc.expanded {
cursor: zoom-out;
}
.toc .inner {
margin: 0px;
padding: 0px;
}
/* Headers */
h1 {
font-size: 1.35em;
}
h2 {
font-size: 1.2em;
margin-top: 3em;
}
h2:first-of-type {
margin-top: 0;
}
h3 {
font-size: 1.1em;
}
/* Links */
a {
color: var(--link-color);
text-decoration: none;
border-bottom: 1px solid transparent;
}
a:hover,
a:focus,
a:active {
color: var(--link-state-color);
border-bottom: 1px solid var(--link-state-border-color);
}
a:active,
a:hover {
outline: 0;
}
a:active {
opacity: 0.9;
}
a.skip-main {
left: -999px;
position: absolute;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: -999;
}
a.skip-main:focus,
a.skip-main:active {
left: auto;
top: 0px;
width: auto;
height: auto;
overflow: auto;
z-index: 999;
padding: 4px 6px 4px 6px;
text-decoration: underline;
border: none;
}
/* Table */
thead {
background: var(--thead-bg-color);
}
.table-wrapper {
overflow-x: auto;
}
table {
max-width: 100%;
display: block;
overflow: scroll;
border-spacing: 0;
border-collapse: collapse;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
font-size: 14px;
}
th,
td {
padding: 0.25em 0.5em;
border: 1px double var(--table-border-color);
}
/* Code */
mark {
border-radius: 4px;
}
code,
pre,
kbd {
color: var(--pre-color);
background-color: var(--pre-bg-color);
font-family: 'Menlo', 'Courier New', 'Consolas', monospace;
font-size: 14.4px;
/* 18px * 0.6 */
line-height: 154%;
border-radius: 6px;
border: 1px solid var(--pre-border-color);
overflow: scroll;
}
/* <code> tag */
code {
font-size: 14.4px;
/* 18px * 0.6 */
padding: 0.1em 0.3em;
}
pre {
padding: 0.3em;
}
/* <kbd> inside <p> */
/* <kbd> inside <pre> */
/* p kbd,
pre kbd {
background-color: transparent;
border: none;
} */
p kbd,
pre kbd,
p kbd kbd,
pre kbd kbd {
font-size: 14.4px;
/* 18px * 0.6 */
background-color: var(--kbd-bg-color);
border: 1px solid var(--pre-border-color);
border-width: 1px 2px 2px 1px;
padding: 0.1em 0.3em;
margin-left: 0.2em;
margin-right: 0.2em;
}
p code,
p kbd {
padding: 0.1em 0.3em;
/* top, bottom */
/* margin-right: 4px; */
}
td pre {
border: none;
/* padding: 0px; */
border-radius: 0px;
}
td:first-child pre {
padding-right: 0;
}
td:last-child pre {
padding-left: 0;
}
td pre code {
/* when there is a line number grid */
padding: 0px;
display: flex;
flex-direction: column;
border-radius: 0px;
/* padding-top: 4px; */
/* padding-bottom: 4px; */
}
div.highlight {
border-radius: 6px;
border: 1px solid var(--pre-border-color);
margin-bottom: 14px;
}
div.highlight div {
overflow: scroll;
}
div.highlight pre {
border: none;
display: grid;
margin: 0px;
overflow: auto;
/* Have to add this line, otherwise the "pre" and "code" will have different width */
/* padding-left: 10px; */
/* padding-right: 10px; */
/* padding-top: 10px; */
/* padding-bottom: 10px; */
}
div.highlight code {
padding-left: 0px;
padding-right: 0px;
overflow: unset;
}
div.highlight code a:hover,
div.highlight code a:focus {
color: white;
border-bottom: 1px solid white;
/*for markup.highlight.anchorLineNos = true*/
}
pre code,
pre kbd {
color: inherit;
background-color: inherit;
border: none;
padding: 0em;
}
/* Styles */
blockquote {
border-left: 2px solid var(--bq-color);
padding: 0.1em 1em;
margin-left: 0.75em;
}
p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
hr {
color: var(--hr-color);
background-color: var(--hr-color);
border: none;
height: 1px;
}
/* Header */
.common-header {
padding-bottom: 1.5em;
/* border-bottom: thin solid var(--hr-color); */
}
header a {
color: var(--font-color);
}
header h1 {
font-size: 1em;
margin-top: 1em;
margin-bottom: 0;
font-weight: normal;
}
header h2 {
font-size: 1em;
margin: 0;
font-weight: normal;
}
.header-top {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
vertical-align: middle;
margin-top: 1em;
}
.header-top-left {
display: flex;
align-items: center;
justify-content: space-between;
}
.site-title {
display: inline;
white-space: nowrap;
font-weight: 700;
}
header nav:not(:empty) {
background: var(--nav-bg-color);
margin-top: var(--card-margin);
max-width: 100%;
text-align: center;
padding: 0.5em 0;
border: 1px solid var(--card-border-color);
border-radius: var(--card-border-radius);
font-size: 14px;
}
header nav a {
display: inline-block;
margin: 0 2.5%;
}
/* Social icons */
.social-icons {
display: inline;
margin: var(--icon-margin-top) 0 0 var(--icon-margin-left);
padding: 0;
list-style-type: none;
}
.social-icons li {
display: inline;
}
.social-icons li:not(:first-of-type) {
margin-left: var(--icon-margin-left);
}
.social-icons a:hover,
.social-icons a:focus,
.social-icons a:active {
color: inherit;
border-bottom: none;
text-decoration: none;
}
.inline-svg {
display: inline-block;
height: 1.15rem;
width: 1.15rem;
top: 0.15rem;
position: relative;
}
/* Pages */
main h1 {
margin-top: 1em;
font-weight: normal;
line-height: 1.1em;
margin-bottom: 0.5em;
font-weight: 600;
}
.post-card {
border: 1px solid var(--card-border-color) !important;
border-radius: 0.5em;
padding: 0em 1em 1em 1em;
background: var(--card-color);
}
article:not(:last-of-type) {
margin-bottom: var(--card-margin);
}
.post-short-list:first-of-type {
margin-top: 1em;
}
.post-short-list img {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto .5em;
}
.post-short-list video {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto .5em;
}
/* Articles */
.post-header {
margin-top: 1em;
line-height: 1.1em;
margin-bottom: 1em;
}
.post-header header {
display: inline;
}
.post-navigation {
background: var(--nav-bg-color);
text-align: center;
margin-top: 1em;
max-width: 100%;
padding: 0.5em 0;
}
.post-navigation a:first-of-type {
margin-left: 0;
}
.post-navigation a {
color: var(--nav-link-color);
margin-left: 2em;
}
.post-navigation a:hover,
.post-navigation a:focus,
.post-navigation a:active {
color: var(--link-state-color);
}
.post-list {
border: #777;
}
.post-short-list .post-title {
display: inline;
}
.post-title.favorite::after {
content: "🌟";
display: inline-block;
margin-left: 0.2em;
}
.post-title.draft::after {
content: "✏️";
display: inline-block;
margin-left: 0.2em;
}
.post-title.favorite.draft::after {
content: "🌟 ✏️";
display: inline-block;
margin-left: 0.2em;
}
/* article:not(:last-of-type) {
border-bottom: thin solid var(--hr-color);
padding-bottom: 2em;
} */
article header h1 {
font-size: 1.35em;
line-height: 1.1em;
margin-bottom: 0.5em;
font-weight: 600;
display: inline;
}
article header h1 a {
color: var(--font-color);
border: none;
text-decoration: none;
}
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
position: relative;
}
.post h1 a,
.post h2 a,
.post h3 a,
.post h4 a,
.post h5 a,
.post h6 a {
opacity: 1;
border-bottom: none;
}
.post h1:hover a,
.post h2:hover a,
.post h3:hover a,
.post h4:hover a,
.post h5:hover a,
.post h6:hover a {
opacity: 1;
border-bottom: none;
}
.post h1 a:hover,
.post h1 a:focus,
.post h1 a:active,
.post h2 a:hover,
.post h2 a:focus,
.post h2 a:active,
.post h3 a:hover,
.post h3 a:focus,
.post h3 a:active,
.post h4 a:hover,
.post h4 a:focus,
.post h4 a:active,
.post h5 a:hover,
.post h5 a:focus,
.post h5 a:active,
.post h6 a:hover,
.post h6 a:focus,
.post h6 a:active {
border-bottom: none;
}
.post h1 svg,
.post h2 svg,
.post h3 svg,
.post h4 svg,
.post h5 svg,
.post h6 svg {
stroke: var(--svg-color);
}
.post h1 svg:hover,
.post h1 svg:focus,
.post h1 svg:active,
.post h2 svg:hover,
.post h2 svg:focus,
.post h2 svg:active,
.post h3 svg:hover,
.post h3 svg:focus,
.post h3 svg:active,
.post h4 svg:hover,
.post h4 svg:focus,
.post h4 svg:active,
.post h5 svg:hover,
.post h5 svg:focus,
.post h5 svg:active,
.post h6 svg:hover,
.post h6 svg:focus,
.post h6 svg:active {
stroke: var(--svg-state-color);
}
.post-list .post-info {
color: var(--post-info-color);
font-size: 0.75em;
margin-top: 1em;
margin-bottom: 1em;
display: block;
gap: 1em;
}
.post-info {
color: var(--post-info-color);
font-size: 0.75em;
margin-top: 1em;
margin-bottom: 1em;
display: flex;
gap: 1em;
}
.post-info a {
color: var(--post-info-color);
}
.post-info a:hover {
color: var(--link-state-color);
}
.post-short-list .post-info {
margin-top: 0;
margin-bottom: 1.5em;
}
.post-taxonomies {
display: inline;
}
.post-hidden-url {
display: none;
}
.post-hidden-author {
display: none;
}
.post-date {
white-space: nowrap;
}
.post-categories {
display: inline;
list-style-type: none;
padding: 0;
}
.post-categories li {
display: inline;
margin-right: 1em;
}
.post-tags {
display: inline;
list-style-type: none;
padding: 0;
margin: 0;
}
.post-tags li {
display: inline;
margin-right: 1em;
}
.post-authors {
display: inline;
list-style-type: none;
padding: 0;
margin: 0;
}
.post-authors li {
display: inline;
margin-right: 1em;
}
article img {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto .5em;
}
article figcaption {
color: grey;
text-align: center;
font-size: 0.85em;
margin-bottom: 2em;
}
article video {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto .5em;
}
code.has-jax {
-webkit-font-smoothing: antialiased;
background: inherit !important;
border: none !important;
font-size: 100%;
}
.read-more {
margin: 1em 0;
}
.divider {
border-top: thin solid var(--hr-color);
display: block;
height: 1px;
border: 0;
width: 25%;
margin: 1em auto;
}
.post-summary {
margin-top: 0.5em;
display: block;
}
.post-summary>p {
display: block;
}
.post-translations {
margin-left: 0.5em;
list-style: none;
padding: 0;
display: inline;
font-size: 14px;
}
.post-translations>li {
display: inline;
}
.post-translations>li:not(:last-child)::after {
content: "|";
display: inline-block;
margin-left: 4px;
margin-right: 4px;
}
.post-translations>li a {
color: var(--link-color);
}
.post-translations>li a:hover,
.post-translations>li a:focus {
color: var(--link-state-color);
}
.read-next-title {
margin-bottom: 0;
margin-top: 3em;
padding-top: 1em;
border-top: 1px dashed var(--thead-bg-color);
}
.read-next-posts {
margin-top: 5px;
list-style-type: "- ";
padding-inline-start: 20px;
}
/* Other pages */
.terms {
list-style-type: none;
padding: 0;
line-height: 2em;
}
/* Pagination */
.pagination {
display: flex;
justify-content: space-between;
margin-top: 3em;
text-align: center;
}
.pagination-item {
border: 1px solid var(--pagination-border-color);
border-radius: var(--pagination-border-radius);
background: var(--pagination-bg-color);
padding: 0.25em 0.75em;
}
.pagination-item a {
color: var(--pagination-link-color);
}
.pagination-item a:hover,
.pagination-item a:focus {
color: var(--link-state-color);
}
.disabled {
visibility: hidden;
}
.pagination-item a:hover,
.pagination-item a:focus {
border-bottom: 0;
}
.post-pagination .pagination-item {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 16em;
}
/* Footer */
.common-footer {
padding-top: 1.5em;
margin-top: 3em;
font-size: 12px;
margin-bottom: 1.5em;
color: var(--pagination-link-color);
}
.common-footer-bottom {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
ul.language-select,
ul.footer-menu {
padding-left: 0;
list-style: none;
display: flex;
}
ul.language-select>li,
ul.footer-menu>li {
margin-right: 1em;
}
.theme-switcher {
color: var(--switcher-color);
/* padding: 0.5em 1em; */
margin: var(--icon-margin-top) 0 0 var(--icon-margin-left);
cursor: pointer;
}
.h-card {
display: none;
}
/* Copy code */
.highlight {
position: relative;
overflow: hidden;
}
.highlight:hover .highlight-copy-btn {
display: inline-block;
border: 1px solid rgba(0, 0, 0, 0.5);
}
.highlight-copy-btn {
display: none;
position: absolute;
top: 0px;
right: 0px;
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 6px;
padding: 1px;
font-size: 0.7em;
line-height: 1.8;
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
min-width: 22px;
text-align: center;
transition: border 0.3s;
transition: background-color 0.3s;
}
.highlight-copy-btn:hover {
transition-duration: .1s;
background-color: rgba(255, 255, 255, 0.3);
cursor: pointer;
}
.highlight-copy-btn,
.highlight-copy-btn svg {
vertical-align: middle;
margin: 8px;
}
/* Others */
.noselect {
-webkit-touch-callout: none;
/* iOS Safari */
-webkit-user-select: none;
/* Safari */
-khtml-user-select: none;
/* Konqueror HTML */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently
supported by Chrome and Opera */
}
/* Media Queries */
@media (max-width: 840px) {
.main-wrapper {
margin: 0;
max-width: none;
overflow-x: hidden;
padding-left: 25px;
padding-right: 25px;
}
.container {
max-width: 90%;
margin: 0 auto;
word-wrap: break-word;
}
.pagination-item {
padding: 0.5em 0.5em;
font-size: 14px;
}
.post-navigation {
background: var(--pagination-bg-color);
text-align: center;
padding: 0.5em 0;
}
.post-navigation a {
margin-left: 0.5em;
}
.post-pagination .pagination-item {
max-width: 10em;
}
}

1
assets/images/link.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/></svg>

After

Width:  |  Height:  |  Size: 433 B

64
assets/js/copy-code.js Normal file
View File

@ -0,0 +1,64 @@
/*
This file has been taken from following blogpost with some modifications:
https://koki-nakamura22.github.io/blog/2019/10/03/hugo-adding-copy-button/
Many thanks to Koki Nakamura!
*/
document.addEventListener("DOMContentLoaded", function(event) {
'use strict';
if(!document.queryCommandSupported('copy')) {
return;
}
let svgCopyCode = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /></svg>';
let svgSuccessCode = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard-check"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M9 14l2 2l4 -4" /></svg>';
let svgFailCode = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-clipboard-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2" /><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M10 12l4 4m0 -4l-4 4" /></svg>';
function changeIcon(el, innerHtml) {
el.innerHTML = innerHtml;
setTimeout(() => {
el.innerHTML = svgCopyCode;
}, 1000);
}
function selectText(node) {
let selection = window.getSelection();
let range = document.createRange();
if (node.childElementCount === 2) {
// Skip the title.
range.selectNodeContents(node.children[1]);
} else {
range.selectNodeContents(node);
}
selection.removeAllRanges();
selection.addRange(range);
return selection;
}
function addCopyButton(containerEl) {
let copyBtn = document.createElement("button");
copyBtn.className = "highlight-copy-btn";
copyBtn.innerHTML = svgCopyCode;
let codeEl = containerEl.firstElementChild;
copyBtn.addEventListener('click', () => {
try {
let selection = selectText(codeEl);
document.execCommand('copy');
selection.removeAllRanges();
changeIcon(copyBtn, svgSuccessCode)
} catch(e) {
console && console.log(e);
changeIcon(copyBtn, svgFailCode)
}
});
containerEl.appendChild(copyBtn);
}
// Add copy button to code blocks
let highlightBlocks = document.getElementsByClassName('highlight');
Array.prototype.forEach.call(highlightBlocks, addCopyButton);
}, false);

69
assets/js/load-mermaid.js Normal file
View File

@ -0,0 +1,69 @@
/*!
* Simple-Jekyll-Search
* Copyright 2015-2020, Christian Fei
* Licensed under the MIT License.
*/
(function(window){
'use strict'
const elementCode = '.mermaid'
const loadMermaid = function(theme) {
window.mermaid.initialize({theme})
window.mermaid.init({theme}, document.querySelectorAll(elementCode))
}
const saveOriginalData = function(){
return new Promise((resolve, reject) => {
try {
var els = document.querySelectorAll(elementCode),
count = els.length;
els.forEach(element => {
element.setAttribute('data-original-code', element.innerHTML)
count--
if(count == 0){
resolve()
}
});
} catch (error) {
reject(error)
}
})
}
const resetProcessed = function(){
return new Promise((resolve, reject) => {
try {
var els = document.querySelectorAll(elementCode),
count = els.length;
els.forEach(element => {
if(element.getAttribute('data-original-code') != null){
element.removeAttribute('data-processed')
element.innerHTML = element.getAttribute('data-original-code')
}
count--
if(count == 0){
resolve()
}
});
} catch (error) {
reject(error)
}
})
}
const init = ()=>{
saveOriginalData()
.catch( console.error )
document.body.addEventListener('dark-theme-set', ()=>{
resetProcessed()
.then(loadMermaid('dark'))
.catch(console.error)
})
document.body.addEventListener('light-theme-set', ()=>{
resetProcessed()
.then(loadMermaid('default'))
.catch(console.error)
})
}
window.initMermaid = init
})(window);

39
data/social.yaml Normal file
View File

@ -0,0 +1,39 @@
social_icons:
email: mailto:%s
facebook: https://www.facebook.com/%s
github: https://github.com/%s
instagram: https://www.instagram.com/%s
linkedin: https://www.linkedin.com/in/%s
mastodon: "%s"
patreon: https://www.patreon.com/%s
reddit: https://www.reddit.com/user/%s
snapchat: https://www.snapchat.com/s/%s
soundcloud: https://soundcloud.com/%s
spotify: https://open.spotify.com/user/%s
telegram: tg://resolve?domain=%s
twitch: https://www.twitch.tv/%s
twitter: https://twitter.com/%s
vk: https://vk.com/%s
youtube: https://www.youtube.com/c/%s
4chan:
bluesky: https://bsky.app/profile/%s
# docs:
gitlab:
leetcode: https://leetcode.com/%s
medium:
netease-music:
notion:
qq:
# rss:
skype:
slack:
steam:
teams:
# theme-dark:
# theme-light:
tiktok:
tinder:
tumblr:
weibo:
x: https://twitter.com/%s
zhihu: https://www.zhihu.com/people/%s

View File

@ -1,40 +0,0 @@
baseURL = "https://example.com"
languageCode = "en-us"
title = "Anubis"
theme = "anubis"
paginate = 3
disqusShortname = ""
googleAnalytics = ""
[author]
name = "Dmitry Kolosov"
[params]
author = "Dmitry Kolosov"
description = "Anubis is a simple minimalist theme for Hugo blog engine."
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "/about/"
weight = 1
[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 2
[[menu.main]]
name = "Archive"
identifier = "archive"
url = "/posts/"
weight = 3
[taxonomies]
category = "categories"
tag = "tags"
series = "series"

View File

@ -1,5 +0,0 @@
---
date: 2019-05-28
type: section
layout: "archives"
---

View File

@ -1,46 +0,0 @@
---
author: Hugo Authors
title: Math Typesetting
date: 2019-03-08
description: A brief guide to setup KaTeX
markup: mmark
math: true
---
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
<!--more-->
In this example we will be using [KaTeX](https://katex.org/)
- Create a partial under `/layouts/partials/math.html`
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
- Include the partial in your templates like so:
```
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
```
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
- To enable KaTex on a per page basis include the parameter `math: true` in content files.
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}}
{{ if or .Page.Params.math .Site.Params.math }}
<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.css" integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.js" integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
{{ end }}
{{</ math.inline >}}
### Examples
Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
Block math:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$

3
exampleSiteMultilingual/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.hugo_build.lock
public/
resources/

View File

@ -0,0 +1,11 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
# - id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files

View File

@ -0,0 +1,9 @@
@import 'foundation/vars';
junyi {
display: block;
font: 100% $font-stack;
color: $primary-color;
background-color: $background-color;
margin-top: 1em;
}

View File

@ -0,0 +1,7 @@
.anubis-custom-style {
background-color: pink;
color: black;
padding: 1em;
border-radius: 0.3em;
border: 1px solid black;
}

View File

@ -0,0 +1,3 @@
$font-stack: Helvetica, sans-serif;
$primary-color: rgb(255, 255, 168);
$background-color: rgb(85, 85, 85);

View File

@ -1,4 +1,3 @@
+++
author = "Hugo Authors"
+++

View File

@ -1,28 +1,27 @@
+++
title = "About"
description = "Hugo, the worlds fastest framework for building websites"
date = "2019-02-28"
aliases = ["about-us","about-hugo","contact"]
author = "Hugo Authors"
date = "2024-04-09"
aliases = ["about-us", "about-hugo"]
author = ["Hugo Authors", "Junyi"]
+++
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
[Anubis2](https://github.com/Junyi-99/hugo-theme-anubis2) is another simple minimalist theme for Hugo blog engine.
Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
Hugo makes use of a variety of open source projects including:
* https://github.com/yuin/goldmark
* https://github.com/alecthomas/chroma
* https://github.com/muesli/smartcrop
* https://github.com/spf13/cobra
* https://github.com/spf13/viper
* <https://github.com/yuin/goldmark>
* <https://github.com/alecthomas/chroma>
* <https://github.com/muesli/smartcrop>
* <https://github.com/spf13/cobra>
* <https://github.com/spf13/viper>
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
Learn more and contribute on [GitHub](https://github.com/gohugoio).

View File

@ -0,0 +1,29 @@
+++
title = "About"
description = "Hugo, the worlds fastest framework for building websites"
date = "2024-04-09"
aliases = ["about-us", "about-hugo"]
author = ["Hugo Authors", "Junyi"]
+++
[Anubis2](https://github.com/Junyi-99/hugo-theme-anubis2) to kolejny prosty, minimalistyczny motyw dla silnika blogowego Hugo.
Napisany w języku Go, Hugo jest statycznym generatorem stron o otwartym kodzie źródłowym dostępnym na licencji [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE). Hugo obsługuje typy plików danych TOML, YAML i JSON, pliki treści Markdown i HTML oraz wykorzystuje skróty do dodawania bogatej zawartości. Inne godne uwagi funkcje to taksonomie, tryb wielojęzyczny, przetwarzanie obrazów, niestandardowe formaty wyjściowe, minifikacja HTML/CSS/JS i obsługa przepływów pracy Sass SCSS.
Hugo korzysta z różnych projektów open source, w tym:
* <https://github.com/yuin/goldmark>
* <https://github.com/alecthomas/chroma>
* <https://github.com/muesli/smartcrop>
* <https://github.com/spf13/cobra>
* <https://github.com/spf13/viper>
Hugo jest idealny dla blogów, stron korporacyjnych, kreatywnych portfolio, magazynów online, aplikacji jednostronicowych, a nawet witryn z tysiącami stron.
Hugo jest przeznaczony dla osób, które chcą ręcznie zakodować własną stronę internetową, nie martwiąc się o konfigurowanie skomplikowanych środowisk uruchomieniowych, zależności i baz danych.
Strony internetowe zbudowane za pomocą Hugo są niezwykle szybkie, bezpieczne i mogą być wdrażane w dowolnym miejscu, w tym w AWS, GitHub Pages, Heroku, Netlify i u dowolnego innego dostawcy usług hostingowych.
Dowiedz się więcej i wnieś swój wkład na [GitHub](https://github.com/gohugoio).
Przetłumaczono z DeepL.com (wersja darmowa)

View File

@ -0,0 +1,27 @@
+++
title = "About"
description = "Hugo, the worlds fastest framework for building websites"
date = "2024-04-09"
aliases = ["about-us", "about-hugo"]
author = ["Hugo Authors", "Junyi"]
+++
[Anubis2](https://github.com/Junyi-99/hugo-theme-anubis2) 是另一个适用于 Hugo 博客引擎的简约主题。
Hugo 是用 Go 语言编写的,是一个开源的静态站点生成器,可在 Apache License 2.0 下获得。Hugo 支持 TOML、YAML 和 JSON 数据文件类型Markdown 和 HTML 内容文件并使用短代码添加丰富内容。其他显著特性包括分类法、多语言模式、图像处理、自定义输出格式、HTML/CSS/JS 压缩以及对 Sass SCSS 工作流的支持。
Hugo 利用了多个开源项目,包括:
* <https://github.com/yuin/goldmark>
* <https://github.com/alecthomas/chroma>
* <https://github.com/muesli/smartcrop>
* <https://github.com/spf13/cobra>
* <https://github.com/spf13/viper>
Hugo 非常适合博客、企业网站、创意作品集、在线杂志、单页应用程序,甚至是拥有数千页的网站。
Hugo 适用于那些想要亲手编码自己网站的人,而不用担心设置复杂的运行时、依赖和数据库。
使用 Hugo 构建的网站非常快速、安全,并且可以部署在任何地方,包括 AWS、GitHub Pages、Heroku、Netlify 和任何其他托管提供商。
在 GitHub 上了解更多并贡献。

View File

@ -4,4 +4,4 @@ button: 'About us'
weight: 2
---
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,

View File

@ -4,4 +4,4 @@ button: 'Our Work'
weight: 1
---
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.

View File

@ -0,0 +1,6 @@
+++
aliases = ["posts","articles","blog","showcase","docs"]
title = "Posts"
author = "Hugo Authors"
tags = ["index"]
+++

View File

@ -0,0 +1,66 @@
+++
author = "Hugo Authors"
title = "Advanced Style"
date = "2024-04-09"
description = "Guide to advanced usage of Anubis2"
tags = [
"emoji",
]
+++
There are examples of how to use custom `global-wise style` or `page-wise style`.
<!--more-->
<div class="anubis-custom-style">
The custom <code>.css</code> <code>.scss</code> <code>.sass</code> file should be placed in <code>assets/</code> folder. (instead of <code>static/</code>)
</div>
<junyi>
This page is affected by <code>assets/css/custom1.scss</code> and <code>assets/css/custom2.css</code> and <code>advanced-style/style.css</code>
</junyi>
<junyi><code>advanced-style/style.css</code> affects only the current page.</junyi>
```html
<style>
@import 'style.css';
</style>
```
<style>
@import 'style.css';
</style>
<junyi><code>assets/css/custom1.scss</code> and <code>assets/css/custom2.scss</code> will have global effect.
```scss
// assets/css/custom2.css
.anubis-custom-style {
background-color: pink;
color: black;
padding: 1em;
border-radius: 0.3em;
border: 1px solid black;
}
```
```scss
// assets/css/foundation/_vars.scss
$font-stack: Helvetica, sans-serif;
$primary-color: rgb(255, 255, 168);
$background-color: rgb(85, 85, 85);
```
```scss
// assets/css/custom1.scss
@import 'foundation/vars';
junyi {
display: block;
font: 100% $font-stack;
color: $primary-color;
background-color: $background-color;
margin-top: 1em;
}
```

View File

@ -0,0 +1,8 @@
@import 'subfolder/hello.scss';
.container {
max-width: none;
padding-left: 5em;
padding-right: 5em;
background-color: white;
}

View File

@ -0,0 +1,120 @@
+++
author = "Hugo Authors"
title = "Demo - Support for code, pre, kbd, mark"
date = "2024-04-30"
description = "Guide to advanced usage of Anubis2"
tags = [
"emoji",
]
+++
## Individual support for code, pre, kbd, mark
`code` <pre>pre</pre>
<kbd>CRTL</kbd> + <kbd>K</kbd> + <kbd>B</kbd> + <kbd>D</kbd>
<!--more-->
Feel free to switch between the light and dark themes to see the rendering differences.
### Support for \<code\> tag
<code>Direct Code</code>
`A verrrrrryyyyy llloooonnnggg coooodeeee`
`code` `is` `here`
```plain
multiline
code
here
```
```typescript
// ```typescript
interface User {
id: number
firstName: string
lastName: string
role: string
}
```
```typescript {linenos=inline}
// ```typescript {linenos=inline}
function updateUser(id: number, update: Partial<User>) {
const user = getUser(id)
const newUser = { ...user, ...update }
saveUser(id, newUser)
}
```
```typescript {linenos=true}
// ```typescript {linenos=true}
function updateUser(id: number, update: Partial<User>) {
const user = getUser(id)
const newUser = { ...user, ...update }
saveUser(id, newUser)
}
```
### Support for \<pre\> tag
<pre>pre text</pre>
<pre>pre text</pre>
<pre>pre text</pre>
### Support for \<kbd\> tag
<p>Press <kbd>CTRL</kbd> + <kbd>C</kbd> to copy text (Windows).</p>
<p>Press <kbd>CMD</kbd> + <kbd>C</kbd> to copy text (Mac OS).</p>
Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
### Support for \<mark\> tag
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
### Support for \<kbd\> in \<pre\>
<pre>This is a <kbd>KBD</kbd> inside a pre. </pre>
### Support for \<kbd\> in \<code\> (❌ Should not be used)
<code>This is a <kbd>KBD</kbd> inside a code. </code>
### Support for \<code\> in \<pre\> (❌ Should not be used)
<pre>This is a <code>CODE</code> inside a pre. </pre>
### Support for \<code\> in \<kbd\> (❌ Should not be used)
<kbd>This is a <code>CODE</code> inside a kbd. </kbd>
### Support for \<pre\> in \<kbd\> (❌ Should not be used)
<kbd>This is a <pre>PRE</pre> inside a kbd. </kbd>
### Support for \<pre\> in \<code\> (❌ Should not be used)
<code>This is a <pre>PRE</pre> inside a code. </code>
### Support for \<mark\> in \<kbd\>
<kbd>This is a <mark>MARK</mark> inside a kbd. </kbd>
### Support for \<mark\> in \<code\>
<code>This is a <mark>MARK</mark> inside a code. </code>
### Support for \<mark\> in \<pre\>
<pre>This is a <mark>MARK</mark> inside a pre. </pre>

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-chart-histogram"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 3v18h18" /><path d="M20 18v3" /><path d="M16 16v5" /><path d="M12 13v8" /><path d="M8 16v5" /><path d="M3 11c6 0 5 -5 9 -5s3 5 9 5" /></svg>

After

Width:  |  Height:  |  Size: 468 B

View File

@ -0,0 +1,110 @@
+++
author = "Hugo Authors"
title = "Demo - Support for Diagrams"
date = "2024-05-06"
description = "Guide to advanced usage of Anubis2"
tags = [
"emoji",
]
+++
Feel free to switch between the light and dark themes to see how the diagram adapts its colors accordingly.
## Mermaid Diagrams
```mermaid
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1, 20d
section Another
Task in Another :2014-01-12, 12d
another task :24d
```
Get more examples at [About Mermaid](https://mermaid.js.org/intro/)
<!--more-->
```mermaid
gitGraph:
commit "Ashish"
branch newbranch
checkout newbranch
commit id:"1111"
commit tag:"test"
checkout main
commit type: HIGHLIGHT
commit
merge newbranch
commit
branch b2
commit
```
```mermaid
stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```
```mermaid
sankey-beta
Pumped heat,"Heating and cooling, ""homes""",193.026
Pumped heat,"Heating and cooling, ""commercial""",70.672
```
```mermaid
sequenceDiagram
loop Daily query
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
else is well
Bob->>Alice: Feeling fresh like a daisy
end
opt Extra response
Bob->>Alice: Thanks for asking
end
end
```
```mermaid
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
## GoAT
```goat
. . . .--- 1 .-- 1 / 1
/ \ | | .---+ .-+ +
/ \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
+ + | | | | ---+ ---+ +
/ \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
/ \ / \ | | | | | | | | '---+ '-+ +
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
```

View File

@ -0,0 +1,110 @@
+++
author = "Hugo Authors"
title = "Demo - Support for Diagrams"
date = "2024-05-06"
description = "Guide to advanced usage of Anubis2"
tags = [
"emoji",
]
+++
Feel free to switch between the light and dark themes to see how the diagram adapts its colors accordingly.
## Mermaid Diagrams
```mermaid
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1, 20d
section Another
Task in Another :2014-01-12, 12d
another task :24d
```
Get more examples at [About Mermaid](https://mermaid.js.org/intro/)
<!--more-->
```mermaid
gitGraph:
commit "Ashish"
branch newbranch
checkout newbranch
commit id:"1111"
commit tag:"test"
checkout main
commit type: HIGHLIGHT
commit
merge newbranch
commit
branch b2
commit
```
```mermaid
stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```
```mermaid
sankey-beta
Pumped heat,"Heating and cooling, ""homes""",193.026
Pumped heat,"Heating and cooling, ""commercial""",70.672
```
```mermaid
sequenceDiagram
loop Daily query
Alice->>Bob: Hello Bob, how are you?
alt is sick
Bob->>Alice: Not so good :(
else is well
Bob->>Alice: Feeling fresh like a daisy
end
opt Extra response
Bob->>Alice: Thanks for asking
end
end
```
```mermaid
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
## GoAT
```goat
. . . .--- 1 .-- 1 / 1
/ \ | | .---+ .-+ +
/ \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
+ + | | | | ---+ ---+ +
/ \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
/ \ / \ | | | | | | | | '---+ '-+ +
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
```

View File

@ -0,0 +1,206 @@
+++
author = "Junyi"
title = "Demo - Multiline Codes"
date = "2024-04-23"
description = "Codes, Codefences, and Syntax Highlighting."
tags = [
"icons",
"anubis2",
"hugo"
]
+++
```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
## Truth Table
| Item | Line Numbers | Highlight Lines | Anchor Lines | Wide CodeBlock Scroll | Supported |
| ------------------------ | ------------ | --------------- | ------------ | --------------------- | --------- |
| **Full Feature Support** | ture | true | true | ✅ | ✅ |
| | table | true | true | ✅ | ✅ |
| | table | true | false | ✅ | ✅ |
| | inline | | | ✅ | ✅ |
| | ture | true | false | ✅ | ✅ |
| | ture | false | false | ✅ | ✅ |
| | false | true | / | ✅ | ✅ |
| Basic Support | false | false | / | ✅ | ✅ |
Note: Anubis2 does not support `hl_inline=true`
<!--more-->
## Line Numbers, Highlight Lines
### Line Number (table) and Highlight Lines
`linenos=table` will give copy-and-paste friendly code blocks.
```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199}
// codes ...
```
```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
### Line Number (true) and Highlight Lines
```c {linenos=true, hl_lines=[1,"3-4",8], linenostart=1}
// codes ...
```
```c {linenos=true, hl_lines=[1,"3-4",8], linenostart=1}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
### Line Number (inline) and Highlight Lines
```c {linenos=inline, hl_lines=[1,"3-4",8], linenostart=1}
// codes ...
```
```c {linenos=inline, hl_lines=[1,"3-4",8], linenostart=1}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
### Line Number (false) and Highlight Lines
`linenos=false` will turn off line numbers if its configured to be on in site configuration.
```c {linenos=false, hl_lines=[1,"3-4",8]}
// codes ...
```
```c {linenos=false, hl_lines=[1,"3-4",8]}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
## Anchor, Inline, Shortcode
### Line Number (table) and Highlight Lines and Anchor
Now you can click on the line number to get a link to that line.
```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199, anchorlinenos=true}
// codes ...
```
```c {linenos=table, hl_lines=[1,"3-4",8], linenostart=199, anchorlinenos=true}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
### Highlight Inline are not supported by Anubis2 ❌
```c {linenos=true,hl_lines=[1,3,5], hl_inline=true}
// codes ...
```
```c {linenos=true,hl_lines=[1,3,5], hl_inline=true}
int main() {
int a = 1;
if (a == 999)
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
```
<!--
Those are trash codes.
### Highlight shortcode, with Line Number (table), with Highlight Lines and Anchor
{{</* highlight c "linenos=table,hl_lines=1 3-4 8, anchorlinenos=true" */>}}
// codes
{{</* /highlight */>}}
{{< highlight c "linenos=table,hl_lines=1 3-4 8, anchorlinenos=true" >}}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
{{< / highlight >}}
### Highlight shortcode, with Line Number (inline), with Highlight Lines and Anchor
{{</* highlight c "linenos=inline,hl_lines=1 3-4 8, anchorlinenos=true" */>}}
// codes
{{</* /highlight */>}}
{{< highlight c "linenos=inline,hl_lines=1 3-4 8, anchorlinenos=true" >}}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
{{< / highlight >}}
### Highlight shortcode, No Line Number, With Highlight Lines and Anchor
{{</* highlight c "linenos=false,hl_lines=1 3-4 8, anchorlinenos=true" */>}}
// codes
{{</* /highlight */>}}
{{< highlight c "linenos=false,hl_lines=1 3-4 8, anchorlinenos=true" >}}
int main() {
int a = 1;
if (a == 999)
// This is a very long comment to test the `overflow` attribute defined in CSS. The `overflow` property in CSS deals with the content when it overflows the block-level container. It can take the following values: `visible` (default), `hidden`, `scroll`, `auto`, and `clip`.
// If `visible` is specified, the content is not clipped and can render outside the container. If `hidden` is specified, the content is clipped and the rest of the content will be invisible. If `scroll` is specified, the browser should provide a scrolling mechanism for the user to access the clipped content.
}
return 0;
}
{{< / highlight >}} -->

View File

@ -0,0 +1,24 @@
---
title: "Demo - Summary Rendering Test 1 (😃 Easy)"
date: 2024-04-25T1:54:12+08:00
draft: true
hidden: true
tags: [Hugo]
---
This is a summary rendering test.
## Test Heading
<!--more-->
`<!--more-->` is applied here.
## Test Heading Again
The content below should be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,21 @@
---
title: "Demo - Summary Rendering Test 2 (😏 Easy)"
date: 2024-04-25T1:54:13+08:00
draft: true
hidden: true
tags: [Hugo]
---
<!--more-->
<mark>You should not see this line in preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,27 @@
---
title: "Demo - Summary Rendering Test 3 (🤔 Easy)"
date: 2024-04-25T1:54:14+08:00
draft: true
hidden: true
tags: [Hugo]
---
```c
int main() {
return 0; // Only see this in the summary view
}
```
<!--more-->
<mark>You MUST NOT see me in the preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,25 @@
---
title: "Demo - Summary Rendering Test 4 (😅 Easy?)"
date: 2024-04-25T1:54:15+08:00
draft: true
hidden: true
tags: [Hugo]
---
## Hi, can you see "aaa" in the summary?
aaa
<!--<!--more-->
<mark>You MUST NOT see me in the preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,27 @@
---
title: "Demo - Summary Rendering Test 5 (😥 Medium)"
date: 2024-04-25T1:54:16+08:00
draft: true
hidden: true
tags: [Hugo]
---
```c
int main() {
return 0; // <!--more--> Only see this in the summary view
}
```
<mark>You MUST NOT see me in the preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,29 @@
---
title: "Demo - Summary Rendering Test 6 (🤯 Hard)"
date: 2024-04-25T1:54:17+08:00
draft: true
hidden: true
tags: [Hugo]
---
```c {linenos=inline}
int main() {
// Is your theme able to handle this?
// Are the content below rendered correctly?
return 0; // Only see this in the summary view
}
```
<!--<!--more-->
<mark>You MUST NOT see me in the preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,29 @@
---
title: "Demo - Summary Rendering Test 7 (😱 Bad Dream)"
date: 2024-04-25T1:54:18+08:00
draft: true
hidden: true
tags: [Hugo]
---
```c {linenos=table}
int main() {
// Is your theme able to handle this?
// Are the content below rendered correctly?
return 0; // Only see this in the summary view
}
```
<!--<!--more-->
<mark>You MUST NOT see me in the preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -0,0 +1,29 @@
---
title: "Demo - Summary Rendering Test 8 (💀 Nightmare)"
date: 2024-04-25T1:54:19+08:00
draft: true
hidden: true
tags: [Hugo]
---
<!--<!--more-->
```c {linenos=table}
int main() {
// Is your theme able to handle this? <!--<!--more-->
// Are the content below rendered correctly? <!--more-->
return 0; // Only see this in the summary view
}
```
<!--<!--more-->
<mark>You MUST NOT see me in the preview</mark>
## Test Heading
The content below should also be hidden in the summary view.
<!--more-->
```html
Will <!--<!--more--> cause a rendering issue?
```

View File

@ -8,9 +8,9 @@ tags = [
]
+++
Emoji can be enabled in a Hugo project in a number of ways.
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
Emoji can be enabled in a Hugo project in a number of ways.
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your sites [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
@ -44,4 +44,4 @@ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,And
}
}
</style>
{{< /css.inline >}}
{{< /css.inline >}}

View File

@ -0,0 +1,46 @@
+++
author = "Hugo Authors"
title = "Emoji 支持"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
tags = [
"emoji",
]
+++
在 Hugo 博客里,你可以用多种方式使用 Emoji
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your sites [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
***
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}

View File

@ -0,0 +1,12 @@
+++
author = "Junyi"
title = "Hidden Post"
date = "2021-12-24"
description = "Post available only by link"
tags = [
"privacy"
]
hidden = true
+++
This is hidden post

View File

@ -0,0 +1,12 @@
+++
author = "Junyi"
title = "Hidden Post"
date = "2021-12-24"
description = "Post available only by link"
tags = [
"privacy"
]
hidden = true
+++
This is hidden post

View File

@ -0,0 +1,58 @@
+++
author = "Junyi"
title = "Demo - Social Icons"
date = "2024-05-05"
description = "Guide to using social icons supported by Anubis2."
tags = [
"icons",
"anubis2",
"hugo"
]
+++
To use an icon, simply copy its shortcode and paste it into your content where you want the icon to appear. The shortcode must be enclosed in `{{</* */>}}`.
<!--more-->
Here is a list of available icons, their shortcodes, and what they look like when rendered:
| name | shortcode | icon |
| ---------- | ---------------------------------- | ---------------------------- |
| 4chan | `{{</* icon "4chan" */>}}` | {{< icon "4chan" >}} |
| leetcode | `{{</* icon "leetcode" */>}}` | {{< icon "leetcode" >}} |
| qq | `{{</* icon "qq" */>}}` | {{< icon "qq" >}} |
| spotify | `{{</* icon "spotify" */>}}` | {{< icon "spotify" >}} |
| tinder | `{{</* icon "tinder" */>}}` | {{< icon "tinder" >}} |
| youtube | `{{</* icon "youtube" */>}}` | {{< icon "youtube" >}} |
| docs | `{{</* icon "docs" */>}}` | {{< icon "docs" >}} |
| linkedin | `{{</* icon "linkedin" */>}}` | {{< icon "linkedin" >}} |
| reddit | `{{</* icon "reddit" */>}}` | {{< icon "reddit" >}} |
| steam | `{{</* icon "steam" */>}}` | {{< icon "steam" >}} |
| tumblr | `{{</* icon "tumblr" */>}}` | {{< icon "tumblr" >}} |
| zhihu | `{{</* icon "zhihu" */>}}` | {{< icon "zhihu" >}} |
| email | `{{</* icon "email" */>}}` | {{< icon "email" >}} |
| mastodon | `{{</* icon "mastodon" */>}}` | {{< icon "mastodon" >}} |
| rss | `{{</* icon "rss" */>}}` | {{< icon "rss" >}} |
| teams | `{{</* icon "teams" */>}}` | {{< icon "teams" >}} |
| twitch | `{{</* icon "twitch" */>}}` | {{< icon "twitch" >}} |
| facebook | `{{</* icon "facebook" */>}}` | {{< icon "facebook" >}} |
| medium | `{{</* icon "medium" */>}}` | {{< icon "medium" >}} |
| skype | `{{</* icon "skype" */>}}` | {{< icon "skype" >}} |
| telegram | `{{</* icon "telegram" */>}}` | {{< icon "telegram" >}} |
| twitter | `{{</* icon "twitter" */>}}` | {{< icon "twitter" >}} |
| github | `{{</* icon "github" */>}}` | {{< icon "github" >}} |
| netease | `{{</* icon "netease-music" */>}}` | {{< icon "netease-music" >}} |
| slack | `{{</* icon "slack" */>}}` | {{< icon "slack" >}} |
| theme | `{{</* icon "theme-dark" */>}}` | {{< icon "theme-dark" >}} |
| vk | `{{</* icon "vk" */>}}` | {{< icon "vk" >}} |
| gitlab | `{{</* icon "gitlab" */>}}` | {{< icon "gitlab" >}} |
| notion | `{{</* icon "notion" */>}}` | {{< icon "notion" >}} |
| snapchat | `{{</* icon "snapchat" */>}}` | {{< icon "snapchat" >}} |
| theme | `{{</* icon "theme-light" */>}}` | {{< icon "theme-light" >}} |
| weibo | `{{</* icon "weibo" */>}}` | {{< icon "weibo" >}} |
| instagram | `{{</* icon "instagram" */>}}` | {{< icon "instagram" >}} |
| patreon | `{{</* icon "patreon" */>}}` | {{< icon "patreon" >}} |
| soundcloud | `{{</* icon "soundcloud" */>}}` | {{< icon "soundcloud" >}} |
| tiktok | `{{</* icon "tiktok" */>}}` | {{< icon "tiktok" >}} |
| x | `{{</* icon "x" */>}}` | {{< icon "x" >}} |

View File

@ -1,7 +1,7 @@
+++
author = "Hugo Authors"
title = "Markdown Syntax Guide"
date = "2019-03-11"
date = "2024-05-07"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags = [
"markdown",
@ -13,27 +13,43 @@ categories = [
"themes",
"syntax",
]
series = ["Themes Guide"]
authors = ["Junyi-99", "hugo"]
aliases = ["migrate-from-jekyl"]
favorite = true
+++
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
The following HTML `<h2>`—`<h6>` elements represent 5 levels of section headings. `<h2>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
You should using `## H2` as your section title, since the file title is `# H1`
If you use `# H1` as your section title, you will get a warning from linter:
```txt
MD025/single-title/single-h1: Multiple top-level headings in the same document
```
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur?
Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
@ -41,17 +57,17 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
>
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution
### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.</p>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
@ -60,21 +76,20 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou
Name | Age
--------|------
Bob | 27
Bob | 27
Alice | 23
#### Inline Markdown within tables
### Inline Markdown within tables
| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
| ---------- | --------- | ----------------- | ---------- |
| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
Inline | Markdown | In | Table
---------- | --------- | ----------------- | ----------
*italics* | **bold** | ~~strikethrough~~ | `code`
## Code Blocks
#### Code block with backticks
### Code block with backticks and showing highlighted lines
```
html
```html {linenos=table, hl_lines=[1,"4-5",8], linenostart=199}
<!DOCTYPE html>
<html lang="en">
<head>
@ -86,12 +101,13 @@ html
</body>
</html>
```
#### Code block indented with four spaces
<!DOCTYPE html>
### Code block indented with four spaces
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
@ -99,7 +115,8 @@ html
</body>
</html>
#### Code block with Hugo's internal highlight shortcode
### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!DOCTYPE html>
<html lang="en">
@ -115,22 +132,24 @@ html
## List Types
#### Ordered List
### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
### Unordered List
* List item
* Another item
* And another item
#### Nested list
### Nested list
* Item
1. First Sub-item
2. Second Sub-item
## Other Elements — abbr, sub, sup, kbd, mark
@ -141,7 +160,6 @@ H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.

View File

@ -0,0 +1,21 @@
---
author: Hugo Authors
title: Math Typesetting
date: 2019-03-08
description: A brief guide to setup MathJax
math: true
---
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
- To enable MathJax on a page basis include the parameter `math: true` in content files.
## Examples
Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
Block math:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$

View File

@ -7,6 +7,7 @@ tags = [
"markdown",
"text",
]
authors = ["hugo"]
+++
Lorem est tota propiore conpellat pectoribus de
@ -30,7 +31,7 @@ tractus malis.
4. Arcanaque montibus omnes
5. Quidem et
# Vagus elidunt
## Vagus elidunt
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>

View File

@ -13,14 +13,6 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
<!--more-->
---
## Instagram Simple Shortcode
{{< instagram_simple BGvuInzyFAe hidecaption >}}
<br>
---
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
@ -31,7 +23,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
## Twitter Simple Shortcode
{{< twitter_simple 1085870671291310081 >}}
{{< tweet user="DesignReviewed" id="1085870671291310081" >}}
<br>

View File

@ -0,0 +1,178 @@
baseURL = "/"
languageCode = "en-us"
defaultContentLanguage = "en"
title = "Anubis2 Demo Site"
theme = "anubis2"
disqusShortname = ""
[pagination]
pagerSize = 5
[params.author]
name = "Junyi"
email = "me@junyi.dev"
location = "Singapore"
[params]
description = "Anubis2 is another simple minimalist theme for Hugo blog engine."
dateFormat = "2006-01-02"
paginationSinglePost = true
# icp = "京ICP备xxxxx号-1" # for China ICP license
# police = "京公网安备 12345678号" # for China police beian
colorTheme = "auto"
colorThemeSwitcher = true
readMore = false
readNextPosts = 2
copyCodeButton = true
rssAsSocialIcon = true
locale = "en-us"
math = false # true: enable mathjax globally (default is false)
toc = true
# Graphcomment support
graphcommentId = ""
GiscusRepo = "Junyi-99/hugo-theme-anubis2"
GiscusRepoId = "R_kgDOLEp76Q"
GiscusCategory = "General"
GiscusCategoryId = "DIC_kwDOLEp76c4CcbPS"
GiscusLazyLoad = false
GiscusDataMapping = "pathname"
customCSS = ["custom-css/custom1.scss", "custom-css/custom2.css"]
social = [
{ id = "docs", url = "https://gohugo.io/documentation/" },
{ id = "github", url = "https://github.com/Junyi-99/hugo-theme-anubis2" },
{ id = "linkedin", url = "https://www.linkedin.com/" },
{ id = "email", url = "example@example.com" },
{ id = "facebook", url = "#" },
{ id = "instagram", url = "#" },
{ id = "netease-music", url = "#" },
{ id = "telegram", url = "#" },
{ id = "x", url = "#" },
{ id = "youtube", url = "#" },
{ id = "bluesky", url = "#" }
]
[[menu.main]]
identifier = "home"
name = "Home"
url = "/"
weight = 1
[[menu.main]]
identifier = "about"
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
identifier = "tags"
name = "Tags"
url = "/tags/"
weight = 3
[[menu.main]]
name = "Archive"
identifier = "archive"
url = "/posts/"
weight = 4
[languages]
[languages.en]
languageName = "English"
[languages.pl]
languageName = "Polski"
[[languages.pl.menu.main]]
identifier = "home"
name = "Strona Główna"
url = "/"
weight = 1
[[languages.pl.menu.main]]
identifier = "about"
name = "O Hugo"
url = "/about/"
weight = 2
[[languages.pl.menu.main]]
identifier = "tags"
name = "Tagi"
url = "/tags/"
weight = 3
[[languages.pl.menu.main]]
identifier = "archive"
name = "Archiwum"
url = "/posts/"
weight = 4
[languages.pl.params]
languageCode = "pl-pl"
[languages.zh]
languageName = "Chinese"
[[languages.zh.menu.main]]
identifier = "home"
name = "首页"
url = "/"
weight = 1
[[languages.zh.menu.main]]
identifier = "about"
name = "关于"
url = "/about/"
weight = 2
[[languages.zh.menu.main]]
identifier = "tags"
name = "标签"
url = "/tags/"
weight = 3
[[languages.zh.menu.main]]
identifier = "archive"
name = "归档"
url = "/posts/"
weight = 4
[languages.zh.params]
languageCode = "zh-cn"
[taxonomies]
category = "categories"
tag = "tags"
author = "authors"
[markup]
defaultMarkdownHandler = 'goldmark'
[markup.goldmark.renderer]
unsafe = true # Enable unsafe mode to have a better experience
[markup.highlight]
anchorLineNos = false
codeFences = true # tested with true and false. Both work.
noClasses = true # If you run with markup.highlight.noClasses=false in your site configuration, you need a style sheet.
style = 'catppuccin-frappe' # Find more style at here: https://swapoff.org/chroma/playground/
tabWidth = 4
[params.UmamiAnalytics]
enabled = true
dnt = false
id = "d01ce82c-c8f4-4714-ba37-ba4899f2a885" # Website ID
datacache = false
url = "https://umami.xtra.science/script.js"
shareUrl = "https://umami.xtra.science/share/Fy0goUn0b9rrxxGe/hugo-theme-anubis2.netlify.app"
[params.GoogleAnalytics]
enabled = true
gtag = "G-32F16X8HLF"

View File

@ -0,0 +1,8 @@
[build]
publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
HUGO_VERSION = "0.115.4"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M128.3 160v32h32v-32zm64-96h-32v32h32zm-64 32v32h32V96zm64 32h-32v32h32zm177.6-30.1L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM256 51.9l76.1 76.1H256zM336 464H48V48h79.7v16h32V48H208v104c0 13.3 10.7 24 24 24h104zM194.2 265.7c-1.1-5.6-6-9.7-11.8-9.7h-22.1v-32h-32v32l-19.7 97.1C102 385.6 126.8 416 160 416c33.1 0 57.9-30.2 51.5-62.6zm-33.9 124.4c-17.9 0-32.4-12.1-32.4-27s14.5-27 32.4-27 32.4 12.1 32.4 27-14.5 27-32.4 27zm32-198.1h-32v32h32z"/></svg>

After

Width:  |  Height:  |  Size: 791 B

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/Junyi-99/hugo-theme-anubis2
go 1.18

41
i18n/bn.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "সৌজন্যে"
theme:
other: "থিম"
readMore:
other: "আরও"
toNewPosts:
other: "নতুন প্রচ্ছদ"
toOldPosts:
other: "পুরানো প্রচ্ছদ"
tag:
other: "বিভাগ"
Tags:
other: "বিভাগ"
Posts:
other: "প্রচ্ছদ"
category:
other: "শ্রেণী"
Categories:
other: "শ্রেণী"
toAllTags:
other: "বিভাগ সমূহ"
toAllCategories:
other: "শ্রেণী সমূহ"
skipToContent:
other: "প্রচ্ছদে প্রবেশ করুন"
readNext:
other: "পরের প্রচ্ছদ"

56
i18n/ce.yaml Normal file
View File

@ -0,0 +1,56 @@
powered:
other: "Озорг"
theme:
other: "тем"
readMore:
other: "ДӀаеша"
toNewPosts:
other: "керла дӀаяздаршка хӀо"
toOldPosts:
other: "тиша дӀаяздаршка хӀо"
tag:
other: "тег"
Tags:
other: "Тегаш"
Posts:
other: "ДӀаяздарш"
category:
other: "категори"
Categories:
other: "Категореш"
toAllTags:
other: "тегаш лемаре хӀо"
toAllAuthors:
other: "авторш лемаре хӀо"
toAllCategories:
other: "категореш лемаре хӀо"
skipToContent:
other: "коьрта контенте хӀо"
readNext:
other: "ДӀаеша"
lastMod:
other: "йуха яздин ю:"
toNewPost:
other: "керла д1аяздаре хӀо"
toOldPost:
other: "тиша дӀаяздаре хӀо"
videoIsNotSupported:
other: "хӀа браузер окх видео цан болх ца бо"

41
i18n/de.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "Erstellt mit"
theme:
other: "Theme"
readMore:
other: "Weiterlesen"
toNewPosts:
other: "Zu neueren Beiträgen"
toOldPosts:
other: "Zu älteren Beiträgen"
tag:
other: "Schlagwort"
Tags:
other: "Schlagwörter"
Posts:
other: "Beiträge"
category:
other: "Kategorie"
Categories:
other: "Kategorien"
toAllTags:
other: "Zu allen Schlagwörtern"
toAllCategories:
other: "Zu allen Kategorien"
skipToContent:
other: "Zum Hauptinhalt springen"
readNext:
other: "Weiter lesen"

View File

@ -1,11 +1,11 @@
powered:
other: "powered by"
other: "Powered by"
theme:
other: "theme"
readMore:
other: "read more"
other: "Read more"
toNewPosts:
other: "to new posts"
@ -16,6 +16,9 @@ toOldPosts:
tag:
other: "tag"
author:
other: "author"
Tags:
other: "Tags"
@ -31,5 +34,26 @@ Categories:
toAllTags:
other: "to all tags"
toAllAuthors:
other: "to all authors"
toAllCategories:
other: "to all categories"
other: "to all categories"
skipToContent:
other: "Skip to main content"
readNext:
other: "Read next"
lastMod:
other: "Last modified:"
toNewPost:
other: "to new post"
toOldPost:
other: "to old post"
videoIsNotSupported:
other: "Your browser does not support video"

41
i18n/es.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "Powered by"
theme:
other: "tema"
readMore:
other: "Leer más"
toNewPosts:
other: "a nuevos posts"
toOldPosts:
other: "a posts antiguos"
tag:
other: "etiqueta"
Tags:
other: "Etiquetas"
Posts:
other: "Posts"
category:
other: "categoría"
Categories:
other: "Categorías"
toAllTags:
other: "a todas las etiquetas"
toAllCategories:
other: "a todas las categorías"
skipToContent:
other: "Saltar al contenido principal"
readNext:
other: "Leer el siguiente"

41
i18n/fr.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "Propulsé par"
theme:
other: "thème"
readMore:
other: "Lire la suite"
toNewPosts:
other: "articles + récents"
toOldPosts:
other: "articles + anciens"
tag:
other: "étiquette"
Tags:
other: "Étiquettes"
Posts:
other: "Articles"
category:
other: "catégorie"
Categories:
other: "Catégories"
toAllTags:
other: "vers toutes les étiquettes"
toAllCategories:
other: "vers toutes les catégories"
skipToContent:
other: "Aller au contenu"
readNext:
other: "Lire la suite"

41
i18n/id.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "Dipersembahkan oleh"
theme:
other: "tema"
readMore:
other: "Selengkapnya.."
toNewPosts:
other: "ke postingan baru"
toOldPosts:
other: "ke postingan lama"
tag:
other: "tag"
Tags:
other: "Tags"
Posts:
other: "Tulisan"
category:
other: "kategori"
Categories:
other: "Kategori"
toAllTags:
other: "Lihat semua tags"
toAllCategories:
other: "Lihat semua kategori"
skipToContent:
other: "Lompat ke konten"
readNext:
other: "Baca Selanjutnya"

41
i18n/pl.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "Zasilany przez"
theme:
other: "motyw"
readMore:
other: "Czytaj dalej"
toNewPosts:
other: "poprzednia strona"
toOldPosts:
other: "następna strona"
tag:
other: "tag"
Tags:
other: "Tagi"
Posts:
other: "Posty"
category:
other: "kategoria"
Categories:
other: "Kategorie"
toAllTags:
other: "wszystkie tagi"
toAllCategories:
other: "wszystkie kategorie"
skipToContent:
other: "Przejdź do głównej zawartości"
readNext:
other: "Czytaj dalej"

41
i18n/pt.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "Criado com"
theme:
other: "tema"
readMore:
other: "Ler mais"
toNewPosts:
other: "novos posts"
toOldPosts:
other: "posts anteriores"
tag:
other: "tag"
Tags:
other: "Tags"
Posts:
other: "Posts"
category:
other: "categoria"
Categories:
other: "Categorias"
toAllTags:
other: "ver todas as tags"
toAllCategories:
other: "ver todas as categorias"
skipToContent:
other: "Pular para o conteúdo principal"
readNext:
other: "Leia a seguir"

View File

@ -1,11 +1,11 @@
powered:
other: "движок"
other: "Движок"
theme:
other: "тема"
readMore:
other: "читать дальше"
other: "Читать дальше"
toNewPosts:
other: "к новым записям"
@ -29,7 +29,28 @@ Categories:
other: "Категории"
toAllTags:
other: "ко списку всех тегов"
other: "к списку тегов"
toAllAuthors:
other: "к списку авторов"
toAllCategories:
other: "ко списку всех категорий"
other: "к списку категорий"
skipToContent:
other: "Перейти к основному контенту"
readNext:
other: "Читать далее"
lastMod:
other: "Отредактировано:"
toNewPost:
other: "к новой записи"
toOldPost:
other: "к старой записи"
videoIsNotSupported:
other: "Ваш браузер не поддерживает видео"

41
i18n/tw.yaml Normal file
View File

@ -0,0 +1,41 @@
powered:
other: "提供"
theme:
other: "主題"
readMore:
other: "繼續閱讀"
toNewPosts:
other: "新文章"
toOldPosts:
other: "舊文章"
tag:
other: "標籤"
Tags:
other: "標籤"
Posts:
other: "文章"
category:
other: "類別"
Categories:
other: "類別"
toAllTags:
other: "所有標籤"
toAllCategories:
other: "所有類別"
skipToContent:
other: "跳至內容"
readNext:
other: "閱讀下一篇"

47
i18n/zh-cn.yaml Normal file
View File

@ -0,0 +1,47 @@
powered:
other: "Powered by"
theme:
other: "theme"
readMore:
other: "继续阅读"
toNewPosts:
other: "新文章"
toOldPosts:
other: "旧文章"
tag:
other: "标签"
author:
other: "作者"
Tags:
other: "标签"
Posts:
other: "文章"
category:
other: "类别"
Categories:
other: "类别"
toAllTags:
other: "所有标签"
toAllAuthors:
other: "所有作者"
toAllCategories:
other: "所有类别"
skipToContent:
other: "跳至内容"
readNext:
other: "继续阅读"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 105 KiB

8
layouts/404.html Normal file
View File

@ -0,0 +1,8 @@
{{ define "main"}}
<main id="main">
<div>
<h1 id="title"><a href="{{ .Site.BaseURL | relLangURL }}">Go Home</a></h1>
Sorry, this Page is not available.
</div>
</main>
{{ end }}

View File

@ -0,0 +1,4 @@
<pre class="mermaid">
{{- .Inner | safeHTML }}
</pre>
{{ .Page.Store.Set "hasMermaid" true }}

View File

@ -0,0 +1,8 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}" {{ if .Attributes.style }}style="{{ .Attributes.style | safeCSS }}"{{ end }}>
<div>
<a href="#{{ .Anchor }}">
{{ range seq 2 .Level}}#{{end}}
</a>
{{ .Text | safeHTML }}
</div>
</h{{ .Level }}>

View File

@ -1,25 +1,28 @@
<!DOCTYPE html>
<html>
{{ $dataTheme := "" }}
{{ if and (ne site.Params.colortheme "auto") (eq site.Params.colorthemeswitcher false) }}
{{ $dataTheme := site.Params.colortheme }}
{{ end }}
<html lang="{{ .Site.Params.locale | default .Site.LanguageCode }}" data-theme="{{ $dataTheme }}">
<head>
{{ block "head" . }}
{{ partial "head.html" . }}
{{ end }}
</head>
<body>
<a class="skip-main" href="#main">{{ i18n "skipToContent" }}</a>
<div class="container">
<header>
<header class="common-header">
{{ block "header" . }}
{{ partial "header.html" . }}
{{ end }}
</header>
<main>
<main id="main" tabindex="-1">
{{ block "main" . }}{{ end }}
</main>
<footer>
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
</footer>
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
</div>
</body>
</html>

View File

@ -1,16 +1,35 @@
{{ define "main" }}
<div class="index-content">
{{ .Content }}
</div>
<h1>{{ i18n .Title }}</h1>
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $pages }}
<div class="post-short-list">
<header>
<h2>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h2>
</header>
{{ partial "articleInfoFull.html" . }}
</div>
{{ end }}
<div class="articles h-feed">
<h1 class="post-title">{{ i18n .Title | markdownify }}</h1>
{{ $showFullContent := in .Site.Params.sectionsWithFullContentOnListPage .Section }}
{{ $pages := where .Pages "Params.hidden" "!=" true}}
{{ end }}
{{ $pagesRange := $pages}}
{{ if $showFullContent }}
{{ $pagesRange = (.Paginate $pages).Pages }}
{{ end}}
{{ range $pagesRange }}
<div class="post-short-list h-entry">
<div class="post-header">
<header>
<h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " | markdownify }}</a></h2>
{{ partial "post-language-switcher.html" . }}
</header>
</div>
{{ if $showFullContent }}
{{ .Content }}
{{ end }}
{{ partial "post-info.html" . }}
</div>
{{ end }}
{{ if $showFullContent }}
{{ partial "pagination.html" . }}
{{ end}}
</div>
{{ end }}

View File

@ -1,6 +1,6 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := $pctx.RegularPages -}}
{{- $pages := where (where $pctx.RegularPages ".Params.disable_feed" "!=" true) "Params.hidden" "!=" true -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
@ -9,26 +9,44 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<description>{{ .Site.Title }}{{ if ne .Title .Site.Title }}{{ with .Title }} ({{.}}){{ end }}{{ end }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<language>{{.}}</language>{{end}}
{{ with .Site.Params.author }}
{{ with .email }}
<managingEditor>{{.}}
{{ with $.Site.Params.author.name }}
({{.}})
{{end}}
</managingEditor>
{{end}}
{{ with .Site.Params.author.email }}
<webMaster>
{{.}}
{{ with $.Site.Params.author.name }}
({{.}})
{{end}}
</webMaster>
{{end}}
{{ end }}
{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .RelPermalink .MediaType | safeHTML }}
{{ end }}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
{{ with .Site.Params.author.email }}<author>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .RelPermalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>
</rss>

View File

@ -1,16 +1,62 @@
{{ define "main" }}
{{/* {{ if .Menus }}
<nav class="post-navigation">
{{ range .Menus }}
<a href="{{ .ConfiguredURL | absLangURL }}" title="{{ .Title }}">{{ .Name | markdownify }}</a>
{{ end }}
</nav>
{{ end }} */}}
<article class="post">
<header>
<h1>{{ .Title }}</h1>
</header>
<div class="content">
<article class="post h-entry">
<div class="post-header">
<header>
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " | markdownify }}</h1>
{{ partial "post-language-switcher.html" . }}
</header>
{{ partial "post-info.html" . }}
</div>
{{ partial "toc.html" .}}
<div class="content e-content">
{{ .Content }}
</div>
{{ partial "articleInfoFull.html" . }}
</article>
{{ if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{ $readNextPosts := 3}}
{{ if site.Params.readNextPosts }}
{{ $readNextPosts = site.Params.readNextPosts }}
{{ end }}
{{ end }}
{{ if gt $readNextPosts 0 }}
{{ $related := .Site.RegularPages.Related . | first $readNextPosts }}
{{ with $related }}
<h3 class="read-next-title noselect">{{ i18n "readNext" }}</h3>
<ul class="read-next-posts noselect">
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
{{ partial "post-pagination.html" . }}
{{ end }}
{{ if not .Params.disableComments }}
{{ partial "comments.html" . }}
{{ end }}
{{/* When you use ```mermaid``, render-codeblock-mermaid.html is called and
`.Store.Set "hasMermaid"` is executed.
`.Store.Get "hasMermaid"` will return true and mermaid.js will be loaded.
*/}}
{{ if .Store.Get "hasMermaid" }}
{{ partial "mermaid_support.html" . }}
{{ end }}
{{ if .Params.math }}
{{ partial "mathjax_support.html" . }}
{{ end }}
{{ end }}

View File

@ -0,0 +1,24 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range where .Data.Pages "Params.hidden" "!=" true }}
{{- if .Permalink -}}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.LanguageCode }}"
href="{{ .Permalink }}"
/>{{ end }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.LanguageCode }}"
href="{{ .Permalink }}"
/>{{ end }}
</url>
{{- end -}}
{{ end }}
</urlset>

View File

@ -0,0 +1,12 @@
{{ define "main" }}
<h1>{{ i18n .Data.Singular | humanize | markdownify }}: {{ .Title | markdownify }}</h1>
<div class="post-info">
<a href="{{ (print .Data.Plural "/") | relLangURL }}">{{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }}</a>
</div>
{{ $pages := where .Pages "Params.hidden" "!=" true }}
{{ range (.Paginate $pages).Pages }}
{{ partial "post-summary.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -1,16 +1,19 @@
{{ define "main" }}
<div class="index-content">
{{ .Content }}
</div>
<h1>{{ i18n .Title }}</h1>
<h1>{{ i18n .Title | markdownify }}</h1>
<ul class="terms">
{{ range $key, $value := .Data.Terms }}
<li>
<a href="{{ (print $.Data.Plural "/" (lower $key)) | absURL }}">
{{ $key }}
</a>
({{ len $value }})
</li>
{{ range .Data.Terms }}
{{ $postsNum := len (where .Pages "Params.hidden" "!=" true) }}
{{ if gt $postsNum 0 }}
<li>
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title | markdownify }}</a>
({{ $postsNum }})
</li>
{{ end}}
{{ end }}
</ul>
{{ end }}
{{ end }}

View File

@ -1,25 +1,15 @@
{{ define "main" }}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range (.Paginate $pages).Pages }}
<article class="post-list">
<header>
<h1>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</header>
<div class="homepage-content">
{{ .Content }}
</div>
<div class="content">
{{ .Summary | safeHTML }}
</div>
<!-- {{ if .Truncated }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
</div>
{{ end }} -->
<div class="articles h-feed">
{{ $pages := where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.hidden" "!=" true }}
{{ range (.Paginate $pages).Pages }}
{{ partial "post-summary.html" . }}
{{ end }}
{{ partial "articleInfoFull.html" . }}
</article>
{{ end }}
{{ partial "pagination.html" . }}
{{ partial "pagination.html" . }}
</div>
{{ end }}
{{ end }}

View File

@ -1,5 +0,0 @@
<div class="article-info">
{{ if .Params.date }}
<div class="article-date">{{ .Params.date.Format "2006-01-02" }}</div>
{{ end }}
</div>

View File

@ -1,21 +0,0 @@
<div class="article-info">
{{ if .Params.date }}
<div class="article-date">{{ .Params.date.Format "2006-01-02" }}</div>
{{ end }}
<div class="article-taxonomies">
{{ if .Params.categories }}
<ul class="article-categories">
{{ range .Params.categories }}
<li><a href="{{ "categories/" | absURL }}{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ if .Params.tags }}
<ul class="article-tags">
{{ range .Params.tags }}
<li><a href="{{ "tags/" | absURL }}{{ . }}">#{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</div>

View File

@ -0,0 +1,19 @@
{{ if .Site.Config.Services.Disqus.Shortname }}
{{ partial "disqus.html" . }}
{{ end }}
{{ if .Site.Params.UtterancesRepo }}
{{ partial "utterances.html" . }}
{{ end }}
{{ if .Site.Params.isso.enabled }}
{{ partial "isso.html" . }}
{{ end }}
{{ if .Site.Params.graphcommentId }}
{{ partial "graphcomment.html" . }}
{{ end }}
{{ if .Site.Params.GiscusRepo}}
{{ partial "giscus.html" . }}
{{ end}}

View File

@ -0,0 +1 @@
{{ template "_internal/disqus.html" . }}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"/></svg>

After

Width:  |  Height:  |  Size: 755 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"/></svg>

After

Width:  |  Height:  |  Size: 525 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,3 @@
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 290 290">
<path d="M142.959,0C64.131,0,0,64.132,0,142.96c0,78.828,64.131,142.959,142.959,142.959c78.828,0,142.96-64.131,142.96-142.959 C285.919,64.132,221.787,0,142.959,0z M142.959,260.919V142.96V25c65.043,0,117.96,52.917,117.96,117.96 C260.919,208.003,208.002,260.919,142.959,260.919z"/>
</svg>

After

Width:  |  Height:  |  Size: 359 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/></svg>

After

Width:  |  Height:  |  Size: 685 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"/></svg>

After

Width:  |  Height:  |  Size: 864 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M512 194.8c0 101.3-82.4 183.8-183.8 183.8-101.7 0-184.4-82.4-184.4-183.8 0-101.6 82.7-184.3 184.4-184.3C429.6 10.5 512 93.2 512 194.8zM0 501.5h90v-491H0v491z"/></svg>

After

Width:  |  Height:  |  Size: 418 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"/></svg>

After

Width:  |  Height:  |  Size: 904 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm169.5 338.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C183.1 100 230.7 96 244.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"/></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!-- Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"/></svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

Some files were not shown because too many files have changed in this diff Show More