diff --git a/.hugo_build.lock b/.hugo_build.lock deleted file mode 100644 index e69de29..0000000 diff --git a/LICENSE b/LICENSE index 147d594..ddf88ac 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 YOUR_NAME_HERE +Copyright (c) 2023 Speyll Lyes 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 diff --git a/README.md b/README.md index f34ff4c..021e6b7 100644 --- a/README.md +++ b/README.md @@ -1 +1,89 @@ # anemone + +Nearly no-Javascript, efficient, minimal theme. + +## Light theme +![screenshotLight](./blob/screenshotLight.png) + +## Dark theme +![screenshotDark](./blob/screenshotDark.png) + +## Installation +First download this theme to your `themes` directory: + +```bash +cd themes +git clone https://github.com/Speyll/anemone +``` + +and then enable it in your `config.toml`: + +```toml +theme = "anemone" +``` + +## Options + +### Default taxonomies +To use tags, in a page metadata add + +```toml +[taxonomies] +tags = [ 'tag1', 'tag2' ] +``` + +### Pages list in homepage +To enable listing of pages in homepage add the following in `config.toml` + +```toml +[extra] +list_pages = true +``` + +### Header and footer nav links +Also in the `extra` section in `config.toml` + +```toml +[extra] + +header_nav = [ + { name = "/home/", url = "/" }, + { name = "/about/", url = "/about" }, + { name = "/journal/", url = "/journal" }, + { name = "/blog/", url = "/blog" }, +] + +footer_nav = [ + { name = "< previous", url = "#" }, + { name = "webring", url = "#" }, + { name = "next >", url = "#" }, +] +``` + +### Add TOC to pages + +In a page frontmatter, set `extra.toc` to `true` + +```toml +[extra] +toc = true +``` + +### Extra data + +- `author` can be set in both main config and in pages metadata +- `image` variable can be used in pages to add an image to HTML `` tags +- Same for `favicon` in main config, except this one is also used as the site icon + +### Disable Twitter card + +Twitter metatags are generated by default, to disable them set `extra.twitter_card` to `false` in in your `config.toml` + +```toml +[extra] +twitter_card = true +``` + +## License + +The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index fdccff8..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} ---- diff --git a/blob/screenshotDark.png b/blob/screenshotDark.png new file mode 100644 index 0000000..b12f6c7 Binary files /dev/null and b/blob/screenshotDark.png differ diff --git a/blob/screenshotLight.png b/blob/screenshotLight.png new file mode 100644 index 0000000..cddff5d Binary files /dev/null and b/blob/screenshotLight.png differ diff --git a/config.toml b/config.toml index 63e93a1..6720e2c 100644 --- a/config.toml +++ b/config.toml @@ -1,24 +1,46 @@ -[module] - [module.hugoVersion] - extended = true - min = "0.55.0" - max = "0.105.0" +base_url = "https://anemone.pages.dev" +title = "anemone" +description = "Nearly no-Javascript, efficient, minimal theme." +default_language = "en" +compile_sass = false +minify_html = true +generate_feed = true -[author] - name = "Speyll" - homepage = "https://speyll.gitlab.io/site/" +taxonomies = [ + { name = "tags" }, +] -[[menu.main]] - name = "/about" - url = "/about" - weight = 1 +[markdown] +render_emoji = true +external_links_target_blank = true +smart_punctuation = true +highlight_code = false +highlight_theme = "gruvbox-dark" -[[menu.main]] - name = "/blog" - url = "/blog" - weight = 2 +[slugify] +paths = "on" +taxonomies = "on" +anchors = "on" -[[menu.main]] - name = "/tags" - url = "/tags" - weight = 3 \ No newline at end of file +[link_checker] +internal_level = "warn" + +[extra] +author = "Lyes 'Speyll'" +favicon = "favicon.ico" +image = "" +list_pages = false +twitter_card = true + +header_nav = [ + { name = "/home/", url = "/" }, + { name = "/about/", url = "/about" }, + { name = "/journal/", url = "/journal" }, + { name = "/blog/", url = "/blog" }, +] + +#footer_nav = [ +# { name = "< previous", url = "#" }, +# { name = "webring", url = "#" }, +# { name = "next >", url = "#" }, +#] \ No newline at end of file diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..de242a0 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,27 @@ ++++ ++++ + +## Useless header +- info + - Nearly no-Javascript, efficient, minimal theme. + +>Useless blockquote + +- posts + - 🥣 [Overview Post](./blog/overview-post) + - 🈚 [Language Tests](./blog/language-tests) + - 🔥 [Very Very Very Long Title And Very Very Very Short Content](./blog/very-very-very-long-title-and-very-very-very-short-content) + - 📺 [Post Example With Headings And Toc](./blog/post-example-with-headings-and-toc) +- [tags](./tags) + - [example](./tags/example) +- another list + - with subitems + - with subsubitems + - [example page](./about) + +this list is just the content of `content/_index.md`, the tests are shamelessly stolen from [no style, please!](https://www.getzola.org/themes/no-style-please/) + +## Online presence + - Email: [jgll6dij6@mozmail.com](mailto:jgll6dij6@mozmail.com) + - Code repositories: [speyll@github.com](https://github.com/Speyll) + - {{ metaData(content="@Speyll") }} anywhere else. \ No newline at end of file diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..c019ded --- /dev/null +++ b/content/about.md @@ -0,0 +1,6 @@ ++++ +title = "About" ++++ +This is an about page, nothing more nothing less `forget about it`. + +{{ youtube(id="pS6zJ7IsJkM" class="textCenter") }} \ No newline at end of file diff --git a/content/blog/2020-07-07-overview-post.md b/content/blog/2020-07-07-overview-post.md new file mode 100644 index 0000000..4224e7d --- /dev/null +++ b/content/blog/2020-07-07-overview-post.md @@ -0,0 +1,72 @@ ++++ +title = "Overview Post" ++++ + +Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus. + +# Sample heading 1 +## Sample heading 2 +### Sample heading 3 +#### Sample heading 4 +##### Sample heading 5 +###### Sample heading 6 + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. + +## Lists + +Unordered: + +- Fusce non velit cursus ligula mattis convallis vel at metus[^2]. +- Sed pharetra tellus massa, non elementum eros vulputate non. +- Suspendisse potenti. + +Ordered: + +1. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc. +2. Sed massa quam, auctor in eros quis, porttitor tincidunt orci. +3. Nulla convallis id sapien ornare viverra. +4. Nam a est eget ligula pellentesque posuere. + +## Blockquote + +The following is a blockquote: + +> Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus. + +## Code + +Now some code: + +```js +const ultimateTruth = 'this theme is the best!'; +console.log(ultimateTruth); +``` + +And here is some `inline code`! + +## Tables + +Now a table: + +| Tables | Are | Cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + +## Images + +{{ img(id="https://uploads-ssl.webflow.com/5ff0b3326e5782a256714165/638b6f3a3d8d2e6bad1cb03b_Random22.1.jpg", alt="theme logo") }} + +random image of a dog[^4] + +--- + +[^1]: this is a footnote. It should highlight if you click on the corresponding superscript number. + +[^2]: hey there + +[^3]: this is another footnote. + +[^4]: this is a very very long footnote to test if a very very long footnote brings some problems or not. I strongly hope that there are no problems but you know sometimes problems arise from nowhere. \ No newline at end of file diff --git a/content/blog/2020-07-08-language-tests.md b/content/blog/2020-07-08-language-tests.md new file mode 100644 index 0000000..cb8fed6 --- /dev/null +++ b/content/blog/2020-07-08-language-tests.md @@ -0,0 +1,52 @@ ++++ +title = "Language Tests" +[taxonomies] + tags = ["example"] ++++ + +Note: I took this test post from [moving](https://github.com/huangyz0918/moving), which is another Jekyll theme which is better that this one so I should not have linked it because now you will decide to use it instead of mine. + +### 1. 日本語テスト + +This is a Japanese test post to show you how japanese is displayed. + +私は昨日ついにその助力家というのの上よりするたなけれ。 +最も今をお話団はちょうどこの前後なかろでくらいに困りがいるたをは帰着考えたなかって、そうにもするでうたらない。 +がたを知っないはずも同時に九月をいよいよたありた。 + +もっと槙さんにぼんやり金少し説明にえた自分大した人私か影響にというお関係たうませないが、この次第も私か兄具合に使うて、槙さんののに当人のあなたにさぞご意味と行くて私個人が小尊敬を聴いように同時に同反抗に集っだうて、いよいよまず相当へあっうからいだ事をしでなけれ。 + +> それでそれでもご時日をしはずはたったいやと突き抜けるますて、その元がは行ったてという獄を尽すていけですた。 + +この中道具の日その学校はあなたごろがすまなりかとネルソンさんの考えるですん、辺の事実ないというご盲従ありたですと、爺さんのためが薬缶が結果までの箸の当時してならて、多少の十月にためからそういう上からとにかくしましないと触れべきものたで、ないうですと多少お人達したのでたた。 + +From [すぐ使えるダミーテキスト - 日本語 Lorem ipsum.](http://lipsum.sugutsukaeru.jp/index.cgi) + + +### 2. 繁体中文测试 + +This is a chinese test post to show you how chinese is displayed. + +善我王上魚、產生資西員合兒臉趣論。畫衣生這著爸毛親可時,安程幾?合學作。觀經而作建。都非子作這!法如言子你關!手師也。 + +以也座論頭室業放。要車時地變此親不老高小是統習直麼調未,行年香一? + +就竟在,是我童示讓利分和異種百路關母信過明驗有個歷洋中前合著區亮風值新底車有正結,進快保的行戰從:弟除文辦條國備當來際年每小腳識世可的的外的廣下歌洲保輪市果底天影;全氣具些回童但倒影發狀在示,數上學大法很,如要我……月品大供這起服滿老?應學傳者國:山式排只不之然清同關;細車是!停屋常間又,資畫領生,相們制在?公別的人寫教資夠。資再我我!只臉夫藝量不路政吃息緊回力之;兒足灣電空時局我怎初安。意今一子區首者微陸現際安除發連由子由而走學體區園我車當會,經時取頭,嚴了新科同?很夫營動通打,出和導一樂,查旅他。坐是收外子發物北看蘭戰坐車身做可來。道就學務。 + +國新故。 + +> 工步他始能詩的,裝進分星海演意學值例道……於財型目古香亮自和這乎?化經溫詩。只賽嚴大一主價世哥受的沒有中年即病行金拉麼河。主小路了種就小為廣不? + +From [亂數假文產生器 - Chinese Lorem Ipsum.](http://www.richyli.com/tool/loremipsum/) + + + +### 3. 简体中文测试 + +效育声去本义然空,各值太法心想,场强实地。 题铁习点儿表管少间千,只何政亲织文意部,千影画派证男须。 手反取长风治增非等直难群,连取及天他己事头级,影数弦适把气快目人。 专议以省通引而千个,格则口段度样水热马,地教少务改磨。 包思外心半院应她算斯,市外会快记路又火学,劳如肃它准众丧边。 + + > 团算部住县单总边素格军所,合音府教看和广光采率位转,位用品根确针百。 证其标元角工方海接交他,论象切万世认一响义,治然身本风弦带题。 向我次路持加北,她不反心。 说总元军例市决,现始即算证养,规走还壳。 + +因林可相儿应满军,热影省条律因资再,整肃赤心将届。 局广写两量备验还,南教事争工民的,备进研上布。 素身电活非直,速这区交示从,百层达。 资量那毛什京身,白这快。 半打容三手开常价或,手严量般象式效,名可重芽门适。 来设什一我么,光界美么或,住身式准。 造酸改表委验众办地百养,商物战众本列听度名院,制压录丽快与千机内。 住需当四议决得命南然照按民置,当住命形金决否矿单外。 气象理离开新集增际,三划方工义很年关,拉许准孝口。 构片出干计由备美打养,持育总指承入无己。 + +From [假文生成器, lorem ipsum Chinese](http://www.cancms.com/content/dummytext) \ No newline at end of file diff --git a/content/blog/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md b/content/blog/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md new file mode 100644 index 0000000..08d657a --- /dev/null +++ b/content/blog/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md @@ -0,0 +1,5 @@ ++++ +title = "Very Very Very Long Title And Very Very Very Short Content" ++++ + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus. Nullam vestibulum metus eu purus malesuada, volutpat mattis leo facilisis. \ No newline at end of file diff --git a/content/blog/2020-07-09-post-example-with-headings-and-toc.md b/content/blog/2020-07-09-post-example-with-headings-and-toc.md new file mode 100644 index 0000000..9596919 --- /dev/null +++ b/content/blog/2020-07-09-post-example-with-headings-and-toc.md @@ -0,0 +1,24 @@ ++++ +title = "Post Example With Headings And Toc" +[taxonomies] + tags = ["example"] +[extra] + toc = true ++++ + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo. + +Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo. Vestibulum porta tincidunt tellus, vitae ornare tortor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed nunc neque, tempor in iaculis non, faucibus et metus. Etiam id nisl ut lorem gravida euismod. + +## [The start](#the-start) + +Fusce non velit cursus ligula mattis convallis vel at metus. Sed pharetra tellus massa, non elementum eros vulputate non. Suspendisse potenti. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc. Sed massa quam, auctor in eros quis, porttitor tincidunt orci. Nulla convallis id sapien ornare viverra. Cras nec est lacinia ligula porta tincidunt. Nam a est eget ligula pellentesque posuere. Maecenas quis enim ac risus accumsan scelerisque. Aliquam vitae libero sapien. Etiam convallis, metus nec suscipit condimentum, quam massa congue velit, sit amet sollicitudin nisi tortor a lectus. Cras a arcu enim. Suspendisse hendrerit euismod est ac gravida. Donec vitae elit tristique, suscipit eros at, aliquam augue. In ac faucibus dui. Sed tempor lacus tristique elit sagittis, vitae tempor massa convallis. + +## [The middle](#the-middle) + +Proin quis velit et eros auctor laoreet. Aenean eget nibh odio. Suspendisse mollis enim pretium, fermentum urna vitae, egestas purus. Donec convallis tincidunt purus, scelerisque fermentum eros sagittis vel. Aliquam ac aliquet risus, tempus iaculis est. Fusce molestie mauris non interdum hendrerit. Curabitur ullamcorper, eros vitae interdum volutpat, lacus magna lacinia turpis, at accumsan dui tortor vel lectus. Aenean risus massa, semper non lectus rutrum, facilisis imperdiet mi. Praesent sed quam quis purus auctor ornare et sed augue. Vestibulum non quam quis ligula luctus placerat sed sit amet erat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Fusce auctor, sem eu volutpat dignissim, turpis nibh malesuada arcu, in consequat elit mauris quis sem. Nam tristique sit amet enim vel accumsan. Sed id nibh commodo, dictum sem id, semper quam. + +## [The end](#the-end) + +Donec ex lectus, tempus non lacinia quis, pretium non ipsum. Praesent est nunc, rutrum vel tellus eu, tristique laoreet purus. In rutrum orci sit amet ex ornare, sit amet finibus lacus laoreet. Etiam ac facilisis purus, eget porttitor odio. Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus. Vivamus at purus sed urna sollicitudin mattis. Mauris lacinia libero in lobortis pulvinar. Nullam sit amet condimentum justo. Donec orci justo, pharetra ut dolor non, interdum finibus orci. Proin vitae ante a dui sodales commodo ac id elit. Nunc vel accumsan nunc, sit amet congue nunc. Aliquam in lacinia velit. Integer lobortis luctus eros, in fermentum metus aliquet a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. + diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..77f0867 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,7 @@ ++++ +paginate_by = 15 +path = "blog" +title = "All blog posts" +sort_by = "date" +page_template = "blog-page.html" ++++ \ No newline at end of file diff --git a/content/journal.md b/content/journal.md new file mode 100644 index 0000000..cdede58 --- /dev/null +++ b/content/journal.md @@ -0,0 +1,26 @@ ++++ +title = "Personal journal" +date = 2019-10-05 +draft = false ++++ + +## 2023-06-29 🔧 +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean dapibus dignissim nulla et ornare. Vestibulum porta, risus eu ultrices condimentum, quam ante mattis massa, eget laoreet neque nisl ullamcorper nibh. + + +## 2023-06-28 😊 +Etiam vulputate nibh in magna feugiat viverra. Donec ultricies sagittis justo vel facilisis. Nulla sollicitudin felis eu tortor consectetur, ac sodales odio faucibus. Vivamus id ultrices orci, ut luctus dolor. Sed sem nibh, semper in posuere eget, dictum eget dui. Praesent nunc dolor, lacinia at tortor eget, sollicitudin sagittis turpis. + +{{ img(id="https://uploads-ssl.webflow.com/5ff0b3326e5782a256714165/638b6f3a3d8d2e6bad1cb03b_Random22.1.jpg", alt="xfx6800xt", class="textCenter") }} + +## 2022-11-30 💀 +Pellentesque iaculis diam leo, vel euismod libero finibus sed. Praesent ultrices libero nec lectus posuere euismod. Fusce lobortis elit dui. In non pulvinar ligula. Integer augue mauris, condimentum vitae ante sit amet, consectetur scelerisque lectus. Sed dignissim vitae magna et volutpat. Integer vel risus sagittis + +## 2022-11-11 😐 +Vivamus molestie, ipsum id ullamcorper facilisis, velit neque elementum metus, quis lacinia ligula felis et metus. Quisque at condimentum tellus, id venenatis turpis. Integer accumsan metus non mauris vulputate pretium. + +## 2022-10-29 🍿 +vel mollis varius. Aenean non bibendum dui, eget facilisis turpis. Cras eleifend mi vel leo malesuada, ac vestibulum est condimentum. Aenean accumsan felis elit, sed porttitor nulla volutpat nec. In leo purus, condimentum ut augue sed, imperdiet dapibus sapien. Proin id ullamcorper nisi. + +## 2022-10-27 💢 +facilisis sapien, quis faucibus leo urna ut diam. Etiam eu dolor vestibulum, cursus odio at, aliquam nibh. Donec molestie metus non purus facilisis euismod. In interdum luctus libero, in mollis est tincidunt at. Nam congue, nibh nec tempus elementum, nunc sapien placerat felis, id dignissim sapien tellus a libero. Nunc at elementum tortor, eget scelerisque elit. Donec ultricies mi at accumsan semper. Pellentesque vehicula leo sed urna dapibus, quis feugiat arcu auctor. \ No newline at end of file diff --git a/exampleSite/about/index.md b/exampleSite/about/index.md deleted file mode 100644 index eb5384b..0000000 --- a/exampleSite/about/index.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "About" -+++ - -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/exampleSite/blog/emoji-support.md b/exampleSite/blog/emoji-support.md deleted file mode 100644 index ecf6c86..0000000 --- a/exampleSite/blog/emoji-support.md +++ /dev/null @@ -1,47 +0,0 @@ -+++ -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/exampleSite/blog/markdown-syntax.md b/exampleSite/blog/markdown-syntax.md deleted file mode 100644 index d60c404..0000000 --- a/exampleSite/blog/markdown-syntax.md +++ /dev/null @@ -1,147 +0,0 @@ -+++ -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", -] -series = ["Themes Guide"] -aliases = ["migrate-from-jekyl"] -+++ - -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/exampleSite/blog/placeholder-text.md b/exampleSite/blog/placeholder-text.md deleted file mode 100644 index 378b995..0000000 --- a/exampleSite/blog/placeholder-text.md +++ /dev/null @@ -1,58 +0,0 @@ -+++ -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/exampleSite/blog/rich-content.md b/exampleSite/blog/rich-content.md deleted file mode 100644 index 8cb8861..0000000 --- a/exampleSite/blog/rich-content.md +++ /dev/null @@ -1,34 +0,0 @@ -+++ -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 Shortcode - -{{< tweet user="DesignReviewed" id="1085870671291310081" >}} - -
- ---- - -## Vimeo Simple Shortcode - -{{< vimeo_simple 48912912 >}} diff --git a/images/screenshot.png b/images/screenshot.png deleted file mode 100644 index 1615093..0000000 Binary files a/images/screenshot.png and /dev/null differ diff --git a/images/screenshot2.png b/images/screenshot2.png deleted file mode 100644 index 79d4b95..0000000 Binary files a/images/screenshot2.png and /dev/null differ diff --git a/images/screenshot3.png b/images/screenshot3.png deleted file mode 100644 index 4cdd55b..0000000 Binary files a/images/screenshot3.png and /dev/null differ diff --git a/images/tn.png b/images/tn.png deleted file mode 100644 index a1fa5ac..0000000 Binary files a/images/tn.png and /dev/null differ diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html deleted file mode 100644 index eb8714d..0000000 --- a/layouts/_default/_markup/render-link.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Text | safeHTML }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 3d723c8..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ - - - {{ partial "head.html" . }} - - {{ partial "header.html" . }} -
- {{- block "main" . }}{{- end }} -
- {{ partial "footer.html" . }} - - \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index d5b0f5d..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ define "main" }} -{{ if isset .Data "Term" }} -

Entries tagged - "{{ .Data.Term }}"

-{{ else }} -

Random pondering

-{{ end }} - - -{{ end }} \ No newline at end of file diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml deleted file mode 100644 index 7acdbef..0000000 --- a/layouts/_default/rss.xml +++ /dev/null @@ -1,39 +0,0 @@ -{{- $pctx := . -}} -{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{- $pages := slice -}} -{{- if or $.IsHome $.IsSection -}} -{{- $pages = $pctx.RegularPages -}} -{{- else -}} -{{- $pages = $pctx.Pages -}} -{{- end -}} -{{- $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 }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - 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 }} - {{ .Summary | html }} - - {{ end }} - - diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index d2196eb..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,32 +0,0 @@ -{{ define "main" }} -

{{ .Title }}

- {{ if .Params.showdate }} -

Published on:

- {{ end }} - {{ if .Draft }} » draft {{ end }}

- - {{ if isset .Params "tldr" }} -
- tl;dr: - {{ .Params.tldr }} -
- {{ end }} - -
- {{ .Content }} - -
- {{ if ne .Type "page" }} - {{ if gt .Params.tags 0 }} - - - - {{ end }} - {{ end }} -
-
-{{ end }} \ No newline at end of file diff --git a/layouts/_default/term.html b/layouts/_default/term.html deleted file mode 100644 index d5b0f5d..0000000 --- a/layouts/_default/term.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ define "main" }} -{{ if isset .Data "Term" }} -

Entries tagged - "{{ .Data.Term }}"

-{{ else }} -

Random pondering

-{{ end }} - - -{{ end }} \ No newline at end of file diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html deleted file mode 100644 index d155049..0000000 --- a/layouts/_default/terms.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" }} -

All tags

- -{{ $biggest := 1 }} -{{ $smallest := 1 }} -{{ $max := 3 }} -{{ $min := 1 }} -{{ $size := $min }} - -{{ $data := .Data }} - - -{{ end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 0895cb6..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - {{ partial "head.html" . }} - - {{ partial "header.html" . }} -
-
- - pic - -
-

Lorem ipsum
- Lorem ipsum dolor sit amet.
- consectetur adipiscing Cras dignissim tortor ornare

-
-
- -
-

Latest blog posts

- {{ partial "lastPost.html" . }} - {{ partial "blogList.html" . }} -
- -
-

Online presence

- -
-
- {{ partial "footer.html" . }} - - diff --git a/layouts/partials/blogList.html b/layouts/partials/blogList.html deleted file mode 100644 index 3f2d681..0000000 --- a/layouts/partials/blogList.html +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index ee32d64..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,19 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index ad56428..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - {{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} - - - \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index 5452855..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,3 +0,0 @@ -
- {{ partial "nav.html" . }} -
\ No newline at end of file diff --git a/layouts/partials/lastPost.html b/layouts/partials/lastPost.html deleted file mode 100644 index 1e64bd8..0000000 --- a/layouts/partials/lastPost.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ range .Site.RegularPages.ByPublishDate.Reverse | first 1 }} -
-
-


- Published on:

- - {{ .Summary }} - - {{ if .Truncated }} -
-

words, - minute read.
- Read more ⇲

-
- {{ end }} -
-
-{{ end }} \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html deleted file mode 100644 index c692814..0000000 --- a/layouts/partials/nav.html +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/paginator.html b/layouts/partials/paginator.html deleted file mode 100644 index a8e1b47..0000000 --- a/layouts/partials/paginator.html +++ /dev/null @@ -1,15 +0,0 @@ -{{ $pag := $.Paginator }} -{{ if gt $pag.TotalPages 1 }} - -{{ end }} diff --git a/layouts/partials/themeSwitch.html b/layouts/partials/themeSwitch.html deleted file mode 100644 index 7fc3ce4..0000000 --- a/layouts/partials/themeSwitch.html +++ /dev/null @@ -1,10 +0,0 @@ -
- - -
- - \ No newline at end of file diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html deleted file mode 100644 index cbf033a..0000000 --- a/layouts/shortcodes/audio.html +++ /dev/null @@ -1,6 +0,0 @@ -
- -
\ No newline at end of file diff --git a/layouts/shortcodes/container.html b/layouts/shortcodes/container.html deleted file mode 100644 index bee4f3f..0000000 --- a/layouts/shortcodes/container.html +++ /dev/null @@ -1,7 +0,0 @@ -
- {{ range split .Inner "<--->" }} -
- {{ . | $.Page.RenderString }} -
- {{ end }} -
\ No newline at end of file diff --git a/layouts/shortcodes/imood.html b/layouts/shortcodes/imood.html deleted file mode 100644 index 0f4d837..0000000 --- a/layouts/shortcodes/imood.html +++ /dev/null @@ -1 +0,0 @@ -

Currently feeling...down

\ No newline at end of file diff --git a/layouts/shortcodes/statusCafe.html b/layouts/shortcodes/statusCafe.html deleted file mode 100644 index 69ab203..0000000 --- a/layouts/shortcodes/statusCafe.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/layouts/shortcodes/toc.html b/layouts/shortcodes/toc.html deleted file mode 100644 index 54fbf0f..0000000 --- a/layouts/shortcodes/toc.html +++ /dev/null @@ -1,4 +0,0 @@ -
-

Table Of Contents

- {{ .Page.TableOfContents }} -
\ No newline at end of file diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 0000000..645682b --- /dev/null +++ b/public/css/style.css @@ -0,0 +1,322 @@ +:root, +:root.light { + --bgColor: #EEEEEE; + --fgColor: #41474E; + --metaColor: #D26878; + --headColor: #; + --linkColor: #5690AF; + --hovColor: #22453F; + --bgSelect: #FFFAE1; + --bgUrl: url(https://i.ibb.co/Qpkrw4V/tile-Light.webp) repeat; + --red: #D26878; + --dimRed: #623039; + --orange: #e08f67; + --dimOrange: #926048; + --yellow: #FFFAE1; + --dimYellow: #D5C5A1; + --green: #56AFA0; + --dimGreen: #22453F; + --blue: #5690AF; + --dimBlue: #223844; + --purple: #9271D6; + --dimPurple: #47356C; + --grey: #CBCDCD; + --dimGrey: #646868 +} + +:root.dark { + --bgColor: #222529; + --fgColor: #D6D6D6; + --metaColor: #78B6AD; + --headColor: #; + --linkColor: #DBD5BC; + --hovColor: #E2AEA2; + --bgSelect: #464949; + --bgUrl: url(https://i.ibb.co/LzrFBFJ/tileDark.webp) repeat; + --red: #CD909B; + --dimRed: #684249; + --orange: #E2AEA2; + --dimOrange: #704941; + --yellow: #DBD5BC; + --dimYellow: #6F6847; + --green: #78B6AD; + --dimGreen: #3E615C; + --blue: #87C9E5; + --dimBlue: #38494F; + --purple: #CEA7DE; + --dimPurple: #5E406A; + --grey: #CBCDCD; + --dimGrey: #464949 +} + +::-moz-selection { + color: var(--bgColor); + background: var(--metaColor) +} + +::selection { + color: var(--bgColor); + background: var(--metaColor) +} + +html { + -webkit-box-sizing: border-box; + box-sizing: border-box; + font-size: 62.5% +} + +body { + font-family: monospace; + font-size: 1.6rem; + line-height: 1.35; + max-width: 64rem; + margin: auto; + padding: 1rem; + overflow-wrap: break-word; + background: var(--bgColor); + color: var(--fgColor); +} + +h1 { + font-size: 2.4rem; + margin: 1rem 1rem 1.5rem 0; + color: var(--bgColor); + background-color: var(--metaColor); + text-align: center; +} + +h1::before { + color: var(--bgColor); + content: '# ' +} + +h2::before, +h3::before, +h4::before, +h5::before, +h6::before { + color: var(--metaColor); + content: '# ' +} + +a { + color: var(--linkColor); +} + +a:focus, +a:hover { + background-color: var(--linkColor); + color: var(--bgColor) +} + +ul { + list-style: none; + margin-top: .5rem; + margin-bottom: .5rem; + line-height: 1.45 +} + +ul li::marker { + content: '» '; + color: var(--metaColor) +} + +ul li:hover::marker { + content: '# '; + font-weight: 700; + color: var(--linkColor) +} + +blockquote { + border-left: 5px solid var(--metaColor); + margin: 1rem; + padding: 0 0 0 1rem +} + +textarea { + border: 2px dotted; + outline: 0; + resize: none; + overflow: auto; + background-color: var(--bgColor) +} + +hr { + border: 1px dashed +} + +img { + max-width: 90%; + height: auto; + margin: .2rem; + padding: .2rem; + border: dashed 2px var(--metaColor); + border-radius: 15px +} + +pre { + color: var(--bgColor); + background-color: var(--fgColor); +} + +p code, +li code, +div code { + color: var(--bgColor); + background-color: var(--fgColor); +} + +iframe { + max-width: 90%; +} + +table { + table-layout: fixed; + width: 100%; + border-collapse: collapse; + border: none; + margin-left: auto; + margin-right: auto; + margin-bottom: 1rem; + line-height: 1.1 +} + +thead th:first-child { + width: 20% +} + +th { + font-weight: 400 +} + +td, +th { + padding: .5rem; + border: dashed 1px var(--metaColor) +} + +footer { + font-size: 1.4rem; + clear: both; + color: var(--footColor) +} + +footer, +td, +th { + text-align: left +} + +.metaData, +.themeButton, +hr, +textarea { + color: var(--metaColor) +} + +.navBar { + margin: .5rem; + margin-bottom: 1rem; + display: flex; + flex-direction: row; + gap: .4rem; + flex-wrap: wrap; + justify-content: flex-end; + align-items: center; + align-content: flex-end +} + +.themeButton { + cursor: pointer; + border: none; + font-size: 1.8rem; + background-color: transparent +} + +.dark .themeButton.dark, +.themeButton.light { + display: none +} + +.dark .themeButton.light { + display: block +} + +.tagsData { + display: flex; + flex-direction: column; + flex-wrap: wrap; + justify-content: flex-end; + align-items: flex-start; + align-content: flex-end +} + +.footnote-definition { + margin: 0 0 0 2rem; +} +.footnote-definition-label { + color: var(--metaColor); +} +.footnote-definition p { + display: inline; + padding: 0 0 0 1rem; +} + +.footContainer, +.footRight { + display: flex; + align-content: center +} + +.footContainer { + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + align-items: flex-start +} + +.footRight { + flex-direction: column; + flex-wrap: wrap; + justify-content: center; + align-items: center +} + +.noStyle { + padding: 0; + margin: 0; + border: none; + border-radius: 0 +} + +.textCenter { + text-align: center; +} + +.floatRight { + float: right +} + +.floatLeft { + float: left +} + +#statuscafe { + border: 2px dashed var(--metaColor); + border-radius: 10px; + margin-bottom: 2rem; + padding: 1.4rem; +} + +#statuscafe-content { + margin-left: 1rem +} + +#statuscafe:focus, +#statuscafe:hover { + transform: scale(1.05); + -webkit-transition: .1s ease-in; + -moz-transition: .1s ease-in; + -o-transition: .1s ease-in; + background: var(--bgSelect) +} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..7eb16ea Binary files /dev/null and b/public/favicon.ico differ diff --git a/static/css/style.css b/static/css/style.css index 71cac6c..645682b 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1 +1,322 @@ -footer,td,th{text-align:left}#statuscafe,.lastPost,body{padding:1rem}#statuscafe-username,ul{margin-bottom:.5rem}:root,:root.light{--bgColor:#EEEEEE;--fgColor:#41474E;--metaColor:#D26878;--headColor:#;--linkColor:#5690AF;--hovColor:#22453F;--bgSelect:#FFFAE1;--bgUrl:url(https://i.ibb.co/Qpkrw4V/tile-Light.webp) repeat;--red:#D26878;--dimRed:#623039;--orange:#e08f67;--dimOrange:#926048;--yellow:#FFFAE1;--dimYellow:#D5C5A1;--green:#56AFA0;--dimGreen:#22453F;--blue:#5690AF;--dimBlue:#223844;--purple:#9271D6;--dimPurple:#47356C;--grey:#CBCDCD;--dimGrey:#646868}:root.dark{--bgColor:#222529;--fgColor:#D6D6D6;--metaColor:#78B6AD;--headColor:#;--linkColor:#DBD5BC;--hovColor:#E2AEA2;--bgSelect:#464949;--bgUrl:url(https://i.ibb.co/LzrFBFJ/tileDark.webp) repeat;--red:#CD909B;--dimRed:#684249;--orange:#E2AEA2;--dimOrange:#704941;--yellow:#DBD5BC;--dimYellow:#6F6847;--green:#78B6AD;--dimGreen:#3E615C;--blue:#87C9E5;--dimBlue:#38494F;--purple:#CEA7DE;--dimPurple:#5E406A;--grey:#CBCDCD;--dimGrey:#464949}::-moz-selection{color:var(--bgColor);background:var(--metaColor)}::selection{color:var(--bgColor);background:var(--metaColor)}html{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:62.5%}body{font-family:sans-serif;font-size:1.6rem;line-height:1.35;max-width:64rem;margin:auto;background:var(--bgColor);color:var(--fgColor)}h1,h2,h3,h4,h5,h6{font-size:1.8rem;margin:1rem 0;color:var(--headColor)}h1::before,h2::before,h3::before,h4::before,h5::before,h6::before{color:var(--metaColor);content:'# '}a{color:var(--linkColor)}.metaData,.themeButton,hr,textarea{color:var(--metaColor)}a:focus,a:hover{background-color:var(--linkColor);color:var(--bgColor)}ul{list-style:none;margin-top:.5rem;line-height:1.45}ul li::marker{content:'» ';color:var(--metaColor)}ul li:hover::marker{content:'# ';font-weight:700;color:var(--linkColor)}blockquote{border-left:5px solid var(--metaColor);margin:1rem;padding:0 0 0 1rem}textarea{border:2px dotted;outline:0;resize:none;overflow:auto;background-color:var(--bgColor)}hr{border:1px dashed}footer{font-size:1.4rem;clear:both;color:var(--footColor)}img{max-width:100%;height:auto;padding:.2rem;border:dashed 2px var(--metaColor);border-radius:15px}table{table-layout:fixed;width:100%;border-collapse:collapse;border:none;margin-left:auto;margin-right:auto;margin-bottom:1rem;line-height:1.1}thead th:first-child{width:20%}th{font-weight:400}td,th{padding:.5rem;border:dashed 1px var(--metaColor)}.navBar{margin:.5rem;display:flex;flex-direction:row;gap:.3rem;flex-wrap:wrap;justify-content:flex-end;align-items:center;align-content:flex-end}.themeButton{cursor:pointer;border:none;font-size:1.8rem;background-color:transparent}.dark .themeButton.dark,.themeButton.light{display:none}.dark .themeButton.light{display:block}.introContainer{margin-top:1rem;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:center}.avatar{margin:0 1rem 0 0}.lastPost{border:2px dashed var(--metaColor);border-radius:10px;margin-bottom:2rem}.lastPost:focus,.lastPost:hover{transform:scale(1.05);-webkit-transition:.1s ease-in;-moz-transition:.1s ease-in;-o-transition:.1s ease-in;background:var(--bgSelect)}.postData{margin-top:.5rem;text-align:right}.moreContainer{display:grid;grid-gap:0.5rem;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));justify-content:start;justify-items:start;align-items:start}.tagsData{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-end;align-items:flex-start;align-content:flex-end}.footContainer,.footRight{display:flex;align-content:center}.footContainer{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-start}.footRight{flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.noStyle{padding:0;margin:0;border:none;border-radius:0}.textCenter{text-align:center}.floatRight{float:right}.floatLeft{float:left}.moe{position:fixed;z-index:-1;bottom:0;right:2.5rem}#statuscafe-content{margin-left:1rem}@media(max-width:65.625em),screen and (orientation:portrait){.moe{display:none}}@media(max-width:37.5em){.readData{display:none}}@media(max-width:21.75em){.avatar{display:none}} \ No newline at end of file +:root, +:root.light { + --bgColor: #EEEEEE; + --fgColor: #41474E; + --metaColor: #D26878; + --headColor: #; + --linkColor: #5690AF; + --hovColor: #22453F; + --bgSelect: #FFFAE1; + --bgUrl: url(https://i.ibb.co/Qpkrw4V/tile-Light.webp) repeat; + --red: #D26878; + --dimRed: #623039; + --orange: #e08f67; + --dimOrange: #926048; + --yellow: #FFFAE1; + --dimYellow: #D5C5A1; + --green: #56AFA0; + --dimGreen: #22453F; + --blue: #5690AF; + --dimBlue: #223844; + --purple: #9271D6; + --dimPurple: #47356C; + --grey: #CBCDCD; + --dimGrey: #646868 +} + +:root.dark { + --bgColor: #222529; + --fgColor: #D6D6D6; + --metaColor: #78B6AD; + --headColor: #; + --linkColor: #DBD5BC; + --hovColor: #E2AEA2; + --bgSelect: #464949; + --bgUrl: url(https://i.ibb.co/LzrFBFJ/tileDark.webp) repeat; + --red: #CD909B; + --dimRed: #684249; + --orange: #E2AEA2; + --dimOrange: #704941; + --yellow: #DBD5BC; + --dimYellow: #6F6847; + --green: #78B6AD; + --dimGreen: #3E615C; + --blue: #87C9E5; + --dimBlue: #38494F; + --purple: #CEA7DE; + --dimPurple: #5E406A; + --grey: #CBCDCD; + --dimGrey: #464949 +} + +::-moz-selection { + color: var(--bgColor); + background: var(--metaColor) +} + +::selection { + color: var(--bgColor); + background: var(--metaColor) +} + +html { + -webkit-box-sizing: border-box; + box-sizing: border-box; + font-size: 62.5% +} + +body { + font-family: monospace; + font-size: 1.6rem; + line-height: 1.35; + max-width: 64rem; + margin: auto; + padding: 1rem; + overflow-wrap: break-word; + background: var(--bgColor); + color: var(--fgColor); +} + +h1 { + font-size: 2.4rem; + margin: 1rem 1rem 1.5rem 0; + color: var(--bgColor); + background-color: var(--metaColor); + text-align: center; +} + +h1::before { + color: var(--bgColor); + content: '# ' +} + +h2::before, +h3::before, +h4::before, +h5::before, +h6::before { + color: var(--metaColor); + content: '# ' +} + +a { + color: var(--linkColor); +} + +a:focus, +a:hover { + background-color: var(--linkColor); + color: var(--bgColor) +} + +ul { + list-style: none; + margin-top: .5rem; + margin-bottom: .5rem; + line-height: 1.45 +} + +ul li::marker { + content: '» '; + color: var(--metaColor) +} + +ul li:hover::marker { + content: '# '; + font-weight: 700; + color: var(--linkColor) +} + +blockquote { + border-left: 5px solid var(--metaColor); + margin: 1rem; + padding: 0 0 0 1rem +} + +textarea { + border: 2px dotted; + outline: 0; + resize: none; + overflow: auto; + background-color: var(--bgColor) +} + +hr { + border: 1px dashed +} + +img { + max-width: 90%; + height: auto; + margin: .2rem; + padding: .2rem; + border: dashed 2px var(--metaColor); + border-radius: 15px +} + +pre { + color: var(--bgColor); + background-color: var(--fgColor); +} + +p code, +li code, +div code { + color: var(--bgColor); + background-color: var(--fgColor); +} + +iframe { + max-width: 90%; +} + +table { + table-layout: fixed; + width: 100%; + border-collapse: collapse; + border: none; + margin-left: auto; + margin-right: auto; + margin-bottom: 1rem; + line-height: 1.1 +} + +thead th:first-child { + width: 20% +} + +th { + font-weight: 400 +} + +td, +th { + padding: .5rem; + border: dashed 1px var(--metaColor) +} + +footer { + font-size: 1.4rem; + clear: both; + color: var(--footColor) +} + +footer, +td, +th { + text-align: left +} + +.metaData, +.themeButton, +hr, +textarea { + color: var(--metaColor) +} + +.navBar { + margin: .5rem; + margin-bottom: 1rem; + display: flex; + flex-direction: row; + gap: .4rem; + flex-wrap: wrap; + justify-content: flex-end; + align-items: center; + align-content: flex-end +} + +.themeButton { + cursor: pointer; + border: none; + font-size: 1.8rem; + background-color: transparent +} + +.dark .themeButton.dark, +.themeButton.light { + display: none +} + +.dark .themeButton.light { + display: block +} + +.tagsData { + display: flex; + flex-direction: column; + flex-wrap: wrap; + justify-content: flex-end; + align-items: flex-start; + align-content: flex-end +} + +.footnote-definition { + margin: 0 0 0 2rem; +} +.footnote-definition-label { + color: var(--metaColor); +} +.footnote-definition p { + display: inline; + padding: 0 0 0 1rem; +} + +.footContainer, +.footRight { + display: flex; + align-content: center +} + +.footContainer { + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + align-items: flex-start +} + +.footRight { + flex-direction: column; + flex-wrap: wrap; + justify-content: center; + align-items: center +} + +.noStyle { + padding: 0; + margin: 0; + border: none; + border-radius: 0 +} + +.textCenter { + text-align: center; +} + +.floatRight { + float: right +} + +.floatLeft { + float: left +} + +#statuscafe { + border: 2px dashed var(--metaColor); + border-radius: 10px; + margin-bottom: 2rem; + padding: 1.4rem; +} + +#statuscafe-content { + margin-left: 1rem +} + +#statuscafe:focus, +#statuscafe:hover { + transform: scale(1.05); + -webkit-transition: .1s ease-in; + -moz-transition: .1s ease-in; + -o-transition: .1s ease-in; + background: var(--bgSelect) +} \ No newline at end of file diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..7eb16ea Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/js/index.js b/static/js/index.js deleted file mode 100644 index e69de29..0000000 diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..16c67e1 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,142 @@ + + + + + + + + + + {% if page.title %} + {% set title = page.title %} + {% elif section.title %} + {% set title = section.title %} + {% elif config.title %} + {% set title = config.title %} + {% endif %} + + {% if page.extra.author %} + {% set author = page.extra.author %} + {% elif section.extra.author %} + {% set author = section.extra.author %} + {% elif config.extra.author %} + {% set author = config.extra.author %} + {% endif %} + + {% if page.description %} + {% set description = page.description | truncate(length=150) %} + {% elif section.description %} + {% set description = section.description | truncate(length=150) %} + {% elif config.description %} + {% set description = config.description | truncate(length=150) %} + {% endif %} + + {% if page.extra.image %} + {% set image = get_url(path=page.extra.image, trailing_slash=false) %} + {% elif section.extra.image %} + {% set image = get_url(path=section.extra.image, trailing_slash=false) %} + {% elif config.extra.favicon %} + {% set image = get_url(path=config.extra.favicon, trailing_slash=false) %} + {% endif %} + + {% if page.permalink %} + {% set url = page.permalink %} + {% elif section.permalink %} + {% set url = section.permalink %} + {% elif config.base_url %} + {% set url = config.base_url %} + {% endif %} + + {% if title %}{{ title }}{% endif %} + {% block metatags %} + {% if title %}{% endif %} + {% if author %}{% endif %} + {% if description %}{% endif %} + + + + {% if title %}{% endif %} + {% if title %}{% endif %} + {% if description %}{% endif %} + {% if image %}{% endif %} + + {% set twitter_card = config.extra.twitter_card | default(value=true) %} + {% if twitter_card != false %} + + + {% if title %}{% endif %} + {% if description %}{% endif %} + {% if image %}{% endif %} + {% endif %} + + + {% if image %}{% endif %} + {% endblock metatags %} + {% if config.generate_feed %} + {% block feed %} + + {% endblock feed %} + {% endif %} + {% block css %} + + {% endblock css %} + + + +
+
+ + {% if config.extra.header_nav %} + + {% endif %} + + {% block header %}{% endblock header %} +
+ +
+ {% block content %}{% endblock content %} +
+ + +
+ + diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..ba8ee65 --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,50 @@ +{% extends "base.html" %} + +{% block header %} +
../{{ page.slug }}
+ +

{{ page.title }}

+{% endblock header %} + +{% block content %} + +{% if page.toc and page.extra.toc %} +

Table of contents

+ +{% endif %} + + +{{ page.content | safe }} +{% endblock content %} + +{% block footer %} +

+{% if page.taxonomies.tags %} +{% for tag in page.taxonomies.tags %} +#{{ tag }} +{% endfor %} +{% endif %} +

+{% endblock footer %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..1bdb008 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block content %} +{{ section.content | safe }} + +{% if config.extra.list_pages %} + +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = section.pages %} +{% endif %} + + + +{% if paginator %} +
{% if paginator.previous %}   <{% endif %}   {{ paginator.current_index }} / {{ paginator.number_pagers }}   {% if paginator.next %}>   {% endif %}
+{% endif %} + +{% endif %} +{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..391d9db --- /dev/null +++ b/templates/page.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} + +{% block header %} +

{{ page.title }}

+{% endblock header %} + +{% block content %} + +{% if page.toc and page.extra.toc %} +

Table of contents

+ +{% endif %} + +{{ page.content | safe }} +{% endblock content %} + +{% block footer %} +

+{% if page.taxonomies.tags %} +{% for tag in page.taxonomies.tags %} +#{{ tag }} +{% endfor %} +{% endif %} +

+{% endblock footer %} \ No newline at end of file diff --git a/templates/robots.txt b/templates/robots.txt new file mode 100644 index 0000000..5a05f53 --- /dev/null +++ b/templates/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: +Allow: / +Sitemap: {{ get_url(path="sitemap.xml") }} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..62136cd --- /dev/null +++ b/templates/section.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block header %} +

{{ section.title }}

+{% endblock header %} + +{% block content %} +{{ section.content | safe }} + +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = section.pages %} +{% endif %} + +{% if paginator %} +
{% if paginator.previous %}   <{% endif %}   {{ paginator.current_index }} / {{ paginator.number_pagers }}   {% if paginator.next %}>   {% endif %}
+{% endif %} +{% endblock content %} \ No newline at end of file diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html new file mode 100644 index 0000000..9bd9616 --- /dev/null +++ b/templates/shortcodes/img.html @@ -0,0 +1,4 @@ +
+ + {% if caption %}
{{caption}}
{% endif %} +
\ No newline at end of file diff --git a/templates/shortcodes/metaData.html b/templates/shortcodes/metaData.html new file mode 100644 index 0000000..6f67c4e --- /dev/null +++ b/templates/shortcodes/metaData.html @@ -0,0 +1 @@ +{{content}} \ No newline at end of file diff --git a/templates/shortcodes/youtube.html b/templates/shortcodes/youtube.html new file mode 100644 index 0000000..abc23c7 --- /dev/null +++ b/templates/shortcodes/youtube.html @@ -0,0 +1,9 @@ +
+ +
\ No newline at end of file diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..5d0dc78 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block header %} +

{{ taxonomy.name }}

+{% endblock header %} + +{% block content %} +

+{% for term in terms %} +#{{ term.name }}[{{ term.pages | length }}] +{% endfor %} +

+{% endblock content %} \ No newline at end of file diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..5e0e437 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% block header %} +

{{ term.name }}

+{% endblock header %} + +{% block content %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = term.pages %} +{% endif %} + +{% if paginator %} +

{% if paginator.previous %}<< First < Previous{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}Next > Last >>{% endif %}

+{% endif %} +{% endblock content %} \ No newline at end of file diff --git a/theme.toml b/theme.toml index 7d411c7..b73a298 100644 --- a/theme.toml +++ b/theme.toml @@ -1,30 +1,13 @@ -# theme.toml template for a Hugo theme -# See https://github.com/gohugoio/hugoThemes#themetoml for an example - name = "anemone" +description = "Nearly no-Javascript, efficient, minimal theme." license = "MIT" -licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" -description = "Simple minimal elegant theme." -homepage = "https://github.com/speyll/anemone" -tags = ["minimal", "responsive", "blog", "dark", "light", "dark-mode"] -features = [] -min_version = "0.41.0" +homepage = "https://github.com/Speyll/anemone" +min_version = "0.4.0" +demo = "https://anemone.pages.dev" + +[extra] + [author] - name = "Speyll" - homepage = "https://speyll.gitlab.io/site/" - -[[menu.main]] - name = "/about" - url = "/about" - weight = 1 - -[[menu.main]] - name = "/blog" - url = "/blog" - weight = 2 - -[[menu.main]] - name = "/tags" - url = "/tags" - weight = 3 +name = "Lyes 'Speyll'" +homepage = "https://speyllsite.pages.dev/" \ No newline at end of file