init: just ported the theme
This commit is contained in:
commit
028f23e96d
28 changed files with 712 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
static/processed_images
|
||||
public
|
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal file
|
@ -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
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -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.
|
75
README.md
Normal file
75
README.md
Normal file
|
@ -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 `<meta>` 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).
|
18
config.toml
Normal file
18
config.toml
Normal file
|
@ -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"
|
84
content/2020-07-07-overview-post.md
Normal file
84
content/2020-07-07-overview-post.md
Normal file
|
@ -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 (\<hr>)
|
||||
|
||||
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.
|
52
content/2020-07-08-language-tests.md
Normal file
52
content/2020-07-08-language-tests.md
Normal file
|
@ -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)
|
|
@ -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.
|
24
content/2020-07-09-post-example-with-headings-and-toc.md
Normal file
24
content/2020-07-09-post-example-with-headings-and-toc.md
Normal file
|
@ -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.
|
||||
|
27
content/2020-07-09-post-example-with-hr.md
Normal file
27
content/2020-07-09-post-example-with-hr.md
Normal file
|
@ -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.
|
24
content/_index.md
Normal file
24
content/_index.md
Normal file
|
@ -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`
|
6
content/about/index.md
Normal file
6
content/about/index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "About"
|
||||
+++
|
||||
This is an example page!
|
||||
|
||||
It uses the section layout.
|
BIN
hr_footnotes.png
Normal file
BIN
hr_footnotes.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
BIN
iimg_dark.png
Normal file
BIN
iimg_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
BIN
iimg_light.png
Normal file
BIN
iimg_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
105
sass/style.scss
Normal file
105
sass/style.scss
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
BIN
static/images/logo.png
Normal file
BIN
static/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 474 B |
5
templates/404.html
Normal file
5
templates/404.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
404
|
||||
{% endblock content %}
|
99
templates/base.html
Normal file
99
templates/base.html
Normal file
|
@ -0,0 +1,99 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ lang }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
|
||||
<meta content="width=device-width, initial-scale=1" name="viewport"/>
|
||||
|
||||
{% 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>{{ title }}</title>{% endif %}
|
||||
{% block metatags %}
|
||||
{% if title %}<meta name="title" content="{{ title }}">{% endif %}
|
||||
{% if author %}<meta name="author" content="{{ author }}">{% endif %}
|
||||
{% if description %}<meta name="description" content="{{ description }}">{% endif %}
|
||||
<meta name="generator" content="Zola v0.16.1">
|
||||
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ url | safe }}">
|
||||
{% if title %}<meta property="og:site_name" content="{{ config.title }}">{% endif %}
|
||||
{% if title %}<meta property="og:title" content="{{ title }}">{% endif %}
|
||||
{% if description %}<meta property="og:description" content="{{ description }}">{% endif %}
|
||||
{% if image %}<meta property="og:image" content="{{ image }}">{% endif %}
|
||||
|
||||
<meta property="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:url" content="{{ url | safe }}">
|
||||
{% if title %}<meta property="twitter:title" content="{{ title }}">{% endif %}
|
||||
{% if description %}<meta property="twitter:description" content="{{ description }}">{% endif %}
|
||||
{% if image %}<meta property="twitter:image" content="{{ image }}">{% endif %}
|
||||
|
||||
<link rel="canonical" href="{{ url | safe }}">
|
||||
{% if image %}<link rel="shortcut icon" type="image/x-icon" href="{{ get_url(path=config.extra.logo, trailing_slash=false) }}">{% endif %}
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
{% if description %}"description":"{{ description | safe }}",{% endif %}
|
||||
"url":"{{ url | safe }}",
|
||||
"@type":"WebSite",
|
||||
{% if title %}"headline":"{{ title | safe }}",{% endif %}
|
||||
{% if title %}"name":"{{ title | safe }}",{% endif %}
|
||||
{% if author %}"author":{
|
||||
"@type":"Person",
|
||||
"name":"{{ author | safe }}"
|
||||
},{% endif %}
|
||||
"@context":"https://schema.org"
|
||||
}
|
||||
</script>
|
||||
{% endblock metatags %}
|
||||
{% if config.generate_feed %}
|
||||
{% block feed %}
|
||||
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
|
||||
{% endblock feed %}
|
||||
{% endif %}
|
||||
{% block css %}
|
||||
<link rel="stylesheet" href="{{ get_url(path='style.css', trailing_slash=false) | safe }}"/>
|
||||
{% endblock css %}
|
||||
</head>
|
||||
<body theme="auto">
|
||||
<div class="w">
|
||||
<header>
|
||||
{% block header %}{% if title %}<h1>{{ config.title }}</h1>{% endif %}{% endblock header %}
|
||||
</header>
|
||||
<main class="page-content" aria-label="Content">
|
||||
{% block content %}{% endblock content %}
|
||||
</main>
|
||||
<footer>
|
||||
{% block footer %}{% endblock footer %}
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
25
templates/index.html
Normal file
25
templates/index.html
Normal file
|
@ -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 %}
|
||||
<ul>
|
||||
{% for page in pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a>
|
||||
<br />
|
||||
{{ page.description }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if paginator %}
|
||||
<p>{% if paginator.previous %}<a href="{{ paginator.first }}"><< First</a> <a href="{{ paginator.previous }}">< Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next ></a> <a href="{{ paginator.last }}">Last >></a>{% endif %}</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
32
templates/page.html
Normal file
32
templates/page.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
<p><a href="..">..</a>/{{ page.slug }}</p>
|
||||
<p class="post-meta"><time datetime="{{ page.date }}">{{ page.date }}</time></p>
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% endblock header %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if page.toc and page.extra.add_toc %}
|
||||
Table of contents
|
||||
<ul>
|
||||
{% for h1 in page.toc %}
|
||||
<li>
|
||||
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
|
||||
{% if h1.children %}
|
||||
<ul>
|
||||
{% for h2 in h1.children %}
|
||||
<li>
|
||||
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{{ page.content | safe }}
|
||||
{% endblock content %}
|
28
templates/section.html
Normal file
28
templates/section.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
<p><a href="{{ section.path }}..">..</a>{{ section.path }}</p>
|
||||
|
||||
<h1>{{ section.title }}</h1>
|
||||
{% endblock header %}
|
||||
|
||||
{% block content %}
|
||||
{{ section.content | safe }}
|
||||
{% if paginator %}
|
||||
{% set pages = paginator.pages %}
|
||||
{% else %}
|
||||
{% set pages = section.pages %}
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for page in pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a>
|
||||
<br />
|
||||
{{ page.description }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if paginator %}
|
||||
<p>{% if paginator.previous %}<a href="{{ paginator.first }}"><< First</a> <a href="{{ paginator.previous }}">< Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next ></a> <a href="{{ paginator.last }}">Last >></a>{% endif %}</p>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
1
templates/shortcodes/hr.html
Normal file
1
templates/shortcodes/hr.html
Normal file
|
@ -0,0 +1 @@
|
|||
<hr data-content="{% if data_content %}{{ data_content }}{% endif %}" \>
|
1
templates/shortcodes/iimg.html
Normal file
1
templates/shortcodes/iimg.html
Normal file
|
@ -0,0 +1 @@
|
|||
<img class="invertable" {% if src %}src="{{ src }}"{% endif %} {% if alt %}alt="{{ alt }}"{% endif %} />
|
17
templates/taxonomy_list.html
Normal file
17
templates/taxonomy_list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
<p><a href="{{ current_path }}..">..</a>{{ current_path }}</p>
|
||||
|
||||
<h1>{{ taxonomy.name }}</h1>
|
||||
{% endblock header %}
|
||||
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for term in terms %}
|
||||
<li>
|
||||
<a href="{{ term.permalink | safe }}">{{ term.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
27
templates/taxonomy_single.html
Normal file
27
templates/taxonomy_single.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
<p><a href="{{ current_path }}">..</a>/{{ term.slug }}/</p>
|
||||
|
||||
<h1>{{ term.name }}</h1>
|
||||
{% endblock header %}
|
||||
|
||||
{% block content %}
|
||||
{% if paginator %}
|
||||
{% set pages = paginator.pages %}
|
||||
{% else %}
|
||||
{% set pages = term.pages %}
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for page in pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.date }} - {{ page.title }}</a>
|
||||
<br />
|
||||
{{ page.description }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if paginator %}
|
||||
<p>{% if paginator.previous %}<a href="{{ paginator.first }}"><< First</a> <a href="{{ paginator.previous }}">< Previous</a>{% endif %} [{{ paginator.current_index }}/{{ paginator.number_pagers }}] {% if paginator.next %}<a href="{{ paginator.next }}">Next ></a> <a href="{{ paginator.last }}">Last >></a>{% endif %}</p>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
18
theme.toml
Normal file
18
theme.toml
Normal file
|
@ -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"
|
Loading…
Reference in a new issue