Browse Source

move the itix theme to the root of the site

The theme was only used by this site. Having it at the root of the
repository removes the need for a git submodule and the double commits.

- layouts, assets, i18n and static files moved to the root
- theme LICENSE kept as LICENSE-theme
- ./hugo now generates chroma.css in assets/css
- remove the obsolete static/css/.gitignore

The generated site is identical, except for the stale /css/chroma.css
and /css/.gitignore files that are no longer published.

Closes #12

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
master
Nicolas Massé 1 month ago
parent
commit
5315ec8a28
  1. 0
      .gitmodules
  2. 0
      LICENSE-theme
  3. 19
      README.md
  4. 0
      assets/css/.gitignore
  5. 0
      assets/css/itix.css
  6. 4
      config.yaml
  7. 2
      hugo
  8. 0
      i18n/en.yaml
  9. 0
      i18n/fr.yaml
  10. 0
      layouts/404.html
  11. 0
      layouts/_default/baseof.html
  12. 0
      layouts/_default/search.html
  13. 0
      layouts/_default/section.html
  14. 0
      layouts/_default/single.html
  15. 0
      layouts/_default/taxonomy.html
  16. 0
      layouts/_default/terms.html
  17. 0
      layouts/blog/list.html
  18. 0
      layouts/index.html
  19. 0
      layouts/partials/article-headline.html
  20. 0
      layouts/partials/head.html
  21. 0
      layouts/partials/icons/en.svg
  22. 0
      layouts/partials/icons/fr.svg
  23. 0
      layouts/partials/icons/label.svg
  24. 0
      layouts/partials/icons/link.svg
  25. 0
      layouts/partials/icons/rss_feed.svg
  26. 0
      layouts/partials/icons/schedule.svg
  27. 0
      layouts/partials/icons/search.svg
  28. 0
      layouts/partials/icons/vertical_align_top.svg
  29. 0
      layouts/partials/lang-detection.html
  30. 0
      layouts/partials/mathjax.html
  31. 0
      layouts/partials/menu.html
  32. 0
      layouts/partials/post-metadata.html
  33. 0
      layouts/partials/toolbar.html
  34. 0
      layouts/shortcodes/highlightFile.html
  35. 0
      layouts/shortcodes/highlightWithTitle.html
  36. 0
      layouts/shortcodes/internalLink.html
  37. 0
      layouts/speaking/list.html
  38. 0
      layouts/writing/list.html
  39. 1
      static/css/.gitignore
  40. 0
      static/fonts/JetBrainsMono-Regular.ttf
  41. 0
      static/fonts/JetBrainsMono-Regular.woff
  42. 0
      static/fonts/JetBrainsMono-Regular.woff2
  43. 0
      static/fonts/SourceSansPro-Regular.ttf
  44. 0
      static/fonts/SourceSerifPro-Regular.ttf
  45. 0
      static/fonts/material-icons.ttf
  46. 0
      static/fonts/material-icons.woff2
  47. 0
      static/js/fuse.js
  48. 1
      themes/itix/README.md
  49. 19
      themes/itix/theme.toml

0
.gitmodules

0
themes/itix/LICENSE → LICENSE-theme

19
README.md

@ -53,17 +53,18 @@ Delete the old branch:
git branch -d "$(date +%F)-update" git branch -d "$(date +%F)-update"
``` ```
## How to update the theme ## Theme
You can update a theme to the latest version by executing the following command in the root directory of your project: The theme lives directly in this repository (`layouts`, `assets`, `i18n` and
`static` directories). It was previously maintained as a git submodule in
[hugo-theme-itix](https://github.com/nmasse-itix/hugo-theme-itix), whose
history has been merged in this repository.
``` It is derived from [hugo-theme-diary](https://github.com/amazingrise/hugo-theme-diary)
git submodule update --rebase --remote and released under the MIT license (see [LICENSE-theme](LICENSE-theme)).
```
## How to change the Chroma style for syntax highlighting ## How to change the Chroma style for syntax highlighting
```sh The Chroma style sheet is generated by the `./hugo` script in
mkdir -p static/css `assets/css/chroma.css`. To change the style, edit the `--style` argument
hugo gen chromastyles --style=perldoc > static/css/chroma.css of the `hugo gen chromastyles` command in the `./hugo` script.
```

0
themes/itix/assets/css/.gitignore → assets/css/.gitignore

0
themes/itix/assets/css/itix.css → assets/css/itix.css

4
config.yaml

@ -1,9 +1,9 @@
baseURL: "/" baseURL: "/"
title: "Nicolas Massé" title: "Nicolas Massé"
author: "Nicolas Massé" author: "Nicolas Massé"
theme: "itix"
# pygmentsUseClasses implies a style sheet that can be generated as follow: # pygmentsUseClasses implies a style sheet that can be generated as follow:
# hugo gen chromastyles --style=borland > static/css/chroma.css # hugo gen chromastyles --style=borland > assets/css/chroma.css
# (this is done automatically by the ./hugo script)
pygmentsUseClasses: true pygmentsUseClasses: true
pygmentsCodefences: true pygmentsCodefences: true
enableRobotsTXT: true enableRobotsTXT: true

2
hugo

@ -38,5 +38,5 @@ done
# Remove dangling links # Remove dangling links
find content/french -xtype l -exec rm -f {} \; find content/french -xtype l -exec rm -f {} \;
hugo gen chromastyles --style=borland > themes/itix/assets/css/chroma.css hugo gen chromastyles --style=borland > assets/css/chroma.css
hugo "$@" hugo "$@"

0
themes/itix/i18n/en.yaml → i18n/en.yaml

0
themes/itix/i18n/fr.yaml → i18n/fr.yaml

0
themes/itix/layouts/404.html → layouts/404.html

0
themes/itix/layouts/_default/baseof.html → layouts/_default/baseof.html

0
themes/itix/layouts/_default/search.html → layouts/_default/search.html

0
themes/itix/layouts/_default/section.html → layouts/_default/section.html

0
themes/itix/layouts/_default/single.html → layouts/_default/single.html

0
themes/itix/layouts/_default/taxonomy.html → layouts/_default/taxonomy.html

0
themes/itix/layouts/_default/terms.html → layouts/_default/terms.html

0
themes/itix/layouts/blog/list.html → layouts/blog/list.html

0
themes/itix/layouts/index.html → layouts/index.html

0
themes/itix/layouts/partials/article-headline.html → layouts/partials/article-headline.html

0
themes/itix/layouts/partials/head.html → layouts/partials/head.html

0
themes/itix/layouts/partials/icons/en.svg → layouts/partials/icons/en.svg

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 676 B

0
themes/itix/layouts/partials/icons/fr.svg → layouts/partials/icons/fr.svg

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

0
themes/itix/layouts/partials/icons/label.svg → layouts/partials/icons/label.svg

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 317 B

0
themes/itix/layouts/partials/icons/link.svg → layouts/partials/icons/link.svg

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

0
themes/itix/layouts/partials/icons/rss_feed.svg → layouts/partials/icons/rss_feed.svg

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

0
themes/itix/layouts/partials/icons/schedule.svg → layouts/partials/icons/schedule.svg

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 384 B

0
themes/itix/layouts/partials/icons/search.svg → layouts/partials/icons/search.svg

Before

Width:  |  Height:  |  Size: 420 B

After

Width:  |  Height:  |  Size: 420 B

0
themes/itix/layouts/partials/icons/vertical_align_top.svg → layouts/partials/icons/vertical_align_top.svg

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 232 B

0
themes/itix/layouts/partials/lang-detection.html → layouts/partials/lang-detection.html

0
themes/itix/layouts/partials/mathjax.html → layouts/partials/mathjax.html

0
themes/itix/layouts/partials/menu.html → layouts/partials/menu.html

0
themes/itix/layouts/partials/post-metadata.html → layouts/partials/post-metadata.html

0
themes/itix/layouts/partials/toolbar.html → layouts/partials/toolbar.html

0
themes/itix/layouts/shortcodes/highlightFile.html → layouts/shortcodes/highlightFile.html

0
themes/itix/layouts/shortcodes/highlightWithTitle.html → layouts/shortcodes/highlightWithTitle.html

0
themes/itix/layouts/shortcodes/internalLink.html → layouts/shortcodes/internalLink.html

0
themes/itix/layouts/speaking/list.html → layouts/speaking/list.html

0
themes/itix/layouts/writing/list.html → layouts/writing/list.html

1
static/css/.gitignore

@ -1 +0,0 @@
chroma.css

0
themes/itix/static/fonts/JetBrainsMono-Regular.ttf → static/fonts/JetBrainsMono-Regular.ttf

0
themes/itix/static/fonts/JetBrainsMono-Regular.woff → static/fonts/JetBrainsMono-Regular.woff

0
themes/itix/static/fonts/JetBrainsMono-Regular.woff2 → static/fonts/JetBrainsMono-Regular.woff2

0
themes/itix/static/fonts/SourceSansPro-Regular.ttf → static/fonts/SourceSansPro-Regular.ttf

0
themes/itix/static/fonts/SourceSerifPro-Regular.ttf → static/fonts/SourceSerifPro-Regular.ttf

0
themes/itix/static/fonts/material-icons.ttf → static/fonts/material-icons.ttf

0
themes/itix/static/fonts/material-icons.woff2 → static/fonts/material-icons.woff2

0
themes/itix/static/js/fuse.js → static/js/fuse.js

1
themes/itix/README.md

@ -1 +0,0 @@
# Theme for www.itix.fr

19
themes/itix/theme.toml

@ -1,19 +0,0 @@
name = "ITIX"
license = "MIT"
licenselink = "https://github.com/nmasse-itix/hugo-theme-itix/blob/master/LICENSE"
description = "Theme of my personal site: www.itix.fr"
homepage = "https://www.itix.fr/"
tags = ["blog"]
features = ["mobile","elegant"]
min_version = "0.59.0"
[author]
name = "Nicolas Massé"
homepage = "https://www.itix.fr/"
# If porting an existing theme
[original]
name = "amazingrise"
homepage = "https://amazingrise.net/"
repo = "https://github.com/amazingrise/hugo-theme-diary"
Loading…
Cancel
Save