commit 028f23e96dd4c6a86465cb616be84480ac3a7a1e Author: Ahmed M Alaa Date: Sat Dec 3 21:01:01 2022 +0200 init: just ported the theme diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..668d9dc --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +static/processed_images +public \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e6e3100 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +image: alpine:latest +pages: + script: + # Install the zola package from the alpine community repositories + - apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola + # Execute zola build + - zola build + + artifacts: + paths: + # Path of our artifacts + - public + + # This config will only publish changes that are pushed on the master branch + only: + - master \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e1b8031 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022 Ahmed Alaa +Copyright (c) 2020 Riccardo Graziosi (original theme) + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..af74eee --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +# no style, please! + +A (nearly) no-CSS, fast, minimalist [Zola](https://www.getzola.org/) theme. +Ported from from [riggraz](https://riggraz.dev/)'s [no style, please! Jekyll theme](https://riggraz.dev/no-style-please/), and I use it for [my site](https://4b.cx/) + +![screenshot](./screenshot.png) + +## Installation + +First download this theme to your `themes` directory: + +```bash +cd themes +git clone https://gitlab.com/4bcx/no-style-please.git +``` + +and then enable it in your `config.toml`: + +```toml +theme = "no-style-please" +``` + +## Options + +### Pages list in homepage + +To enable listing of pages in homepage add the following in `content\_index.md` frontmatter + +```toml +[exta] +list_pages = false +``` + +### 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 `logo` in main config, except this one is also used as the site icon + +### Horizontal rule shortcode `hr()` + +Adds the option to insert text in the thematic break + +```html +{{ hr(data_content="footnotes") }} +``` + +is rendered + +![thematic break screenshot](./hr_footnotes.png) + +### Invertable image `iimg()` + +Images are not inverted in darkmode by default. To add an invertable image use the following + +```html +{{ iimg(src="logo.png", alt="alt text") }} +``` + +In light mode + +![image in light mode](./iimg_light.png) + +In dark mode + +![image in dark mode](./iimg_dark.png) + +## TODO + +- [ ] Add RTL support +- [ ] Write proper test pages + +## License + +The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..c3d3863 --- /dev/null +++ b/config.toml @@ -0,0 +1,18 @@ +base_url = "https://4b.cx/no-style-please/" +title = "no style, please!" +description = "A (nearly) no-CSS, fast, minimalist Zola theme." + +compile_sass = true +build_search_index = false +generate_feed = true + +taxonomies = [ + { name = "categories" }, +] + +[markdown] +highlight_code = true + +[extra] +author = "Ahmed Alaa" +logo = "images/logo.png" \ No newline at end of file diff --git a/content/2020-07-07-overview-post.md b/content/2020-07-07-overview-post.md new file mode 100644 index 0000000..8b7755c --- /dev/null +++ b/content/2020-07-07-overview-post.md @@ -0,0 +1,84 @@ +--- +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. + +## Thematic breaks (\
) + +Mauris viverra dictum ultricies[^3]. 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. **You can put some text inside the horizontal rule like so.** + +{{ hr(data_content="hr with text") }} + +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. **Or you can just have an clean horizontal rule.** + +--- + +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. Or you can just have an clean horizontal rule. + +## Code + +Now some code: + +``` +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 + +{{ iimg(src="https://raw.githubusercontent.com/riggraz/no-style-please/master/logo.png", alt="theme logo") }} + +Logo of *no style, please!* theme[^4] + +{{ hr(data_content="footnotes") }} + +[^1]: this is a footnote. It should highlight if you click on the corresponding superscript number. + +[^2]: hey there, i'm using no style please! + +[^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/2020-07-08-language-tests.md b/content/2020-07-08-language-tests.md new file mode 100644 index 0000000..f2b8510 --- /dev/null +++ b/content/2020-07-08-language-tests.md @@ -0,0 +1,52 @@ +--- +title: "Language Tests" +taxonomies: + categories: ["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/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md b/content/2020-07-08-very-very-very-long-title-and-very-very-very-short-content.md new file mode 100644 index 0000000..99aea7f --- /dev/null +++ b/content/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/2020-07-09-post-example-with-headings-and-toc.md b/content/2020-07-09-post-example-with-headings-and-toc.md new file mode 100644 index 0000000..e82432e --- /dev/null +++ b/content/2020-07-09-post-example-with-headings-and-toc.md @@ -0,0 +1,24 @@ +--- +title: "Post Example With Headings And Toc" +taxonomies: + categories: ["example"] +extra: + add_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 + +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/2020-07-09-post-example-with-hr.md b/content/2020-07-09-post-example-with-hr.md new file mode 100644 index 0000000..dfbfa72 --- /dev/null +++ b/content/2020-07-09-post-example-with-hr.md @@ -0,0 +1,27 @@ +--- +title: "Post Example With Hr" +--- + +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. Nullam vestibulum metus eu purus malesuada, volutpat mattis leo facilisis. Sed consectetur, nisl et semper laoreet, velit augue congue nunc, eget eleifend odio erat eu sapien. Phasellus dictum efficitur dapibus. Morbi porta lacinia tincidunt. Nam aliquet est mi, nec lacinia ipsum elementum sed. Nam feugiat ipsum tortor, et pretium purus sollicitudin et. + +--- + +Mauris viverra dictum ultricies[^2]. Vestibulum[^3] 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. + +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. + +{{ hr(data_content="discussions") }} + +This article has been discussed here: +- [lobste.rs](#) +- [/r/webdev](#) + +Feel free to reach out at my email to leave feedback and talk about the article. + +{{ hr(data_content="footnotes") }} + +[^1]: Okay here I should put something about "ipsum". + +[^2]: same goes for this. + +[^3]: I studied latin in high school but im not able to translate *anything*! By the way this is a longer footnote and i think it is still pretty cool, even prettier than shortier ones even though it does not say anything useful but whatever. \ No newline at end of file diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..7bbef8a --- /dev/null +++ b/content/_index.md @@ -0,0 +1,24 @@ +--- +extra: + list_pages: false +--- + +- info + - a (nearly) no-CSS, fast, minimalist Zola theme. + - [gitlab](https://gitlab.com/4bcx/no-style-please) and [github](https://github.com/4bcx/no-style-please) repos + - ported from [riggraz](https://riggraz.dev/)'s [no style, please! Jekyll theme](https://riggraz.dev/no-style-please/) +- posts + - [Overview Post](./overview-post) + - [Language Tests](./language-tests) + - [Post Example With Hr](./post-example-with-hr) + - [Very Very Very Long Title And Very Very Very Short Content](./very-very-very-long-title-and-very-very-very-short-content) + - [Post Example With Headings And Toc](./post-example-with-headings-and-toc) +- [categories](./categories) + - [example](./categories/example) +- [feed](./atom.xml) +- another list + - with subitems + - with subsubitems + - [example page](./about) +- PRO TIP + - unlike the [original](https://riggraz.dev/no-style-please/) theme, this list is just the contents of `content/_index.md` \ No newline at end of file diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 0000000..aeb9fae --- /dev/null +++ b/content/about/index.md @@ -0,0 +1,6 @@ ++++ +title = "About" ++++ +This is an example page! + +It uses the section layout. \ No newline at end of file diff --git a/hr_footnotes.png b/hr_footnotes.png new file mode 100644 index 0000000..e2818c1 Binary files /dev/null and b/hr_footnotes.png differ diff --git a/iimg_dark.png b/iimg_dark.png new file mode 100644 index 0000000..b14109d Binary files /dev/null and b/iimg_dark.png differ diff --git a/iimg_light.png b/iimg_light.png new file mode 100644 index 0000000..5febf31 Binary files /dev/null and b/iimg_light.png differ diff --git a/sass/style.scss b/sass/style.scss new file mode 100644 index 0000000..c1b9fc9 --- /dev/null +++ b/sass/style.scss @@ -0,0 +1,105 @@ +// -------------- THEME SWITCHER -------------- // +@mixin dark-appearance { + filter: invert(1); + img { + filter: invert(1); + + &.invertable { filter: invert(0); } + } +} + +body[theme="dark"] { @include dark-appearance; } + + +@media (prefers-color-scheme: dark) { + body[theme="auto"] { @include dark-appearance; } +} +// -------------------------------------------- // + +// bg color is also needed in html in order to +// block body's background propagation +// see: https://stackoverflow.com/a/61265706 +html, body { background: white; } + +html { height: 100%; } + +body { + color: black; + font-family: monospace; + font-size: 16px; + line-height: 1.4; + margin: 0; + min-height: 100%; + overflow-wrap: break-word; +} + +.post-meta { text-align: right; } + +h2, h3, h4, h5, h6 { margin-top: 3rem; } + +hr { margin: 2rem 0; } + +p { margin: 1rem 0; } + +li { margin: 0.4rem 0; } + +*:target { background: yellow; } + +.w { + max-width: 640px; + margin: 0 auto; + padding: 4rem 2rem; +} + +hr { + text-align: center; + border: 0; + + &:before { content: '/////' } + &:after { content: attr(data-content) '/////' } +} + +table { width: 100%; } + +table, th, td { + border: thin solid black; + border-collapse: collapse; + padding: 0.4rem; +} + +code { + color: white; + background: black; +} + +pre code { + display: block; + overflow-x: auto; + white-space: pre-wrap; + padding: 1rem; +} + +blockquote { + font-style: italic; + border: thin solid black; + padding: 1rem; + + p { margin: 0; } +} + +img { + max-width: 100%; + display: block; + margin: 0 auto; +} + +.footnote-definition { + padding: 0 1rem; + &:target { + background: yellow; + color: #212121; + } + p { + display: inline; + } +} \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..7420fa5 Binary files /dev/null and b/screenshot.png differ diff --git a/static/images/logo.png b/static/images/logo.png new file mode 100644 index 0000000..84312ee Binary files /dev/null and b/static/images/logo.png differ diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..65919ff --- /dev/null +++ b/templates/404.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} + 404 +{% endblock content %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..e50dc0a --- /dev/null +++ b/templates/base.html @@ -0,0 +1,99 @@ + + + + + + + + + {% if page.title %} + {% set title = page.title %} + {% else %} + {% set title = config.title %} + {% endif %} + + {% if page.extra.author %} + {% set author = page.extra.author %} + {% else %} + {% set author = config.extra.author %} + {% endif %} + + {% if page.description %} + {% set description = page.description | truncate(length=150) %} + {% else %} + {% set description = config.description | truncate(length=150) %} + {% endif %} + + {% if page.extra.image %} + {% set image = get_url(path=page.extra.image, trailing_slash=false) %} + {% else %} + {% set image = get_url(path=config.extra.logo, trailing_slash=false) %} + {% endif %} + + {% if page.permalink %} + {% set url = page.permalink %} + {% else %} + {% 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 %} + + + + {% if title %}{% endif %} + {% if description %}{% endif %} + {% if image %}{% endif %} + + + {% if image %}{% endif %} + + {% endblock metatags %} + {% if config.generate_feed %} + {% block feed %} + + {% endblock feed %} + {% endif %} + {% block css %} + + {% endblock css %} + + +
+
+ {% block header %}{% if title %}

{{ config.title }}

{% endif %}{% endblock header %} +
+
+ {% block content %}{% endblock content %} +
+
+ {% block footer %}{% endblock footer %} +
+
+ + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..146df3b --- /dev/null +++ b/templates/index.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block content %} +{{ section.content | safe }} + +{% if section.extra.list_pages %} +{% if paginator %} +{% set pages = paginator.pages %} +{% else %} +{% set pages = section.pages %} +{% endif %} + +{% if paginator %} +

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

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

../{{ page.slug }}

+

+

{{ page.title }}

+{% endblock header %} + +{% block content %} + +{% if page.toc and page.extra.add_toc %} +Table of contents + +{% endif %} + +{{ page.content | safe }} +{% endblock content %} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..cd509fa --- /dev/null +++ b/templates/section.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} + +{% block header %} +

..{{ section.path }}

+ +

{{ 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 %}<< 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/templates/shortcodes/hr.html b/templates/shortcodes/hr.html new file mode 100644 index 0000000..732aa3b --- /dev/null +++ b/templates/shortcodes/hr.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/templates/shortcodes/iimg.html b/templates/shortcodes/iimg.html new file mode 100644 index 0000000..4e0a8d0 --- /dev/null +++ b/templates/shortcodes/iimg.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html new file mode 100644 index 0000000..e27d135 --- /dev/null +++ b/templates/taxonomy_list.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block header %} +

..{{ current_path }}

+ +

{{ taxonomy.name }}

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

../{{ term.slug }}/

+ +

{{ 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 new file mode 100644 index 0000000..54a937b --- /dev/null +++ b/theme.toml @@ -0,0 +1,18 @@ +name = "no style, please!" +description = "A (nearly) no-CSS, fast, minimalist Zola theme" +license = "MIT" +homepage = "https://gitlab.com/4bcx/no-style-please-zola" +min_version = "0.4.0" +demo = "https://4b.cx/no-style-please-zola" + +[extra] + +# The theme author info: you! +[author] +name = "Ahmed Alaa" +homepage = "https://4b.cx" + +[original] +author = "Riccardo Graziosi" +homepage = "https://riggraz.dev" +repo = "https://github.com/riggraz/no-style-please" \ No newline at end of file