updt: to anubis2

This commit is contained in:
Junyi Hou 2024-01-14 17:50:55 +08:00
parent 423fb34734
commit ff6c9b7eb9
7 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# Anubis2 Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Netlify Status](https://api.netlify.com/api/v1/badges/7d9ea909-ad7e-4e47-b7c9-eefb7522d8c6/deploy-status)](https://app.netlify.com/sites/hugo-theme-anubis/deploys) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/mitrichius/1) # Anubis2 Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Netlify Status](https://api.netlify.com/api/v1/badges/7d9ea909-ad7e-4e47-b7c9-eefb7522d8c6/deploy-status)](https://app.netlify.com/sites/hugo-theme-anubis/deploys)
Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo.io/). Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo.io/).
@ -47,14 +47,14 @@ hugo mod init github.com/<your_user>/<your_project>
Add the following to your `config.toml` or `config.yaml` Add the following to your `config.toml` or `config.yaml`
```toml ```toml
theme = ["github.com/Mitrichius/hugo-theme-anubis"] theme = ["github.com/Junyi-99/hugo-theme-anubis2"]
``` ```
### As Git Submodule ### As Git Submodule
Inside the folder of your Hugo site run: Inside the folder of your Hugo site run:
$ git submodule add https://github.com/mitrichius/hugo-theme-anubis.git themes/anubis $ git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis
For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo. For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo.
@ -249,7 +249,7 @@ If you want font awesome icons, download "Font Awesome For Desktop" and open svg
Only works for production environment. Only works for production environment.
### Multilingual mode ### Multilingual mode
Check config/example usage in [exampleSiteMultilingual](https://github.com/Mitrichius/hugo-theme-anubis/tree/master/exampleSiteMultilingual) directory and documentation on [Hugo site](https://gohugo.io/content-management/multilingual/). Check config/example usage in [exampleSiteMultilingual](https://github.com/Junyi-99/hugo-theme-anubis2/tree/master/exampleSiteMultilingual) directory and documentation on [Hugo site](https://gohugo.io/content-management/multilingual/).
### RSS ### RSS
RSS is available by site url + /index.xml. Also available for specific language, section, taxonomy. RSS is available by site url + /index.xml. Also available for specific language, section, taxonomy.
@ -287,10 +287,10 @@ Example: `{{< video src="/media/movie.mp4" type="video/mp4" preload="auto" capti
## Contributing ## Contributing
If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues) or make a PR. If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/Junyi-99/hugo-theme-anubis2/issues) or make a PR.
## TODO ## TODO
See [issues](https://github.com/mitrichius/hugo-theme-anubis/issues). See [issues](https://github.com/Junyi-99/hugo-theme-anubis2/issues).
## License ## License
MIT MIT

View File

@ -44,7 +44,7 @@ url = "https://gohugo.io/documentation/"
[[params.social]] [[params.social]]
id = "github" id = "github"
url = "https://github.com/mitrichius/hugo-theme-anubis" url = "https://github.com/Junyi-99/hugo-theme-anubis2"
[menu] [menu]

View File

@ -13,7 +13,7 @@ categories = [
"themes", "themes",
"syntax", "syntax",
] ]
authors = ["Mitrichius", "hugo"] authors = ["Junyi-99", "hugo"]
aliases = ["migrate-from-jekyl"] aliases = ["migrate-from-jekyl"]
favorite = true favorite = true
+++ +++

View File

@ -39,7 +39,7 @@ url = "https://gohugo.io/documentation/"
[[params.social]] [[params.social]]
id = "github" id = "github"
url = "https://github.com/mitrichius/hugo-theme-anubis" url = "https://github.com/Junyi-99/hugo-theme-anubis2"
[languages.en] [languages.en]
languageName = "English" languageName = "English"

2
go.mod
View File

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

View File

@ -15,7 +15,7 @@
{{ end }} {{ end }}
<div class="copyright"> <div class="copyright">
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br> <p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
{{ i18n "powered" }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br> {{ i18n "powered" }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/Junyi-99/hugo-theme-anubis2">Anubis2</a>.<br>
{{ partial "footer-extra.html" . }} {{ partial "footer-extra.html" . }}
</p> </p>
</div> </div>

View File

@ -1,8 +1,8 @@
name = "Anubis" name = "Anubis"
license = "MIT" license = "MIT"
licenselink = "https://github.com/Mitrichius/hugo-theme-anubis/blob/master/LICENSE" licenselink = "https://github.com/Junyi-99/hugo-theme-anubis2/blob/master/LICENSE"
description = "A minimal Hugo theme" description = "A minimal Hugo theme"
homepage = "https://github.com/mitrichius/hugo-theme-anubis" homepage = "https://github.com/Junyi-99/hugo-theme-anubis2"
demosite = "https://hugo-theme-anubis.netlify.app/" demosite = "https://hugo-theme-anubis.netlify.app/"
tags = [ tags = [
"blog", "blog",