commit 5aa2cbb7d74e9284d2e631fc9e5ff64b6642dc04 Author: bel Date: Sun Nov 28 22:04:01 2021 -0700 initial diff --git a/blog/.gitignore b/blog/.gitignore new file mode 100644 index 0000000..c75eecc --- /dev/null +++ b/blog/.gitignore @@ -0,0 +1 @@ +/public diff --git a/blog/.gitmodules b/blog/.gitmodules new file mode 100644 index 0000000..e69de29 diff --git a/blog/TODO.md b/blog/TODO.md new file mode 100644 index 0000000..22cae70 --- /dev/null +++ b/blog/TODO.md @@ -0,0 +1,2 @@ +* https://posativ.org/isso/docs/quickstart/ + * https://stiobhart.net/2017-02-24-isso-comments/ diff --git a/blog/archetypes/default.md b/blog/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/blog/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/blog/build.sh b/blog/build.sh new file mode 100644 index 0000000..63d5fa4 --- /dev/null +++ b/blog/build.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +set -e + +cleanup() { + rm -rf ./public +} +trap cleanup EXIT + +hugo -D --gc +simpleserve -d ./public/ -p 35813 diff --git a/blog/config.yaml b/blog/config.yaml new file mode 100644 index 0000000..32b94c9 --- /dev/null +++ b/blog/config.yaml @@ -0,0 +1,72 @@ +baseURL: '' +languageCode: 'en-us' +title: 'Site Title' +theme: "anubis" +paginate: 5 +paginatePath: "posts/-/pages" +enableRobotsTXT: true +disableLiveReload: true +minify: true +noHTTPCache: true +disableFastRender: true +rssLimit: 5 +canonifyurls: true +relativeurls: false + +params: + toc: true + author: "me" + email: "" + avatar: "" + description: "" + #customJS: [ "js/main.js" ] # relative to ./assets/ + dateFormat: "2006-01-02" + paginationSinglePost: false + style: light + #style: auto-without-switcher + #style: light-without-switcher + readMore: true + disableSummary: false + social: + - id: email + name: contact + #- id: linkedin + # name: lapoba16 + #- id: spotify + # name: rss + # #url: '{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}' + # url: '/index.xml' + +menu: + main: + - identifier: archive + name: Archive + title: Archive + url: /posts/ + weight: 0 + +markup: + defaultMarkdownHandler: goldmark + goldmark: + extensions: + linkify: true + strikethrough: true + table: true + taskList: true + parser: + autoHeadingID: true + autoHeadingIDType: github + renderer: + unsafe: true # raw HTML OK + highlight: + anchorLineNos: true + guessSyntax: true + lineNos: true + tabWidth: 3 + tableOfContents: + endLevel: 3 + ordered: false + startLevel: 2 + +permalinks: + posts: /posts/:year-:month-:day-:filename diff --git a/blog/content/_index.md b/blog/content/_index.md new file mode 100644 index 0000000..6abc75e --- /dev/null +++ b/blog/content/_index.md @@ -0,0 +1,4 @@ ++++ +author = "Hugo Authors" ++++ + diff --git a/blog/content/about-subpage.md b/blog/content/about-subpage.md new file mode 100644 index 0000000..1d1dc16 --- /dev/null +++ b/blog/content/about-subpage.md @@ -0,0 +1,23 @@ +--- +title: "Subpage" +description: "Just a subpage of about" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage +menu: + about: + identifier: about + name: About + title: About + url: /about + weight: 1 + subpage: + identifier: subpage + parent: about + name: Subpage + title: Subpage + url: /about/subpage/ + weight: 10 +--- + +Just a subpage of About. diff --git a/blog/content/about.md b/blog/content/about.md new file mode 100644 index 0000000..627e661 --- /dev/null +++ b/blog/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: + name: About + title: About + url: /about + weight: 1 + subpage: + parent: about + name: Subpage + title: Subpage + url: /about/subpage + weight: 10 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly 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/blog/content/archives.md b/blog/content/archives.md new file mode 100644 index 0000000..98a1ee9 --- /dev/null +++ b/blog/content/archives.md @@ -0,0 +1,5 @@ +--- +date: 2019-05-28 +type: section +layout: "archives" +--- \ No newline at end of file diff --git a/blog/content/homepage/about.md b/blog/content/homepage/about.md new file mode 100644 index 0000000..c2ba680 --- /dev/null +++ b/blog/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/blog/content/homepage/index.md b/blog/content/homepage/index.md new file mode 100644 index 0000000..01ffa31 --- /dev/null +++ b/blog/content/homepage/index.md @@ -0,0 +1,3 @@ +--- +headless : true +--- diff --git a/blog/content/homepage/work.md b/blog/content/homepage/work.md new file mode 100644 index 0000000..f2fee73 --- /dev/null +++ b/blog/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/blog/content/myfile b/blog/content/myfile new file mode 100644 index 0000000..71417a2 --- /dev/null +++ b/blog/content/myfile @@ -0,0 +1,6 @@ +--- +title: "Myfile" +date: 2021-11-28T21:09:38-07:00 +draft: true +--- + diff --git a/blog/content/posts/2021/08/16/initial.md b/blog/content/posts/2021/08/16/initial.md new file mode 100644 index 0000000..2ac4399 --- /dev/null +++ b/blog/content/posts/2021/08/16/initial.md @@ -0,0 +1,14 @@ ++++ +title = "Initial Post" +date = "2021-08-16" +description = "Description" +tags = [ + "woo" +] ++++ + +# Initial Post Header + +## Header2 + +P p p diff --git a/blog/content/posts/_index.md b/blog/content/posts/_index.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/blog/content/posts/_index.md @@ -0,0 +1,6 @@ ++++ +aliases = ["posts","articles","blog","showcase","docs"] +title = "Posts" +author = "Hugo Authors" +tags = ["index"] ++++ diff --git a/blog/content/posts/emoji-support.md b/blog/content/posts/emoji-support.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/blog/content/posts/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/blog/content/posts/help b/blog/content/posts/help new file mode 100644 index 0000000..73ca403 --- /dev/null +++ b/blog/content/posts/help @@ -0,0 +1,6 @@ +--- +title: "Help" +date: 2021-11-28T20:36:43-07:00 +draft: true +--- + diff --git a/blog/content/posts/markdown-syntax.md b/blog/content/posts/markdown-syntax.md new file mode 100644 index 0000000..2d8bcf1 --- /dev/null +++ b/blog/content/posts/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", +] +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/blog/content/posts/math-typesetting.md b/blog/content/posts/math-typesetting.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/blog/content/posts/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/blog/content/posts/placeholder-text.md b/blog/content/posts/placeholder-text.md new file mode 100644 index 0000000..29ff09f --- /dev/null +++ b/blog/content/posts/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/blog/content/posts/rich-content.md b/blog/content/posts/rich-content.md new file mode 100644 index 0000000..407c539 --- /dev/null +++ b/blog/content/posts/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 + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/blog/layouts/_default/single.html b/blog/layouts/_default/single.html new file mode 100644 index 0000000..224216e --- /dev/null +++ b/blog/layouts/_default/single.html @@ -0,0 +1,35 @@ +{{ define "main" }} + {{ if .Menus }} + + {{ end }} + +
+
+

{{ trim .Title " " }}

+ + {{ partial "post-language-switcher.html" . }} +
+ {{ partial "post-toc.html" . }} +
+ {{ .Content }} +
+ {{ partial "post-info.html" . }} +
+ + {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} + {{ partial "post-pagination.html" . }} + {{ end }} + + {{ if .Site.DisqusShortname }} + {{ template "_internal/disqus.html" . }} + {{ end }} + + {{ if .Site.Params.UtterancesRepo }} + {{ partial "utterances.html" . }} + {{ end }} + +{{ end }} diff --git a/blog/layouts/partials/footer-comment.html b/blog/layouts/partials/footer-comment.html new file mode 100644 index 0000000..99568c9 --- /dev/null +++ b/blog/layouts/partials/footer-comment.html @@ -0,0 +1,11 @@ +
+ + diff --git a/blog/layouts/partials/footer.html b/blog/layouts/partials/footer.html new file mode 100644 index 0000000..f310c8c --- /dev/null +++ b/blog/layouts/partials/footer.html @@ -0,0 +1,31 @@ +{{ if .IsPage }} +
+ {{ partial "footer-comment.html" . }} +
+{{ end }} +
+ {{ $languagesCount := $.Site.Home.AllTranslations }} + {{ if gt $languagesCount 1 }} + {{ partial "language-switcher.html" . }} + {{ end }} + + + + {{ partial "h-card.html" . }} +
diff --git a/blog/layouts/partials/post-toc.html b/blog/layouts/partials/post-toc.html new file mode 100644 index 0000000..ed1ed5f --- /dev/null +++ b/blog/layouts/partials/post-toc.html @@ -0,0 +1,5 @@ +{{ if gt .WordCount 500 }} + +{{ end }} diff --git a/blog/static/fa-icons/rss.svg b/blog/static/fa-icons/rss.svg new file mode 100644 index 0000000..9d4e89f --- /dev/null +++ b/blog/static/fa-icons/rss.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/blog/themes/anubis/LICENSE b/blog/themes/anubis/LICENSE new file mode 100644 index 0000000..11f1ea6 --- /dev/null +++ b/blog/themes/anubis/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 Dmitry Kolosov + +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/blog/themes/anubis/README.md b/blog/themes/anubis/README.md new file mode 100644 index 0000000..b5aa30d --- /dev/null +++ b/blog/themes/anubis/README.md @@ -0,0 +1,205 @@ +# Anubis Theme for Hugo [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) [![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/mitrichius/1) + +Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/). + +![Anubis Screenshot](https://raw.githubusercontent.com/mitrichius/hugo-theme-anubis/master/images/screenshot.png) + +## Features + +- Dark mode (automatic / by switcher) +- Pagination +- Tags/Categories support +- Archive +- Open Graph and Twitter Cards support +- Mobile support +- Social icons +- Google Analytics +- Disqus +- Utteranc.es +- RSS feeds +* Hiding posts from the RSS feed +- 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. + +Inside the folder of your Hugo site run: + + $ git submodule add https://github.com/mitrichius/hugo-theme-anubis.git themes/anubis + +For more information read the official [setup guide](//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 + readMore: false + disableSummary: false + # utteranc.es support + utterancesRepo: "" # mandatory + utterancesTheme: "" # optional + utterancesIssue: "" # optional + utterancesLabel: "" # 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, JS-free (by default) +- `dark-without-switcher` - dark theme, without switcher, JS-free +- `auto-without-switcher` - theme based on user system settings, without switcher, JS-free +- `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 + +### 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 + - 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. + +#### 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. You either build your site with variable like +`HUGO_ENV=production hugo --minify` +or just put `env: production` to `params` section of config. + +### Multilingual mode +Check config/example usage in [exampleSiteMultilingual](https://github.com/Mitrichius/hugo-theme-anubis/tree/master/exampleSiteMultilingual) directory and documentation on [Hugo site](https://gohugo.io/content-management/multilingual/). + +### Robots.txt +Based on environment. +For production — allow all, for other — disallow all. + +### Favorite posts +To mark posts as favorite just add `favorite: true` in post's front matter. It adds a "★" icon nearby post's title. + +### Hiding posts from RSS +To hide a post from the RSS feed, just add `disable_feed: true` to its front matter. + +### 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` + +## Contributing + +If you find a bug or have an idea for a feature, feel free to write an [issue](https://github.com/mitrichius/hugo-theme-anubis/issues) or make a PR. + +## TODO +See [issues](https://github.com/mitrichius/hugo-theme-anubis/issues). + +## License +MIT + +© Dmitry Kolosov +2020 diff --git a/blog/themes/anubis/archetypes/default.md b/blog/themes/anubis/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/blog/themes/anubis/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/blog/themes/anubis/assets/css/dark.css b/blog/themes/anubis/assets/css/dark.css new file mode 100644 index 0000000..a048cba --- /dev/null +++ b/blog/themes/anubis/assets/css/dark.css @@ -0,0 +1,27 @@ +/* dark.css */ +--font-color: #eee; +--bg-color: #212121; + +--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: #242424; +--nav-link-color: #b6b6b6; + +--pre-color: #333; +--pre-bg-color: #f1f1f1; + +--bq-color: #ccc; +--hr-color: #333; + +--pagination-bg-color: #373737; +--pagination-link-color: #b6b6b6; + +--post-info-color: grey; + +--switcher-color: #333; +--switcher-bg-color: #fff; diff --git a/blog/themes/anubis/assets/css/light.css b/blog/themes/anubis/assets/css/light.css new file mode 100644 index 0000000..cf45d75 --- /dev/null +++ b/blog/themes/anubis/assets/css/light.css @@ -0,0 +1,29 @@ +:root { + /* light.css */ + --font-color: #333; + --bg-color: #fff; + + --link-color:#1d60a3; + --link-state-color:#a31d1d; + --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: #333; + --pre-bg-color: #f1f1f1; + + --bq-color: #ccc; + --hr-color: #ccc; + + --pagination-bg-color: #fafafa; + --pagination-link-color: #696969; + + --post-info-color: grey; + + --switcher-color: #fff; + --switcher-bg-color: #333; +} diff --git a/blog/themes/anubis/assets/css/main.css b/blog/themes/anubis/assets/css/main.css new file mode 100644 index 0000000..6400a64 --- /dev/null +++ b/blog/themes/anubis/assets/css/main.css @@ -0,0 +1,588 @@ +{{ $light := resources.Get "css/light.css" }} +{{ $dark := resources.Get "css/dark.css" }} + +{{ $light.Content }} + +{{ if eq site.Params.style "dark-without-switcher" }} +:root { + {{ $dark.Content }} +} +{{ else if eq site.Params.style "auto-without-switcher" }} +@media (prefers-color-scheme: dark) { + :root { + {{ $dark.Content }} + } +} +{{else }} +[data-theme="dark"] { + {{ $dark.Content }} +} +{{ end }} + +/* Basic */ +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 */ +} + +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; +} + +/* Headers */ +h1 { + font-size: 1.35em; +} + +h2 { + font-size: 1.2em; +} + +h3 { + font-size: 1.1em; +} + +/* Links */ + +a { + color: var(--link-color); + text-decoration: none; +} + +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 { + color: var(--pre-color); + background-color: var(--pre-bg-color); + padding: 1em; + max-width: 100%; + overflow: auto; +} + +code, +pre, +kbd { + font-family: monospace; + font-size: 0.90em; + line-height: 154%; +} + +/* 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; +} + +.site-title { + white-space: nowrap; +} + +header nav:not(:empty){ + background: var(--nav-bg-color); + margin-top: 1em; + max-width: 100%; + text-align: center; + padding: 0.5em 0; +} + +header nav a { + display: inline-block; + margin: 0 2.5%; +} + +/* Social icons */ +.social-icons { + margin-top: 1em; + margin-bottom: 0; + 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-short-list:first-of-type { + margin-top: 1em; +} + +/* Articles */ + +.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-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 { + margin-top: 1em; + line-height: 1.1em; + margin-bottom: 1em; +} + + +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-info { + color: var(--post-info-color); + font-size: 0.75em; + margin-top: 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; +} + +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; +} + +.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); +} + +/* 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 { + background: var(--pagination-bg-color); + padding: 0.75em 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 { + border-top: thin solid var(--hr-color); + padding-top: 1.5em; + margin-top: 3em; + font-size: 16px; +} + +.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); + background: var(--switcher-bg-color); + padding: 0.5em 1em; + font-size: 16px; + border: none; + margin-bottom: 1em; +} + +.h-card { + display: none; +} + +/* 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; + } + + .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 }} diff --git a/blog/themes/anubis/data/social.yaml b/blog/themes/anubis/data/social.yaml new file mode 100644 index 0000000..ab2c5f0 --- /dev/null +++ b/blog/themes/anubis/data/social.yaml @@ -0,0 +1,16 @@ +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 + 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/blog/themes/anubis/exampleSite/config.toml b/blog/themes/anubis/exampleSite/config.toml new file mode 100644 index 0000000..6090459 --- /dev/null +++ b/blog/themes/anubis/exampleSite/config.toml @@ -0,0 +1,56 @@ +baseURL = "https://example.com" +languageCode = "en-us" +title = "Anubis" +theme = "anubis" +paginate = 3 + +disqusShortname = "" +googleAnalytics = "" + +[author] +name = "Dmitry Kolosov" + +[params] +author = "Dmitry Kolosov" +description = "Anubis is a simple minimalist theme for Hugo blog engine." +dateFormat = "2006-01-02" +paginationSinglePost = true +style = "light-without-switcher" +readMore = false + +# utteranc.es support +utterancesRepo = "" # mandatory +utterancesTheme = "" # optional +utterancesIssue = "" # optional +utterancesLabel = "" # optional + +[[params.social]] +id = "docs" +url = "https://gohugo.io/documentation/" + +[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 \ No newline at end of file diff --git a/blog/themes/anubis/exampleSite/content/_index.md b/blog/themes/anubis/exampleSite/content/_index.md new file mode 100644 index 0000000..6abc75e --- /dev/null +++ b/blog/themes/anubis/exampleSite/content/_index.md @@ -0,0 +1,4 @@ ++++ +author = "Hugo Authors" ++++ + diff --git a/blog/themes/anubis/exampleSite/content/about-subpage.md b/blog/themes/anubis/exampleSite/content/about-subpage.md new file mode 100644 index 0000000..1d1dc16 --- /dev/null +++ b/blog/themes/anubis/exampleSite/content/about-subpage.md @@ -0,0 +1,23 @@ +--- +title: "Subpage" +description: "Just a subpage of about" +date: "2019-02-28" +author: "Hugo Authors" +slug: /about/subpage +menu: + about: + identifier: about + name: About + title: About + url: /about + weight: 1 + subpage: + identifier: subpage + parent: about + name: Subpage + title: Subpage + url: /about/subpage/ + weight: 10 +--- + +Just a subpage of About. diff --git a/blog/themes/anubis/exampleSite/content/about.md b/blog/themes/anubis/exampleSite/content/about.md new file mode 100644 index 0000000..627e661 --- /dev/null +++ b/blog/themes/anubis/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: + name: About + title: About + url: /about + weight: 1 + subpage: + parent: about + name: Subpage + title: Subpage + url: /about/subpage + weight: 10 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly 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/blog/themes/anubis/exampleSite/content/archives.md b/blog/themes/anubis/exampleSite/content/archives.md new file mode 100644 index 0000000..98a1ee9 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSite/content/homepage/about.md b/blog/themes/anubis/exampleSite/content/homepage/about.md new file mode 100644 index 0000000..c2ba680 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSite/content/homepage/index.md b/blog/themes/anubis/exampleSite/content/homepage/index.md new file mode 100644 index 0000000..01ffa31 --- /dev/null +++ b/blog/themes/anubis/exampleSite/content/homepage/index.md @@ -0,0 +1,3 @@ +--- +headless : true +--- diff --git a/blog/themes/anubis/exampleSite/content/homepage/work.md b/blog/themes/anubis/exampleSite/content/homepage/work.md new file mode 100644 index 0000000..f2fee73 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSite/content/post/_index.md b/blog/themes/anubis/exampleSite/content/post/_index.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSite/content/post/emoji-support.md b/blog/themes/anubis/exampleSite/content/post/emoji-support.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/blog/themes/anubis/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](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/blog/themes/anubis/exampleSite/content/post/markdown-syntax.md b/blog/themes/anubis/exampleSite/content/post/markdown-syntax.md new file mode 100644 index 0000000..2d8bcf1 --- /dev/null +++ b/blog/themes/anubis/exampleSite/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", +] +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/blog/themes/anubis/exampleSite/content/post/math-typesetting.md b/blog/themes/anubis/exampleSite/content/post/math-typesetting.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSite/content/post/placeholder-text.md b/blog/themes/anubis/exampleSite/content/post/placeholder-text.md new file mode 100644 index 0000000..29ff09f --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSite/content/post/rich-content.md b/blog/themes/anubis/exampleSite/content/post/rich-content.md new file mode 100644 index 0000000..407c539 --- /dev/null +++ b/blog/themes/anubis/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 + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/blog/themes/anubis/exampleSite/static/fa-icons/docs.svg b/blog/themes/anubis/exampleSite/static/fa-icons/docs.svg new file mode 100644 index 0000000..5380074 --- /dev/null +++ b/blog/themes/anubis/exampleSite/static/fa-icons/docs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/exampleSiteMultilingual/config.toml b/blog/themes/anubis/exampleSiteMultilingual/config.toml new file mode 100644 index 0000000..d4955b7 --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/config.toml @@ -0,0 +1,79 @@ +baseURL = "https://example.com" +languageCode = "en-us" +defaultContentLanguage = "en" +title = "Anubis" +theme = "anubis" +paginate = 3 + +disqusShortname = "" +googleAnalytics = "" + +[author] +name = "Dmitry Kolosov" + +[params] +author = "Dmitry Kolosov" +description = "Anubis is a simple minimalist theme for Hugo blog engine." +dateFormat = "2006-01-02" +paginationSinglePost = true +style = "light-without-switcher" +readMore = false + +# utteranc.es support +utterancesRepo = "" # mandatory +utterancesTheme = "" # optional +utterancesIssue = "" # optional +utterancesLabel = "" # optional + +[[params.social]] +id = "docs" +url = "https://gohugo.io/documentation/" + +[languages.en] +languageName = "English" + +[[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 + +[languages.pl] +languageName = "Polski" + +[[languages.pl.menu.main]] +identifier = "about" +name = "O Hugo" +url = "/about/" +weight = 1 + +[[languages.pl.menu.main]] +identifier = "tags" +name = "Tagi" +url = "/tags/" +weight = 2 + +[[languages.pl.menu.main]] +identifier = "archive" +name = "Archiwum" +url = "/posts/" +weight = 3 + +[taxonomies] +category = "categories" +tag = "tags" + +[markup.goldmark.renderer] +unsafe = true \ No newline at end of file diff --git a/blog/themes/anubis/exampleSiteMultilingual/content/_index.md b/blog/themes/anubis/exampleSiteMultilingual/content/_index.md new file mode 100644 index 0000000..6abc75e --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/content/_index.md @@ -0,0 +1,4 @@ ++++ +author = "Hugo Authors" ++++ + diff --git a/blog/themes/anubis/exampleSiteMultilingual/content/_index.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/_index.pl.md new file mode 100644 index 0000000..e69de29 diff --git a/blog/themes/anubis/exampleSiteMultilingual/content/about.md b/blog/themes/anubis/exampleSiteMultilingual/content/about.md new file mode 100644 index 0000000..a412806 --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/content/about.md @@ -0,0 +1,28 @@ ++++ +title = "About" +description = "Hugo, the world’s fastest framework for building websites" +date = "2019-02-28" +aliases = ["about-us","about-hugo","contact"] +author = "Hugo Authors" ++++ + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly 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/blog/themes/anubis/exampleSiteMultilingual/content/about.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/about.pl.md new file mode 100644 index 0000000..a412806 --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/content/about.pl.md @@ -0,0 +1,28 @@ ++++ +title = "About" +description = "Hugo, the world’s fastest framework for building websites" +date = "2019-02-28" +aliases = ["about-us","about-hugo","contact"] +author = "Hugo Authors" ++++ + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly 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/blog/themes/anubis/exampleSiteMultilingual/content/archives.md b/blog/themes/anubis/exampleSiteMultilingual/content/archives.md new file mode 100644 index 0000000..98a1ee9 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/homepage/about.md b/blog/themes/anubis/exampleSiteMultilingual/content/homepage/about.md new file mode 100644 index 0000000..c2ba680 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/homepage/index.md b/blog/themes/anubis/exampleSiteMultilingual/content/homepage/index.md new file mode 100644 index 0000000..01ffa31 --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/content/homepage/index.md @@ -0,0 +1,3 @@ +--- +headless : true +--- diff --git a/blog/themes/anubis/exampleSiteMultilingual/content/homepage/work.md b/blog/themes/anubis/exampleSiteMultilingual/content/homepage/work.md new file mode 100644 index 0000000..f2fee73 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/_index.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/_index.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/_index.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/_index.pl.md new file mode 100644 index 0000000..7c6bd54 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/emoji-support.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/emoji-support.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/emoji-support.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/emoji-support.pl.md new file mode 100644 index 0000000..ecf6c86 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/markdown-syntax.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/markdown-syntax.md new file mode 100644 index 0000000..2d8bcf1 --- /dev/null +++ b/blog/themes/anubis/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", +] +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/blog/themes/anubis/exampleSiteMultilingual/content/post/markdown-syntax.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/markdown-syntax.pl.md new file mode 100644 index 0000000..2d8bcf1 --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/content/post/markdown-syntax.pl.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", +] +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/blog/themes/anubis/exampleSiteMultilingual/content/post/math-typesetting.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/math-typesetting.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/math-typesetting.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/math-typesetting.pl.md new file mode 100644 index 0000000..a1467e3 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/placeholder-text.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/placeholder-text.md new file mode 100644 index 0000000..29ff09f --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/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/blog/themes/anubis/exampleSiteMultilingual/content/post/placeholder-text.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/placeholder-text.pl.md new file mode 100644 index 0000000..29ff09f --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/exampleSiteMultilingual/content/post/rich-content.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/rich-content.md new file mode 100644 index 0000000..407c539 --- /dev/null +++ b/blog/themes/anubis/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 + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/blog/themes/anubis/exampleSiteMultilingual/content/post/rich-content.pl.md b/blog/themes/anubis/exampleSiteMultilingual/content/post/rich-content.pl.md new file mode 100644 index 0000000..407c539 --- /dev/null +++ b/blog/themes/anubis/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 + +{{< twitter_simple 1085870671291310081 >}} + +
+ +--- + +## Vimeo Simple Shortcode + +{{< vimeo_simple 48912912 >}} diff --git a/blog/themes/anubis/exampleSiteMultilingual/static/fa-icons/docs.svg b/blog/themes/anubis/exampleSiteMultilingual/static/fa-icons/docs.svg new file mode 100644 index 0000000..5380074 --- /dev/null +++ b/blog/themes/anubis/exampleSiteMultilingual/static/fa-icons/docs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/i18n/de.yaml b/blog/themes/anubis/i18n/de.yaml new file mode 100644 index 0000000..3c5bb6a --- /dev/null +++ b/blog/themes/anubis/i18n/de.yaml @@ -0,0 +1,44 @@ +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" + +darkTheme: + other: "Dunkles Theme" + +lightTheme: + other: "Helles Theme" diff --git a/blog/themes/anubis/i18n/en.yaml b/blog/themes/anubis/i18n/en.yaml new file mode 100644 index 0000000..a397d85 --- /dev/null +++ b/blog/themes/anubis/i18n/en.yaml @@ -0,0 +1,44 @@ +powered: + other: "powered by" + +theme: + other: "theme" + +readMore: + other: "read more" + +toNewPosts: + other: "to new posts" + +toOldPosts: + other: "to old posts" + +tag: + other: "tag" + +Tags: + other: "Tags" + +Posts: + other: "Posts" + +category: + other: "category" + +Categories: + other: "Categories" + +toAllTags: + other: "to all tags" + +toAllCategories: + other: "to all categories" + +skipToContent: + other: "skip to main content" + +darkTheme: + other: "dark theme" + +lightTheme: + other: "light theme" diff --git a/blog/themes/anubis/i18n/fr.yaml b/blog/themes/anubis/i18n/fr.yaml new file mode 100644 index 0000000..5492c81 --- /dev/null +++ b/blog/themes/anubis/i18n/fr.yaml @@ -0,0 +1,44 @@ +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" + +darkTheme: + other: "thème sombre" + +lightTheme: + other: "thème clair" diff --git a/blog/themes/anubis/i18n/pl.yaml b/blog/themes/anubis/i18n/pl.yaml new file mode 100644 index 0000000..5233c63 --- /dev/null +++ b/blog/themes/anubis/i18n/pl.yaml @@ -0,0 +1,44 @@ +powered: + other: "zasilany przez" + +theme: + other: "motyw" + +readMore: + other: "czytaj dalej" + +toNewPosts: + other: "poprzedia 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" + +darkTheme: + other: "ciemny schemat" + +lightTheme: + other: "lekki schemat" diff --git a/blog/themes/anubis/i18n/ru.yaml b/blog/themes/anubis/i18n/ru.yaml new file mode 100644 index 0000000..12e9ed7 --- /dev/null +++ b/blog/themes/anubis/i18n/ru.yaml @@ -0,0 +1,44 @@ +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: "перейти к основному контенту" + +darkTheme: + other: "тёмная тема" + +lightTheme: + other: "светлая тема" diff --git a/blog/themes/anubis/i18n/tw.yaml b/blog/themes/anubis/i18n/tw.yaml new file mode 100644 index 0000000..5d55d6c --- /dev/null +++ b/blog/themes/anubis/i18n/tw.yaml @@ -0,0 +1,44 @@ +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: "跳至內容" + +darkTheme: + other: "暗色主題" + +lightTheme: + other: "亮色主題" diff --git a/blog/themes/anubis/i18n/zh-cn.yaml b/blog/themes/anubis/i18n/zh-cn.yaml new file mode 100644 index 0000000..befc53e --- /dev/null +++ b/blog/themes/anubis/i18n/zh-cn.yaml @@ -0,0 +1,44 @@ +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: "跳至内容" + +darkTheme: + other: "暗色主题" + +lightTheme: + other: "亮色主题" \ No newline at end of file diff --git a/blog/themes/anubis/images/screenshot.png b/blog/themes/anubis/images/screenshot.png new file mode 100644 index 0000000..c7de88a Binary files /dev/null and b/blog/themes/anubis/images/screenshot.png differ diff --git a/blog/themes/anubis/images/tn.png b/blog/themes/anubis/images/tn.png new file mode 100644 index 0000000..c7de88a Binary files /dev/null and b/blog/themes/anubis/images/tn.png differ diff --git a/blog/themes/anubis/layouts/_default/baseof.html b/blog/themes/anubis/layouts/_default/baseof.html new file mode 100644 index 0000000..97bfae4 --- /dev/null +++ b/blog/themes/anubis/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" | humanize }} +
+
+ {{ block "header" . }} + {{ partial "header.html" . }} + {{ end }} +
+
+ {{ block "main" . }}{{ end }} +
+ {{ block "footer" . }} + {{ partial "footer.html" . }} + {{ end }} +
+ + diff --git a/blog/themes/anubis/layouts/_default/list.html b/blog/themes/anubis/layouts/_default/list.html new file mode 100644 index 0000000..cb1b757 --- /dev/null +++ b/blog/themes/anubis/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +
+

{{ i18n .Title }}

+ {{ $pages := where .Pages "Type" "in" site.Params.mainSections }} + {{ range $pages }} +
+
+

{{ trim .Title " " }}

+ {{ partial "post-language-switcher.html" . }} +
+ {{ partial "post-info.html" . }} +
+ {{ end }} +
+ +{{ end }} \ No newline at end of file diff --git a/blog/themes/anubis/layouts/_default/rss.xml b/blog/themes/anubis/layouts/_default/rss.xml new file mode 100644 index 0000000..cb728d9 --- /dev/null +++ b/blog/themes/anubis/layouts/_default/rss.xml @@ -0,0 +1,34 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := where $pctx.RegularPages ".Params.disable_feed" "!=" 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/blog/themes/anubis/layouts/_default/single.html b/blog/themes/anubis/layouts/_default/single.html new file mode 100644 index 0000000..0123dc9 --- /dev/null +++ b/blog/themes/anubis/layouts/_default/single.html @@ -0,0 +1,34 @@ +{{ define "main" }} + {{ if .Menus }} + + {{ end }} + +
+
+

{{ trim .Title " " }}

+ + {{ partial "post-language-switcher.html" . }} +
+
+ {{ .Content }} +
+ {{ partial "post-info.html" . }} +
+ + {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} + {{ partial "post-pagination.html" . }} + {{ end }} + + {{ if .Site.DisqusShortname }} + {{ template "_internal/disqus.html" . }} + {{ end }} + + {{ if .Site.Params.UtterancesRepo }} + {{ partial "utterances.html" . }} + {{ end }} + +{{ end }} \ No newline at end of file diff --git a/blog/themes/anubis/layouts/_default/taxonomy.html b/blog/themes/anubis/layouts/_default/taxonomy.html new file mode 100644 index 0000000..8780272 --- /dev/null +++ b/blog/themes/anubis/layouts/_default/taxonomy.html @@ -0,0 +1,11 @@ +{{ define "main" }} +

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

+
+ {{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }} +
+ {{ range .Paginator.Pages }} + {{ partial "post-summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} + +{{ end }} diff --git a/blog/themes/anubis/layouts/_default/terms.html b/blog/themes/anubis/layouts/_default/terms.html new file mode 100644 index 0000000..f595c38 --- /dev/null +++ b/blog/themes/anubis/layouts/_default/terms.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +

{{ i18n .Title }}

+ + + +{{ end }} diff --git a/blog/themes/anubis/layouts/index.html b/blog/themes/anubis/layouts/index.html new file mode 100644 index 0000000..ed4e128 --- /dev/null +++ b/blog/themes/anubis/layouts/index.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +
+ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ range (.Paginate $pages).Pages }} + {{ partial "post-summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} +
+ +{{ end }} \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/font-awesome.html b/blog/themes/anubis/layouts/partials/font-awesome.html new file mode 100644 index 0000000..f1db829 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/font-awesome.html @@ -0,0 +1,15 @@ + + +{{ $dict := newScratch }} + +{{ if (eq .custom true) }} + {{ $dict.Set "filename" (print "static/fa-icons/" .iconName ".svg") }} +{{ else }} + {{ $dict.Set "filename" (print "themes/anubis/static/fa-icons/" .iconName ".svg") }} +{{ end }} + +{{- $path:=" diff --git a/blog/themes/anubis/layouts/partials/footer-extra.html b/blog/themes/anubis/layouts/partials/footer-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/blog/themes/anubis/layouts/partials/footer-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/footer.html b/blog/themes/anubis/layouts/partials/footer.html new file mode 100644 index 0000000..fe1ba38 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/layouts/partials/h-card.html b/blog/themes/anubis/layouts/partials/h-card.html new file mode 100644 index 0000000..66cf479 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/layouts/partials/head-extra.html b/blog/themes/anubis/layouts/partials/head-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/blog/themes/anubis/layouts/partials/head-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/head.html b/blog/themes/anubis/layouts/partials/head.html new file mode 100644 index 0000000..5aaa6cd --- /dev/null +++ b/blog/themes/anubis/layouts/partials/head.html @@ -0,0 +1,48 @@ + + + + + + +{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }} + + +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} + + + + +{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }} + +{{ range .Site.Params.customJS -}} + {{ partial "resource.html" (dict "context" $ "type" "js" "filename" . ) }} +{{- end }} + +{{ template "_internal/opengraph.html" . }} +{{ template "_internal/twitter_cards.html" . }} + +{{ 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) (or (eq (getenv "HUGO_ENV") "production") (eq .Site.Params.env "production")) }} + {{ template "_internal/google_analytics.html" . }} +{{ end }} + +{{ partial "head-extra.html" . }} diff --git a/blog/themes/anubis/layouts/partials/header-extra.html b/blog/themes/anubis/layouts/partials/header-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/blog/themes/anubis/layouts/partials/header-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/header.html b/blog/themes/anubis/layouts/partials/header.html new file mode 100644 index 0000000..99b7adc --- /dev/null +++ b/blog/themes/anubis/layouts/partials/header.html @@ -0,0 +1,18 @@ +
+

+ {{ .Site.Title }} +

+ {{ partial "social.html" . }} +
+{{ if .Site.Menus.main }} + +{{ else }} + +{{ end }} + +{{ partial "header-extra.html" . }} diff --git a/blog/themes/anubis/layouts/partials/language-switcher.html b/blog/themes/anubis/layouts/partials/language-switcher.html new file mode 100644 index 0000000..7e2e848 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/language-switcher.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/pagination-extra.html b/blog/themes/anubis/layouts/partials/pagination-extra.html new file mode 100644 index 0000000..0e22c9a --- /dev/null +++ b/blog/themes/anubis/layouts/partials/pagination-extra.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/pagination.html b/blog/themes/anubis/layouts/partials/pagination.html new file mode 100644 index 0000000..c561c09 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/pagination.html @@ -0,0 +1,16 @@ +{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }} + {{ $toNewPostsMessage := i18n "toNewPosts" }} + {{ $toOldPostsMessage := i18n "toOldPosts" }} + +{{ end }} diff --git a/blog/themes/anubis/layouts/partials/post-info.html b/blog/themes/anubis/layouts/partials/post-info.html new file mode 100644 index 0000000..c7dc3cd --- /dev/null +++ b/blog/themes/anubis/layouts/partials/post-info.html @@ -0,0 +1,31 @@ +{{ $dateFormat := "2006-01-02" }} +{{ if .Site.Params.dateFormat }} + {{ $dateFormat = .Site.Params.dateFormat }} +{{ end }} + + diff --git a/blog/themes/anubis/layouts/partials/post-language-switcher.html b/blog/themes/anubis/layouts/partials/post-language-switcher.html new file mode 100644 index 0000000..162cdf3 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/post-language-switcher.html @@ -0,0 +1,16 @@ +{{ if .IsTranslated }} + {{ $pageLang := .Page.Lang}} +
    + {{ range .AllTranslations }} + {{ if eq .Lang $pageLang }} +
  • + {{ upper .Lang }} +
  • + {{ else }} +
  • + {{ upper .Lang }} +
  • + {{ end }} + {{ end }} +
+{{ end }} \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/post-pagination.html b/blog/themes/anubis/layouts/partials/post-pagination.html new file mode 100644 index 0000000..92582d3 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/post-pagination.html @@ -0,0 +1,16 @@ +{{ if or ( .PrevInSection ) ( .NextInSection ) }} + +{{ end }} + +{{ partial "pagination-extra.html" . }} diff --git a/blog/themes/anubis/layouts/partials/post-summary.html b/blog/themes/anubis/layouts/partials/post-summary.html new file mode 100644 index 0000000..7961f62 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/post-summary.html @@ -0,0 +1,19 @@ +
+
+

{{ trim .Title " " }}

+ {{ 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/blog/themes/anubis/layouts/partials/resource.html b/blog/themes/anubis/layouts/partials/resource.html new file mode 100644 index 0000000..146c902 --- /dev/null +++ b/blog/themes/anubis/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 eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + {{ $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 }} \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/social.html b/blog/themes/anubis/layouts/partials/social.html new file mode 100644 index 0000000..e631c68 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/social.html @@ -0,0 +1,20 @@ + diff --git a/blog/themes/anubis/layouts/partials/theme-switcher.html b/blog/themes/anubis/layouts/partials/theme-switcher.html new file mode 100644 index 0000000..5e8de97 --- /dev/null +++ b/blog/themes/anubis/layouts/partials/theme-switcher.html @@ -0,0 +1,73 @@ +{{ $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" "auto-without-switcher") $style) }} + + + +{{ end }} \ No newline at end of file diff --git a/blog/themes/anubis/layouts/partials/utterances.html b/blog/themes/anubis/layouts/partials/utterances.html new file mode 100644 index 0000000..1c633a7 --- /dev/null +++ b/blog/themes/anubis/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/blog/themes/anubis/layouts/robots.txt b/blog/themes/anubis/layouts/robots.txt new file mode 100644 index 0000000..3e78ed8 --- /dev/null +++ b/blog/themes/anubis/layouts/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +# robotstxt.org - if ENV production variable is false robots will be disallowed. +{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + Disallow: +{{ else }} + Disallow: / +{{ end }} \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/email.svg b/blog/themes/anubis/static/fa-icons/email.svg new file mode 100644 index 0000000..24e6760 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/facebook.svg b/blog/themes/anubis/static/fa-icons/facebook.svg new file mode 100644 index 0000000..77829b4 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/github.svg b/blog/themes/anubis/static/fa-icons/github.svg new file mode 100644 index 0000000..1a4d15c --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/instagram.svg b/blog/themes/anubis/static/fa-icons/instagram.svg new file mode 100644 index 0000000..46aab1a --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/linkedin.svg b/blog/themes/anubis/static/fa-icons/linkedin.svg new file mode 100644 index 0000000..95faf46 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/patreon.svg b/blog/themes/anubis/static/fa-icons/patreon.svg new file mode 100644 index 0000000..5eae6c0 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/patreon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/reddit.svg b/blog/themes/anubis/static/fa-icons/reddit.svg new file mode 100644 index 0000000..2de59d4 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/reddit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/snapchat.svg b/blog/themes/anubis/static/fa-icons/snapchat.svg new file mode 100644 index 0000000..ecf5cf4 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/snapchat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/soundcloud.svg b/blog/themes/anubis/static/fa-icons/soundcloud.svg new file mode 100644 index 0000000..0901cd1 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/soundcloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/spotify.svg b/blog/themes/anubis/static/fa-icons/spotify.svg new file mode 100644 index 0000000..718d287 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/spotify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/telegram.svg b/blog/themes/anubis/static/fa-icons/telegram.svg new file mode 100644 index 0000000..d60b094 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/telegram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/twitch.svg b/blog/themes/anubis/static/fa-icons/twitch.svg new file mode 100644 index 0000000..a3c407a --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/twitch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/twitter.svg b/blog/themes/anubis/static/fa-icons/twitter.svg new file mode 100644 index 0000000..3db10f6 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/vk.svg b/blog/themes/anubis/static/fa-icons/vk.svg new file mode 100644 index 0000000..960003d --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/vk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/static/fa-icons/youtube.svg b/blog/themes/anubis/static/fa-icons/youtube.svg new file mode 100644 index 0000000..adfe427 --- /dev/null +++ b/blog/themes/anubis/static/fa-icons/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blog/themes/anubis/theme.toml b/blog/themes/anubis/theme.toml new file mode 100644 index 0000000..18bfd1e --- /dev/null +++ b/blog/themes/anubis/theme.toml @@ -0,0 +1,23 @@ +name = "Anubis" +license = "MIT" +description = "A minimal Hugo theme" +homepage = "https://github.com/mitrichius/hugo-theme-anubis" +tags = [ + "blog", + "responsive", + "personal", + "minimal", + "clean", + "simple", + "light", + "dark", + "google-analytics", + "mobile", + "fast", + "multilingual" +] +features = ["blog"] + +[author] + name = "Dmitry Kolosov" + homepage = "http://dmitrykolosov.ru" diff --git a/blog/themes/nice b/blog/themes/nice new file mode 100644 index 0000000..f6c6a62 --- /dev/null +++ b/blog/themes/nice @@ -0,0 +1,5 @@ +anubis +mini + +bear +indigo diff --git a/gdrive/config.sh b/gdrive/config.sh new file mode 100644 index 0000000..9899c34 --- /dev/null +++ b/gdrive/config.sh @@ -0,0 +1 @@ +rclone --config ./rclone.conf config diff --git a/gdrive/download.sh b/gdrive/download.sh new file mode 100644 index 0000000..02ca558 --- /dev/null +++ b/gdrive/download.sh @@ -0,0 +1 @@ +rclone --config ./rclone.conf --fast-list --drive-shared-with-me copy hugo:shared_from_bbarl64/'a "world" %.zip' ./ diff --git a/gdrive/extract.sh b/gdrive/extract.sh new file mode 100644 index 0000000..0879914 --- /dev/null +++ b/gdrive/extract.sh @@ -0,0 +1,40 @@ +set -e +f="$(ls ./*.zip | head -n 1)" +echo f=$f +d="$(date -r "$f" +%Y-%m-%d)_$(basename "$f" | sed 's/.zip$//' | sed 's/[^a-zA-Z0-9]/_/g')" +echo d=$d +rm -rf "$d" +mkdir -p "$d" +7z x -o"$d" "$f" + +cat "$d"/*.html \ +| sed 's/.*.*/<\/body>/' \ +>> "$d"/index.html + +tags=($(cat "$d"/index.html | sed '/^$/!{s/<[^>]*>//g;p;}' | grep -o '#[a-zA-Z0-9]*' | grep '[a-zA-Z]' | sed 's/^#//' | sort -u)) + +printf ' +--- +title: "%s" +date: %s +draft: true +tags: [%s] +--- +' \ +"$(basename "$f" | sed 's/.zip$//' | sed 's/"/\\"/g')" \ +"$(date -u +%Y-%m-%dT%H:%M:%S)-00:00" \ +"$(first=false; for tag in "${tags[@]}"; do true; if $first; then echo -n ","; fi; first=true; echo -n "$tag"; done)" \ +| grep . > "$d/index.md" + +cat "$d"/index.html >> "$d"/index.md +rm "$d"/index.html + +echo >> "$d"/index.md + +rm "$d"/*.html + +for ext in png jpg jpeg gif JPG; do find "$d" -name "*.$ext"; done | while read -r line; do + convert "$line" -ordered-dither o8x8,8,8,4 "$line.2" + mv "$line.2" "$line" +done diff --git a/gdrive/list.sh b/gdrive/list.sh new file mode 100644 index 0000000..b481d5a --- /dev/null +++ b/gdrive/list.sh @@ -0,0 +1 @@ +rclone --config ./rclone.conf --fast-list --drive-shared-with-me ls hugo:shared_from_bbarl64 diff --git a/gdrive/rclone.conf b/gdrive/rclone.conf new file mode 100644 index 0000000..4c7d216 --- /dev/null +++ b/gdrive/rclone.conf @@ -0,0 +1,10 @@ +[hugo] +type = drive +client_id = 859269034513-ak4su1sg7q5jsgr3e1d72v02sfkvrhaa.apps.googleusercontent.com +client_secret = zCqs6bTjTm6TivvdU4BxhR19 +scope = drive +#team_drive = 1-p043gwMk88rj4-Sm5otARi_AJZYskbj +#root_folder_id = 1-p043gwMk88rj4-Sm5otARi_AJZYskbj +formats = zip,html,rtf,odt,docx,xlsx,pptx,svg +token = {"access_token":"ya29.a0ARrdaM-ArgZiZZmAser1tLUer7X9UUW_9zJsTFDAmp3F9unWlX1qKNYpXA52RS7coQDFN54Nzhn6-C-1AT6ya2IBvJTG5CWnBZHDVO405pJMkMwE033m6bYBn7SRDqvoxYm5O9tdxlfVKAsbw9TOdPK3HSDY","token_type":"Bearer","refresh_token":"1//04sQD4800FsqyCgYIARAAGAQSNwF-L9IrB1_7BV8ScFnqmIz8FNWgXfr80--6VG6KX1pTnneQKAz6Ss3YtxqmCdf2tRBy2ndkhek","expiry":"2021-11-28T22:28:28.221751671-07:00"} +