Browse Source

init hugo blog with hugo-coder theme

master
Wang Yang 3 hours ago
commit
2896b5a291
  1. 26
      .drone.yml
  2. 0
      .hugo_build.lock
  3. 5
      archetypes/default.md
  4. 11
      content/posts/hello.md
  5. 42
      hugo.toml
  6. 29
      themes/hugo-coder/.editorconfig
  7. 1
      themes/hugo-coder/.github/FUNDING.yml
  8. 30
      themes/hugo-coder/.github/ISSUE_TEMPLATE/bug_report.md
  9. 11
      themes/hugo-coder/.github/ISSUE_TEMPLATE/feature_request.md
  10. 11
      themes/hugo-coder/.github/ISSUE_TEMPLATE/question.md
  11. 33
      themes/hugo-coder/.github/pull_request_template.md
  12. 6
      themes/hugo-coder/.gitignore
  13. 152
      themes/hugo-coder/CONTRIBUTORS.md
  14. 20
      themes/hugo-coder/LICENSE.md
  15. 12
      themes/hugo-coder/Makefile
  16. 53
      themes/hugo-coder/README.md
  17. 6
      themes/hugo-coder/archetypes/default.md
  18. 12
      themes/hugo-coder/archetypes/posts.md
  19. 97
      themes/hugo-coder/assets/js/coder.js
  20. 3
      themes/hugo-coder/assets/js/purify.min.js
  21. 290
      themes/hugo-coder/assets/scss/_base.scss
  22. 91
      themes/hugo-coder/assets/scss/_base_dark.scss
  23. 24
      themes/hugo-coder/assets/scss/_base_rtl.scss
  24. 253
      themes/hugo-coder/assets/scss/_content.scss
  25. 59
      themes/hugo-coder/assets/scss/_content_dark.scss
  26. 36
      themes/hugo-coder/assets/scss/_content_rtl.scss
  27. 38
      themes/hugo-coder/assets/scss/_float.scss
  28. 27
      themes/hugo-coder/assets/scss/_float_dark.scss
  29. 13
      themes/hugo-coder/assets/scss/_footer.scss
  30. 17
      themes/hugo-coder/assets/scss/_footer_dark.scss
  31. 73
      themes/hugo-coder/assets/scss/_mastodon.scss
  32. 151
      themes/hugo-coder/assets/scss/_navigation.scss
  33. 68
      themes/hugo-coder/assets/scss/_navigation_dark.scss
  34. 20
      themes/hugo-coder/assets/scss/_navigation_rtl.scss
  35. 111
      themes/hugo-coder/assets/scss/_notices.scss
  36. 17
      themes/hugo-coder/assets/scss/_notices_dark.scss
  37. 21
      themes/hugo-coder/assets/scss/_pagination.scss
  38. 86
      themes/hugo-coder/assets/scss/_syntax.scss
  39. 98
      themes/hugo-coder/assets/scss/_syntax_dark.scss
  40. 77
      themes/hugo-coder/assets/scss/_tabs.scss
  41. 27
      themes/hugo-coder/assets/scss/_tabs_dark.scss
  42. 20
      themes/hugo-coder/assets/scss/_taxonomies.scss
  43. 22
      themes/hugo-coder/assets/scss/_taxonomies_dark.scss
  44. 64
      themes/hugo-coder/assets/scss/_variables.scss
  45. 10
      themes/hugo-coder/assets/scss/coder-dark.scss
  46. 4
      themes/hugo-coder/assets/scss/coder-rtl.scss
  47. 18
      themes/hugo-coder/assets/scss/coder.scss
  48. 350
      themes/hugo-coder/assets/scss/css/normalize.css
  49. 165
      themes/hugo-coder/assets/scss/font-awesome/LICENSE.txt
  50. 152
      themes/hugo-coder/assets/scss/font-awesome/_animated.scss
  51. 20
      themes/hugo-coder/assets/scss/font-awesome/_bordered-pulled.scss
  52. 49
      themes/hugo-coder/assets/scss/font-awesome/_core.scss
  53. 7
      themes/hugo-coder/assets/scss/font-awesome/_fixed-width.scss
  54. 57
      themes/hugo-coder/assets/scss/font-awesome/_functions.scss
  55. 12
      themes/hugo-coder/assets/scss/font-awesome/_icons.scss
  56. 18
      themes/hugo-coder/assets/scss/font-awesome/_list.scss
  57. 65
      themes/hugo-coder/assets/scss/font-awesome/_mixins.scss
  58. 31
      themes/hugo-coder/assets/scss/font-awesome/_rotated-flipped.scss
  59. 14
      themes/hugo-coder/assets/scss/font-awesome/_screen-reader.scss
  60. 1578
      themes/hugo-coder/assets/scss/font-awesome/_shims.scss
  61. 16
      themes/hugo-coder/assets/scss/font-awesome/_sizing.scss
  62. 32
      themes/hugo-coder/assets/scss/font-awesome/_stacked.scss
  63. 5044
      themes/hugo-coder/assets/scss/font-awesome/_variables.scss
  64. 30
      themes/hugo-coder/assets/scss/font-awesome/brands.scss
  65. 21
      themes/hugo-coder/assets/scss/font-awesome/fontawesome.scss
  66. 27
      themes/hugo-coder/assets/scss/font-awesome/regular.scss
  67. 27
      themes/hugo-coder/assets/scss/font-awesome/solid.scss
  68. 11
      themes/hugo-coder/assets/scss/font-awesome/v4-shims.scss
  69. 23
      themes/hugo-coder/docs/analytics.md
  70. 6
      themes/hugo-coder/docs/analytics/applicationinsights.md
  71. 25
      themes/hugo-coder/docs/analytics/baidu.md
  72. 6
      themes/hugo-coder/docs/analytics/clicky.md
  73. 6
      themes/hugo-coder/docs/analytics/cloudflare.md
  74. 6
      themes/hugo-coder/docs/analytics/counterdev.md
  75. 7
      themes/hugo-coder/docs/analytics/fathom.md
  76. 6
      themes/hugo-coder/docs/analytics/goatcounter.md
  77. 3
      themes/hugo-coder/docs/analytics/googleanalytics.md
  78. 6
      themes/hugo-coder/docs/analytics/googletagmanager.md
  79. 7
      themes/hugo-coder/docs/analytics/matomo.md
  80. 7
      themes/hugo-coder/docs/analytics/microanalytics.md
  81. 23
      themes/hugo-coder/docs/analytics/onedollarstats.md
  82. 6
      themes/hugo-coder/docs/analytics/pirsch.md
  83. 7
      themes/hugo-coder/docs/analytics/plausible.md
  84. 9
      themes/hugo-coder/docs/analytics/umami.md
  85. 6
      themes/hugo-coder/docs/analytics/vercel.md
  86. 25
      themes/hugo-coder/docs/analytics/wideangle.md
  87. 1
      themes/hugo-coder/docs/comment-system.md
  88. 369
      themes/hugo-coder/docs/configurations.md
  89. 1
      themes/hugo-coder/docs/contributing.md
  90. 1
      themes/hugo-coder/docs/faq.md
  91. 19
      themes/hugo-coder/docs/home.md
  92. 74
      themes/hugo-coder/docs/multilingual-mode.md
  93. 23
      themes/hugo-coder/docs/quick-start.md
  94. 25
      themes/hugo-coder/exampleSite/content/about.md
  95. 25
      themes/hugo-coder/exampleSite/content/about.pt-br.md
  96. 5
      themes/hugo-coder/exampleSite/content/authors/hugo-authors/_index.md
  97. 6
      themes/hugo-coder/exampleSite/content/authors/hugo-authors/_index.pt-br.md
  98. 6
      themes/hugo-coder/exampleSite/content/categories/syntax/_index.pt-br.md
  99. 6
      themes/hugo-coder/exampleSite/content/contact.md
  100. 6
      themes/hugo-coder/exampleSite/content/contact.pt-br.md

26
.drone.yml

@ -0,0 +1,26 @@
kind: pipeline
type: docker
name: hugo-build
steps:
- name: build
image: klakegg/hugo:latest
commands:
- hugo --minify --baseURL https://www.eryang.wang/
- name: deploy
image: appleboy/drone-scp
settings:
host: eryang.wang
username: ecs-user
password:
from_secret: ssh_password
port: 22
target: /opt/docker/www/www.eryang.wang/
source: public/*
trigger:
branch:
- master
event:
- push

0
.hugo_build.lock

5
archetypes/default.md

@ -0,0 +1,5 @@
+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++

11
content/posts/hello.md

@ -0,0 +1,11 @@
---
title: "Hello World"
date: 2026-04-06T04:04:00+08:00
draft: false
description: "我的第一篇博客"
categories:
- 博客
tags:
- hugo
- 开始
---

42
hugo.toml

@ -0,0 +1,42 @@
baseURL = 'https://www.eryang.wang'
locale = 'zh-CN'
title = '灿烂阳光'
theme = 'hugo-coder'
[params]
author = 'wangyang'
description = '博客'
avatarURL = 'images/avatar.jpg'
colorScheme = 'auto'
hideColorSchemeToggle = false
[[params.social]]
name = 'GitHub'
icon = 'fa fa-github'
weight = 1
url = 'https://github.com/wangyang'
[[params.social]]
name = 'Email'
icon = 'fa fa-envelope'
weight = 2
url = 'mailto:2083850206@qq.com'
[menu]
[[menu.main]]
identifier = 'home'
name = '首页'
weight = 1
url = '/'
[[menu.main]]
identifier = 'posts'
name = '文章'
weight = 2
url = '/posts/'
[[menu.main]]
identifier = 'about'
name = '关于'
weight = 3
url = '/about/'

29
themes/hugo-coder/.editorconfig

@ -0,0 +1,29 @@
# https://editorconfig.org
# this file is the top-most editorconfig file
root = true
# all files
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
# markdown files
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
# configuration files
[*.toml]
indent_size = 2
# web files
[*.{html,css,scss}]
indent_size = 2
[Makefile]
indent_style = tab

1
themes/hugo-coder/.github/FUNDING.yml

@ -0,0 +1 @@
custom: https://www.buymeacoffee.com/luizdepra

30
themes/hugo-coder/.github/ISSUE_TEMPLATE/bug_report.md

@ -0,0 +1,30 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: "Triage Needed"
assignees: ""
---
## Describe the problem:
_Explain the problem you have encountered_
### Steps to reproduce:
1. ***
2. ***
3. ***
### Observed Results:
- What happened?
- What did you expect to happen?
### Relevant code exceptions or logs
Note: Please copy/paste text of the messages, no screenshots of logs please.
```
// paste your log here
```

11
themes/hugo-coder/.github/ISSUE_TEMPLATE/feature_request.md

@ -0,0 +1,11 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---
## Describe the enhancement
_Explain the enhancement you would like_

11
themes/hugo-coder/.github/ISSUE_TEMPLATE/question.md

@ -0,0 +1,11 @@
---
name: Question
about: Ask a question you could not find an answer in the docs
title: ""
labels: "Question"
assignees: ""
---
## Your question
_Ask the question you have not been able to find an answer in the Documentation_

33
themes/hugo-coder/.github/pull_request_template.md

@ -0,0 +1,33 @@
### Prerequisites
Put an `x` into the box(es) that apply:
- [ ] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.
### Description
Describe what this pull request achieves.
### Issues Resolved
List any existing issues this pull request resolves.
### Checklist
Put an `x` into the box(es) that apply:
#### General
- [ ] Describe what changes are being made
- [ ] Explain why and how the changes were necessary and implemented respectively
- [ ] Reference issue with `#<ISSUE_NO>` if applicable
#### Resources
- [ ] If you have changed any SCSS code, run `make release` to regenerate all CSS files
#### Contributors
- [ ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already

6
themes/hugo-coder/.gitignore

@ -0,0 +1,6 @@
.idea
**/themes/
exampleSite/public/
exampleSite/resources/
*.lock
public

152
themes/hugo-coder/CONTRIBUTORS.md

@ -0,0 +1,152 @@
# Contributors
- [Chip Senkbeil](https://github.com/chipsenkbeil)
- [Dale Noe](https://github.com/dalenoe)
- [Gabor Nagy](https://github.com/Aigeruth)
- [Harry Khanna](https://github.com/hkhanna)
- [Ihor Dvoretskyi](https://github.com/idvoretskyi)
- [Jacob Wood](https://github.com/jacoblukewood)
- [Jan Baudisch](https://github.com/flyingP0tat0)
- [Jiri Hubacek](https://github.com/qeef)
- [Khosrow Moossavi](https://github.com/khos2ow)
- [Maikel](https://github.com/mbollemeijer)
- [MetBril](https://github.com/metbril)
- [Myles Johnson](https://github.com/MylesJohnson)
- [Niels Reijn](https://github.com/reijnn)
- [Padraic Renaghan](https://github.com/prenagha)
- [peterrus](https://github.com/peterrus)
- [Philipp Rintz](https://github.com/p-rintz)
- [Ralf Junghanns](https://github.com/rabbl)
- [rdhox](https://rdhox.io)
- [tobaloidee](https://github.com/Tobaloidee)
- [Tomasz Wąsiński](https://github.com/wasinski)
- [Vinícius dos Santos Oliveira](https://github.com/vinipsmaker)
- [Vlad Ionescu](https://github.com/Vlaaaaaaad)
- [Joseph Ting](https://github.com/josephting)
- [Abner Campanha](https://github.com/abnerpc)
- [Martin Kiesel](https://github.com/Kyslik)
- [John Tobin](https://www.johntobin.ie/)
- [Thomas Nys](https://thomasnys.com)
- [Piotr Januszewski](https://piojanu.github.io)
- [Artem Khvastunov](https://artspb.me)
- [Gabriel Nepomuceno](https://blog.nepomuceno.me)
- [Salvatore Giordano](https://salvatore-giordano.github.io)
- [Jeffrey Carpenter](https://uvolabs.me)
- [Paul Lettington](https://github.com/plett)
- [Thomas Vochten](https://github.com/thomasvochten)
- [Caspar Krieger](https://www.asparck.com)
- [D_DAndrew](https://d-dandrew.github.io)
- [Wataru Mizukami](https://github.com/tarumzu)
- [Yudi Widiyanto](https://github.com/yudiwdynto)
- [Łukasz Mróz](https://github.com/mrozlukasz)
- [Jia "Jay" Tan](https://github.com/j7an)
- [Ryan](https://github.com/alrayyes)
- [Naim A.](https://github.com/naim94a)
- [Alexander Rohde](https://github.com/a1x42)
- [Shreyansh Khajanchi](https://shreyanshja.in)
- [Lionel Brianto](https://lionel.brianto.dev)
- [Luis Zarate](https://github.com/jlzaratec)
- [Ariejan de Vroom](https://www.devroom.io)
- [Bobby Lindsey](https://bobbywlindsey.com)
- [José Mª Escartín](https://github.com/jme52)
- [John Schroeder](https://blog.schroedernet.software)
- [Tobias Lindberg](https://github.com/tobiasehlert)
- [KK](https://github.com/bebound)
- [Eli W. Hunter](https://github.com/elihunter173)
- [Víctor López](https://github.com/viticlick)
- [Anson VanDoren](https://github.com/anson-vandoren)
- [Michael Lynch](https://github.com/mtlynch)
- [FIGBERT](https://figbert.com/)
- [Yash Mehrotra](https://yashmehrotra.com)
- [Paolo Mainardi](https://paolomainardi.com)
- [Ka-Wai Lin](https://github.com/kwlin)
- [Piotr Orzechowski](https://orzechowski.tech)
- [Glenn Feunteun](https://github.com/gfeun)
- [Santiago González](https://github.com/netrules)
- [Codruț Constantin Gușoi](https://www.codrut.pro)
- [Clément Pannetier](https://clementpannetier.dev)
- [FantasticMao](https://github.com/FantasticMao)
- [Utkarsh Gupta](https://utkarsh2102.com)
- [Latiif Alsharif](https://latiif.se)
- [Endormi](https://endormi.io)
- [Rajiv Ranjan Singh](https://iamrajiv.github.io/)
- [Pakhomov Alexander](https://github.com/PakhomovAlexander)
- [Rhys Perry](https://rhysperry.com)
- [Arunvel Sriram](https://github.com/arunvelsriram)
- [Lorenzo Cameroni](https://github.com/came88)
- [Jared Sturdy](https://github.com/jsturdy)
- [Daniel Monteiro](https://github.com/dfamonteiro)
- [Dave Rolsky](https://github.com/autarch)
- [Joseph Sanders](https://github.com/jls83)
- [Rabin Adhikari](https://github.com/rabinadk1/)
- [Hussaini Zulkifli](https://github.com/hussaini/)
- [Ellison Leão](https://github.com/ellisonleao)
- [Lucas de Oliveira](https://github.com/lucas-dOliveira)
- [Jian Loong Liew](https://github.com/JianLoong)
- [earnest ma](https://github.com/earnestma)
- [TMineCola](https://github.com/tminecola)
- [Arafat Hasan](https://github.com/arafat-hasan)
- [YUJI](https://yuji.ne.jp/)
- [JaeSang Yoo](https://github.com/JSYoo5B)
- [tianheg](https://github.com/tianheg)
- [Felix](https://github.com/lazyyz)
- [Peter Duchnovsky](https://duchnovsky.com)
- [Alex Miranda](https://ammiranda.com)
- [Alphonse Mariya](https://github.com/alfunx)
- [Ziwei Pan](https://github.com/PanZiwei/)
- [Viktar Patotski](https://github.com/xp-vit)
- [cuso4-5h2o](https://www.cuso4.me)
- [freeformz](https://icanhazdowntime.org)
- [Roberto Gongora](https://yourfavourite.blog)
- [kuba86](https://kuba86.com)
- [Vladislav Matus](https://github.com/matusvla)
- [Kirill Feoktistov](https://feoktistoff.org)
- [leins275](https://github.com/LanskovNV)
- [Michael Weiss](https://mweiss.ch)
- [Simon Pai](https://github.com/simonpai)
- [Brenton Mallen](https://github.com/brentonmallen1)
- [Xiaoyang Luo](https://github.com/ccviolett/)
- [Michiel Appelman](https://appelman.se)
- [Mark Wood](https://digitalnotions.net)
- [Sam A.](https://samsapti.dev)
- [John Feminella](https://jxf.me)
- [zzsqwq](https://zzsqwq.cn)
- [George Tsiokos](https://george.tsiokos.com)
- [Eltjo](https://github.com/eltjo)
- [Saurmandal](https://saur.neocities.org)
- [Jneo8](https://github.com/jneo8)
- [Daniel Nduati](https://github.com/DanNduati)
- [Simon Hollingshead](https://github.com/simonhollingshead)
- [yangyangdaji](https://github.com/yangyangdaji)
- [xiaotianxt](https://github.com/xiaotianxt)
- [Nour Agha](https://github.com/nourkagha)
- [Brian Lachniet](https://github.com/blachniet)
- [ShortArrow](https://github.com/ShortArrow)
- [Martin Hellspong](https://github.com/marhel)
- [Robert Tucker](https://github.com/robertwtucker)
- [Michał Pawlik](https://michalp.net)
- [Kilian Kluge](https://github.com/ionicsolutions)
- [Jaroslaw Rozanski](https://jarekrozanski.eu)
- [Easton Man](https://github.com/eastonman)
- [Yiğit Altınay](https://altinay.xyz)
- [Fei Kong](https://github.com/alpha0422)
- [Ahmet Enes Bayraktar](https://github.com/aeb-dev)
- [Todor Bogosavljević](https://github.com/tbx1b)
- [Kemal Akkoyun](https://github.com/kakkoyun)
- [Igetin](https://github.com/Igetin)
- [Kirill Che.](https://github.com/g4s8)
- [iron3oxide](https://github.com/iron3oxide)
- [Jens Rantil](https://github.com/JensRantil)
- [Muqeet Malik](https://github.com/mmalik23)
- [Sammy44nts](https://github.com/sammy44nts)
- [Shaked8634](https://github.com/shaked8634)
- [Leo Heimann Ruiz](https://leo.heitmannruiz.org/)
- [Antoine "Toinux" Wam](https://github.com/itzwam)
- [Reberti Carvalho Soares](https://github.com/RebertiCS)
- [Andreas Deininger](https://github.com/deining)
- [Ardemium](https://github.com/ardemium)
- [Matt Ellery](https://github.com/matt-ellery)
- [Daniel Olshansky](https://github.com/olshansk)
- [Gregor Podjed](https://github.com/gragorther)
- [dantezhu](https://github.com/dantezhu)
- [Alexander Lazarević](https://e11bits.com)

20
themes/hugo-coder/LICENSE.md

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2018 Luiz F. A. de Prá
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
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
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.

12
themes/hugo-coder/Makefile

@ -0,0 +1,12 @@
HUGO_BIN=hugo
.PHONY: build demo release
build:
$(HUGO_BIN) --themesDir=../.. --source=exampleSite
demo:
$(HUGO_BIN) server -D --themesDir=../.. --source=exampleSite --bind 0.0.0.0
release: build
rm -rf ./resources && cp -r ./exampleSite/resources ./resources

53
themes/hugo-coder/README.md

@ -0,0 +1,53 @@
<p align="center">
<p align="center">
<a href="https://themes.gohugo.io/hugo-coder/">
<img src="https://img.shields.io/badge/theme-hugo--coder-2b8cbe" alt="Hugo Theme Badge"">
</a>
<a href="https://github.com/luizdepra/hugo-coder/blob/master/LICENSE.txt">
<img src="https://img.shields.io/github/license/luizdepra/hugo-coder.svg" alt="MIT License Badge">
</a>
</p>
<p align="center">
<a href="https://github.com/luizdepra/hugo-coder">
<img src="images/logos/logotype-a.png" alt="Hugo Coder Logo" width="600px" height="184px">
</a>
</p>
</p>
A simple and clean blog theme for [Hugo](https://gohugo.io/).
![](images/screenshot.png)
## Live Demo
See [here](https://hugo-coder.netlify.app/).
## Quick Start
1. Add the repository into your Hugo Project repository as a submodule, `git submodule add https://github.com/luizdepra/hugo-coder.git themes/hugo-coder`.
2. Configure your `hugo.toml`. You can either use [this minimal configuration](https://github.com/luizdepra/hugo-coder/blob/main/docs/configurations.md#complete-example) as a base, or look for a complete explanation about all configurations [here](https://github.com/luizdepra/hugo-coder/blob/main/docs/configurations.md). The [`hugo.toml`](https://github.com/luizdepra/hugo-coder/blob/master/exampleSite/hugo.toml) inside the [`exampleSite`](https://github.com/luizdepra/hugo-coder/tree/master/exampleSite) is also a good reference.
3. Build your site with `hugo server` and see the result at `http://localhost:1313/`.
## Documentation
See the [`docs`](docs/home.md) folder.
## License
Coder is licensed under the [MIT license](https://github.com/luizdepra/hugo-coder/blob/master/LICENSE.md).
## Maintenance
This theme is maintained by its author [Luiz de Prá](https://github.com/luizdepra) with the help from these awesome [contributors](CONTRIBUTORS.md).
## Sponsoring
If you like my project or it was useful for you, consider supporting its development. Just:
<a href="https://www.buymeacoffee.com/luizdepra" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-green.png" alt="Buy Me A Coffee" height="41" width="174"></a>
## Special Thanks
- Gleen McComb, for his great [article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination.
- All contributors, for every PR and Issue reported.

6
themes/hugo-coder/archetypes/default.md

@ -0,0 +1,6 @@
+++
draft = true
date = {{ .Date }}
title = ""
slug = ""
+++

12
themes/hugo-coder/archetypes/posts.md

@ -0,0 +1,12 @@
+++
draft = true
date = {{ .Date }}
title = ""
description = ""
slug = ""
authors = []
tags = []
categories = []
externalLink = ""
series = []
+++

97
themes/hugo-coder/assets/js/coder.js

@ -0,0 +1,97 @@
const body = document.body;
const darkModeToggle = document.getElementById('dark-mode-toggle');
const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
// Check if user preference is set, if not check value of body class for light or dark else it means that colorscheme = auto
if (localStorage.getItem("colorscheme")) {
setTheme(localStorage.getItem("colorscheme"));
} else if (body.classList.contains('colorscheme-light') || body.classList.contains('colorscheme-dark')) {
setTheme(body.classList.contains("colorscheme-dark") ? "dark" : "light");
} else {
setTheme(darkModeMediaQuery.matches ? "dark" : "light");
}
if (darkModeToggle) {
darkModeToggle.addEventListener('click', () => {
let theme = body.classList.contains("colorscheme-dark") ? "light" : "dark";
setTheme(theme);
rememberTheme(theme);
});
}
darkModeMediaQuery.addListener((event) => {
setTheme(event.matches ? "dark" : "light");
});
document.addEventListener("DOMContentLoaded", function () {
let node = document.querySelector('.preload-transitions');
node.classList.remove('preload-transitions');
});
function setTheme(theme) {
body.classList.remove('colorscheme-auto');
let inverse = theme === 'dark' ? 'light' : 'dark';
body.classList.remove('colorscheme-' + inverse);
body.classList.add('colorscheme-' + theme);
document.documentElement.style['color-scheme'] = theme;
function waitForElm(selector) {
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}
const observer = new MutationObserver(mutations => {
if (document.querySelector(selector)) {
resolve(document.querySelector(selector));
observer.disconnect();
}
});
observer.observe(document.body, {
childList: true,
subtree: true
});
});
}
if (theme === 'dark') {
const message = {
type: 'set-theme',
theme: 'github-dark'
};
waitForElm('.utterances-frame').then((iframe) => {
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
})
}
else {
const message = {
type: 'set-theme',
theme: 'github-light'
};
waitForElm('.utterances-frame').then((iframe) => {
iframe.contentWindow.postMessage(message, 'https://utteranc.es');
})
}
function sendMessage(message) {
const iframe = document.querySelector('iframe.giscus-frame');
if (!iframe) return;
iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');
}
sendMessage({
setConfig: {
theme: theme,
},
});
// Create and send event
const event = new Event('themeChanged');
document.dispatchEvent(event);
}
function rememberTheme(theme) {
localStorage.setItem('colorscheme', theme);
}

3
themes/hugo-coder/assets/js/purify.min.js

File diff suppressed because one or more lines are too long

290
themes/hugo-coder/assets/scss/_base.scss

@ -0,0 +1,290 @@
*,
*:after,
*:before {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 62.5%;
}
body {
color: $fg-color;
background-color: $bg-color;
font-family: $font-family;
font-size: 1.8em;
font-weight: 400;
line-height: 1.8em;
@media only screen and (max-width: 768px) {
font-size: 1.6em;
line-height: 1.6em;
}
}
iframe[src*="disqus"] {
color-scheme: light;
}
a {
font-weight: 500;
color: $link-color;
text-decoration: none;
transition: all 0.25s ease-in;
&:focus,
&:hover {
text-decoration: underline;
}
}
p {
margin: 2rem 0 2rem 0;
@media only screen and (max-width: 768px) {
margin: 1.5rem 0 1.5rem 0;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-family;
font-weight: 600;
color: $alt-fg-color;
margin: 4rem 0 2.5rem 0;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: $link-color;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
}
h1 {
font-size: 3.2rem;
line-height: 3.6rem;
@media only screen and (max-width: 768px) {
font-size: 3rem;
line-height: 3.4rem;
}
}
h2 {
font-size: 2.8rem;
line-height: 3.2rem;
@media only screen and (max-width: 768px) {
font-size: 2.6rem;
line-height: 3rem;
}
}
h3 {
font-size: 2.4rem;
line-height: 2.8rem;
@media only screen and (max-width: 768px) {
font-size: 2.2rem;
line-height: 2.6rem;
}
}
h4 {
font-size: 2.2rem;
line-height: 2.6rem;
@media only screen and (max-width: 768px) {
font-size: 2rem;
line-height: 2.4rem;
}
}
h5 {
font-size: 2rem;
line-height: 2.4rem;
@media only screen and (max-width: 768px) {
font-size: 1.8rem;
line-height: 2.2rem;
}
}
h6 {
font-size: 1.8rem;
line-height: 2.2rem;
@media only screen and (max-width: 768px) {
font-size: 1.6rem;
line-height: 2rem;
}
}
b,
strong {
font-weight: 700;
}
.highlight {
div,
pre {
margin: 2rem 0 2rem;
padding: 1rem;
border-radius: 1rem;
overflow-x: auto;
}
}
pre {
display: block;
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
line-height: 2.6rem;
overflow-x: auto;
margin: 2rem 0 2rem;
padding: 1rem;
border-radius: 1rem;
code {
display: inline-block;
background-color: inherit;
color: inherit;
}
}
code {
font-family: $code-font-family;
font-size: 1.6rem;
font-weight: 400;
border-radius: 0.6rem;
padding: 0.3rem 0.6rem;
background-color: $darker-alt-bg-color;
color: $fg-color;
@media only screen and (max-width: 768px) {
font-size: 1.5rem;
}
}
blockquote {
border-left: 2px solid $alt-bg-color;
padding-left: 2rem;
line-height: 2.2rem;
font-weight: 400;
font-style: italic;
}
* {
-webkit-tap-highlight-color: transparent;
}
th,
td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td,
table th {
border: 2px solid $alt-fg-color;
}
table tr:first-child th {
border-top: 0;
}
table tr:last-child td {
border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}
img {
max-width: 100%;
}
figure {
text-align: center;
}
.footnotes {
ol li p {
margin: 0;
}
}
.preload-transitions * {
$null-transition: none !important;
-webkit-transition: $null-transition;
-moz-transition: $null-transition;
-ms-transition: $null-transition;
-o-transition: $null-transition;
transition: $null-transition;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
}
.container {
margin: 1rem auto;
max-width: 90rem;
width: 100%;
padding-left: 2rem;
padding-right: 2rem;
}
.fab {
font-weight: 400;
}
.fas {
font-weight: 700;
}
.float-right {
float: right;
}
.float-left {
float: left;
}
.fab {
font-weight: 400;
}
.fas {
font-weight: 900;
}

91
themes/hugo-coder/assets/scss/_base_dark.scss

@ -0,0 +1,91 @@
@mixin base_dark {
color: $fg-color-dark;
background-color: $bg-color-dark;
a {
color: $link-color-dark;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: $alt-fg-color-dark;
&:hover .heading-link {
visibility: visible;
}
.heading-link {
color: $link-color-dark;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden;
}
.title-link {
color: inherit;
font-weight: inherit;
text-decoration: none;
}
}
pre code {
background-color: inherit;
color: inherit;
}
code {
background-color: $lighter-alt-bg-color-dark;
color: $fg-color-dark;
}
blockquote {
border-left: 2px solid $alt-bg-color-dark;
}
th,
td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td,
table th {
border: 2px solid $alt-fg-color-dark;
}
table tr:first-child th {
border-top: 0;
}
table tr:last-child td {
border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}
}
body.colorscheme-dark {
@include base_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include base_dark();
}
}

24
themes/hugo-coder/assets/scss/_base_rtl.scss

@ -0,0 +1,24 @@
body.rtl {
direction: rtl;
pre {
direction: ltr;
}
blockquote {
border-left: none;
border-right: 2px solid $alt-bg-color;
padding-left: 0;
padding-right: 1.6rem;
}
table tr td:first-child,
table tr th:first-child {
border-right: 0;
}
table tr td:last-child,
table tr th:last-child {
border-left: 0;
}
}

253
themes/hugo-coder/assets/scss/_content.scss

@ -0,0 +1,253 @@
.content {
flex: 1;
display: flex;
margin-top: 1.6rem;
margin-bottom: 3.2rem;
@media only screen and (max-width: 768px) {
margin-top: 1rem;
margin-bottom: 1.6rem;
}
header {
margin-top: 6.4rem;
margin-bottom: 3.2rem;
h1 {
font-size: 4.2rem;
line-height: 4.6rem;
margin: 0;
@media only screen and (max-width: 768px) {
font-size: 4rem;
line-height: 4.4rem;
}
}
}
article {
a:where(.external-link):not(:has(img)):after {
@extend %fa-icon;
@extend .fa-solid;
content: fa-content($fa-var-external-link);
padding-left: 0.5em;
font-size: 0.75em;
display: inline;
}
details {
summary {
cursor: pointer;
}
}
footer {
margin-top: 4rem;
.see-also {
margin: 3.2rem 0;
h3 {
margin: 3.2rem 0;
}
}
}
p {
text-align: justify;
text-justify: auto;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
}
.post {
.post-title {
margin-bottom: 0.75em;
}
.post-meta {
i {
text-align: center;
width: 1.6rem;
margin-left: 0;
margin-right: 0.5rem;
}
.date {
.posted-on {
margin-left: 0;
margin-right: 1.5rem;
}
}
.tags {
.tag {
display: inline-block;
padding: 0.3rem 0.6rem;
background-color: $alt-bg-color;
border-radius: 0.6rem;
line-height: 1.5em;
a {
color: $fg-color;
}
a:active {
color: $fg-color;
}
}
}
}
}
figure {
margin: 0;
padding: 0;
}
figcaption p {
text-align: center;
font-style: italic;
font-size: 1.6rem;
margin: 0;
}
}
.avatar img {
width: 20rem;
height: auto;
border-radius: 50%;
@media only screen and (max-width: 768px) {
width: 17rem;
}
}
.list {
ul {
margin: 3.2rem 0 3.2rem 0;
list-style: none;
padding: 0;
li {
font-size: 1.8rem;
@media only screen and (max-width: 768px) {
margin: 1.6rem 0 1.6rem 0;
}
.date {
display: inline-block;
flex: 1;
width: 20rem;
text-align: right;
margin-right: 3rem;
@media only screen and (max-width: 768px) {
display: block;
text-align: left;
}
}
.title {
font-size: 1.8rem;
flex: 2;
color: $fg-color;
font-family: $font-family;
font-weight: 700;
&:hover,
&:focus {
color: $link-color;
}
}
}
}
ul:not(.pagination) {
li {
@media only screen and (min-width: 768.1px) {
display: flex;
}
}
}
}
.centered {
display: flex;
align-items: center;
justify-content: center;
.about {
text-align: center;
h1 {
margin-top: 2rem;
margin-bottom: 0.5rem;
}
h2 {
margin-top: 1rem;
margin-bottom: 0.5rem;
font-size: 2.4rem;
@media only screen and (max-width: 768px) {
font-size: 2rem;
}
}
ul {
list-style: none;
margin: 3rem 0 1rem 0;
padding: 0;
cursor: pointer;
li {
display: inline-block;
position: relative;
a {
color: $fg-color;
text-transform: uppercase;
margin-left: 1rem;
margin-right: 1rem;
font-size: 1.6rem;
&:hover,
&:focus {
color: $link-color;
}
@media only screen and (max-width: 768px) {
font-size: 1.5rem;
}
}
}
}
}
.error {
text-align: center;
h1 {
margin-top: 2rem;
margin-bottom: 0.5rem;
font-size: 4.6rem;
@media only screen and (max-width: 768px) {
font-size: 3.2rem;
}
}
h2 {
margin-top: 2rem;
margin-bottom: 3.2rem;
font-size: 3.2rem;
@media only screen and (max-width: 768px) {
font-size: 2.8rem;
}
}
}
}

59
themes/hugo-coder/assets/scss/_content_dark.scss

@ -0,0 +1,59 @@
@mixin content_dark {
.content {
.post {
.tags {
.tag {
background-color: $alt-bg-color-dark;
a {
color: $fg-color-dark;
}
a:active {
color: $fg-color-dark;
}
}
}
}
.list {
ul {
li {
.title {
color: $fg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
}
}
}
}
}
.centered {
.about {
ul {
li {
a {
color: $fg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
}
}
}
}
}
}
}
}
body.colorscheme-dark {
@include content_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include content_dark();
}
}

36
themes/hugo-coder/assets/scss/_content_rtl.scss

@ -0,0 +1,36 @@
body.rtl {
.content {
.post {
.post-meta {
.posted-on {
margin-left: 1.5rem;
margin-right: 0;
}
}
.tags,
.categories {
i {
margin-left: 0.5rem;
margin-right: 0;
}
}
}
}
.list {
ul {
li {
.date {
text-align: left;
margin-left: 3rem;
margin-right: 0;
@media only screen and (max-width: 768px) {
text-align: right;
}
}
}
}
}
}

38
themes/hugo-coder/assets/scss/_float.scss

@ -0,0 +1,38 @@
.float-container {
bottom: 2rem;
right: 2rem;
z-index: 100;
position: fixed;
font-size: 1.6em;
a {
position: relative;
display: inline-block;
width: 3rem;
height: 3rem;
font-size: 2rem;
color: $alt-fg-color;
background-color: $alt-bg-color;
border-radius: 0.2rem;
opacity: 0.5;
transition: all 0.25s ease-in;
&:hover,
&:focus {
color: $link-color;
opacity: 1;
@media only screen and (max-width: 768px) {
color: $alt-fg-color;
opacity: 0.5;
}
}
i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
}

27
themes/hugo-coder/assets/scss/_float_dark.scss

@ -0,0 +1,27 @@
@mixin float_dark {
.float-container {
a {
color: $alt-fg-color-dark;
background-color: $alt-bg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
@media only screen and (max-width: 768px) {
color: $alt-fg-color-dark;
}
}
}
}
}
body.colorscheme-dark {
@include float_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include float_dark();
}
}

13
themes/hugo-coder/assets/scss/_footer.scss

@ -0,0 +1,13 @@
.footer {
width: 100%;
text-align: center;
font-size: 1.6rem;
line-height: 2rem;
margin-bottom: 1rem;
@media only screen and (max-width: 768px) {
font-size: 1.5rem;
}
a {
color: $link-color;
}
}

17
themes/hugo-coder/assets/scss/_footer_dark.scss

@ -0,0 +1,17 @@
@mixin footer_dark {
.footer {
a {
color: $link-color-dark;
}
}
}
body.colorscheme-dark {
@include footer_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include footer_dark();
}
}

73
themes/hugo-coder/assets/scss/_mastodon.scss

@ -0,0 +1,73 @@
.mastodon-wrapper {
display: flex;
gap: 3rem;
flex-direction: row;
}
.comment-level {
max-width: 3rem;
min-width: 3rem;
}
.reply-original {
display: none;
}
.mastodon-comment {
background-color: var(--body-background);
border-radius: var(--card-border-radius);
padding: var(--card-padding);
margin-bottom: 1rem;
display: flex;
gap: 1rem;
flex-direction: column;
flex-grow: 2;
.comment {
display: flex;
flex-direction: row;
gap: 1rem;
flex-wrap: true;
}
.comment-avatar img {
width: 6rem;
}
.content {
flex-grow: 2;
}
.comment-author {
display: flex;
flex-direction: column;
&-name {
font-weight: bold;
a {
display: flex;
align-items: center;
}
}
&-date {
margin-left: auto;
}
}
.disabled {
color: var(--accent-color)
}
}
.mastodon-comment-content p:first-child {
margin-top: 0;
}
.mastodon {
--dlg-bg: #282c37;
--dlg-w: 600px;
--dlg-color: #9baec8;
--dlg-button-p: 0.75em 2em;
--dlg-outline-c: #00D9F5;
}

151
themes/hugo-coder/assets/scss/_navigation.scss

@ -0,0 +1,151 @@
.navigation {
height: 6rem;
width: 100%;
a,
span {
display: inline;
font-size: 1.7rem;
font-family: $font-family;
font-weight: 600;
color: $fg-color;
}
a {
&:hover,
&:focus {
color: $link-color;
}
}
.navigation-title {
letter-spacing: 0.1rem;
text-transform: uppercase;
}
.navigation-list {
float: right;
list-style: none;
margin-bottom: 0;
margin-top: 0;
@media only screen and (max-width: 768px) {
position: relative;
top: 2rem;
right: 0;
z-index: 5;
visibility: hidden;
opacity: 0;
padding: 0;
max-height: 0;
width: 100%;
background-color: $bg-color;
border-top: solid 2px $alt-bg-color;
border-bottom: solid 2px $alt-bg-color;
transition: opacity 0.25s, max-height 0.15s linear;
}
.navigation-item {
float: left;
margin: 0;
position: relative;
@media only screen and (max-width: 768px) {
float: none !important;
text-align: center;
a,
span {
line-height: 5rem;
}
}
a,
span {
margin-left: 1rem;
margin-right: 1rem;
}
}
.separator {
@media only screen and (max-width: 768px) {
display: none;
}
}
.menu-separator {
@media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color;
margin: 0 8rem;
span {
display: none;
}
}
}
}
#dark-mode-toggle {
margin: 1.7rem 0;
font-size: 2.4rem;
line-height: inherit;
bottom: 2rem;
left: 2rem;
z-index: 100;
position: fixed;
}
#menu-toggle {
display: none;
@media only screen and (max-width: 768px) {
display: initial;
position: relative;
visibility: hidden;
&:checked+label>i {
color: $alt-bg-color;
}
&:checked+label+ul {
visibility: visible;
opacity: 1;
max-height: 100rem;
}
&:focus-visible+label {
outline-style: auto;
}
}
}
.menu-button {
display: none;
@media only screen and (max-width: 768px) {
position: relative;
display: block;
font-size: 2.4rem;
font-weight: 400;
}
i {
&:hover,
&:focus {
color: $alt-fg-color;
}
}
}
i {
color: $fg-color;
cursor: pointer;
&:hover,
&:focus {
color: $link-color;
}
}
}

68
themes/hugo-coder/assets/scss/_navigation_dark.scss

@ -0,0 +1,68 @@
@mixin navigation_dark {
.navigation {
a,
span {
color: $fg-color-dark;
}
a {
&:hover,
&:focus {
color: $link-color-dark;
}
}
.navigation-list {
@media only screen and (max-width: 768px) {
background-color: $bg-color-dark;
border-top: solid 2px $alt-bg-color-dark;
border-bottom: solid 2px $alt-bg-color-dark;
}
.menu-separator {
@media only screen and (max-width: 768px) {
border-top: 2px solid $fg-color-dark;
}
}
}
#menu-toggle {
@media only screen and (max-width: 768px) {
&:checked+label>i {
color: $alt-bg-color-dark;
}
}
}
i {
color: $fg-color-dark;
&:hover,
&:focus {
color: $link-color-dark;
}
}
.menu-button {
i {
&:hover,
&:focus {
color: $alt-fg-color-dark;
}
}
}
}
}
body.colorscheme-dark {
@include navigation_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include navigation_dark();
}
}

20
themes/hugo-coder/assets/scss/_navigation_rtl.scss

@ -0,0 +1,20 @@
body.rtl {
.navigation-list {
float: left;
@media only screen and (max-width: 768px) {
left: 0;
right: auto;
}
.navigation-item {
float: right;
}
}
.menu-button {
@media only screen and (max-width: 768px) {
float: left;
}
}
}

111
themes/hugo-coder/assets/scss/_notices.scss

@ -0,0 +1,111 @@
.notice {
border-radius: 0.2rem;
position: relative;
margin: 2rem 0;
padding: 0 0.75rem;
overflow: auto;
.notice-title {
position: relative;
font-weight: 700;
margin: 0 -0.75rem;
padding: 0.2rem 3.5rem;
border-bottom: 1px solid $bg-color;
i {
position: absolute;
top: 50%;
left: 1.8rem;
transform: translate(-50%, -50%);
}
}
.notice-content {
display: block;
margin: 2rem 2rem;
}
}
.notice.note {
background-color: $bg-color-notice-note-content;
.notice-title {
background-color: $bg-color-notice-note-title;
i {
color: $fg-color-notice-note-icon;
}
}
}
.notice.tip {
background-color: $bg-color-notice-tip-content;
.notice-title {
background-color: $bg-color-notice-tip-title;
i {
color: $fg-color-notice-tip-icon;
}
}
}
.notice.example {
background-color: $bg-color-notice-example-content;
.notice-title {
background-color: $bg-color-notice-example-title;
i {
color: $fg-color-notice-example-icon;
}
}
}
.notice.question {
background-color: $bg-color-notice-question-content;
.notice-title {
background-color: $bg-color-notice-question-title;
i {
color: $fg-color-notice-question-icon;
}
}
}
.notice.info {
background-color: $bg-color-notice-info-content;
.notice-title {
background-color: $bg-color-notice-info-title;
i {
color: $fg-color-notice-info-icon;
}
}
}
.notice.warning {
background-color: $bg-color-notice-warning-content;
.notice-title {
background-color: $bg-color-notice-warning-title;
i {
color: $fg-color-notice-warning-icon;
}
}
}
.notice.error {
background-color: $bg-color-notice-error-content;
.notice-title {
background-color: $bg-color-notice-error-title;
i {
color: $fg-color-notice-error-icon;
}
}
}

17
themes/hugo-coder/assets/scss/_notices_dark.scss

@ -0,0 +1,17 @@
@mixin notices_dark {
.notice {
.notice-title {
border-bottom: 1px solid $bg-color-dark;
}
}
}
body.colorscheme-dark {
@include notices_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include notices_dark();
}
}

21
themes/hugo-coder/assets/scss/_pagination.scss

@ -0,0 +1,21 @@
.pagination {
display: flex;
justify-content: center;
margin-top: 6rem;
text-align: center;
font-family: $font-family;
li {
display: inline;
text-align: center;
font-weight: 700;
margin: 0 2px;
text-align: center;
width: 2.2rem;
a {
font-weight: 300;
}
}
}

86
themes/hugo-coder/assets/scss/_syntax.scss

@ -0,0 +1,86 @@
/* Background */ .bg { background-color: #ffffff; }
/* PreWrapper */ .chroma { background-color: #ffffff; }
/* Other */ .chroma .x { }
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
/* CodeLine */ .chroma .cl { }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #000000; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color: #000000; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color: #000000; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color: #000000; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color: #000000; font-weight: bold }
/* KeywordReserved */ .chroma .kr { color: #000000; font-weight: bold }
/* KeywordType */ .chroma .kt { color: #445588; font-weight: bold }
/* Name */ .chroma .n { }
/* NameAttribute */ .chroma .na { color: #008080 }
/* NameBuiltin */ .chroma .nb { color: #0086b3 }
/* NameBuiltinPseudo */ .chroma .bp { color: #999999 }
/* NameClass */ .chroma .nc { color: #445588; font-weight: bold }
/* NameConstant */ .chroma .no { color: #008080 }
/* NameDecorator */ .chroma .nd { color: #3c5d5d; font-weight: bold }
/* NameEntity */ .chroma .ni { color: #800080 }
/* NameException */ .chroma .ne { color: #990000; font-weight: bold }
/* NameFunction */ .chroma .nf { color: #990000; font-weight: bold }
/* NameFunctionMagic */ .chroma .fm { }
/* NameLabel */ .chroma .nl { color: #990000; font-weight: bold }
/* NameNamespace */ .chroma .nn { color: #555555 }
/* NameOther */ .chroma .nx { }
/* NameProperty */ .chroma .py { }
/* NameTag */ .chroma .nt { color: #000080 }
/* NameVariable */ .chroma .nv { color: #008080 }
/* NameVariableClass */ .chroma .vc { color: #008080 }
/* NameVariableGlobal */ .chroma .vg { color: #008080 }
/* NameVariableInstance */ .chroma .vi { color: #008080 }
/* NameVariableMagic */ .chroma .vm { }
/* Literal */ .chroma .l { }
/* LiteralDate */ .chroma .ld { }
/* LiteralString */ .chroma .s { color: #dd1144 }
/* LiteralStringAffix */ .chroma .sa { color: #dd1144 }
/* LiteralStringBacktick */ .chroma .sb { color: #dd1144 }
/* LiteralStringChar */ .chroma .sc { color: #dd1144 }
/* LiteralStringDelimiter */ .chroma .dl { color: #dd1144 }
/* LiteralStringDoc */ .chroma .sd { color: #dd1144 }
/* LiteralStringDouble */ .chroma .s2 { color: #dd1144 }
/* LiteralStringEscape */ .chroma .se { color: #dd1144 }
/* LiteralStringHeredoc */ .chroma .sh { color: #dd1144 }
/* LiteralStringInterpol */ .chroma .si { color: #dd1144 }
/* LiteralStringOther */ .chroma .sx { color: #dd1144 }
/* LiteralStringRegex */ .chroma .sr { color: #009926 }
/* LiteralStringSingle */ .chroma .s1 { color: #dd1144 }
/* LiteralStringSymbol */ .chroma .ss { color: #990073 }
/* LiteralNumber */ .chroma .m { color: #009999 }
/* LiteralNumberBin */ .chroma .mb { color: #009999 }
/* LiteralNumberFloat */ .chroma .mf { color: #009999 }
/* LiteralNumberHex */ .chroma .mh { color: #009999 }
/* LiteralNumberInteger */ .chroma .mi { color: #009999 }
/* LiteralNumberIntegerLong */ .chroma .il { color: #009999 }
/* LiteralNumberOct */ .chroma .mo { color: #009999 }
/* Operator */ .chroma .o { color: #000000; font-weight: bold }
/* OperatorWord */ .chroma .ow { color: #000000; font-weight: bold }
/* Punctuation */ .chroma .p { }
/* Comment */ .chroma .c { color: #999988; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #999988; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #999988; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #999988; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #999999; font-weight: bold; font-style: italic }
/* CommentPreproc */ .chroma .cp { color: #999999; font-weight: bold; font-style: italic }
/* CommentPreprocFile */ .chroma .cpf { color: #999999; font-weight: bold; font-style: italic }
/* Generic */ .chroma .g { }
/* GenericDeleted */ .chroma .gd { color: #000000; background-color: #ffdddd }
/* GenericEmph */ .chroma .ge { color: #000000; font-style: italic }
/* GenericError */ .chroma .gr { color: #aa0000 }
/* GenericHeading */ .chroma .gh { color: #999999 }
/* GenericInserted */ .chroma .gi { color: #000000; background-color: #ddffdd }
/* GenericOutput */ .chroma .go { color: #888888 }
/* GenericPrompt */ .chroma .gp { color: #555555 }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #aaaaaa }
/* GenericTraceback */ .chroma .gt { color: #aa0000 }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #bbbbbb }

98
themes/hugo-coder/assets/scss/_syntax_dark.scss

@ -0,0 +1,98 @@
@mixin syntax_dark {
/* Background */ .bg { color: #c9d1d9; background-color: #0d1117; }
/* PreWrapper */ .chroma { color: #c9d1d9; background-color: #0d1117; }
/* Other */ .chroma .x { }
/* Error */ .chroma .err { color: #f85149 }
/* CodeLine */ .chroma .cl { }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #64686c }
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #6e7681 }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #ff7b72 }
/* KeywordConstant */ .chroma .kc { color: #79c0ff }
/* KeywordDeclaration */ .chroma .kd { color: #ff7b72 }
/* KeywordNamespace */ .chroma .kn { color: #ff7b72 }
/* KeywordPseudo */ .chroma .kp { color: #79c0ff }
/* KeywordReserved */ .chroma .kr { color: #ff7b72 }
/* KeywordType */ .chroma .kt { color: #ff7b72 }
/* Name */ .chroma .n { }
/* NameAttribute */ .chroma .na { }
/* NameBuiltin */ .chroma .nb { }
/* NameBuiltinPseudo */ .chroma .bp { }
/* NameClass */ .chroma .nc { color: #f0883e; font-weight: bold }
/* NameConstant */ .chroma .no { color: #79c0ff; font-weight: bold }
/* NameDecorator */ .chroma .nd { color: #d2a8ff; font-weight: bold }
/* NameEntity */ .chroma .ni { color: #ffa657 }
/* NameException */ .chroma .ne { color: #f0883e; font-weight: bold }
/* NameFunction */ .chroma .nf { color: #d2a8ff; font-weight: bold }
/* NameFunctionMagic */ .chroma .fm { }
/* NameLabel */ .chroma .nl { color: #79c0ff; font-weight: bold }
/* NameNamespace */ .chroma .nn { color: #ff7b72 }
/* NameOther */ .chroma .nx { }
/* NameProperty */ .chroma .py { color: #79c0ff }
/* NameTag */ .chroma .nt { color: #7ee787 }
/* NameVariable */ .chroma .nv { color: #79c0ff }
/* NameVariableClass */ .chroma .vc { }
/* NameVariableGlobal */ .chroma .vg { }
/* NameVariableInstance */ .chroma .vi { }
/* NameVariableMagic */ .chroma .vm { }
/* Literal */ .chroma .l { color: #a5d6ff }
/* LiteralDate */ .chroma .ld { color: #79c0ff }
/* LiteralString */ .chroma .s { color: #a5d6ff }
/* LiteralStringAffix */ .chroma .sa { color: #79c0ff }
/* LiteralStringBacktick */ .chroma .sb { color: #a5d6ff }
/* LiteralStringChar */ .chroma .sc { color: #a5d6ff }
/* LiteralStringDelimiter */ .chroma .dl { color: #79c0ff }
/* LiteralStringDoc */ .chroma .sd { color: #a5d6ff }
/* LiteralStringDouble */ .chroma .s2 { color: #a5d6ff }
/* LiteralStringEscape */ .chroma .se { color: #79c0ff }
/* LiteralStringHeredoc */ .chroma .sh { color: #79c0ff }
/* LiteralStringInterpol */ .chroma .si { color: #a5d6ff }
/* LiteralStringOther */ .chroma .sx { color: #a5d6ff }
/* LiteralStringRegex */ .chroma .sr { color: #79c0ff }
/* LiteralStringSingle */ .chroma .s1 { color: #a5d6ff }
/* LiteralStringSymbol */ .chroma .ss { color: #a5d6ff }
/* LiteralNumber */ .chroma .m { color: #a5d6ff }
/* LiteralNumberBin */ .chroma .mb { color: #a5d6ff }
/* LiteralNumberFloat */ .chroma .mf { color: #a5d6ff }
/* LiteralNumberHex */ .chroma .mh { color: #a5d6ff }
/* LiteralNumberInteger */ .chroma .mi { color: #a5d6ff }
/* LiteralNumberIntegerLong */ .chroma .il { color: #a5d6ff }
/* LiteralNumberOct */ .chroma .mo { color: #a5d6ff }
/* Operator */ .chroma .o { color: #ff7b72; font-weight: bold }
/* OperatorWord */ .chroma .ow { color: #ff7b72; font-weight: bold }
/* Punctuation */ .chroma .p { }
/* Comment */ .chroma .c { color: #8b949e; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #8b949e; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #8b949e; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #8b949e; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #8b949e; font-weight: bold; font-style: italic }
/* CommentPreproc */ .chroma .cp { color: #8b949e; font-weight: bold; font-style: italic }
/* CommentPreprocFile */ .chroma .cpf { color: #8b949e; font-weight: bold; font-style: italic }
/* Generic */ .chroma .g { }
/* GenericDeleted */ .chroma .gd { color: #ffa198; background-color: #490202 }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericError */ .chroma .gr { color: #ffa198 }
/* GenericHeading */ .chroma .gh { color: #79c0ff; font-weight: bold }
/* GenericInserted */ .chroma .gi { color: #56d364; background-color: #0f5323 }
/* GenericOutput */ .chroma .go { color: #8b949e }
/* GenericPrompt */ .chroma .gp { color: #8b949e }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #79c0ff }
/* GenericTraceback */ .chroma .gt { color: #ff7b72 }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #6e7681 }
}
body.colorscheme-dark {
@include syntax_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include syntax_dark();
}
}

77
themes/hugo-coder/assets/scss/_tabs.scss

@ -0,0 +1,77 @@
.tabs {
display: flex;
flex-wrap: wrap;
margin: 2rem 0 2rem 0;
position: relative;
&.tabs-left {
justify-content: flex-start;
label.tab-label {
margin-right: 0.5rem;
}
.tab-content {
border-radius: 0px 4px 4px 4px;
}
}
&.tabs-right {
justify-content: flex-end;
label.tab-label {
margin-left: 0.5rem;
}
.tab-content {
border-radius: 4px 0px 4px 4px;
}
}
input.tab-input {
display: none;
}
label.tab-label {
background-color: $alt-bg-color;
border-color: $darker-alt-bg-color;
border-radius: 4px 4px 0px 0px;
border-style: solid;
border-bottom-style: hidden;
border-width: 1px;
cursor: pointer;
display: inline-block;
order: 1;
padding: 0.3rem 0.6rem;
position: relative;
top: 1px;
user-select: none;
}
input.tab-input:checked + label.tab-label {
background-color: $bg-color;
}
.tab-content {
background-color: $bg-color;
border-color: $darker-alt-bg-color;
border-style: solid;
border-width: 1px;
display: none;
order: 2;
padding: 1rem;
width: 100%;
}
&.tabs-code {
.tab-content {
padding: 0.5rem;
pre {
margin: 0;
}
}
}
}

27
themes/hugo-coder/assets/scss/_tabs_dark.scss

@ -0,0 +1,27 @@
@mixin tabs_dark {
.tabs {
label.tab-label {
background-color: $alt-bg-color-dark;
border-color: $lighter-alt-bg-color-dark;
}
input.tab-input:checked + label.tab-label {
background-color: $bg-color-dark;
}
.tab-content {
background-color: $bg-color-dark;
border-color: $lighter-alt-bg-color-dark;
}
}
}
body.colorscheme-dark {
@include tabs_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include tabs_dark();
}
}

20
themes/hugo-coder/assets/scss/_taxonomies.scss

@ -0,0 +1,20 @@
.taxonomy {
li {
display: inline-block;
margin: 0.9rem;
}
.taxonomy-element {
display: block;
padding: 0.3rem 0.9rem;
background-color: $alt-bg-color;
border-radius: 0.6rem;
a {
color: $fg-color;
}
a:active {
color: $fg-color;
}
}
}

22
themes/hugo-coder/assets/scss/_taxonomies_dark.scss

@ -0,0 +1,22 @@
@mixin taxonomy_dark {
.taxonomy-element {
background-color: $alt-bg-color-dark;
a {
color: $fg-color-dark;
}
a:active {
color: $fg-color-dark;
}
}
}
body.colorscheme-dark {
@include taxonomy_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
@include taxonomy_dark();
}
}

64
themes/hugo-coder/assets/scss/_variables.scss

@ -0,0 +1,64 @@
// Fonts
$font-family: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen-Sans,
Ubuntu,
Cantarell,
"Helvetica Neue",
Helvetica,
"游ゴシック",
"PingFang SC",
STXihei,"华文细黑",
"Microsoft YaHei","微软雅黑",
SimSun,"宋体",
Heiti,"黑体",
sans-serif;
$code-font-family: "SF Mono",
Consolas,
Liberation Mono,
Menlo,
monospace;
// Colors
$bg-color: #fafafa !default;
$fg-color: #212121 !default;
$alt-bg-color: #e0e0e0 !default;
$alt-fg-color: #000 !default;
$darker-alt-bg-color: #ccc !default;
$link-color: #1565c0 !default;
// Dark colors
$bg-color-dark: #212121 !default;
$fg-color-dark: #dadada !default;
$alt-bg-color-dark: #424242 !default;
$alt-fg-color-dark: #dadada !default;
$lighter-alt-bg-color-dark: #4f4f4f !default;
$link-color-dark: #42a5f5 !default;
// Notice colors
$fg-color-notice-note-icon: #5e35b1 !default;
$bg-color-notice-note-title: #673ab71a !default;
$bg-color-notice-note-content: #7e57c21a !default;
$fg-color-notice-tip-icon: #00897b !default;
$bg-color-notice-tip-title: #0096881a !default;
$bg-color-notice-tip-content: #26a69a1a !default;
$fg-color-notice-example-icon: #6d4c41 !default;
$bg-color-notice-example-title: #7955481a !default;
$bg-color-notice-example-content: #8d6e631a !default;
$fg-color-notice-question-icon: #7cb342 !default;
$bg-color-notice-question-title: #8bc34a1a !default;
$bg-color-notice-question-content: #9ccc651a !default;
$fg-color-notice-info-icon: #1e88e5 !default;
$bg-color-notice-info-title: #2196f31a !default;
$bg-color-notice-info-content: #42a5f51a !default;
$fg-color-notice-warning-icon: #ffb300 !default;
$bg-color-notice-warning-title: #ffc1071a !default;
$bg-color-notice-warning-content: #ffca281a !default;
$fg-color-notice-error-icon: #e53935 !default;
$bg-color-notice-error-title: #f443361a !default;
$bg-color-notice-error-content: #ef53501a !default;
// Path to FontAwesome TTF/WOFF files.
$fa-font-path: "../fonts" !default;

10
themes/hugo-coder/assets/scss/coder-dark.scss

@ -0,0 +1,10 @@
@import "variables";
@import "base_dark";
@import "content_dark";
@import "notices_dark";
@import "navigation_dark";
@import "tabs_dark";
@import "taxonomies_dark";
@import "footer_dark";
@import "float_dark";
@import "syntax_dark";

4
themes/hugo-coder/assets/scss/coder-rtl.scss

@ -0,0 +1,4 @@
@import "_variables";
@import "_base_rtl";
@import "_content_rtl";
@import "_navigation_rtl";

18
themes/hugo-coder/assets/scss/coder.scss

@ -0,0 +1,18 @@
@import "css/normalize";
@import "variables";
@import "font-awesome/fontawesome";
@import "font-awesome/regular";
@import "font-awesome/solid";
@import "font-awesome/brands";
@import "font-awesome/v4-shims";
@import "base";
@import "content";
@import "notices";
@import "navigation";
@import "pagination";
@import "tabs";
@import "taxonomies";
@import "footer";
@import "float";
@import "mastodon";
@import "syntax";

350
themes/hugo-coder/assets/scss/css/normalize.css

@ -0,0 +1,350 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
word-wrap: break-word;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

165
themes/hugo-coder/assets/scss/font-awesome/LICENSE.txt

@ -0,0 +1,165 @@
Fonticons, Inc. (https://fontawesome.com)
--------------------------------------------------------------------------------
Font Awesome Free License
Font Awesome Free is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.
Full Font Awesome Free license: https://fontawesome.com/license/free.
--------------------------------------------------------------------------------
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
The Font Awesome Free download is licensed under a Creative Commons
Attribution 4.0 International License and applies to all icons packaged
as SVG and JS file types.
--------------------------------------------------------------------------------
# Fonts: SIL OFL 1.1 License
In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files.
Copyright (c) 2024 Fonticons, Inc. (https://fontawesome.com)
with Reserved Font Name: "Font Awesome".
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
SIL OPEN FONT LICENSE
Version 1.1 - 26 February 2007
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting — in part or in whole — any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
# Code: MIT License (https://opensource.org/licenses/MIT)
In the Font Awesome Free download, the MIT license applies to all non-font and
non-icon files.
Copyright 2024 Fonticons, Inc.
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 the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 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.
--------------------------------------------------------------------------------
# Attribution
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
Awesome Free files already contain embedded comments with sufficient
attribution, so you shouldn't need to do anything additional when using these
files normally.
We've kept attribution comments terse, so we ask that you do not actively work
to remove them from files, especially code. They're a great way for folks to
learn about Font Awesome.
--------------------------------------------------------------------------------
# Brand Icons
All brand icons are trademarks of their respective owners. The use of these
trademarks does not indicate endorsement of the trademark holder by Font
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
to represent the company, product, or service to which they refer.**

152
themes/hugo-coder/assets/scss/font-awesome/_animated.scss

@ -0,0 +1,152 @@
// animating icons
// --------------------------
.#{$fa-css-prefix}-beat {
animation-name: #{$fa-css-prefix}-beat;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
}
.#{$fa-css-prefix}-bounce {
animation-name: #{$fa-css-prefix}-bounce;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(0.280, 0.840, 0.420, 1));
}
.#{$fa-css-prefix}-fade {
animation-name: #{$fa-css-prefix}-fade;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
}
.#{$fa-css-prefix}-beat-fade {
animation-name: #{$fa-css-prefix}-beat-fade;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, cubic-bezier(.4,0,.6,1));
}
.#{$fa-css-prefix}-flip {
animation-name: #{$fa-css-prefix}-flip;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, ease-in-out);
}
.#{$fa-css-prefix}-shake {
animation-name: #{$fa-css-prefix}-shake;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
}
.#{$fa-css-prefix}-spin {
animation-name: #{$fa-css-prefix}-spin;
animation-delay: var(--#{$fa-css-prefix}-animation-delay, 0s);
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 2s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, linear);
}
.#{$fa-css-prefix}-spin-reverse {
--#{$fa-css-prefix}-animation-direction: reverse;
}
.#{$fa-css-prefix}-pulse,
.#{$fa-css-prefix}-spin-pulse {
animation-name: #{$fa-css-prefix}-spin;
animation-direction: var(--#{$fa-css-prefix}-animation-direction, normal);
animation-duration: var(--#{$fa-css-prefix}-animation-duration, 1s);
animation-iteration-count: var(--#{$fa-css-prefix}-animation-iteration-count, infinite);
animation-timing-function: var(--#{$fa-css-prefix}-animation-timing, steps(8));
}
// if agent or operating system prefers reduced motion, disable animations
// see: https://www.smashingmagazine.com/2020/09/design-reduced-motion-sensitivities/
// see: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
@media (prefers-reduced-motion: reduce) {
.#{$fa-css-prefix}-beat,
.#{$fa-css-prefix}-bounce,
.#{$fa-css-prefix}-fade,
.#{$fa-css-prefix}-beat-fade,
.#{$fa-css-prefix}-flip,
.#{$fa-css-prefix}-pulse,
.#{$fa-css-prefix}-shake,
.#{$fa-css-prefix}-spin,
.#{$fa-css-prefix}-spin-pulse {
animation-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@keyframes #{$fa-css-prefix}-beat {
0%, 90% { transform: scale(1); }
45% { transform: scale(var(--#{$fa-css-prefix}-beat-scale, 1.25)); }
}
@keyframes #{$fa-css-prefix}-bounce {
0% { transform: scale(1,1) translateY(0); }
10% { transform: scale(var(--#{$fa-css-prefix}-bounce-start-scale-x, 1.1),var(--#{$fa-css-prefix}-bounce-start-scale-y, 0.9)) translateY(0); }
30% { transform: scale(var(--#{$fa-css-prefix}-bounce-jump-scale-x, 0.9),var(--#{$fa-css-prefix}-bounce-jump-scale-y, 1.1)) translateY(var(--#{$fa-css-prefix}-bounce-height, -0.5em)); }
50% { transform: scale(var(--#{$fa-css-prefix}-bounce-land-scale-x, 1.05),var(--#{$fa-css-prefix}-bounce-land-scale-y, 0.95)) translateY(0); }
57% { transform: scale(1,1) translateY(var(--#{$fa-css-prefix}-bounce-rebound, -0.125em)); }
64% { transform: scale(1,1) translateY(0); }
100% { transform: scale(1,1) translateY(0); }
}
@keyframes #{$fa-css-prefix}-fade {
50% { opacity: var(--#{$fa-css-prefix}-fade-opacity, 0.4); }
}
@keyframes #{$fa-css-prefix}-beat-fade {
0%, 100% {
opacity: var(--#{$fa-css-prefix}-beat-fade-opacity, 0.4);
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(var(--#{$fa-css-prefix}-beat-fade-scale, 1.125));
}
}
@keyframes #{$fa-css-prefix}-flip {
50% {
transform: rotate3d(var(--#{$fa-css-prefix}-flip-x, 0), var(--#{$fa-css-prefix}-flip-y, 1), var(--#{$fa-css-prefix}-flip-z, 0), var(--#{$fa-css-prefix}-flip-angle, -180deg));
}
}
@keyframes #{$fa-css-prefix}-shake {
0% { transform: rotate(-15deg); }
4% { transform: rotate(15deg); }
8%, 24% { transform: rotate(-18deg); }
12%, 28% { transform: rotate(18deg); }
16% { transform: rotate(-22deg); }
20% { transform: rotate(22deg); }
32% { transform: rotate(-12deg); }
36% { transform: rotate(12deg); }
40%, 100% { transform: rotate(0deg); }
}
@keyframes #{$fa-css-prefix}-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

20
themes/hugo-coder/assets/scss/font-awesome/_bordered-pulled.scss

@ -0,0 +1,20 @@
// bordered + pulled icons
// -------------------------
.#{$fa-css-prefix}-border {
border-color: var(--#{$fa-css-prefix}-border-color, #{$fa-border-color});
border-radius: var(--#{$fa-css-prefix}-border-radius, #{$fa-border-radius});
border-style: var(--#{$fa-css-prefix}-border-style, #{$fa-border-style});
border-width: var(--#{$fa-css-prefix}-border-width, #{$fa-border-width});
padding: var(--#{$fa-css-prefix}-border-padding, #{$fa-border-padding});
}
.#{$fa-css-prefix}-pull-left {
float: left;
margin-right: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
}
.#{$fa-css-prefix}-pull-right {
float: right;
margin-left: var(--#{$fa-css-prefix}-pull-margin, #{$fa-pull-margin});
}

49
themes/hugo-coder/assets/scss/font-awesome/_core.scss

@ -0,0 +1,49 @@
// base icon class definition
// -------------------------
.#{$fa-css-prefix} {
font-family: var(--#{$fa-css-prefix}-style-family, '#{$fa-style-family}');
font-weight: var(--#{$fa-css-prefix}-style, #{$fa-style});
}
.fas,
.far,
.fab,
.#{$fa-css-prefix}-solid,
.#{$fa-css-prefix}-regular,
.#{$fa-css-prefix}-brands,
.#{$fa-css-prefix} {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: var(--#{$fa-css-prefix}-display, #{$fa-display});
font-style: normal;
font-variant: normal;
line-height: 1;
text-rendering: auto;
}
.fas::before,
.far::before,
.fab::before,
.#{$fa-css-prefix}-solid::before,
.#{$fa-css-prefix}-regular::before,
.#{$fa-css-prefix}-brands::before,
.#{$fa-css-prefix}::before {
content: var(#{$fa-icon-property});
}
.#{$fa-css-prefix}-classic,
.fas,
.#{$fa-css-prefix}-solid,
.far,
.#{$fa-css-prefix}-regular {
font-family: 'Font Awesome 6 Free';
}
.#{$fa-css-prefix}-brands,
.fab {
font-family: 'Font Awesome 6 Brands';
}
%fa-icon {
@include fa-icon;
}

7
themes/hugo-coder/assets/scss/font-awesome/_fixed-width.scss

@ -0,0 +1,7 @@
// fixed-width icons
// -------------------------
.#{$fa-css-prefix}-fw {
text-align: center;
width: $fa-fw-width;
}

57
themes/hugo-coder/assets/scss/font-awesome/_functions.scss

@ -0,0 +1,57 @@
// functions
// --------------------------
// fa-content: convenience function used to set content property
@function fa-content($fa-var) {
@return unquote("\"#{ $fa-var }\"");
}
// fa-divide: Originally obtained from the Bootstrap https://github.com/twbs/bootstrap
//
// Licensed under: The MIT License (MIT)
//
// Copyright (c) 2011-2021 Twitter, Inc.
// Copyright (c) 2011-2021 The Bootstrap Authors
//
// 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 the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// 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.
@function fa-divide($dividend, $divisor, $precision: 10) {
$sign: if($dividend > 0 and $divisor > 0, 1, -1);
$dividend: abs($dividend);
$divisor: abs($divisor);
$quotient: 0;
$remainder: $dividend;
@if $dividend == 0 {
@return 0;
}
@if $divisor == 0 {
@error "Cannot divide by 0";
}
@if $divisor == 1 {
@return $dividend;
}
@while $remainder >= $divisor {
$quotient: $quotient + 1;
$remainder: $remainder - $divisor;
}
@if $remainder > 0 and $precision > 0 {
$remainder: fa-divide($remainder * 10, $divisor, $precision - 1) * .1;
}
@return ($quotient + $remainder) * $sign;
}

12
themes/hugo-coder/assets/scss/font-awesome/_icons.scss

@ -0,0 +1,12 @@
// specific icon class definition
// -------------------------
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
@each $name, $icon in $fa-icons {
.#{$fa-css-prefix}-#{$name} {
#{$fa-icon-property}: unquote("\"#{ $icon }\"");
}
}

18
themes/hugo-coder/assets/scss/font-awesome/_list.scss

@ -0,0 +1,18 @@
// icons in a list
// -------------------------
.#{$fa-css-prefix}-ul {
list-style-type: none;
margin-left: var(--#{$fa-css-prefix}-li-margin, #{$fa-li-margin});
padding-left: 0;
> li { position: relative; }
}
.#{$fa-css-prefix}-li {
left: calc(-1 * var(--#{$fa-css-prefix}-li-width, #{$fa-li-width}));
position: absolute;
text-align: center;
width: var(--#{$fa-css-prefix}-li-width, #{$fa-li-width});
line-height: inherit;
}

65
themes/hugo-coder/assets/scss/font-awesome/_mixins.scss

@ -0,0 +1,65 @@
// mixins
// --------------------------
// base rendering for an icon
@mixin fa-icon {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: inline-block;
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 1;
}
// sets relative font-sizing and alignment (in _sizing)
@mixin fa-size ($font-size) {
font-size: fa-divide($font-size, $fa-size-scale-base) * 1em; // converts step in sizing scale into an em-based value that's relative to the scale's base
line-height: fa-divide(1, $font-size) * 1em; // sets the line-height of the icon back to that of it's parent
vertical-align: (fa-divide(6, $font-size) - fa-divide(3, 8)) * 1em; // vertically centers the icon taking into account the surrounding text's descender
}
// only display content to screen readers
// see: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
// see: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
@mixin fa-sr-only() {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
// use in conjunction with .sr-only to only display content when it's focused
@mixin fa-sr-only-focusable() {
&:not(:focus) {
@include fa-sr-only();
}
}
// sets a specific icon family to use alongside style + icon mixins
@mixin fa-family-classic() {
@extend .fa-classic;
}
// convenience mixins for declaring pseudo-elements by CSS variable,
// including all style-specific font properties
@mixin fa-icon-solid($fa-var) {
@extend .fa-solid;
& { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
}
@mixin fa-icon-regular($fa-var) {
@extend .fa-regular;
& { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
}
@mixin fa-icon-brands($fa-var) {
@extend .fa-brands;
& { #{$fa-icon-property}: unquote("\"#{ $fa-var }\""); #{$fa-duotone-icon-property}: unquote("\"#{ $fa-var }#{ $fa-var }\""); }
}

31
themes/hugo-coder/assets/scss/font-awesome/_rotated-flipped.scss

@ -0,0 +1,31 @@
// rotating + flipping icons
// -------------------------
.#{$fa-css-prefix}-rotate-90 {
transform: rotate(90deg);
}
.#{$fa-css-prefix}-rotate-180 {
transform: rotate(180deg);
}
.#{$fa-css-prefix}-rotate-270 {
transform: rotate(270deg);
}
.#{$fa-css-prefix}-flip-horizontal {
transform: scale(-1, 1);
}
.#{$fa-css-prefix}-flip-vertical {
transform: scale(1, -1);
}
.#{$fa-css-prefix}-flip-both,
.#{$fa-css-prefix}-flip-horizontal.#{$fa-css-prefix}-flip-vertical {
transform: scale(-1, -1);
}
.#{$fa-css-prefix}-rotate-by {
transform: rotate(var(--#{$fa-css-prefix}-rotate-angle, 0));
}

14
themes/hugo-coder/assets/scss/font-awesome/_screen-reader.scss

@ -0,0 +1,14 @@
// screen-reader utilities
// -------------------------
// only display content to screen readers
.sr-only,
.#{$fa-css-prefix}-sr-only {
@include fa-sr-only;
}
// use in conjunction with .sr-only to only display content when it's focused
.sr-only-focusable,
.#{$fa-css-prefix}-sr-only-focusable {
@include fa-sr-only-focusable;
}

1578
themes/hugo-coder/assets/scss/font-awesome/_shims.scss

File diff suppressed because it is too large

16
themes/hugo-coder/assets/scss/font-awesome/_sizing.scss

@ -0,0 +1,16 @@
// sizing icons
// -------------------------
// literal magnification scale
@for $i from 1 through 10 {
.#{$fa-css-prefix}-#{$i}x {
font-size: $i * 1em;
}
}
// step-based scale (with alignment)
@each $size, $value in $fa-sizes {
.#{$fa-css-prefix}-#{$size} {
@include fa-size($value);
}
}

32
themes/hugo-coder/assets/scss/font-awesome/_stacked.scss

@ -0,0 +1,32 @@
// stacking icons
// -------------------------
.#{$fa-css-prefix}-stack {
display: inline-block;
height: 2em;
line-height: 2em;
position: relative;
vertical-align: $fa-stack-vertical-align;
width: $fa-stack-width;
}
.#{$fa-css-prefix}-stack-1x,
.#{$fa-css-prefix}-stack-2x {
left: 0;
position: absolute;
text-align: center;
width: 100%;
z-index: var(--#{$fa-css-prefix}-stack-z-index, #{$fa-stack-z-index});
}
.#{$fa-css-prefix}-stack-1x {
line-height: inherit;
}
.#{$fa-css-prefix}-stack-2x {
font-size: 2em;
}
.#{$fa-css-prefix}-inverse {
color: var(--#{$fa-css-prefix}-inverse, #{$fa-inverse});
}

5044
themes/hugo-coder/assets/scss/font-awesome/_variables.scss

File diff suppressed because it is too large

30
themes/hugo-coder/assets/scss/font-awesome/brands.scss

@ -0,0 +1,30 @@
/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
@import 'functions';
@import 'variables';
:root, :host {
--#{$fa-css-prefix}-style-family-brands: 'Font Awesome 6 Brands';
--#{$fa-css-prefix}-font-brands: normal 400 1em/1 'Font Awesome 6 Brands';
}
@font-face {
font-family: 'Font Awesome 6 Brands';
font-style: normal;
font-weight: 400;
font-display: $fa-font-display;
src: url('#{$fa-font-path}/fa-brands-400.woff2') format('woff2'),
url('#{$fa-font-path}/fa-brands-400.ttf') format('truetype');
}
.fab,
.#{$fa-css-prefix}-brands {
font-weight: 400;
}
@each $name, $icon in $fa-brand-icons {
.#{$fa-css-prefix}-#{$name} { #{$fa-icon-property}: unquote("\"#{ $icon }\""); }
}

21
themes/hugo-coder/assets/scss/font-awesome/fontawesome.scss

@ -0,0 +1,21 @@
/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
// Font Awesome core compile (Web Fonts-based)
// -------------------------
@import 'functions';
@import 'variables';
@import 'mixins';
@import 'core';
@import 'sizing';
@import 'fixed-width';
@import 'list';
@import 'bordered-pulled';
@import 'animated';
@import 'rotated-flipped';
@import 'stacked';
@import 'icons';
@import 'screen-reader';

27
themes/hugo-coder/assets/scss/font-awesome/regular.scss

@ -0,0 +1,27 @@
/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
@import 'functions';
@import 'variables';
:root, :host {
--#{$fa-css-prefix}-style-family-classic: '#{ $fa-style-family }';
--#{$fa-css-prefix}-font-regular: normal 400 1em/1 '#{ $fa-style-family }';
}
@font-face {
font-family: 'Font Awesome 6 Free';
font-style: normal;
font-weight: 400;
font-display: $fa-font-display;
src: url('#{$fa-font-path}/fa-regular-400.woff2') format('woff2'),
url('#{$fa-font-path}/fa-regular-400.ttf') format('truetype');
}
.far,
.#{$fa-css-prefix}-regular {
font-weight: 400;
}

27
themes/hugo-coder/assets/scss/font-awesome/solid.scss

@ -0,0 +1,27 @@
/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
@import 'functions';
@import 'variables';
:root, :host {
--#{$fa-css-prefix}-style-family-classic: '#{ $fa-style-family }';
--#{$fa-css-prefix}-font-solid: normal 900 1em/1 '#{ $fa-style-family }';
}
@font-face {
font-family: 'Font Awesome 6 Free';
font-style: normal;
font-weight: 900;
font-display: $fa-font-display;
src: url('#{$fa-font-path}/fa-solid-900.woff2') format('woff2'),
url('#{$fa-font-path}/fa-solid-900.ttf') format('truetype');
}
.fas,
.#{$fa-css-prefix}-solid {
font-weight: 900;
}

11
themes/hugo-coder/assets/scss/font-awesome/v4-shims.scss

@ -0,0 +1,11 @@
/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
// V4 shims compile (Web Fonts-based)
// -------------------------
@import 'functions';
@import 'variables';
@import 'shims';

23
themes/hugo-coder/docs/analytics.md

@ -0,0 +1,23 @@
# Enable Web Analytics
## Supported Providers
_in alphabetic order_
- [Application Insights](https://azure.com/) - [documentation](/docs/analytics/applicationinsights.md)
- [Baidu Analytics](https://tongji.baidu.com/) - [documentation](/docs/analytics/baidu.md)
- [Clicky](https://clicky.com/) - [documentation](/docs/analytics/clicky.md)
- [Cloudflare](https://www.cloudflare.com/analytics/) - [documentation](/docs/analytics/cloudflare.md)
- [Counter.dev](https://counter.dev/) - [documentation](/docs/analytics/counterdev.md)
- [Google Analytics](https://developers.google.com/analytics) - [documentation](/docs/analytics/googleanalytics.md)
- [Google Tag Manager](https://developers.google.com/tag-manager) - [documentation](/docs/analytics/googletagmanager.md)
- [Fathom Analytics](https://usefathom.com/) - [documentation](/docs/analytics/fathom.md)
- [Goat Counter](https://www.goatcounter.com/) - [documentation](/docs/analytics/goatcounter.md)
- [Matomo](https://matomo.org/) - [documentation](/docs/analytics/matomo.md)
- [Micro Analytics](https://microanalytics.io/) - [documentation](/docs/analytics/microanalytics.md)
- [One Dollars Stats](https://onedollarstats.com/analytics) - [documentation](/docs/analytics/onedollarstats.md)
- [Pirsch](https://pirsch.io/) - [documentation](/docs/analytics/pirsch.md)
- [Plausible Analytics](https://plausible.io/) - [documentation](/docs/analytics/plausible.md)
- [Umami](https://umami.is/) - [documentation](/docs/analytics/umami.md)
- [Vercel Analytics](https://vercel.com/analytics) - [documentation](/docs/analytics/vercel.md)
- [Wide Angle Analytics](https://wideangle.co/) - [documentation](/docs/analytics/wideangle.md)

6
themes/hugo-coder/docs/analytics/applicationinsights.md

@ -0,0 +1,6 @@
# Application Insights
```toml
[params.applicationInsights]
connectionString = "connectionstring" # https://docs.microsoft.com/en-us/azure/azure-monitor/app/sdk-connection-string
```

25
themes/hugo-coder/docs/analytics/baidu.md

@ -0,0 +1,25 @@
# Baidu
To use Baidu analytics in this theme, navigate to the setting page of your
site at <https://tongji.baidu.com/>. You will get a piece of JS code provided
as follows:
```js
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?<your_token_at_here>";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
```
Then you can use it by filling your site toke `your_token_at_here` in the
config file:
```toml
[params.baidu]
token = "your_token_at_here"
```

6
themes/hugo-coder/docs/analytics/clicky.md

@ -0,0 +1,6 @@
# Clicky
```toml
[params.clicky]
id = "site-id"
```

6
themes/hugo-coder/docs/analytics/cloudflare.md

@ -0,0 +1,6 @@
# Cloudflare
```toml
[params.cloudflare]
token = "token"
```

6
themes/hugo-coder/docs/analytics/counterdev.md

@ -0,0 +1,6 @@
# Counter.dev
```toml
[params.counterdev]
id = "data-id"
```

7
themes/hugo-coder/docs/analytics/fathom.md

@ -0,0 +1,7 @@
# Fathom Analytics
```toml
[params.fathomAnalytics]
siteID = "ABCDE"
serverURL = "cdn.usefathom.com" # (optional) Replace if you use a custom domain
```

6
themes/hugo-coder/docs/analytics/goatcounter.md

@ -0,0 +1,6 @@
# Goat Counter
```toml
[params.goatCounter]
code = "code" # You will access your account at https://[code].goatcounter.com
```

3
themes/hugo-coder/docs/analytics/googleanalytics.md

@ -0,0 +1,3 @@
# Google Analytics
Follow [these steps](https://gohugo.io/templates/internal/#configure-google-analytics).

6
themes/hugo-coder/docs/analytics/googletagmanager.md

@ -0,0 +1,6 @@
# Google Tag Manager
```toml
[params.googleTagManager]
id = "gid"
```

7
themes/hugo-coder/docs/analytics/matomo.md

@ -0,0 +1,7 @@
# Matomo
```toml
[params.matomo]
siteID = "ABCDE"
serverURL = "analytics.example.com"
```

7
themes/hugo-coder/docs/analytics/microanalytics.md

@ -0,0 +1,7 @@
# microanalytics.io
```toml
[params.microAnalytics]
id = "ABCDE"
dnt = "false" # respect DNT tracker, "true" by default
```

23
themes/hugo-coder/docs/analytics/onedollarstats.md

@ -0,0 +1,23 @@
# One Dollars Stats
```toml
[params.onedollarstats]
id = "data-site-id"
```
You will also need to update your content security policy:
```toml
[params.csp]
...
scriptsrc = [
...
"https://assets.onedollarstats.com",
]
...
connectsrc = [
...
"https://assets.onedollarstats.com",
...
]
```

6
themes/hugo-coder/docs/analytics/pirsch.md

@ -0,0 +1,6 @@
# Pirsch
```toml
[params.pirsch]
code = "ABCDE"
```

7
themes/hugo-coder/docs/analytics/plausible.md

@ -0,0 +1,7 @@
# Plausible Analytics
```toml
[params.plausibleAnalytics]
domain = "example.com"
serverURL = "plausible.io" # (optional) Replace if you use a custom domain
```

9
themes/hugo-coder/docs/analytics/umami.md

@ -0,0 +1,9 @@
# Umami
```toml
[params.umami]
siteID = "ABCDE"
scriptURL = "analytics.REGION.umami.is/SCRIPTNAME.js"
# refer to the "tracking code" tab in your umami website dashboard
# to obtain the script url
```

6
themes/hugo-coder/docs/analytics/vercel.md

@ -0,0 +1,6 @@
# Vercel Analytics
```toml
[params]
vercelAnalytics = true
```

25
themes/hugo-coder/docs/analytics/wideangle.md

@ -0,0 +1,25 @@
# Wide Angle Analytics
Wide Angle Analytics is strictly **GDPR** compliant, privacy-first web analytics. Head to [wideangle.co](https://wideangle.co/) and create you free trial account now.
## Configuration
Built in template supports following configuration options:
param | description | required | default
------|-------------|----------|--------
siteID| A site ID from [Wide Angle site](https://wideangle.co/documentation/web-analytics-for-your-website)| :white_check_mark: | n/a
serverURL | [Domain](https://wideangle.co/documentation/track-with-custom-domain) with which the WAA is configured with | :x: | stats.wideangle.co
fingerprint | Enable advanced session fingerprint; requires user consent | :x: | false
supressDNT | Ignore Do-Not-Track setting in the browser | :x: | false
## Example
```toml
[params.wideAngleAnalytics]
siteID = "1D4EG3B9ACA03F4243"
serverURL = "fyi.wideangle.co"
fingerprint = "false"
supressDNT = "false"
```

1
themes/hugo-coder/docs/comment-system.md

@ -0,0 +1 @@
WIP

369
themes/hugo-coder/docs/configurations.md

@ -0,0 +1,369 @@
# Configurations
- [Configurations](#configurations)
- [About Hugo Configurations](#about-hugo-configurations)
- [Commenting Systems](#commenting-systems)
- [Disqus](#disqus)
- [Commento](#commento)
- [Utterances](#utterances)
- [Giscus](#giscus)
- [Telegram](#telegram)
- [Cusdis](#cusdis)
- [Mastodon](#mastodon)
- [Syntax Highlight](#syntax-highlight)
- [Theme Parameters](#theme-parameters)
- [Social Icons Configuration](#social-icons-configuration)
- [Menu Items Configurations](#menu-items-configurations)
- [CSP](#csp)
- [Complete Example](#complete-example)
- [Front Matter](#front-matter)
- [Posts](#posts)
## About Hugo Configurations
This theme supports:
* [Analytics](/docs/analytics.md)
* Commenting Systems
* [Disqus](https://disqus.com/)
* [Commento](https://commento.io/)
* [Utterances](https://utteranc.es/)
* [Giscus](https://giscus.app/)
* [Cusdis](https://cusdis.com/)
* [Telegram](https://comments.app/)
### Commenting Systems
Comments are displayed within post pages, but can be disabled with `disableComments` front-matter.
#### Disqus
Follow [these steps](https://gohugo.io/content-management/comments/#configure-disqus).
#### Commento
```toml
[params]
commentoURL = "https://cdn.commento.io" # Replace if you use a custom domain
```
#### Utterances
```toml
[params.utterances]
repo = "" # https://utteranc.es/#heading-repository
issueTerm = "" # https://utteranc.es/#heading-mapping
label = "" # https://utteranc.es/#heading-issue-label
theme = "" # https://utteranc.es/#heading-theme
```
#### Giscus
```toml
[params.giscus] # https://giscus.app
repo = ""
repoID = ""
category = ""
categoryID = ""
mapping = ""
term = ""
strict = ""
reactionsEnabled = ""
emitMetadata = ""
inputPosition = ""
theme = ""
lang = ""
loading = ""
```
#### Telegram
```toml
[params.telegram] # https://comments.app/
siteID = ""
limit = ""
height = ""
color = ""
dislikes = ""
outlined = ""
colorful = ""
dark = ""
```
#### Cusdis
```toml
[params.cusdis] # https://cusdis.com
data_app_id = ""
```
#### Mastodon
```toml
[params.mastodon]
host = "" # Address of your Mastodon instance
username = "" # Your username
statusID = "" # ID os the status (post) that comments should be related
purifyCDN = "" # CDN address of pointing to a Purify package
```
## Syntax Highlight
The theme uses the Goldmark syntax highlight system. GitHub light and dark are set as the default styles. To choose a different style, make sure `noClasses` is not set to false (default is true) and add to your `hugo.toml`:
```
[markup.highlight]
style = "monokai"
```
All `style` are available [here](https://xyproto.github.io/splash/docs/all.html).
Alternatively, it is possible to use custom styles with generated CSS files. See [here](https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css).
## Theme Parameters
These are all the parameters used by `hugo-coder` theme.
| Name | Type | Required | Description | Default | Example |
| ----------------------- | ------ | -------- | ------------------------------------------------------------------------ | --------------------------------- | ------------------------------------------------- |
| author | string | Yes | Author name. | | `"John Doe"` |
| info | string | Yes | An headline, job title or similar. | | `"Full Stack Developer"` |
| description | string | Yes | Description of the site. | | `"John Doe's personal website"` |
| keywords | string | Yes | Site keywords. | | `"blog,developer,personal"` |
| avatarURL | string | No | Photo of the author. | | `"images/avatar.jpg"` |
| gravatar | string | No | Gravatar photo of the author | | `"john.doe@example.com"` |
| fediverseCreator | string | No | The author's fediverse handle. | | `"@johndoe@example.com"` |
| faviconSVG | string | No | Custom path to a SCG favicon. | `"/img/favicon.svg"` | `"/img/favicon.svg"` |
| favicon_32 | string | No | Custom path to a 32x32 favicon. | `"/img/favicon-32x32.png"` | `"/img/favicon-32x32.png"` |
| favicon_16 | string | No | Custom path to a 16x16 favicon. | `"/img/favicon-16x16.png"` | `"/img/favicon-16x16.png"` |
| touchIcon | string | No | Custom path to an apple-touch-icon | `"/images/apple-touch-icon.png"` | `"/images/apple-touch-icon.png"` |
| mask_icon | string | No | Custom path to a mask-icon | `"/images/safari-pinned-tab.svg"` | `"/images/safari-pinned-tab.svg"` |
| mask_icon_color | string | No | Custom color for mask-icon color | `"#5bbad5"` | `"#5bbad5"` |
| since | string | No | Date shown in the footer before now year | | `"2020"` |
| maxSeeAlsoItems | number | No | Series see also post count | `5` | `10` |
| commit | string | No | Show the last git commit in the footer | | `"https://github.com/luizdepra/hugo-coder/tree/"` |
| rtl | bool | No | Enable the Right To Left mode. | `false` | `true` or `false` |
| math | bool | No | Enable MathJax Module and add JS into your site. | `false` | `true` or `false` |
| katex | bool | No | Enable KaTeX for all content types. | `false` | `true` or `false` |
| colorScheme | string | No | Specify light/dark colorscheme | `"auto"` | `"auto"` or `"light"` or `"dark"` |
| hideColorSchemeToggle | bool | No | If true, hides the color scheme toggle | `false` | `true` or `false` |
| customCSS | list | No | Add extra CSS files to the website. | [] | `["css/extra-style.css"]` |
| customSCSS | list | No | Add extra SCSS files to the website. | [] | `["scss/extra-style.scss"]` |
| customJS | list | No | Add extra JS files to the website. | [] | `["js/extra-script.js"]` |
| customRemoteJS | list | No | Add extra remote JS files to the website. | [] | `["https://www.example.com/file.js"]` |
| enableTwemoji | bool | No | Adds support for Twemoji | `false` | `true` or `false` |
| disableDefaultJsScripts | bool | No | If true, disables default js scripts (coder.js) | `false` | `true` or `false` |
| HeadTitle | string | No | When configured, it overrides the `<title>` tag with the provided string | "" | `"My custom title"` |
### Social Icons Configuration
Social Icons are optional. To use them you will need to set at least all the following required parameters for each icon.
| Configuration | Type | Required | Description | Example |
| -------------- | ------ | -------- | ---------------------------------------- | ------------------------------- |
| name | string | Yes | Icon name. | `"Github"` |
| icon | string | Yes | FontAwesome icon classes. | `"fa-brands fa-github"` |
| weight | int | Yes | Icon order. | `1` |
| url | string | Yes | URL to redirect. | `"https://github.com/johndoe/"` |
| rel | string | No | Define the relationship | `"me"` |
An example:
```toml
[[params.social]]
name = "Github"
icon = "fa-brands fa-github fa-2x"
weight = 1
url = "https://github.com/johndoe/"
[[params.social]]
name = "Gitlab"
icon = "fa-brands fa-gitlab fa-2x"
weight = 2
url = "https://gitlab.com/johndoe/"
[[params.social]]
name = "Twitter"
icon = "fa-brands fa-x-twitter fa-2x"
weight = 3
url = "https://twitter.com/johndoe/"
```
### Menu Items Configurations
Menu Items are optional. To use them you will need to set all the following required parameters for each icon.
| Configuration | Type | Required | Description | Example |
| -------------- | ------ | -------- | ---------------------------------------- | ------------------------------- |
| name | string | Yes | Menu Item name. | `"Posts"` |
| weight | int | Yes | Menu Item order. | `1` |
| url | string | Yes | URL to redirect. | `"/posts/"` |
| class | string | No | Menu Item extra class attribute. | `"menu-item"` |
| target | string | No | URL target attribute. | `"_blank"` |
| rel | string | No | URL rel attribute. | `"alternate"` |
| type | string | No | URL type attribute. | `"application/rss+xml"` |
An example:
```toml
[[menu.main]]
name = "Blog"
weight = 1
url = "posts/"
[[menu.main]]
name = "About"
weight = 2
url = "about/"
```
### CSP
CSP stands for [Content Security Policy](https://developers.google.com/web/fundamentals/security/csp). These configurations are optional. To use them you will need to set all the following required parameters. See [here](https://developers.google.com/web/fundamentals/security/csp#policy_applies_to_a_wide_variety_of_resources) for reference.
| Configuration | Type | Required | Description | Example |
| -------------- | ----------- | -------- | ----------- | ------------------------------- |
| childsrc | string list | Yes | | `["'self'"]` |
| fontsrc | string list | Yes | | `["'self'"]` |
| formaction | string list | Yes | | `["'self'"]` |
| framesrc | string list | Yes | | `["'self'"]` |
| imgsrc | string list | Yes | | `["'self'"]` |
| objectsrc | string list | Yes | | `["'self'"]` |
| stylesrc | string list | Yes | | `["'self'"]` |
| scriptsrc | string list | Yes | | `["'self'"]` |
| connectsrc | string list | Yes | | `["'self'"]` |
An example:
```toml
[params.csp]
childsrc = ["'self'"]
fontsrc = [
"'self'",
"https://fonts.gstatic.com",
"https://cdn.jsdelivr.net/"
]
formaction = ["'self'"]
framesrc = ["'self'"]
imgsrc = ["'self'"]
objectsrc = ["'none'"]
stylesrc = [
"'self'",
"'unsafe-inline'",
"https://fonts.googleapis.com/",
"https://cdn.jsdelivr.net/"
]
scriptsrc = [
"'self'",
"'unsafe-inline'",
"https://www.google-analytics.com"
]
# connect-src directive – defines valid targets for XMLHttpRequest (AJAX), WebSockets or EventSource
connectsrc = ["'self'"]
```
## Complete Example
This is a complete configuration example with some recommended values.
```toml
baseurl = "http://www.example.com"
title = "johndoe"
theme = "hugo-coder"
languagecode = "en"
defaultcontentlanguage = "en"
[pagination]
pagerSize = 20
[services]
[services.disqus]
shortname = "yourdiscussshortname"
[markup.highlight]
style = "github-dark"
[params]
author = "John Doe"
info = "Full Stack DevOps and Magician"
description = "John Doe's personal website"
keywords = "blog,developer,personal"
avatarurl = "images/avatar.jpg"
#gravatar = "john.doe@example.com"
faviconSVG = "/img/favicon.svg"
favicon_32 = "/img/favicon-32x32.png"
favicon_16 = "/img/favicon-16x16.png"
since = 2019
enableTwemoji = true
colorScheme = "auto"
hidecolorschemetoggle = false
# customCSS = ["css/custom.css"]
# customSCSS = ["scss/custom.scss"]
# customJS = ["js/custom.js"]
[taxonomies]
category = "categories"
series = "series"
tag = "tags"
author = "authors"
# Social links
[[params.social]]
name = "Github"
icon = "fa-brands fa-github fa-2x"
weight = 1
url = "https://github.com/johndoe/"
[[params.social]]
name = "Gitlab"
icon = "fa-brands fa-gitlab fa-2x"
weight = 2
url = "https://gitlab.com/johndoe/"
[[params.social]]
name = "Twitter"
icon = "fa-brands fa-x-twitter fa-2x"
weight = 3
url = "https://twitter.com/johndoe/"
# Menu links
[[menu.main]]
name = "Blog"
weight = 1
url = "posts/"
[[menu.main]]
name = "About"
weight = 2
url = "about/"
```
## Front Matter
Hugo documentation: https://gohugo.io/content-management/front-matter
This theme includes one content type:
* [Posts](#posts), useful to display blog posts
### Posts
These are the front matter variables used by `hugo-coder` theme.
| Name | Type | Required | Description | Default | Example |
| ---------------- | ------ | -------- | -------------------------------------------------- | ------- | ------------------------------------------------------------------------------- |
| tags | list | No | Add tag(s) to this post. | | `["Hugo", "Go"]` |
| categories | list | No | Add categorie(s) to this post. | | `["Hugo", "Go"]` |
| series | list | No | Add series to this post (used by OpenGraph). | | `["Theme Demo"]` |
| author | list | No | Add author to this post. | | `["John Doe"]` |
| externalLink | string | No | Link to an external post. | | `"https://github.com/luizdepra/hugo-coder/wiki"` |
| featuredImage | string | No | Link/path to add an image below post metadata. | | `"https://github.com/luizdepra/hugo-coder/blob/master/images/screenshot.png"` |
| math | bool | No | If true, MathJax is enabled only for this post. | `false` | `true` or `false` |
| katex | bool | No | If true, KaTeX is enabled only for this post. | `false` | `true` or `false` |
| disableComments | bool | No | If true, comments are disabled. | `false` | `true` or `false` |
| canonicalUrl | string | No | Link to override <link rel="canonical"/> in <head> | `false` | `"https://my-company.com/blog/my-blog-post-that-I-repost-without-hurtiong-seo"` |
> "tags", "categories", "series" and "authors" are taxonomies defined in the `hugo.toml` file.

1
themes/hugo-coder/docs/contributing.md

@ -0,0 +1 @@
WIP

1
themes/hugo-coder/docs/faq.md

@ -0,0 +1 @@
WIP

19
themes/hugo-coder/docs/home.md

@ -0,0 +1,19 @@
# Welcome to the hugo-coder docs!
## Basic Usage
* [Quick Start](quick-start.md)
* [Configurations](configurations.md)
* [FAQ](faq.md)
## Extra Guides
* [Multilingual Mode](multilingual-mode.md)
* [Comment System](comment-system.md)
* [Analytics](analytics.md)
## Maintainers & Developers
* [Contributing](contributing.md)

74
themes/hugo-coder/docs/multilingual-mode.md

@ -0,0 +1,74 @@
# Multilingual-Mode
* [Available Languages](#available-languages)
* [Configure Languages](#configure-languages)
* [Translation File Example](#translation-file-example)
## Available Languages
This theme supports the following languages:
- Arabic
- Bengali
- Czech
- German
- English
- Spanish
- Finnish
- French
- Hebrew
- Hindi
- Hungarian
- Italian
- Japanese
- Malay
- Dutch
- Polish
- Brazilian Portuguese
- Romanian
- Russian
- Swedish
- Slovak
- Turkish
- Simplified Chinese
- Taiwan Chinese
- Urdu
## Configure languages
Go to [this Hugo documentation page](https://gohugo.io/content-management/multilingual/#configure-languages) to configure one or multiple languages for your website.
## Translation File Example
```toml
[category]
other = "category"
[tag]
other = "tag"
[series]
other = "series"
[author]
other = "author"
[reading_time]
one = "One-minute read"
other = "{{ .Count }}-minute read"
[page_not_found]
other = "Page Not Found"
[page_does_not_exist]
other = "Sorry, this page does not exist."
[head_back]
other = "You can head back to <a href=\"{{ . }}\">homepage</a>."
[powered_by]
other = "Powered by"
[see_also]
other = "See also in"
```

23
themes/hugo-coder/docs/quick-start.md

@ -0,0 +1,23 @@
# Quick Start
To start using `hugo-coder`:
1. Add the repository into your Hugo Project repository as a submodule, `git submodule add https://github.com/luizdepra/hugo-coder.git themes/coder`.
2. Configure your `hugo.toml`. You can use [this minimal configuration](https://github.com/luizdepra/hugo-coder/blob/main/docs/configurations.md#complete-example) as a base. The [`hugo.toml`](https://github.com/luizdepra/hugo-coder/blob/master/exampleSite/hugo.toml) inside the [exampleSite](https://github.com/luizdepra/hugo-coder/tree/master/exampleSite) from the `exampleSite` is also a good reference.
3. Build your site with `hugo serve` and see the result at `http://localhost:1313/`.
If you just want to test this theme, go to [this page](https://themes.gohugo.io/themes/hugo-coder/).
You can also clone or download it, then run these commands:
```
git clone https://github.com/luizdepra/hugo-coder.git
cd hugo-coder
make demo
```
You'll see the result at [http://localhost:1313/](http://localhost:1313/).
> These last two methods don't use the same content directory, the first one leads to 404 pages for some pages. More info [here](https://github.com/gohugoio/hugoThemes#adding-a-theme-to-the-list).

25
themes/hugo-coder/exampleSite/content/about.md

@ -0,0 +1,25 @@
+++
title = "About"
description = "Hugo, the world's fastest framework for building websites"
date = "2019-02-28"
aliases = ["about-us", "about-hugo", "contact"]
author = "Hugo Authors"
+++
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.
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
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 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).

25
themes/hugo-coder/exampleSite/content/about.pt-br.md

@ -0,0 +1,25 @@
+++
title = "About"
description = "Hugo, the world's fastest framework for building websites"
date = "2019-02-28"
aliases = ["about-us", "about-hugo", "contact"]
author = "Hugo Authors"
+++
Escrito em Go, Hugo é um gerador de sites estáticos de código aberto disponível sobre a licença [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) O Hugo suporta TOML, YAML e JSON como arquivos de dados, Markdown e HTML como arquivos de conteúdo, e usa shortcodes para adicionar conteúdos ricos. Outras funcionalidades notaveis são taxonomias, modo multilingual, processamento de imagens, formatos de saída customizaveis, minificação de HTML/CSS/JS e suporte a fluxos SASS/SCSS.
O Hugo faz o uso de vários projetos de código aberto incluíndo:
* 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
O Hugo é ideal para blogs, sites corporativos, protfólio criativos, revistas online, aplicações de página única ou até sites com milhares de páginas.
O Hugo é para pessoas que querem cuidar do seu próprio site sem se preocupar com a configuração ambientes complicados, dependências e bancos de dados.
Sites contru;idos com Hugo são extremamente rápidos, seguros e podem ser implantados em qualquer lugar, incluíndo AWS, GitHub Pages, Heroku, Netlify e outros provedores de hospedagem.
Saiba mais e contribua em [GitHub](https://github.com/gohugoio).

5
themes/hugo-coder/exampleSite/content/authors/hugo-authors/_index.md

@ -0,0 +1,5 @@
+++
draft = false
date = 2023-01-05T01:15:29+01:00
title = "Authors of Hugo"
+++

6
themes/hugo-coder/exampleSite/content/authors/hugo-authors/_index.pt-br.md

@ -0,0 +1,6 @@
+++
draft = false
date = 2023-01-05T01:15:52+01:00
title = "Autores de Hugo"
url = "autores/autores-de-hugo"
+++

6
themes/hugo-coder/exampleSite/content/categories/syntax/_index.pt-br.md

@ -0,0 +1,6 @@
+++
draft = false
date = 2023-01-04T23:21:06+01:00
title = "sintaxe"
url = "categoria/sintaxe"
+++

6
themes/hugo-coder/exampleSite/content/contact.md

@ -0,0 +1,6 @@
+++
title = "Contact"
slug = "contact"
+++
Follow me, @johndoe.

6
themes/hugo-coder/exampleSite/content/contact.pt-br.md

@ -0,0 +1,6 @@
+++
title = "Contato"
slug = "contact"
+++
Me siga em @joaoninguem.

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

Loading…
Cancel
Save