diff --git a/themes/anubis2 b/themes/anubis2 deleted file mode 160000 index d2a0068..0000000 --- a/themes/anubis2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d2a006804e774d014fe0065e860e374ebfe8d466 diff --git a/themes/anubis2/LICENSE b/themes/anubis2/LICENSE new file mode 100644 index 0000000..b76ea6d --- /dev/null +++ b/themes/anubis2/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 Junyi + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +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. \ No newline at end of file diff --git a/themes/anubis2/README.md b/themes/anubis2/README.md new file mode 100644 index 0000000..145401f --- /dev/null +++ b/themes/anubis2/README.md @@ -0,0 +1,285 @@ +# Anubis2 Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Netlify Status](https://api.netlify.com/api/v1/badges/750dfb45-73dc-4a96-8920-e701e0196959/deploy-status)](https://app.netlify.com/sites/hugo-theme-anubis2/deploys) + +Anubis2 is another simple minimalist theme for [Hugo blog engine](https://gohugo.io/), check our [Demo](https://www.junyi.dev/). + +![image](https://github.com/Junyi-99/hugo-theme-anubis2/assets/14367694/8d9a591b-e168-4328-a770-eb2e8f04f657) + +## Features + +- Dark mode (automatic / by switcher) +- Pagination +- Multiple taxonomies: tags, categories, authors +- Multiple sections: posts, notes, etc with customization +- Archive +- Table of Contents +- Open Graph and Twitter Cards support +- Mobile support +- Social icons +- Google Analytics +- Umami Analytics +- Comment systems: Disqus, ISSO, Utteranc.es, GraphComment, Giscus +- RSS feeds +- Related posts (Read Next section) +- Deploy via Netlify (config included in example site) +- Hiding posts from the RSS feed +- Hidden posts (available only by link) +- Translations (en, ru, fr, pl) +- Custom CSS/JS +- Multilingual mode +- Robots.txt +- Favorite posts +- Pagination on post single page +- Optional "Read more" link +- webmentions + +## Installation + +You need to install an extended version of Hugo to run this theme. + +### As Git Submodule + +Inside the folder of your Hugo site run: + + $ git submodule add https://github.com/Junyi-99/hugo-theme-anubis2.git themes/anubis2 + +For more information read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo. + +## Getting started +After installing the theme successfully it requires a just a few more steps to get your site running. + +### Update config file +If you have toml config (which is by default), you should rename it to config.yaml or adapt this config for toml syntax. + +Example of config.yaml: +```yaml +languageCode: "en-us" +baseUrl: "" +title: "Anubis" +theme: "anubis" +paginate: 10 +disqusShortname: "yourdiscussshortname" +googleAnalytics: "G-12345" +enableRobotsTXT: true + +menu: + main: + - identifier: archive + name: Archive + title: Archive + url: /posts/ + weight: 0 + +params: + author: "John Doe" + email: mail@example.org # used for microformats + avatar: "/images/me.png" # used for microformats + description: "" + # Uncomment if you need this + # images: + # - images/og-featured.png # relative path to "static" directory + # customCSS: + # - css/my.css # relative path to "assets" directory (don't use main.css filename) + # customJS: + # - js/main.js # relative path to "assets" directory + dateFormat: "2006-01-02" + paginationSinglePost: true + style: light-without-switcher + mainSections: [ "posts" ] # which sections should be on index/main page + sectionsWithFullContentOnListPage: [ "notes" ] # for which sections content should be displayed on list pages + readMore: false # show read more button + readNextPosts: 5 # show 5 related posts, 0 by default + disableSummary: false + toc: true # display Table of Contents + tocWordCount: 300 # ...when a post is longer than 300 words + copyCodeButton: true # true by default + rssAsSocialIcon: true + mathjax: false # https://www.mathjax.org/ loading cost 257.4KiB network traffic + # utteranc.es support + utterancesRepo: "" # mandatory + utterancesTheme: "" # optional + utterancesIssue: "" # optional + utterancesLabel: "" # optional + # isso support + isso: + enabled: true # mandatory + data: "https://comments.example.com/" # mandatory + jsLocation: "https://comments.example.com/js/embed.min.js" # mandatory + css: true # optional + lang: "de" # optional + replyToSelf: true # mandatory + requireAuthor: true # mandatory + requireEmail: true # mandatory + id: "thread-id" # optional + avatar: true # optional + avatar-bg: "#f0f0f0" # optional + feed: false # optional + UmamiAnalytics: + enabled: true # mandatory + dnt: true # optional + id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # mandatory + datacache: false # optional + url: "https://abc.example.com/umami.js" # mandatory + graphcommentId: "" + # giscus support + GiscusRepo: "" # mandatory + GiscusRepoId: "" # mandatory + GiscusCategory: "Announcements" # mandatory + GiscusCategoryId: "" # mandatory + GiscusLazyLoad: false # optional + webmentions: + url: https://yourdomain.com/webemntions/receive + login: hugo-theme-anubis + pingback: true + social: + - id: github + name: gohugoio +# - id: hugo +# url: "https://gohugo.io/" +# icon: "hugo" + +markup: + goldmark: + renderer: + unsafe: true # enable raw HTML in Markdown +``` + +### Check your site + +In order to see your site in action, run Hugo's built-in local server. + +`$ hugo server` + +Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser. + +## Feature Settings + +### Dark Mode +Customize via `style` param in `params` section of config. +Options: +- `light-without-switcher` - light theme, without switcher (by default) +- `dark-without-switcher` - dark theme, without switcher +- `auto-without-switcher` - theme based on user system settings, without switcher +- `light` - light theme by default, can be switched by user to dark theme and back. Theme settings are saved for user +- `dark` - dark theme by default, can be switched by user to light theme and back. Theme settings are saved for user +- `auto` - theme based on user system settings by default, can be switched by user to dark/light theme. Theme settings are saved for user (by default in example sites) + +### Table of Contents +If `toc` param in `params` section of the config file is set to `true`, +Table of Contents is generated for every post that is at least `tocWordCount` +words long (`0` by default, also belongs to the `params` section of the config). + +This behavior can be overridden on per-post basis +by setting `toc` to either `true` or `false` in the front matter of a post. + + +### Social icons +#### Predefined icons +To add icon from predefined list, add to `params.social` config: +- id of social network +- name for placeholder (usually it's your nickname or login) + +Predefined list: + - email + - facebook + - github + - instagram + - linkedin + - mastodon (need full url) + - patreon + - reddit + - snapchat + - soundcloud + - spotify + - telegram + - twitch + - twitter + - vk + - youtube + +Example: +``` + - id: github + name: gohugoio +``` +Config like this generate github icon with "https://github.com/gohugoio" url. + +#### Predefined icons with custom url +To add predefined icon with custom url, add to `params.social` config: +- id of social network +- full url to your network + +Example: +``` + - id: github + url: "https://github.com/gohugoio/hugo" +``` +Config like this generate github icon with "https://github.com/gohugoio/hugo" url. + +#### Custom icons +To add custom icon, add to `params.social` config: +- id of social network/site +- full url to your network/site + +Also you need to create directory `static/fa-icons` and add svg icon of your network/site with name equals to `id` from config. + +Example: +``` + - id: google + url: "https://www.google.com/search?q=I'm+lucky" +``` +Icon should be "static/fa-icons/google.svg" + +If you want font awesome icons, download "Font Awesome For Desktop" and open svg directory. + +### Google Analytics +Only works for production environment. + +### Multilingual mode +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 is available by site url + /index.xml. Also available for specific language, section, taxonomy. +`rssAsSocialIcon` parameter enables rss social icon with link to site current language RSS. + +### Robots.txt +Based on environment. +For production — allow all, for other — disallow all. + +### Favorite posts +Add `favorite: true` to post front matter. It adds a "★" icon nearby post's title. + +### Related posts (Read Next section) +Based on `readNextPosts` config parameter. Check [this article](https://gohugo.io/content-management/related/#configure-related-content) for configuration details. + +### Hiding posts from RSS +Add `disable_feed: true` to post front matter. + +### Make post available only by link +Add `hidden: true` to post front matter. Post also is not available in RSS feed. + +### Pagination on post single page +Enabled by `paginationSinglePost` param in `params` section of config. + +### Webmentions +To provide webmention support you can **either** specify your webmention.io username with `login: webmentionusername` **or** specify a link to your custom webmention endpoint with `url: https://yourdomain.com/webemntions/receive`. +If you use webmention.io you can also enable pingback with `pingback: true` + +### Disabling comments per-page basis +Add `disableComments: true` to post front matter. + +## Custom shortcodes +### Video (for local videofiles) +Example: `{{< video src="/media/movie.mp4" type="video/mp4" preload="auto" caption="Some caption" alt="Some alt" >}}` + +## Contributing + +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 +See [issues](https://github.com/Junyi-99/hugo-theme-anubis2/issues). + +## License +MIT + +© Junyi +2024 diff --git a/themes/anubis2/archetypes/default.md b/themes/anubis2/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/themes/anubis2/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/themes/anubis2/assets/css/dark.css b/themes/anubis2/assets/css/dark.css new file mode 100644 index 0000000..b1b339f --- /dev/null +++ b/themes/anubis2/assets/css/dark.css @@ -0,0 +1,35 @@ +/* dark.css */ +--font-color: #dadadb; +--bg-color: #1d1e20; + +--card-color: #2e2e33; +--card-border-color: #333333; + +--link-color:#599ada; +--link-state-color:#ff5858; +--link-state-border-color: rgba(238, 54, 54, 0.5); + +--thead-bg-color: #343a40; +--table-border-color: lightgrey; + +--nav-bg-color: #2e2e33; +--nav-link-color: #b6b6b6; + +--pre-color: #f8f8f2; +--pre-bg-color: rgba(175, 184, 193, 0.1); +--pre-border-color: rgba(175, 184, 193, 0.3); + +--bq-color: #ccc; +--hr-color: #333; + +--pagination-bg-color: #2e2e33; +--pagination-link-color: #b6b6b6; +--pagination-border-color: #333333; +--pagination-border-radius: 5px; + +--post-info-color: grey; + +--switcher-color: #fff; + +--svg-color: #ccc; +--svg-state-color:#ff5858; diff --git a/themes/anubis2/assets/css/light.css b/themes/anubis2/assets/css/light.css new file mode 100644 index 0000000..408d806 --- /dev/null +++ b/themes/anubis2/assets/css/light.css @@ -0,0 +1,38 @@ +:root { + /* light.css */ + --font-color: #1e1e1e; + --bg-color: #ffffff; + + --card-color: #fafafa; + --card-border-color: #eeeeee; + + + --link-color:#1d60a3; + --link-state-color:rgb(163, 29, 29); + --link-state-border-color: rgba(163, 29, 29, .5); + + --thead-bg-color: lightgrey; + --table-border-color: lightgrey; + + --nav-bg-color: #fafafa; + --nav-link-color: #696969; + + --pre-color: rgb(31, 35, 40); + --pre-bg-color: rgba(175, 184, 193, 0.2); + --pre-border-color: rgba(175, 184, 193, 0.3); + + --bq-color: #ccc; + --hr-color: #ccc; + + --pagination-bg-color: #fafafa; + --pagination-link-color: #696969; + --pagination-border-color: #eeeeee; + --pagination-border-radius: 5px; + + --post-info-color: grey; + + --switcher-color: #333; + + --svg-color: #333; + --svg-state-color: #a31d1d; +} diff --git a/themes/anubis2/assets/css/main.css b/themes/anubis2/assets/css/main.css new file mode 100644 index 0000000..6829e28 --- /dev/null +++ b/themes/anubis2/assets/css/main.css @@ -0,0 +1,895 @@ +{{ $light := resources.Get "css/light.css" }} +{{ $dark := resources.Get "css/dark.css" }} + +{{ $style := "light-without-switcher" }} +{{ if and (isset site.Params "style") (ne site.Params.style "") }} + {{ $style = site.Params.style | lower }} +{{ end }} + +{{ if eq $style "dark-without-switcher" }} +:root { + {{ $dark.Content }} +} + +{{ else }} + +{{ $light.Content }} + +{{ if eq $style "auto-without-switcher" }} +@media (prefers-color-scheme: dark) { + :root { + {{ $dark.Content }} + } +} +{{ else if ne $style "light-without-switcher" }} +[data-theme="dark"] { + {{ $dark.Content }} +} +{{ end }} + +{{ end }} + +/* Basic */ + +:root { + --card-border-radius: 0.5em; + --card-margin: 1.5em; +} + +html { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + /* 1 */ + -ms-text-size-adjust: 100%; + /* 2 */ + -webkit-text-size-adjust: 100%; + /* 2 */ + scroll-behavior: smooth; +} + +body { + margin: 0; + font-size: 18px; + line-height: 1.5; + -webkit-font-smoothing: antialiased; + color: var(--font-color); + background: var(--bg-color); +} + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section { + display: block; +} + +.container { + max-width: 42em; + margin: 0 auto; +} + +main { + outline:none; +} + +/* Table of Contents */ + +.toc { + cursor: zoom-in; + display: block; + + margin-top: 1em; + margin-bottom: 1em; + padding: 0.5em 1em; /* top & bottom, left & right */ + + border: 1px solid var(--card-border-color); + border-radius: var(--card-border-radius); + background: var(--card-color); + + font-size: 14px; + font-weight: bold; +} + +.toc.expanded { + cursor: zoom-out; +} + +.toc .inner { + margin: 0px; + padding: 0px; +} + +/* Headers */ +h1 { + font-size: 1.35em; +} + +h2 { + font-size: 1.2em; + margin-top: 3em; +} + +h2:first-of-type { + margin-top: 0; +} + +h3 { + font-size: 1.1em; +} + +/* Links */ + +a { + color: var(--link-color); + text-decoration: none; + border-bottom: 1px solid transparent; +} + +a:hover, +a:focus, +a:active { + color: var(--link-state-color); + border-bottom: 1px solid var(--link-state-border-color); +} + +a:active, +a:hover { + outline: 0; +} + +a:active { + opacity: 0.9; +} + +a.skip-main { + left:-999px; + position:absolute; + top:auto; + width:1px; + height:1px; + overflow:hidden; + z-index:-999; +} + +a.skip-main:focus, +a.skip-main:active { + left: auto; + top: 0px; + width: auto; + height: auto; + overflow:auto; + z-index:999; + padding: 4px 6px 4px 6px; + text-decoration: underline; + border: none; +} + +/* Table */ +thead { + background: var(--thead-bg-color); +} + +.table-wrapper { + overflow-x: auto; +} + +table { + max-width: 100%; + border-spacing: 0; +} + + +th, td { + padding: 0.5em 1em; + border: 1px double var(--table-border-color); +} + + +/* Code */ +pre { + max-width: 100%; + overflow: auto; + margin-top: 0; + margin-bottom: 0; +} + +code, +pre, +kbd { + color: var(--pre-color); + background-color: var(--pre-bg-color); + font-family: monospace; + font-size: 0.90em; + line-height: 154%; + border-radius: 6px; + border: 1px solid var(--pre-border-color); + padding: 0.1em 0.3em; /* top, bottom */ + /* top, left, bottom, right */ +} + +pre code, pre kbd { + color: inherit; + background-color: inherit; +} + +/* Styles */ + +blockquote { + border-left: 2px solid var(--bq-color); + padding: 0.1em 1em; + margin-left: 0.75em; +} + +p { + margin-top: 0.5em; + margin-bottom: 0.5em; +} + +hr { + color: var(--hr-color); + background-color: var(--hr-color); + border: none; + height: 1px; +} + +/* Header */ + +.common-header { + padding-bottom: 1.5em; + /* border-bottom: thin solid var(--hr-color); */ +} + +header a { + color: var(--font-color); +} + +header h1 { + font-size: 1em; + margin-top: 1em; + margin-bottom: 0; + font-weight: normal; +} + +header h2 { + font-size: 1em; + margin: 0; + font-weight: normal; +} + +.header-top { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + vertical-align: middle; + margin-top: 1em; +} + +.header-top-left { + display: flex; + align-items: center; + justify-content: space-between; +} + +.site-title { + display: inline; + white-space: nowrap; + font-weight: 700; +} + +header nav:not(:empty){ + background: var(--nav-bg-color); + margin-top: var(--card-margin); + max-width: 100%; + text-align: center; + padding: 0.5em 0; + border: 1px solid var(--card-border-color); + border-radius: var(--card-border-radius); + font-size: 14px; +} + +header nav a { + display: inline-block; + margin: 0 2.5%; +} + +/* Social icons */ +.social-icons { + display: inline; + margin: 1em 0 0 1em; + padding: 0; + list-style-type: none; +} + +.social-icons li { + display: inline; +} + +.social-icons li:not(:first-of-type) { + margin-left: 0.5em; +} + +.social-icons a:hover, +.social-icons a:focus, +.social-icons a:active { + color: inherit; + border-bottom: none; + text-decoration: none; +} + +.inline-svg { + display: inline-block; + height: 1.15rem; + width: 1.15rem; + top: 0.15rem; + position: relative; +} + + +/* Pages */ +main h1 { + margin-top: 1em; + font-weight: normal; + line-height: 1.1em; + margin-bottom: 0.5em; + font-weight: 600; +} + +.post-card { + border: 1px solid var(--card-border-color) !important; + border-radius: 0.5em; + padding: 0em 1em 1em 1em; + background: var(--card-color); +} + +article:not(:last-of-type) { + margin-bottom: var(--card-margin); +} + +.post-short-list:first-of-type { + margin-top: 1em; +} + +.post-short-list img { + max-width: 100%; + display: block; + height: auto; + margin: 0 auto .5em; +} + +.post-short-list video { + max-width: 100%; + display: block; + height: auto; + margin: 0 auto .5em; +} + +/* Articles */ + +.post-header { + margin-top: 1em; + line-height: 1.1em; + margin-bottom: 1em; +} + +.post-header header { + display: inline; +} + +.post-navigation { + background: var(--nav-bg-color); + text-align: center; + margin-top: 1em; + max-width: 100%; + padding: 0.5em 0; +} + +.post-navigation a:first-of-type { + margin-left: 0; +} + +.post-navigation a { + color: var(--nav-link-color); + margin-left: 2em; +} + +.post-navigation a:hover, +.post-navigation a:focus, +.post-navigation a:active { + color: var(--link-state-color); +} + +.post-list { + border: #777; +} + +.post-short-list .post-title { + display: inline; +} + +.post-title.favorite::after { + content: "🌟"; + display: inline-block; + margin-left: 0.2em; +} + +.post-title.draft::after { + content: "✏️"; + display: inline-block; + margin-left: 0.2em; +} + +.post-title.favorite.draft::after { + content: "🌟 ✏️"; + display: inline-block; + margin-left: 0.2em; +} + +/* article:not(:last-of-type) { + border-bottom: thin solid var(--hr-color); + padding-bottom: 2em; +} */ + +article header h1 { + font-size: 1.35em; + line-height: 1.1em; + margin-bottom: 0.5em; + font-weight: 600; + display: inline; +} + +article header h1 a { + color: var(--font-color); + border: none; + text-decoration: none; +} + +.post h1, +.post h2, +.post h3, +.post h4, +.post h5, +.post h6 { + position: relative; +} + +.post h1 a, +.post h2 a, +.post h3 a, +.post h4 a, +.post h5 a, +.post h6 a { + opacity: 1; + border-bottom: none; +} + +.post h1:hover a, +.post h2:hover a, +.post h3:hover a, +.post h4:hover a, +.post h5:hover a, +.post h6:hover a { + opacity: 1; + border-bottom: none; +} + +.post h1 a:hover, +.post h1 a:focus, +.post h1 a:active, +.post h2 a:hover, +.post h2 a:focus, +.post h2 a:active, +.post h3 a:hover, +.post h3 a:focus, +.post h3 a:active, +.post h4 a:hover, +.post h4 a:focus, +.post h4 a:active, +.post h5 a:hover, +.post h5 a:focus, +.post h5 a:active, +.post h6 a:hover, +.post h6 a:focus, +.post h6 a:active { + border-bottom: none; +} + +.post h1 svg, +.post h2 svg, +.post h3 svg, +.post h4 svg, +.post h5 svg, +.post h6 svg { + stroke: var(--svg-color); +} + +.post h1 svg:hover, +.post h1 svg:focus, +.post h1 svg:active, +.post h2 svg:hover, +.post h2 svg:focus, +.post h2 svg:active, +.post h3 svg:hover, +.post h3 svg:focus, +.post h3 svg:active, +.post h4 svg:hover, +.post h4 svg:focus, +.post h4 svg:active, +.post h5 svg:hover, +.post h5 svg:focus, +.post h5 svg:active, +.post h6 svg:hover, +.post h6 svg:focus, +.post h6 svg:active { + stroke: var(--svg-state-color); +} + +.post-list .post-info { + color: var(--post-info-color); + font-size: 0.75em; + margin-top: 1em; + margin-bottom: 1em; + display: block; + gap: 1em; +} + +.post-info { + color: var(--post-info-color); + font-size: 0.75em; + margin-top: 1em; + margin-bottom: 1em; + display: flex; + gap: 1em; +} + +.post-info a { + color: var(--post-info-color); +} + +.post-info a:hover { + color: var(--link-state-color); +} + +.post-short-list .post-info { + margin-top: 0; + margin-bottom: 1.5em; +} + +.post-taxonomies { + display: inline; +} + +.post-hidden-url { + display: none; +} + +.post-hidden-author { + display: none; +} + +.post-date { + white-space: nowrap; +} + +.post-categories { + display: inline; + list-style-type: none; + padding: 0; +} + +.post-categories li { + display: inline; + margin-right: 1em; +} + +.post-tags { + display: inline; + list-style-type: none; + padding: 0; + margin: 0; +} + +.post-tags li { + display: inline; + margin-right: 1em; +} + +.post-authors { + display: inline; + list-style-type: none; + padding: 0; + margin: 0; +} + +.post-authors li { + display: inline; + margin-right: 1em; +} + +article img { + max-width: 100%; + display: block; + height: auto; + margin: 0 auto .5em; +} + +article figcaption { + color: grey; + text-align: center; + font-size: 0.85em; + margin-bottom: 2em; +} + +article video { + max-width: 100%; + display: block; + height: auto; + margin: 0 auto .5em; +} + +code.has-jax { + -webkit-font-smoothing: antialiased; + background: inherit !important; + border: none !important; + font-size: 100%; +} + +.read-more { + margin: 1em 0; +} + +.divider { + border-top: thin solid var(--hr-color); + display: block; + height: 1px; + border: 0; + width: 25%; + margin: 1em auto; +} + +.post-summary { + margin-top: 0.5em; + display: block; +} + +.post-summary > p { + display: block; +} + +.post-translations { + margin-left: 0.5em; + list-style: none; + padding: 0; + display: inline; + font-size: 14px; +} + +.post-translations > li { + display: inline; +} + +.post-translations > li:not(:last-child)::after { + content: "|"; + display: inline-block; +} + +.post-translations > li a { + color: var(--link-color); +} + +.post-translations > li a:hover, +.post-translations > li a:focus { + color: var(--link-state-color); +} + +.read-next-title { + margin-bottom: 0; + margin-top: 3em; + padding-top: 1em; + border-top: 1px dashed var(--thead-bg-color); +} + +.read-next-posts { + margin-top: 5px; + list-style-type:"- "; + padding-inline-start: 20px; +} + +/* Other pages */ +.terms { + list-style-type: none; + padding: 0; + line-height: 2em; +} + +/* Pagination */ + +.pagination { + display: flex; + justify-content: space-between; + margin-top: 3em; + text-align: center; +} + +.pagination-item { + border: 1px solid var(--pagination-border-color); + border-radius: var(--pagination-border-radius); + background: var(--pagination-bg-color); + padding: 0.25em 0.75em; +} + +.pagination-item a { + color: var(--pagination-link-color); +} + +.pagination-item a:hover, +.pagination-item a:focus { + color: var(--link-state-color); +} + +.disabled { + visibility: hidden; +} + +.pagination-item a:hover, .pagination-item a:focus { + border-bottom: 0; +} + +.post-pagination .pagination-item { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: 16em; +} + +/* Footer */ + +.common-footer { + padding-top: 1.5em; + margin-top: 3em; + font-size: 12px; + margin-bottom: 1.5em; + color: var(--pagination-link-color); +} + +.common-footer-bottom { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; +} + +ul.language-select, ul.footer-menu { + padding-left: 0; + list-style: none; + display: flex; +} + +ul.language-select > li, ul.footer-menu > li { + margin-right: 1em; +} + +.theme-switcher { + color: var(--switcher-color); + /* padding: 0.5em 1em; */ + margin: 1em 0 0 1.5em; + cursor: pointer; +} + +.h-card { + display: none; +} + +/* Copy code */ +.highlight { + position: relative; + overflow: auto; +} +.highlight pre { + padding-right: 75px; +} + +.highlight:hover .highlight-copy-btn { + display: inline-block; + border: 1px solid var(--bg-color); +} + +.highlight-copy-btn { + display: none; + position: absolute; + top: 18px; + right: 2px; + border: 0; + border-radius: 4px; + padding: 1px; + font-size: 0.7em; + line-height: 1.8; + color: #fff; + background-color: #777; + min-width: 25px; + text-align: center; + border-radius: 5px; +} +.highlight-copy-btn:hover { + transition-duration: .1s; + background-color: #666; + border: 1px solid var(--bq-color) !important; + cursor: pointer; +} + +.highlight-copy-btn, +.highlight-copy-btn svg { + vertical-align: middle; + margin: 8px; +} + +/* Others */ +.noselect { + -webkit-touch-callout: none; /* iOS Safari */ + -webkit-user-select: none; /* Safari */ + -khtml-user-select: none; /* Konqueror HTML */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* Internet Explorer/Edge */ + user-select: none; /* Non-prefixed version, currently + supported by Chrome and Opera */ +} + + +/* Media Queries */ + +@media (max-width: 840px) { + .main-wrapper { + margin: 0; + max-width: none; + overflow-x: hidden; + padding-left: 25px; + padding-right: 25px; + } + + .container { + max-width: 90%; + margin: 0 auto; + word-wrap: break-word; + } + + .pagination-item { + padding: 0.5em 0.5em; + font-size: 14px; + } + + .post-navigation { + background: var(--pagination-bg-color); + text-align: center; + padding: 0.5em 0; + } + + .post-navigation a { + margin-left: 0.5em; + } + + .post-pagination .pagination-item { + max-width: 10em; + } +} + +{{ range site.Params.customCSS }} + {{ $custom := resources.Get . }} + {{ $custom.Content }} +{{ end }} + +{{ if site.Params.isso.enabled }} + #isso-thread .textarea { + color: #000; + } + #isso-thread .isso-feedlink { + position: relative; + z-index: 1; + } +{{ end }} diff --git a/themes/anubis2/assets/images/link.svg b/themes/anubis2/assets/images/link.svg new file mode 100644 index 0000000..17830a4 --- /dev/null +++ b/themes/anubis2/assets/images/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/assets/js/copy-code.js b/themes/anubis2/assets/js/copy-code.js new file mode 100644 index 0000000..e772f52 --- /dev/null +++ b/themes/anubis2/assets/js/copy-code.js @@ -0,0 +1,64 @@ +/* +This file has been taken from following blogpost with some modifications: +https://koki-nakamura22.github.io/blog/2019/10/03/hugo-adding-copy-button/ +Many thanks to Koki Nakamura! +*/ + +document.addEventListener("DOMContentLoaded", function(event) { + 'use strict'; + + if(!document.queryCommandSupported('copy')) { + return; + } + + let svgCopyCode = ''; + let svgSuccessCode = ''; + let svgFailCode = ''; + + function changeIcon(el, innerHtml) { + el.innerHTML = innerHtml; + setTimeout(() => { + el.innerHTML = svgCopyCode; + }, 1000); + } + + function selectText(node) { + let selection = window.getSelection(); + let range = document.createRange(); + if (node.childElementCount === 2) { + // Skip the title. + range.selectNodeContents(node.children[1]); + } else { + range.selectNodeContents(node); + } + selection.removeAllRanges(); + selection.addRange(range); + return selection; + } + + function addCopyButton(containerEl) { + let copyBtn = document.createElement("button"); + copyBtn.className = "highlight-copy-btn"; + copyBtn.innerHTML = svgCopyCode; + + let codeEl = containerEl.firstElementChild; + copyBtn.addEventListener('click', () => { + try { + let selection = selectText(codeEl); + document.execCommand('copy'); + selection.removeAllRanges(); + + changeIcon(copyBtn, svgSuccessCode) + } catch(e) { + console && console.log(e); + changeIcon(copyBtn, svgFailCode) + } + }); + + containerEl.appendChild(copyBtn); + } + + // Add copy button to code blocks + let highlightBlocks = document.getElementsByClassName('highlight'); + Array.prototype.forEach.call(highlightBlocks, addCopyButton); +}, false); \ No newline at end of file diff --git a/themes/anubis2/data/social.yaml b/themes/anubis2/data/social.yaml new file mode 100644 index 0000000..41c203d --- /dev/null +++ b/themes/anubis2/data/social.yaml @@ -0,0 +1,17 @@ +social_icons: + email: mailto:%s + facebook: https://www.facebook.com/%s + github: https://github.com/%s + instagram: https://www.instagram.com/%s + linkedin: https://www.linkedin.com/in/%s + mastodon: "%s" + patreon: https://www.patreon.com/%s + reddit: https://www.reddit.com/user/%s + snapchat: https://www.snapchat.com/s/%s + soundcloud: https://soundcloud.com/%s + spotify: https://open.spotify.com/user/%s + telegram: tg://resolve?domain=%s + twitch: https://www.twitch.tv/%s + twitter: https://twitter.com/%s + vk: https://vk.com/%s + youtube: https://www.youtube.com/c/%s diff --git a/themes/anubis2/exampleSite/.gitignore b/themes/anubis2/exampleSite/.gitignore new file mode 100644 index 0000000..df410c6 --- /dev/null +++ b/themes/anubis2/exampleSite/.gitignore @@ -0,0 +1,3 @@ +.hugo_build.lock +public/ +resources/ \ No newline at end of file diff --git a/themes/anubis2/exampleSite/content/_index.md b/themes/anubis2/exampleSite/content/_index.md new file mode 100644 index 0000000..6abc75e --- /dev/null +++ b/themes/anubis2/exampleSite/content/_index.md @@ -0,0 +1,4 @@ ++++ +author = "Hugo Authors" ++++ + diff --git a/themes/anubis2/exampleSite/content/about-subpage.md b/themes/anubis2/exampleSite/content/about-subpage.md new file mode 100644 index 0000000..f499aa6 --- /dev/null +++ b/themes/anubis2/exampleSite/content/about-subpage.md @@ -0,0 +1,24 @@ +--- +title: "About subpage" +description: "About subpage" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage +menu: + about: + identifier: about-subpage-s + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage: + identifier: about-subpage2-s + parent: about + name: Second About subpage + title: Second About subpage + url: /about/subpage2/ + weight: 10 +--- + +About subpage diff --git a/themes/anubis2/exampleSite/content/about-subpage2.md b/themes/anubis2/exampleSite/content/about-subpage2.md new file mode 100644 index 0000000..7963032 --- /dev/null +++ b/themes/anubis2/exampleSite/content/about-subpage2.md @@ -0,0 +1,24 @@ +--- +title: "Second About subpage" +description: "Second About subpage" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage2 +menu: + about: + identifier: about-subpage-s2 + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage: + identifier: about-subpage2-s2 + parent: about + name: Second About subpage + title: Second About subpage + url: /about/subpage2/ + weight: 10 +--- + +Second About subpage diff --git a/themes/anubis2/exampleSite/content/about.md b/themes/anubis2/exampleSite/content/about.md new file mode 100644 index 0000000..9a3df26 --- /dev/null +++ b/themes/anubis2/exampleSite/content/about.md @@ -0,0 +1,43 @@ +--- +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" +menu: + about: + identifier: about-subpage + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage: + identifier: about-subpage2 + parent: about + name: Second About subpage + title: Second About subpage + url: /about/subpage2/ + weight: 10 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +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). + + + diff --git a/themes/anubis2/exampleSite/content/archives.md b/themes/anubis2/exampleSite/content/archives.md new file mode 100644 index 0000000..98a1ee9 --- /dev/null +++ b/themes/anubis2/exampleSite/content/archives.md @@ -0,0 +1,5 @@ +--- +date: 2019-05-28 +type: section +layout: "archives" +--- \ No newline at end of file diff --git a/themes/anubis2/exampleSite/content/homepage/about.md b/themes/anubis2/exampleSite/content/homepage/about.md new file mode 100644 index 0000000..c2ba680 --- /dev/null +++ b/themes/anubis2/exampleSite/content/homepage/about.md @@ -0,0 +1,7 @@ +--- +title: 'Our Difference' +button: 'About us' +weight: 2 +--- + +Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo, \ No newline at end of file diff --git a/themes/anubis2/exampleSite/content/homepage/index.md b/themes/anubis2/exampleSite/content/homepage/index.md new file mode 100644 index 0000000..01ffa31 --- /dev/null +++ b/themes/anubis2/exampleSite/content/homepage/index.md @@ -0,0 +1,3 @@ +--- +headless : true +--- diff --git a/themes/anubis2/exampleSite/content/homepage/work.md b/themes/anubis2/exampleSite/content/homepage/work.md new file mode 100644 index 0000000..f2fee73 --- /dev/null +++ b/themes/anubis2/exampleSite/content/homepage/work.md @@ -0,0 +1,7 @@ +--- +title: 'We Help Business Grow' +button: 'Our Work' +weight: 1 +--- + +Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit. \ No newline at end of file diff --git a/themes/anubis2/exampleSite/content/post/_index.md b/themes/anubis2/exampleSite/content/post/_index.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/_index.md @@ -0,0 +1,6 @@ ++++ +aliases = ["posts","articles","blog","showcase","docs"] +title = "Posts" +author = "Hugo Authors" +tags = ["index"] ++++ diff --git a/themes/anubis2/exampleSite/content/post/emoji-support.md b/themes/anubis2/exampleSite/content/post/emoji-support.md new file mode 100644 index 0000000..66c5d44 --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/emoji-support.md @@ -0,0 +1,47 @@ ++++ +author = "Hugo Authors" +title = "Emoji Support" +date = "2019-03-05" +description = "Guide to emoji usage in Hugo" +tags = [ + "emoji", +] ++++ + +Emoji can be enabled in a Hugo project in a number of ways. + +The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). + +To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. + + +

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

+
+ +The [Emoji cheat sheet](https://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. + +*** + +**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. + +{{< highlight html >}} +.emoji { +font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols; +} +{{< /highlight >}} + +{{< css.inline >}} + +{{< /css.inline >}} \ No newline at end of file diff --git a/themes/anubis2/exampleSite/content/post/hidden-post.md b/themes/anubis2/exampleSite/content/post/hidden-post.md new file mode 100644 index 0000000..96b33ed --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/hidden-post.md @@ -0,0 +1,12 @@ ++++ +author = "Junyi" +title = "Hidden Post" +date = "2021-12-24" +description = "Post available only by link" +tags = [ + "privacy" +] +hidden = true ++++ + +This is hidden post \ No newline at end of file diff --git a/themes/anubis2/exampleSite/content/post/markdown-syntax.md b/themes/anubis2/exampleSite/content/post/markdown-syntax.md new file mode 100644 index 0000000..49114db --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/markdown-syntax.md @@ -0,0 +1,146 @@ ++++ +author = "Hugo Authors" +title = "Markdown Syntax Guide" +date = "2019-03-11" +description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." +tags = [ + "markdown", + "css", + "html", + "themes", +] +categories = [ + "themes", + "syntax", +] +aliases = ["migrate-from-jekyl"] +favorite = true ++++ + +This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + + +## Headings + +The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. + +# H1 +## H2 +### H3 +#### H4 +##### H5 +###### H6 + +## Paragraph + +Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. + +Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. + +## Blockquotes + +The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. + +#### Blockquote without attribution + +> Tiam, ad mint andaepu dandae nostion secatur sequo quae. +> **Note** that you can use *Markdown syntax* within a blockquote. + +#### Blockquote with attribution + +> Don't communicate by sharing memory, share memory by communicating.

+> — Rob Pike[^1] + + +[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. + +## Tables + +Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. + + Name | Age +--------|------ + Bob | 27 + Alice | 23 + +#### Inline Markdown within tables + +| Inline    | Markdown    | In    | Table | +| ---------- | --------- | ----------------- | ---------- | +| *italics* | **bold** | ~~strikethrough~~    | `code` | + +## Code Blocks + +#### Code block with backticks + +```html + + + + + Example HTML5 Document + + +

Test

+ + +``` +#### Code block indented with four spaces + + + + + + Example HTML5 Document + + +

Test

+ + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + + Example HTML5 Document + + +

Test

+ + +{{< /highlight >}} + +## List Types + +#### Ordered List + +1. First item +2. Second item +3. Third item + +#### Unordered List + +* List item +* Another item +* And another item + +#### Nested list + +* Item +1. First Sub-item +2. Second Sub-item + +## Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. + diff --git a/themes/anubis2/exampleSite/content/post/math-typesetting.md b/themes/anubis2/exampleSite/content/post/math-typesetting.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/math-typesetting.md @@ -0,0 +1,45 @@ +--- +author: Hugo Authors +title: Math Typesetting +date: 2019-03-08 +description: A brief guide to setup KaTeX +math: true +--- + +Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. + + +In this example we will be using [KaTeX](https://katex.org/) + +- Create a partial under `/layouts/partials/math.html` +- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. +- Include the partial in your templates like so: + +``` +{{ if or .Params.math .Site.Params.math }} +{{ partial "math.html" . }} +{{ end }} +``` +- To enable KaTex globally set the parameter `math` to `true` in a project's configuration +- To enable KaTex on a per page basis include the parameter `math: true` in content files. + +**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) +{{< math.inline >}} +{{ if or .Page.Params.math .Site.Params.math }} + + + + +{{ end }} +{{}} + +### Examples + +Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ + +Block math: + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ + diff --git a/themes/anubis2/exampleSite/content/post/placeholder-text.md b/themes/anubis2/exampleSite/content/post/placeholder-text.md new file mode 100644 index 0000000..29ff09f --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/placeholder-text.md @@ -0,0 +1,58 @@ ++++ +author = "Hugo Authors" +title = "Placeholder Text" +date = "2019-03-09" +description = "Lorem Ipsum Dolor Si Amet" +tags = [ + "markdown", + "text", +] ++++ + +Lorem est tota propiore conpellat pectoribus de +pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice +subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc +caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis +lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. + +1. Exierant elisi ambit vivere dedere +2. Duce pollice +3. Eris modo +4. Spargitque ferrea quos palude + +Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus +silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria +tractus malis. + +1. Comas hunc haec pietate fetum procerum dixit +2. Post torum vates letum Tiresia +3. Flumen querellas +4. Arcanaque montibus omnes +5. Quidem et + +# Vagus elidunt + + + +[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) + +## Mane refeci capiebant unda mulcebat + +Victa caducifer, malo vulnere contra +dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere +furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. + +Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli +Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare +Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert +ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae +vulnus haerentia iuste et exercebat, sui et. + +Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem +Propoetides **parte**. + +{{< css.inline >}} + +{{< /css.inline >}} diff --git a/themes/anubis2/exampleSite/content/post/rich-content.md b/themes/anubis2/exampleSite/content/post/rich-content.md new file mode 100644 index 0000000..71a36e1 --- /dev/null +++ b/themes/anubis2/exampleSite/content/post/rich-content.md @@ -0,0 +1,34 @@ ++++ +author = "Hugo Authors" +title = "Rich Content" +date = "2019-03-10" +description = "A brief description of Hugo Shortcodes" +tags = [ + "shortcodes", + "privacy", +] ++++ + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< tweet user="DesignReviewed" id="1085870671291310081" >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/themes/anubis2/exampleSite/hugo.toml b/themes/anubis2/exampleSite/hugo.toml new file mode 100644 index 0000000..c91b795 --- /dev/null +++ b/themes/anubis2/exampleSite/hugo.toml @@ -0,0 +1,74 @@ +baseURL = "https://example.com" +languageCode = "en-us" +title = "Anubis" +theme = "anubis" +paginate = 3 + +disqusShortname = "" +googleAnalytics = "" + +[author] +name = "Junyi" + +[params] +author = "Junyi" +description = "Anubis2 is another simple minimalist theme for Hugo blog engine." +dateFormat = "2006-01-02" +paginationSinglePost = true +style = "auto" +readMore = false +readNextPosts = 2 +copyCodeButton = true +rssAsSocialIcon = true +mathjax = false + +# Graphcomment support +graphcommentId = "" + +# utteranc.es support +utterancesRepo = "" # mandatory +utterancesTheme = "" # optional +utterancesIssue = "" # optional +utterancesLabel = "" # optional + +# Giscus support +GiscusRepo = "" # mandatory +GiscusRepoId = "" # mandatory +GiscusCategory = "Announcements" # mandatory +GiscusCategoryId = "" # mandatory +GiscusLazyLoad = false # optional + +[[params.social]] +id = "docs" +url = "https://gohugo.io/documentation/" + +[[params.social]] +id = "github" +url = "https://github.com/Junyi-99/hugo-theme-anubis2" + +[menu] + +[[menu.main]] +identifier = "about" +name = "About" +url = "/about/" +weight = 1 + +[[menu.main]] +identifier = "tags" +name = "Tags" +url = "/tags/" +weight = 2 + +[[menu.main]] +name = "Archive" +identifier = "archive" +url = "/posts/" +weight = 3 + +[taxonomies] +category = "categories" +tag = "tags" + +[markup.goldmark.renderer] +unsafe = true diff --git a/themes/anubis2/exampleSite/netlify.toml b/themes/anubis2/exampleSite/netlify.toml new file mode 100644 index 0000000..8b1ea78 --- /dev/null +++ b/themes/anubis2/exampleSite/netlify.toml @@ -0,0 +1,8 @@ +[build] +publish = "public" +command = "hugo --gc --minify" + +[context.production.environment] +HUGO_VERSION = "0.115.4" +HUGO_ENV = "production" +HUGO_ENABLEGITINFO = "true" \ No newline at end of file diff --git a/themes/anubis2/exampleSite/static/fa-icons/docs.svg b/themes/anubis2/exampleSite/static/fa-icons/docs.svg new file mode 100644 index 0000000..5380074 --- /dev/null +++ b/themes/anubis2/exampleSite/static/fa-icons/docs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/.gitignore b/themes/anubis2/exampleSiteMultilingual/.gitignore new file mode 100644 index 0000000..df410c6 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/.gitignore @@ -0,0 +1,3 @@ +.hugo_build.lock +public/ +resources/ \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/_index.md b/themes/anubis2/exampleSiteMultilingual/content/_index.md new file mode 100644 index 0000000..6abc75e --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/_index.md @@ -0,0 +1,4 @@ ++++ +author = "Hugo Authors" ++++ + diff --git a/themes/anubis2/exampleSiteMultilingual/content/_index.pl.md b/themes/anubis2/exampleSiteMultilingual/content/_index.pl.md new file mode 100644 index 0000000..e69de29 diff --git a/themes/anubis2/exampleSiteMultilingual/content/_index.zh.md b/themes/anubis2/exampleSiteMultilingual/content/_index.zh.md new file mode 100644 index 0000000..e69de29 diff --git a/themes/anubis2/exampleSiteMultilingual/content/about-subpage.md b/themes/anubis2/exampleSiteMultilingual/content/about-subpage.md new file mode 100644 index 0000000..413f0ea --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about-subpage.md @@ -0,0 +1,24 @@ +--- +title: "About Subpage" +description: "About Subpage" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage +menu: + subpage: + identifier: about-subpage-s + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2-s + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +About subpage diff --git a/themes/anubis2/exampleSiteMultilingual/content/about-subpage.pl.md b/themes/anubis2/exampleSiteMultilingual/content/about-subpage.pl.md new file mode 100644 index 0000000..413f0ea --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about-subpage.pl.md @@ -0,0 +1,24 @@ +--- +title: "About Subpage" +description: "About Subpage" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage +menu: + subpage: + identifier: about-subpage-s + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2-s + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +About subpage diff --git a/themes/anubis2/exampleSiteMultilingual/content/about-subpage2.md b/themes/anubis2/exampleSiteMultilingual/content/about-subpage2.md new file mode 100644 index 0000000..372dced --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about-subpage2.md @@ -0,0 +1,24 @@ +--- +title: "Second About Subpage" +description: "Second About Subpage" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage2 +menu: + subpage: + identifier: about-subpage-s2 + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2-s2 + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +Second About subpage diff --git a/themes/anubis2/exampleSiteMultilingual/content/about-subpage2.pl.md b/themes/anubis2/exampleSiteMultilingual/content/about-subpage2.pl.md new file mode 100644 index 0000000..372dced --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about-subpage2.pl.md @@ -0,0 +1,24 @@ +--- +title: "Second About Subpage" +description: "Second About Subpage" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage2 +menu: + subpage: + identifier: about-subpage-s2 + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2-s2 + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +Second About subpage diff --git a/themes/anubis2/exampleSiteMultilingual/content/about.md b/themes/anubis2/exampleSiteMultilingual/content/about.md new file mode 100644 index 0000000..438c830 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about.md @@ -0,0 +1,43 @@ +--- +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" +menu: + subpage: + identifier: about-subpage + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2 + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +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). + + + diff --git a/themes/anubis2/exampleSiteMultilingual/content/about.pl.md b/themes/anubis2/exampleSiteMultilingual/content/about.pl.md new file mode 100644 index 0000000..438c830 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about.pl.md @@ -0,0 +1,43 @@ +--- +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" +menu: + subpage: + identifier: about-subpage + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2 + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +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). + + + diff --git a/themes/anubis2/exampleSiteMultilingual/content/about.zh.md b/themes/anubis2/exampleSiteMultilingual/content/about.zh.md new file mode 100644 index 0000000..438c830 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/about.zh.md @@ -0,0 +1,43 @@ +--- +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" +menu: + subpage: + identifier: about-subpage + parent: about + name: About Subpage + title: About Subpage + url: /about/subpage/ + weight: 1 + subpage2: + identifier: about-subpage2 + parent: about + name: Second About Subpage + title: Second About Subpage + url: /about/subpage2/ + weight: 10 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +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). + + + diff --git a/themes/anubis2/exampleSiteMultilingual/content/archives.md b/themes/anubis2/exampleSiteMultilingual/content/archives.md new file mode 100644 index 0000000..98a1ee9 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/archives.md @@ -0,0 +1,5 @@ +--- +date: 2019-05-28 +type: section +layout: "archives" +--- \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/homepage/about.md b/themes/anubis2/exampleSiteMultilingual/content/homepage/about.md new file mode 100644 index 0000000..c2ba680 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/homepage/about.md @@ -0,0 +1,7 @@ +--- +title: 'Our Difference' +button: 'About us' +weight: 2 +--- + +Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo, \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/homepage/index.md b/themes/anubis2/exampleSiteMultilingual/content/homepage/index.md new file mode 100644 index 0000000..01ffa31 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/homepage/index.md @@ -0,0 +1,3 @@ +--- +headless : true +--- diff --git a/themes/anubis2/exampleSiteMultilingual/content/homepage/work.md b/themes/anubis2/exampleSiteMultilingual/content/homepage/work.md new file mode 100644 index 0000000..f2fee73 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/homepage/work.md @@ -0,0 +1,7 @@ +--- +title: 'We Help Business Grow' +button: 'Our Work' +weight: 1 +--- + +Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit. \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/_index.md b/themes/anubis2/exampleSiteMultilingual/content/post/_index.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/_index.md @@ -0,0 +1,6 @@ ++++ +aliases = ["posts","articles","blog","showcase","docs"] +title = "Posts" +author = "Hugo Authors" +tags = ["index"] ++++ diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/_index.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/_index.pl.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/_index.pl.md @@ -0,0 +1,6 @@ ++++ +aliases = ["posts","articles","blog","showcase","docs"] +title = "Posts" +author = "Hugo Authors" +tags = ["index"] ++++ diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/emoji-support.md b/themes/anubis2/exampleSiteMultilingual/content/post/emoji-support.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/emoji-support.md @@ -0,0 +1,47 @@ ++++ +author = "Hugo Authors" +title = "Emoji Support" +date = "2019-03-05" +description = "Guide to emoji usage in Hugo" +tags = [ + "emoji", +] ++++ + +Emoji can be enabled in a Hugo project in a number of ways. + +The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). + +To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. + + +

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

+
+ +The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. + +*** + +**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. + +{{< highlight html >}} +.emoji { +font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols; +} +{{< /highlight >}} + +{{< css.inline >}} + +{{< /css.inline >}} \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/emoji-support.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/emoji-support.pl.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/emoji-support.pl.md @@ -0,0 +1,47 @@ ++++ +author = "Hugo Authors" +title = "Emoji Support" +date = "2019-03-05" +description = "Guide to emoji usage in Hugo" +tags = [ + "emoji", +] ++++ + +Emoji can be enabled in a Hugo project in a number of ways. + +The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). + +To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. + + +

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

+
+ +The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. + +*** + +**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. + +{{< highlight html >}} +.emoji { +font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols; +} +{{< /highlight >}} + +{{< css.inline >}} + +{{< /css.inline >}} \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/hidden-post.md b/themes/anubis2/exampleSiteMultilingual/content/post/hidden-post.md new file mode 100644 index 0000000..96b33ed --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/hidden-post.md @@ -0,0 +1,12 @@ ++++ +author = "Junyi" +title = "Hidden Post" +date = "2021-12-24" +description = "Post available only by link" +tags = [ + "privacy" +] +hidden = true ++++ + +This is hidden post \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/hidden-post.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/hidden-post.pl.md new file mode 100644 index 0000000..96b33ed --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/hidden-post.pl.md @@ -0,0 +1,12 @@ ++++ +author = "Junyi" +title = "Hidden Post" +date = "2021-12-24" +description = "Post available only by link" +tags = [ + "privacy" +] +hidden = true ++++ + +This is hidden post \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/markdown-syntax.md b/themes/anubis2/exampleSiteMultilingual/content/post/markdown-syntax.md new file mode 100644 index 0000000..534b67b --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/markdown-syntax.md @@ -0,0 +1,147 @@ ++++ +author = "Hugo Authors" +title = "Markdown Syntax Guide" +date = "2019-03-11" +description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." +tags = [ + "markdown", + "css", + "html", + "themes", +] +categories = [ + "themes", + "syntax", +] +authors = ["Junyi-99", "hugo"] +aliases = ["migrate-from-jekyl"] +favorite = true ++++ + +This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + + +## Headings + +The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. + +# H1 +## H2 +### H3 +#### H4 +##### H5 +###### H6 + +## Paragraph + +Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. + +Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. + +## Blockquotes + +The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. + +#### Blockquote without attribution + +> Tiam, ad mint andaepu dandae nostion secatur sequo quae. +> **Note** that you can use *Markdown syntax* within a blockquote. + +#### Blockquote with attribution + +> Don't communicate by sharing memory, share memory by communicating.

+> — Rob Pike[^1] + + +[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. + +## Tables + +Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. + + Name | Age +--------|------ + Bob | 27 + Alice | 23 + +#### Inline Markdown within tables + +| Inline    | Markdown    | In    | Table | +| ---------- | --------- | ----------------- | ---------- | +| *italics* | **bold** | ~~strikethrough~~    | `code` | + +## Code Blocks + +#### Code block with backticks + +```html + + + + + Example HTML5 Document + + +

Test

+ + +``` +#### Code block indented with four spaces + + + + + + Example HTML5 Document + + +

Test

+ + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + + Example HTML5 Document + + +

Test

+ + +{{< /highlight >}} + +## List Types + +#### Ordered List + +1. First item +2. Second item +3. Third item + +#### Unordered List + +* List item +* Another item +* And another item + +#### Nested list + +* Item +1. First Sub-item +2. Second Sub-item + +## Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. + diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/markdown-syntax.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/markdown-syntax.pl.md new file mode 100644 index 0000000..49114db --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/markdown-syntax.pl.md @@ -0,0 +1,146 @@ ++++ +author = "Hugo Authors" +title = "Markdown Syntax Guide" +date = "2019-03-11" +description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." +tags = [ + "markdown", + "css", + "html", + "themes", +] +categories = [ + "themes", + "syntax", +] +aliases = ["migrate-from-jekyl"] +favorite = true ++++ + +This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + + +## Headings + +The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. + +# H1 +## H2 +### H3 +#### H4 +##### H5 +###### H6 + +## Paragraph + +Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. + +Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. + +## Blockquotes + +The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. + +#### Blockquote without attribution + +> Tiam, ad mint andaepu dandae nostion secatur sequo quae. +> **Note** that you can use *Markdown syntax* within a blockquote. + +#### Blockquote with attribution + +> Don't communicate by sharing memory, share memory by communicating.

+> — Rob Pike[^1] + + +[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. + +## Tables + +Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. + + Name | Age +--------|------ + Bob | 27 + Alice | 23 + +#### Inline Markdown within tables + +| Inline    | Markdown    | In    | Table | +| ---------- | --------- | ----------------- | ---------- | +| *italics* | **bold** | ~~strikethrough~~    | `code` | + +## Code Blocks + +#### Code block with backticks + +```html + + + + + Example HTML5 Document + + +

Test

+ + +``` +#### Code block indented with four spaces + + + + + + Example HTML5 Document + + +

Test

+ + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + + Example HTML5 Document + + +

Test

+ + +{{< /highlight >}} + +## List Types + +#### Ordered List + +1. First item +2. Second item +3. Third item + +#### Unordered List + +* List item +* Another item +* And another item + +#### Nested list + +* Item +1. First Sub-item +2. Second Sub-item + +## Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. + diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/math-typesetting.md b/themes/anubis2/exampleSiteMultilingual/content/post/math-typesetting.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/math-typesetting.md @@ -0,0 +1,45 @@ +--- +author: Hugo Authors +title: Math Typesetting +date: 2019-03-08 +description: A brief guide to setup KaTeX +math: true +--- + +Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. + + +In this example we will be using [KaTeX](https://katex.org/) + +- Create a partial under `/layouts/partials/math.html` +- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. +- Include the partial in your templates like so: + +``` +{{ if or .Params.math .Site.Params.math }} +{{ partial "math.html" . }} +{{ end }} +``` +- To enable KaTex globally set the parameter `math` to `true` in a project's configuration +- To enable KaTex on a per page basis include the parameter `math: true` in content files. + +**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) +{{< math.inline >}} +{{ if or .Page.Params.math .Site.Params.math }} + + + + +{{ end }} +{{}} + +### Examples + +Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ + +Block math: + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ + diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/math-typesetting.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/math-typesetting.pl.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/math-typesetting.pl.md @@ -0,0 +1,45 @@ +--- +author: Hugo Authors +title: Math Typesetting +date: 2019-03-08 +description: A brief guide to setup KaTeX +math: true +--- + +Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. + + +In this example we will be using [KaTeX](https://katex.org/) + +- Create a partial under `/layouts/partials/math.html` +- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. +- Include the partial in your templates like so: + +``` +{{ if or .Params.math .Site.Params.math }} +{{ partial "math.html" . }} +{{ end }} +``` +- To enable KaTex globally set the parameter `math` to `true` in a project's configuration +- To enable KaTex on a per page basis include the parameter `math: true` in content files. + +**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) +{{< math.inline >}} +{{ if or .Page.Params.math .Site.Params.math }} + + + + +{{ end }} +{{}} + +### Examples + +Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ + +Block math: + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ + diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/placeholder-text.md b/themes/anubis2/exampleSiteMultilingual/content/post/placeholder-text.md new file mode 100644 index 0000000..1e9ee4e --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/placeholder-text.md @@ -0,0 +1,59 @@ ++++ +author = "Hugo Authors" +title = "Placeholder Text" +date = "2019-03-09" +description = "Lorem Ipsum Dolor Si Amet" +tags = [ + "markdown", + "text", +] +authors = ["hugo"] ++++ + +Lorem est tota propiore conpellat pectoribus de +pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice +subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc +caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis +lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. + +1. Exierant elisi ambit vivere dedere +2. Duce pollice +3. Eris modo +4. Spargitque ferrea quos palude + +Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus +silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria +tractus malis. + +1. Comas hunc haec pietate fetum procerum dixit +2. Post torum vates letum Tiresia +3. Flumen querellas +4. Arcanaque montibus omnes +5. Quidem et + +# Vagus elidunt + + + +[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) + +## Mane refeci capiebant unda mulcebat + +Victa caducifer, malo vulnere contra +dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere +furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. + +Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli +Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare +Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert +ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae +vulnus haerentia iuste et exercebat, sui et. + +Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem +Propoetides **parte**. + +{{< css.inline >}} + +{{< /css.inline >}} diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/placeholder-text.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/placeholder-text.pl.md new file mode 100644 index 0000000..29ff09f --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/placeholder-text.pl.md @@ -0,0 +1,58 @@ ++++ +author = "Hugo Authors" +title = "Placeholder Text" +date = "2019-03-09" +description = "Lorem Ipsum Dolor Si Amet" +tags = [ + "markdown", + "text", +] ++++ + +Lorem est tota propiore conpellat pectoribus de +pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice +subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc +caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis +lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. + +1. Exierant elisi ambit vivere dedere +2. Duce pollice +3. Eris modo +4. Spargitque ferrea quos palude + +Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus +silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria +tractus malis. + +1. Comas hunc haec pietate fetum procerum dixit +2. Post torum vates letum Tiresia +3. Flumen querellas +4. Arcanaque montibus omnes +5. Quidem et + +# Vagus elidunt + + + +[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) + +## Mane refeci capiebant unda mulcebat + +Victa caducifer, malo vulnere contra +dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere +furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. + +Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli +Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare +Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert +ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae +vulnus haerentia iuste et exercebat, sui et. + +Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem +Propoetides **parte**. + +{{< css.inline >}} + +{{< /css.inline >}} diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/rich-content.md b/themes/anubis2/exampleSiteMultilingual/content/post/rich-content.md new file mode 100644 index 0000000..71a36e1 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/rich-content.md @@ -0,0 +1,34 @@ ++++ +author = "Hugo Authors" +title = "Rich Content" +date = "2019-03-10" +description = "A brief description of Hugo Shortcodes" +tags = [ + "shortcodes", + "privacy", +] ++++ + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< tweet user="DesignReviewed" id="1085870671291310081" >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/themes/anubis2/exampleSiteMultilingual/content/post/rich-content.pl.md b/themes/anubis2/exampleSiteMultilingual/content/post/rich-content.pl.md new file mode 100644 index 0000000..71a36e1 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/content/post/rich-content.pl.md @@ -0,0 +1,34 @@ ++++ +author = "Hugo Authors" +title = "Rich Content" +date = "2019-03-10" +description = "A brief description of Hugo Shortcodes" +tags = [ + "shortcodes", + "privacy", +] ++++ + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +--- + +## YouTube Privacy Enhanced Shortcode + +{{< youtube ZJthWmvUzzc >}} + +
+ +--- + +## Twitter Simple Shortcode + +{{< tweet user="DesignReviewed" id="1085870671291310081" >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/themes/anubis2/exampleSiteMultilingual/hugo.toml b/themes/anubis2/exampleSiteMultilingual/hugo.toml new file mode 100644 index 0000000..bcc2ce6 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/hugo.toml @@ -0,0 +1,139 @@ +baseURL = "https://example.com" +languageCode = "en-us" +defaultContentLanguage = "en" +title = "Anubis2" +theme = "anubis2" +paginate = 3 + +disqusShortname = "" +googleAnalytics = "" + +[author] +name = "Junyi" + +[params] +author = "Junyi" +description = "Anubis2 is another simple minimalist theme for Hugo blog engine." +dateFormat = "2006-01-02" +paginationSinglePost = true +style = "auto" +readMore = false +readNextPosts = 2 +copyCodeButton = true +rssAsSocialIcon = true +locale = "en-us" +mathjax = false +toc = true + +# Graphcomment support +graphcommentId = "" + +# utteranc.es support +utterancesRepo = "" # mandatory +utterancesTheme = "" # optional +utterancesIssue = "" # optional +utterancesLabel = "" # optional + +[[params.social]] +id = "docs" +url = "https://gohugo.io/documentation/" + +[[params.social]] +id = "github" +url = "https://github.com/Junyi-99/hugo-theme-anubis2" + +[languages.en] +languageName = "English" + +[[menu.main]] +identifier = "home" +name = "Home" +url = "/" +weight = 1 + +[[menu.main]] +identifier = "about" +name = "About" +url = "/about/" +weight = 2 + +[[menu.main]] +identifier = "tags" +name = "Tags" +url = "/tags/" +weight = 3 + +[[menu.main]] +name = "Archive" +identifier = "archive" +url = "/posts/" +weight = 4 + +[languages.pl] +languageName = "Polski" + + +[[languages.pl.menu.main]] +identifier = "home" +name = "Strona Główna" +url = "/" +weight = 1 + +[[languages.pl.menu.main]] +identifier = "about" +name = "O Hugo" +url = "/about/" +weight = 2 + +[[languages.pl.menu.main]] +identifier = "tags" +name = "Tagi" +url = "/tags/" +weight = 3 + +[[languages.pl.menu.main]] +identifier = "archive" +name = "Archiwum" +url = "/posts/" +weight = 4 + +[languages.pl.params] +languageCode = "pl-pl" + +[languages.zh] +languageName = "Chinese" + +[[languages.zh.menu.main]] +identifier = "home" +name = "首页" +url = "/" +weight = 1 + +[[languages.zh.menu.main]] +identifier = "about" +name = "关于" +url = "/about/" +weight = 2 + +[[languages.zh.menu.main]] +identifier = "tags" +name = "标签" +url = "/tags/" +weight = 3 + +[[languages.zh.menu.main]] +identifier = "archive" +name = "归档" +url = "/posts/" +weight = 4 + +[languages.zh.params] +languageCode = "zh-cn" + +[taxonomies] +category = "categories" +tag = "tags" +author = "authors" + +[markup.goldmark.renderer] +unsafe = true diff --git a/themes/anubis2/exampleSiteMultilingual/netlify.toml b/themes/anubis2/exampleSiteMultilingual/netlify.toml new file mode 100644 index 0000000..8b1ea78 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/netlify.toml @@ -0,0 +1,8 @@ +[build] +publish = "public" +command = "hugo --gc --minify" + +[context.production.environment] +HUGO_VERSION = "0.115.4" +HUGO_ENV = "production" +HUGO_ENABLEGITINFO = "true" \ No newline at end of file diff --git a/themes/anubis2/exampleSiteMultilingual/static/fa-icons/docs.svg b/themes/anubis2/exampleSiteMultilingual/static/fa-icons/docs.svg new file mode 100644 index 0000000..5380074 --- /dev/null +++ b/themes/anubis2/exampleSiteMultilingual/static/fa-icons/docs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/go.mod b/themes/anubis2/go.mod new file mode 100644 index 0000000..c26ea37 --- /dev/null +++ b/themes/anubis2/go.mod @@ -0,0 +1,3 @@ +module github.com/Junyi-99/hugo-theme-anubis2 + +go 1.18 diff --git a/themes/anubis2/i18n/bn.yaml b/themes/anubis2/i18n/bn.yaml new file mode 100644 index 0000000..5bdcb1a --- /dev/null +++ b/themes/anubis2/i18n/bn.yaml @@ -0,0 +1,41 @@ +powered: + other: "সৌজন্যে" + +theme: + other: "থিম" + +readMore: + other: "আরও" + +toNewPosts: + other: "নতুন প্রচ্ছদ" + +toOldPosts: + other: "পুরানো প্রচ্ছদ" + +tag: + other: "বিভাগ" + +Tags: + other: "বিভাগ" + +Posts: + other: "প্রচ্ছদ" + +category: + other: "শ্রেণী" + +Categories: + other: "শ্রেণী" + +toAllTags: + other: "বিভাগ সমূহ" + +toAllCategories: + other: "শ্রেণী সমূহ" + +skipToContent: + other: "প্রচ্ছদে প্রবেশ করুন" + +readNext: + other: "পরের প্রচ্ছদ" \ No newline at end of file diff --git a/themes/anubis2/i18n/de.yaml b/themes/anubis2/i18n/de.yaml new file mode 100644 index 0000000..16108e1 --- /dev/null +++ b/themes/anubis2/i18n/de.yaml @@ -0,0 +1,41 @@ +powered: + other: "Erstellt mit" + +theme: + other: "Theme" + +readMore: + other: "Weiterlesen" + +toNewPosts: + other: "Zu neueren Beiträgen" + +toOldPosts: + other: "Zu älteren Beiträgen" + +tag: + other: "Schlagwort" + +Tags: + other: "Schlagwörter" + +Posts: + other: "Beiträge" + +category: + other: "Kategorie" + +Categories: + other: "Kategorien" + +toAllTags: + other: "Zu allen Schlagwörtern" + +toAllCategories: + other: "Zu allen Kategorien" + +skipToContent: + other: "Zum Hauptinhalt springen" + +readNext: + other: "Weiter lesen" \ No newline at end of file diff --git a/themes/anubis2/i18n/en.yaml b/themes/anubis2/i18n/en.yaml new file mode 100644 index 0000000..47a60ff --- /dev/null +++ b/themes/anubis2/i18n/en.yaml @@ -0,0 +1,59 @@ +powered: + other: "Powered by" + +theme: + other: "theme" + +readMore: + other: "Read more" + +toNewPosts: + other: "to new posts" + +toOldPosts: + other: "to old posts" + +tag: + other: "tag" + +author: + other: "author" + +Tags: + other: "Tags" + +Posts: + other: "Posts" + +category: + other: "category" + +Categories: + other: "Categories" + +toAllTags: + other: "to all tags" + +toAllAuthors: + other: "to all authors" + +toAllCategories: + other: "to all categories" + +skipToContent: + other: "Skip to main content" + +readNext: + other: "Read next" + +lastMod: + other: "Last modified:" + +toNewPost: + other: "to new post" + +toOldPost: + other: "to old post" + +videoIsNotSupported: + other: "Your browser does not support video" diff --git a/themes/anubis2/i18n/es.yaml b/themes/anubis2/i18n/es.yaml new file mode 100644 index 0000000..e350076 --- /dev/null +++ b/themes/anubis2/i18n/es.yaml @@ -0,0 +1,41 @@ +powered: + other: "Powered by" + +theme: + other: "tema" + +readMore: + other: "Leer más" + +toNewPosts: + other: "a nuevos posts" + +toOldPosts: + other: "a posts antiguos" + +tag: + other: "etiqueta" + +Tags: + other: "Etiquetas" + +Posts: + other: "Posts" + +category: + other: "categoría" + +Categories: + other: "Categorías" + +toAllTags: + other: "a todas las etiquetas" + +toAllCategories: + other: "a todas las categorías" + +skipToContent: + other: "Saltar al contenido principal" + +readNext: + other: "Leer el siguiente" diff --git a/themes/anubis2/i18n/fr.yaml b/themes/anubis2/i18n/fr.yaml new file mode 100644 index 0000000..018cb5f --- /dev/null +++ b/themes/anubis2/i18n/fr.yaml @@ -0,0 +1,41 @@ +powered: + other: "Propulsé par" + +theme: + other: "thème" + +readMore: + other: "Lire la suite" + +toNewPosts: + other: "articles + récents" + +toOldPosts: + other: "articles + anciens" + +tag: + other: "étiquette" + +Tags: + other: "Étiquettes" + +Posts: + other: "Articles" + +category: + other: "catégorie" + +Categories: + other: "Catégories" + +toAllTags: + other: "vers toutes les étiquettes" + +toAllCategories: + other: "vers toutes les catégories" + +skipToContent: + other: "Aller au contenu" + +readNext: + other: "Lire la suite" \ No newline at end of file diff --git a/themes/anubis2/i18n/id.yaml b/themes/anubis2/i18n/id.yaml new file mode 100644 index 0000000..8ea19a6 --- /dev/null +++ b/themes/anubis2/i18n/id.yaml @@ -0,0 +1,41 @@ +powered: + other: "Dipersembahkan oleh" + +theme: + other: "tema" + +readMore: + other: "Selengkapnya.." + +toNewPosts: + other: "ke postingan baru" + +toOldPosts: + other: "ke postingan lama" + +tag: + other: "tag" + +Tags: + other: "Tags" + +Posts: + other: "Tulisan" + +category: + other: "kategori" + +Categories: + other: "Kategori" + +toAllTags: + other: "Lihat semua tags" + +toAllCategories: + other: "Lihat semua kategori" + +skipToContent: + other: "Lompat ke konten" + +readNext: + other: "Baca Selanjutnya" \ No newline at end of file diff --git a/themes/anubis2/i18n/pl.yaml b/themes/anubis2/i18n/pl.yaml new file mode 100644 index 0000000..d9dc79d --- /dev/null +++ b/themes/anubis2/i18n/pl.yaml @@ -0,0 +1,41 @@ +powered: + other: "Zasilany przez" + +theme: + other: "motyw" + +readMore: + other: "Czytaj dalej" + +toNewPosts: + other: "poprzednia strona" + +toOldPosts: + other: "następna strona" + +tag: + other: "tag" + +Tags: + other: "Tagi" + +Posts: + other: "Posty" + +category: + other: "kategoria" + +Categories: + other: "Kategorie" + +toAllTags: + other: "wszystkie tagi" + +toAllCategories: + other: "wszystkie kategorie" + +skipToContent: + other: "Przejdź do głównej zawartości" + +readNext: + other: "Czytaj dalej" \ No newline at end of file diff --git a/themes/anubis2/i18n/pt.yaml b/themes/anubis2/i18n/pt.yaml new file mode 100644 index 0000000..fe9fa8e --- /dev/null +++ b/themes/anubis2/i18n/pt.yaml @@ -0,0 +1,41 @@ +powered: + other: "Criado com" + +theme: + other: "tema" + +readMore: + other: "Ler mais" + +toNewPosts: + other: "novos posts" + +toOldPosts: + other: "posts anteriores" + +tag: + other: "tag" + +Tags: + other: "Tags" + +Posts: + other: "Posts" + +category: + other: "categoria" + +Categories: + other: "Categorias" + +toAllTags: + other: "ver todas as tags" + +toAllCategories: + other: "ver todas as categorias" + +skipToContent: + other: "Pular para o conteúdo principal" + +readNext: + other: "Leia a seguir" \ No newline at end of file diff --git a/themes/anubis2/i18n/ru.yaml b/themes/anubis2/i18n/ru.yaml new file mode 100644 index 0000000..66cd083 --- /dev/null +++ b/themes/anubis2/i18n/ru.yaml @@ -0,0 +1,56 @@ +powered: + other: "Движок" + +theme: + other: "тема" + +readMore: + other: "Читать дальше" + +toNewPosts: + other: "к новым записям" + +toOldPosts: + other: "к старым записям" + +tag: + other: "тег" + +Tags: + other: "Теги" + +Posts: + other: "Записи" + +category: + other: "Категория" + +Categories: + other: "Категории" + +toAllTags: + other: "к списку тегов" + +toAllAuthors: + other: "к списку авторов" + +toAllCategories: + other: "к списку категорий" + +skipToContent: + other: "Перейти к основному контенту" + +readNext: + other: "Читать далее" + +lastMod: + other: "Отредактировано:" + +toNewPost: + other: "к новой записи" + +toOldPost: + other: "к старой записи" + +videoIsNotSupported: + other: "Ваш браузер не поддерживает видео" \ No newline at end of file diff --git a/themes/anubis2/i18n/tw.yaml b/themes/anubis2/i18n/tw.yaml new file mode 100644 index 0000000..5a42c8c --- /dev/null +++ b/themes/anubis2/i18n/tw.yaml @@ -0,0 +1,41 @@ +powered: + other: "提供" + +theme: + other: "主題" + +readMore: + other: "繼續閱讀" + +toNewPosts: + other: "新文章" + +toOldPosts: + other: "舊文章" + +tag: + other: "標籤" + +Tags: + other: "標籤" + +Posts: + other: "文章" + +category: + other: "類別" + +Categories: + other: "類別" + +toAllTags: + other: "所有標籤" + +toAllCategories: + other: "所有類別" + +skipToContent: + other: "跳至內容" + +readNext: + other: "閱讀下一篇" \ No newline at end of file diff --git a/themes/anubis2/i18n/zh-cn.yaml b/themes/anubis2/i18n/zh-cn.yaml new file mode 100644 index 0000000..caeffc8 --- /dev/null +++ b/themes/anubis2/i18n/zh-cn.yaml @@ -0,0 +1,47 @@ +powered: + other: "提供" + +theme: + other: "主題" + +readMore: + other: "继续阅读" + +toNewPosts: + other: "新文章" + +toOldPosts: + other: "旧文章" + +tag: + other: "标签" + +author: + other: "作者" + +Tags: + other: "标签" + +Posts: + other: "文章" + +category: + other: "类别" + +Categories: + other: "类别" + +toAllTags: + other: "所有标签" + +toAllAuthors: + other: "所有作者" + +toAllCategories: + other: "所有类别" + +skipToContent: + other: "跳至内容" + +readNext: + other: "继续阅读" diff --git a/themes/anubis2/images/screenshot.png b/themes/anubis2/images/screenshot.png new file mode 100644 index 0000000..6a05592 Binary files /dev/null and b/themes/anubis2/images/screenshot.png differ diff --git a/themes/anubis2/images/tn.png b/themes/anubis2/images/tn.png new file mode 100644 index 0000000..4ea3f8f Binary files /dev/null and b/themes/anubis2/images/tn.png differ diff --git a/themes/anubis2/layouts/404.html b/themes/anubis2/layouts/404.html new file mode 100644 index 0000000..4ad6603 --- /dev/null +++ b/themes/anubis2/layouts/404.html @@ -0,0 +1,8 @@ +{{ define "main"}} +
+
+

Go Home

+ Sorry, this Page is not available. +
+
+{{ end }} \ No newline at end of file diff --git a/themes/anubis2/layouts/_default/_markup/render-heading.html b/themes/anubis2/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..7c7f3ec --- /dev/null +++ b/themes/anubis2/layouts/_default/_markup/render-heading.html @@ -0,0 +1,8 @@ + +
+ + {{ range seq 2 .Level}}#{{end}} + + {{ .Text | safeHTML }} +
+
\ No newline at end of file diff --git a/themes/anubis2/layouts/_default/baseof.html b/themes/anubis2/layouts/_default/baseof.html new file mode 100644 index 0000000..52d8086 --- /dev/null +++ b/themes/anubis2/layouts/_default/baseof.html @@ -0,0 +1,28 @@ + +{{ $dataTheme := "" }} +{{ if eq site.Params.style "dark-without-switcher" }} + {{ $dataTheme = "dark" }} +{{ end }} + + + {{ block "head" . }} + {{ partial "head.html" . }} + {{ end }} + + + {{ i18n "skipToContent" }} +
+
+ {{ block "header" . }} + {{ partial "header.html" . }} + {{ end }} +
+
+ {{ block "main" . }}{{ end }} +
+ {{ block "footer" . }} + {{ partial "footer.html" . }} + {{ end }} +
+ + diff --git a/themes/anubis2/layouts/_default/list.html b/themes/anubis2/layouts/_default/list.html new file mode 100644 index 0000000..ea25bcf --- /dev/null +++ b/themes/anubis2/layouts/_default/list.html @@ -0,0 +1,35 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +
+

{{ i18n .Title | markdownify }}

+ {{ $showFullContent := in .Site.Params.sectionsWithFullContentOnListPage .Section }} + {{ $pages := where .Pages "Params.hidden" "!=" true}} + + {{ $pagesRange := $pages}} + {{ if $showFullContent }} + {{ $pagesRange = (.Paginate $pages).Pages }} + {{ end}} + + {{ range $pagesRange }} +
+
+
+

{{ trim .Title " " | markdownify }}

+ {{ partial "post-language-switcher.html" . }} +
+
+ {{ if $showFullContent }} + {{ .Content }} + {{ end }} + {{ partial "post-info.html" . }} +
+ {{ end }} + {{ if $showFullContent }} + {{ partial "pagination.html" . }} + {{ end}} +
+ +{{ end }} \ No newline at end of file diff --git a/themes/anubis2/layouts/_default/rss.xml b/themes/anubis2/layouts/_default/rss.xml new file mode 100644 index 0000000..cc620f4 --- /dev/null +++ b/themes/anubis2/layouts/_default/rss.xml @@ -0,0 +1,34 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := where (where $pctx.RegularPages ".Params.disable_feed" "!=" true) "Params.hidden" "!=" true -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + {{ .Site.Title }}{{ if ne .Title .Site.Title }}{{ with .Title }} ({{.}}){{ end }}{{ end }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/themes/anubis2/layouts/_default/single.html b/themes/anubis2/layouts/_default/single.html new file mode 100644 index 0000000..38f3b57 --- /dev/null +++ b/themes/anubis2/layouts/_default/single.html @@ -0,0 +1,44 @@ +{{ define "main" }} + {{ if .Menus }} + + {{ end }} + +
+
+
+

{{ trim .Title " " | markdownify }}

+ {{ partial "post-language-switcher.html" . }} +
+ {{ partial "post-info.html" . }} +
+ {{ partial "toc.html" .}} +
+ {{ .Content }} +
+ +
+ + {{ if gt .Site.Params.readNextPosts 0 }} + {{ $related := .Site.RegularPages.Related . | first .Site.Params.readNextPosts }} + {{ with $related }} +
+ + {{ end }} + {{ end }} + + {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} + {{ partial "post-pagination.html" . }} + {{ end }} + + {{ if not .Params.disableComments }} + {{ partial "comments.html" . }} + {{ end }} +{{ end }} diff --git a/themes/anubis2/layouts/_default/sitemap.xml b/themes/anubis2/layouts/_default/sitemap.xml new file mode 100644 index 0000000..eb83a60 --- /dev/null +++ b/themes/anubis2/layouts/_default/sitemap.xml @@ -0,0 +1,24 @@ +{{ printf "" | safeHTML }} + + {{ range where .Data.Pages "Params.hidden" "!=" true }} + {{- if .Permalink -}} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} + + {{- end -}} + {{ end }} + diff --git a/themes/anubis2/layouts/_default/taxonomy.html b/themes/anubis2/layouts/_default/taxonomy.html new file mode 100644 index 0000000..85bfe54 --- /dev/null +++ b/themes/anubis2/layouts/_default/taxonomy.html @@ -0,0 +1,12 @@ +{{ define "main" }} +

{{ i18n .Data.Singular | humanize | markdownify }}: {{ .Title | markdownify }}

+
+ {{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }} +
+ {{ $pages := where .Pages "Params.hidden" "!=" true }} + {{ range (.Paginate $pages).Pages }} + {{ partial "post-summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} + +{{ end }} diff --git a/themes/anubis2/layouts/_default/terms.html b/themes/anubis2/layouts/_default/terms.html new file mode 100644 index 0000000..2eb6d47 --- /dev/null +++ b/themes/anubis2/layouts/_default/terms.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +

{{ i18n .Title | markdownify }}

+ + +{{ end }} \ No newline at end of file diff --git a/themes/anubis2/layouts/index.html b/themes/anubis2/layouts/index.html new file mode 100644 index 0000000..44f2764 --- /dev/null +++ b/themes/anubis2/layouts/index.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +
+ {{ $pages := where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.hidden" "!=" true }} + {{ range (.Paginate $pages).Pages }} + {{ partial "post-summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} +
+ +{{ end }} \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/comments.html b/themes/anubis2/layouts/partials/comments.html new file mode 100644 index 0000000..e58321f --- /dev/null +++ b/themes/anubis2/layouts/partials/comments.html @@ -0,0 +1,19 @@ +{{ if .Site.DisqusShortname }} + {{ partial "disqus.html" . }} +{{ end }} + +{{ if .Site.Params.UtterancesRepo }} + {{ partial "utterances.html" . }} +{{ end }} + +{{ if .Site.Params.isso.enabled }} + {{ partial "isso.html" . }} +{{ end }} + +{{ if .Site.Params.graphcommentId }} + {{ partial "graphcomment.html" . }} +{{ end }} + +{{ if .Site.Params.GiscusRepo}} + {{ partial "giscus.html" . }} +{{ end}} \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/disqus.html b/themes/anubis2/layouts/partials/disqus.html new file mode 100644 index 0000000..0b59e05 --- /dev/null +++ b/themes/anubis2/layouts/partials/disqus.html @@ -0,0 +1 @@ +{{ template "_internal/disqus.html" . }} diff --git a/themes/anubis2/layouts/partials/fa-icons/email.svg b/themes/anubis2/layouts/partials/fa-icons/email.svg new file mode 100644 index 0000000..24e6760 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/facebook.svg b/themes/anubis2/layouts/partials/fa-icons/facebook.svg new file mode 100644 index 0000000..77829b4 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/github.svg b/themes/anubis2/layouts/partials/fa-icons/github.svg new file mode 100644 index 0000000..1a4d15c --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/halfcircle.svg b/themes/anubis2/layouts/partials/fa-icons/halfcircle.svg new file mode 100644 index 0000000..e2639e2 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/halfcircle.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/instagram.svg b/themes/anubis2/layouts/partials/fa-icons/instagram.svg new file mode 100644 index 0000000..46aab1a --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/linkedin.svg b/themes/anubis2/layouts/partials/fa-icons/linkedin.svg new file mode 100644 index 0000000..95faf46 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/mastodon.svg b/themes/anubis2/layouts/partials/fa-icons/mastodon.svg new file mode 100644 index 0000000..8532bd0 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/patreon.svg b/themes/anubis2/layouts/partials/fa-icons/patreon.svg new file mode 100644 index 0000000..5eae6c0 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/patreon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/reddit.svg b/themes/anubis2/layouts/partials/fa-icons/reddit.svg new file mode 100644 index 0000000..2de59d4 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/reddit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/rss.svg b/themes/anubis2/layouts/partials/fa-icons/rss.svg new file mode 100644 index 0000000..606aa89 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/rss.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/snapchat.svg b/themes/anubis2/layouts/partials/fa-icons/snapchat.svg new file mode 100644 index 0000000..ecf5cf4 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/snapchat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/soundcloud.svg b/themes/anubis2/layouts/partials/fa-icons/soundcloud.svg new file mode 100644 index 0000000..0901cd1 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/soundcloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/spotify.svg b/themes/anubis2/layouts/partials/fa-icons/spotify.svg new file mode 100644 index 0000000..718d287 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/spotify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/telegram.svg b/themes/anubis2/layouts/partials/fa-icons/telegram.svg new file mode 100644 index 0000000..d60b094 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/telegram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/twitch.svg b/themes/anubis2/layouts/partials/fa-icons/twitch.svg new file mode 100644 index 0000000..a3c407a --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/twitch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/twitter.svg b/themes/anubis2/layouts/partials/fa-icons/twitter.svg new file mode 100644 index 0000000..3db10f6 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/vk.svg b/themes/anubis2/layouts/partials/fa-icons/vk.svg new file mode 100644 index 0000000..960003d --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/vk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/fa-icons/youtube.svg b/themes/anubis2/layouts/partials/fa-icons/youtube.svg new file mode 100644 index 0000000..adfe427 --- /dev/null +++ b/themes/anubis2/layouts/partials/fa-icons/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/favicons.html b/themes/anubis2/layouts/partials/favicons.html new file mode 100644 index 0000000..bb271a1 --- /dev/null +++ b/themes/anubis2/layouts/partials/favicons.html @@ -0,0 +1,2 @@ + + diff --git a/themes/anubis2/layouts/partials/font-awesome.html b/themes/anubis2/layouts/partials/font-awesome.html new file mode 100644 index 0000000..3ee0f18 --- /dev/null +++ b/themes/anubis2/layouts/partials/font-awesome.html @@ -0,0 +1,52 @@ + + +{{ $dict := newScratch }} + +{{ if (eq .iconName "github") }} + + + + +{{ else if (eq .iconName "theme-dark" )}} + +{{ else if (eq .iconName "theme-light")}} + + + + + + + + + + + + +{{ else if (eq .iconName "docs")}} + + + + + + + + +{{ else if (eq .iconName "rss")}} + + + + + + +{{ else }} + {{ if (eq .custom true) }} + {{ $dict.Set "svg" (readFile (print "static/fa-icons/" .iconName ".svg")) }} + {{ else }} + {{ $dict.Set "svg" (partial (print "fa-icons/" .iconName ".svg")) }} + {{ end }} +{{ end }} +{{- $path:=" diff --git a/themes/anubis2/layouts/partials/footer-extra.html b/themes/anubis2/layouts/partials/footer-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/themes/anubis2/layouts/partials/footer-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/footer.html b/themes/anubis2/layouts/partials/footer.html new file mode 100644 index 0000000..96b31ed --- /dev/null +++ b/themes/anubis2/layouts/partials/footer.html @@ -0,0 +1,27 @@ +
+ {{ $languagesCount := $.Site.Home.AllTranslations }} + {{ if gt $languagesCount 1 }} + {{ partial "language-switcher.html" . }} + {{ end }} + + + + {{ partial "h-card.html" . }} +
diff --git a/themes/anubis2/layouts/partials/giscus.html b/themes/anubis2/layouts/partials/giscus.html new file mode 100644 index 0000000..b879c18 --- /dev/null +++ b/themes/anubis2/layouts/partials/giscus.html @@ -0,0 +1,24 @@ +{{ $theme := .Site.Params.GiscusTheme | default "preferred_color_scheme" }} +{{ $mapping := .Site.Params.GiscusDataMapping | default "og:title" }} +{{ $language := .Site.Params.GiscusLang | default "en" }} +{{ $category := .Site.Params.GiscusDiscussionCategory | default "Announcements" }} +{{ $lazyload := .Site.Params.GiscusLazyLoad | default false }} + + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/graphcomment.html b/themes/anubis2/layouts/partials/graphcomment.html new file mode 100644 index 0000000..9cd1d28 --- /dev/null +++ b/themes/anubis2/layouts/partials/graphcomment.html @@ -0,0 +1,32 @@ +
+ diff --git a/themes/anubis2/layouts/partials/h-card.html b/themes/anubis2/layouts/partials/h-card.html new file mode 100644 index 0000000..66cf479 --- /dev/null +++ b/themes/anubis2/layouts/partials/h-card.html @@ -0,0 +1,13 @@ +

+ + {{ .Site.Params.author }} + + {{ if .Site.Params.email }} + / + + {{ end }} + + {{ if .Site.Params.avatar }} + + {{ end }} +

\ No newline at end of file diff --git a/themes/anubis2/layouts/partials/head-extra.html b/themes/anubis2/layouts/partials/head-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/themes/anubis2/layouts/partials/head-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/head.html b/themes/anubis2/layouts/partials/head.html new file mode 100644 index 0000000..5e3610c --- /dev/null +++ b/themes/anubis2/layouts/partials/head.html @@ -0,0 +1,83 @@ + + + + + + +{{ partial "title.html" . }} + + +{{ with .Keywords }} + +{{ end }} + +{{ if and (.IsPage) (eq .Params.hidden true)}} + +{{ end }} + +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} + +{{ partial "favicons.html" . }} + +{{ $style := "light-without-switcher" }} +{{ if and (isset site.Params "style") (ne site.Params.style "") }} + {{ $style = site.Params.style | lower }} +{{ end }} + +{{ if not (in (slice "light-without-switcher" "dark-without-switcher") $style) }} + + + +{{end}} + +{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }} + +{{ if .Site.Params.copyCodeButton | default true }} + {{ partial "resource.html" (dict "context" . "type" "js" "filename" "js/copy-code.js") }} +{{ end }} + +{{ range .Site.Params.customJS -}} + {{ partial "resource.html" (dict "context" $ "type" "js" "filename" . ) }} +{{- end }} + +{{ if isset .Site.Params "webmentions" }} + {{ if isset .Site.Params.webmentions "login" }} + + {{ if eq .Site.Params.webmentions.pingback true }} + + {{ end }} + {{ end }} + {{ if isset .Site.Params.webmentions "url" }} + + {{ end }} +{{ end }} + + + + +{{ if and (.Site.GoogleAnalytics) (hugo.IsProduction) }} + {{ template "_internal/google_analytics.html" . }} +{{ end }} + +{{ if (.Site.Params.UmamiAnalytics.enabled ) }} + {{ partial "umami_analytics.html" . }} +{{ end }} + +{{ partial "head-extra.html" . }} diff --git a/themes/anubis2/layouts/partials/header-extra.html b/themes/anubis2/layouts/partials/header-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/themes/anubis2/layouts/partials/header-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/header.html b/themes/anubis2/layouts/partials/header.html new file mode 100644 index 0000000..a3a37cf --- /dev/null +++ b/themes/anubis2/layouts/partials/header.html @@ -0,0 +1,25 @@ +
+
+ {{ partial "site-title.html" . }} + {{ partial "theme-switcher.html" . }} + {{ partial "social.html" . }} +
+
+ +
+
+ +{{ if .Site.Menus.main }} + +{{ else }} + +{{ end }} + +{{ if .Site.Params.mathjax }}{{ partial "mathjax_support.html" . }}{{ end }} + +{{ partial "header-extra.html" . }} \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/isso.html b/themes/anubis2/layouts/partials/isso.html new file mode 100644 index 0000000..34b0670 --- /dev/null +++ b/themes/anubis2/layouts/partials/isso.html @@ -0,0 +1,25 @@ +{{ $lang := .Site.Params.isso.lang | default "en" }} +{{ $css := .Site.Params.isso.css | default "true" }} +{{ $id := .Site.Params.isso.id | default "true" }} +{{ $avatar := .Site.Params.isso.avatar | default "true" }} +{{ $avatarbg := .Site.Params.isso.avatarbg | default "#f0f0f0" }} +{{ $feed := .Site.Params.isso.feed | default "false" }} +
+ + +
+
+
+
diff --git a/themes/anubis2/layouts/partials/language-switcher.html b/themes/anubis2/layouts/partials/language-switcher.html new file mode 100644 index 0000000..df9c6ef --- /dev/null +++ b/themes/anubis2/layouts/partials/language-switcher.html @@ -0,0 +1,15 @@ + diff --git a/themes/anubis2/layouts/partials/mathjax_support.html b/themes/anubis2/layouts/partials/mathjax_support.html new file mode 100644 index 0000000..0dc7dd1 --- /dev/null +++ b/themes/anubis2/layouts/partials/mathjax_support.html @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/pagination-extra.html b/themes/anubis2/layouts/partials/pagination-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/themes/anubis2/layouts/partials/pagination-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/pagination.html b/themes/anubis2/layouts/partials/pagination.html new file mode 100644 index 0000000..63cdcc6 --- /dev/null +++ b/themes/anubis2/layouts/partials/pagination.html @@ -0,0 +1,16 @@ +{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }} + {{ $toNewPostsMessage := i18n "toNewPosts" }} + {{ $toOldPostsMessage := i18n "toOldPosts" }} + +{{ end }} diff --git a/themes/anubis2/layouts/partials/post-info.html b/themes/anubis2/layouts/partials/post-info.html new file mode 100644 index 0000000..641b66a --- /dev/null +++ b/themes/anubis2/layouts/partials/post-info.html @@ -0,0 +1,51 @@ +{{ $dateFormat := "2006-01-02" }} +{{ if .Site.Params.dateFormat }} + {{ $dateFormat = .Site.Params.dateFormat }} +{{ end }} +{{ $machineDateFormat := "2006-01-02" }} + + diff --git a/themes/anubis2/layouts/partials/post-language-switcher.html b/themes/anubis2/layouts/partials/post-language-switcher.html new file mode 100644 index 0000000..e814393 --- /dev/null +++ b/themes/anubis2/layouts/partials/post-language-switcher.html @@ -0,0 +1,18 @@ +{{ if .IsTranslated }} + {{ $pageLang := .Page.Lang}} + +
    + {{ range (sort .AllTranslations ".Lang" "asc" ) }} + {{ if eq .Lang $pageLang }} +
  • + {{ upper .Lang }} +
  • + {{ else }} +
  • + {{ upper .Lang }} +
  • + {{ end }} + {{ end }} +
+
+{{ end }} \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/post-pagination.html b/themes/anubis2/layouts/partials/post-pagination.html new file mode 100644 index 0000000..b6a1c87 --- /dev/null +++ b/themes/anubis2/layouts/partials/post-pagination.html @@ -0,0 +1,18 @@ +{{ if or ( .PrevInSection ) ( .NextInSection ) }} + {{ $toNewPostMessage := i18n "toNewPost" }} + {{ $toOldPostMessage := i18n "toOldPost" }} + +{{ end }} + +{{ partial "pagination-extra.html" . }} diff --git a/themes/anubis2/layouts/partials/post-summary.html b/themes/anubis2/layouts/partials/post-summary.html new file mode 100644 index 0000000..72f5148 --- /dev/null +++ b/themes/anubis2/layouts/partials/post-summary.html @@ -0,0 +1,21 @@ +
+
+
+

{{ trim .Title " " | markdownify }}

+
+ {{ partial "post-language-switcher.html" . }} +
+ + {{ if not .Site.Params.disableSummary }} +
+ {{ .Summary | safeHTML }} +
+ {{ end }} + {{ if and (.Truncated) (.Site.Params.readMore) }} + + {{ end }} + + {{ partial "post-info.html" . }} +
\ No newline at end of file diff --git a/themes/anubis2/layouts/partials/resource.html b/themes/anubis2/layouts/partials/resource.html new file mode 100644 index 0000000..1ecc5e5 --- /dev/null +++ b/themes/anubis2/layouts/partials/resource.html @@ -0,0 +1,29 @@ +{{ $targetFilename := "file" }} +{{ if eq .type "css" }} + {{ $targetFilename = "css/style.css"}} +{{ else if eq .type "js" }} + {{ $targetFilename = "js/script.js"}} +{{ end }} + +{{ $resource := resources.Get .filename }} + +{{ if $resource }} + {{ $resource := $resource | resources.ExecuteAsTemplate $targetFilename . }} + {{ if hugo.IsProduction }} + {{ $resource = $resource | resources.Minify }} + {{ end }} + {{ $resource = $resource | resources.Fingerprint "sha256" }} + + {{ if eq .type "css" }} + + {{ else if eq .type "js" }} + + {{ end }} + +{{ else }} + {{ if eq .type "css" }} + + {{ else if eq .type "js" }} + + {{ end }} +{{ end }} diff --git a/themes/anubis2/layouts/partials/site-title.html b/themes/anubis2/layouts/partials/site-title.html new file mode 100644 index 0000000..6ed0d70 --- /dev/null +++ b/themes/anubis2/layouts/partials/site-title.html @@ -0,0 +1,3 @@ +

+ {{ .Site.Title }} +

\ No newline at end of file diff --git a/themes/anubis2/layouts/partials/social.html b/themes/anubis2/layouts/partials/social.html new file mode 100644 index 0000000..e358068 --- /dev/null +++ b/themes/anubis2/layouts/partials/social.html @@ -0,0 +1,37 @@ + \ No newline at end of file diff --git a/themes/anubis2/layouts/partials/theme-switcher.html b/themes/anubis2/layouts/partials/theme-switcher.html new file mode 100644 index 0000000..a2e22f9 --- /dev/null +++ b/themes/anubis2/layouts/partials/theme-switcher.html @@ -0,0 +1,79 @@ +{{ $style := "light-without-switcher" }} +{{ if and (isset site.Params "style") (ne site.Params.style "") }} + {{ $style = site.Params.style | lower }} +{{ end }} + +{{ if not (in (slice "light-without-switcher" "dark-without-switcher") $style) }} + {{ if ne "auto-without-switcher" $style }} +
+ {{ partial "font-awesome.html" (dict "iconName" "theme-light" "custom" false) }} +
+ {{ end }} + + +{{ end }} diff --git a/themes/anubis2/layouts/partials/title.html b/themes/anubis2/layouts/partials/title.html new file mode 100644 index 0000000..6302922 --- /dev/null +++ b/themes/anubis2/layouts/partials/title.html @@ -0,0 +1 @@ +{{ if and (.Title) (not .IsHome) }}{{ .Title | markdownify }} - {{ end }}{{ .Site.Title | markdownify }} diff --git a/themes/anubis2/layouts/partials/toc.html b/themes/anubis2/layouts/partials/toc.html new file mode 100644 index 0000000..c770f73 --- /dev/null +++ b/themes/anubis2/layouts/partials/toc.html @@ -0,0 +1,32 @@ +{{ $toc := and ($.Site.Params.toc) (ge .WordCount $.Site.Params.tocWordCount) }} +{{ if isset .Params "toc" }} + {{ $toc = .Params.toc }} +{{ end }} + + +{{ if $toc }} + {{ $tocContent := .TableOfContents }} + {{ if findRE "
  • " $tocContent }} + +
    + Table of Contents +
    {{ .TableOfContents }}
    +
    + {{ end }} +{{ end }} + + + diff --git a/themes/anubis2/layouts/partials/umami_analytics.html b/themes/anubis2/layouts/partials/umami_analytics.html new file mode 100644 index 0000000..e0d84b9 --- /dev/null +++ b/themes/anubis2/layouts/partials/umami_analytics.html @@ -0,0 +1,3 @@ +{{ $dnt := .Site.Params.UmamiAnalytics.dnt | default "false" }} +{{ $datacache := .Site.Params.UmamiAnalytics.datacache | default "false" }} + diff --git a/themes/anubis2/layouts/partials/utterances.html b/themes/anubis2/layouts/partials/utterances.html new file mode 100644 index 0000000..1c633a7 --- /dev/null +++ b/themes/anubis2/layouts/partials/utterances.html @@ -0,0 +1,11 @@ +{{ $theme := .Site.Params.UtterancesTheme | default "github-light" }} +{{ $label := .Site.Params.UtterancesLabel | default "" }} +{{ $issue := .Site.Params.UtterancesIssue | default "url" }} + \ No newline at end of file diff --git a/themes/anubis2/layouts/robots.txt b/themes/anubis2/layouts/robots.txt new file mode 100644 index 0000000..2e1d1eb --- /dev/null +++ b/themes/anubis2/layouts/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +# robotstxt.org - if environment is not `production` then robots will be disallowed. +{{ if hugo.IsProduction }} + Disallow: +{{ else }} + Disallow: / +{{ end }} diff --git a/themes/anubis2/layouts/shortcodes/video.html b/themes/anubis2/layouts/shortcodes/video.html new file mode 100644 index 0000000..c950670 --- /dev/null +++ b/themes/anubis2/layouts/shortcodes/video.html @@ -0,0 +1,20 @@ + +{{ if .Get "caption" }} +
    + {{ .Get "caption" | markdownify }} +
    +{{ end }} + diff --git a/themes/anubis2/netlify.toml b/themes/anubis2/netlify.toml new file mode 100644 index 0000000..c81d590 --- /dev/null +++ b/themes/anubis2/netlify.toml @@ -0,0 +1,15 @@ +[build] +publish = "exampleSiteMultilingual/public" +command = "cd exampleSiteMultilingual && hugo --themesDir=../.. --baseURL $URL" + +[build.environment] +HUGO_VERSION = "0.115.4" +HUGO_THEME = "repo" + +[context.deploy-preview] +command = "cd exampleSiteMultilingual && hugo --themesDir=../.. --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL" + +[[headers]] + for = "/*" + [headers.values] + Access-Control-Allow-Origin = "*" diff --git a/themes/anubis2/theme.toml b/themes/anubis2/theme.toml new file mode 100644 index 0000000..c62cfd2 --- /dev/null +++ b/themes/anubis2/theme.toml @@ -0,0 +1,25 @@ +name = "Anubis2" +license = "MIT" +licenselink = "https://github.com/Junyi-99/hugo-theme-anubis2/blob/master/LICENSE" +description = "A minimal Hugo theme" +homepage = "https://github.com/Junyi-99/hugo-theme-anubis2" +demosite = "https://hugo-theme-anubis2.netlify.app/" +tags = [ + "blog", + "responsive", + "personal", + "minimal", + "clean", + "simple", + "light", + "dark", + "google-analytics", + "mobile", + "fast", + "multilingual" +] +features = ["blog"] + +[author] + name = "Junyi" + homepage = "https://www.junyi.dev/"