Browse Source

Switch to nikola

master
Piotr Orzechowski 1 year ago
parent
commit
ecc831672a

+ 3
- 1
.gitignore View File

@@ -1,3 +1,5 @@
.*
*~
dist/*
__pycache__
cache
output

+ 11
- 14
Makefile View File

@@ -1,28 +1,25 @@
src = src
dst = dist
css = ${dst}/static/css
dst = output
css = ${dst}/assets/css
js = ${dst}/assets/js

.PHONY: build
build:
DEBUG=false pipenv run python ${src}/site.py build
pipenv run nikola build --strict -n 2

yui-compressor -o ${css}/base.css ${css}/base.css
yui-compressor -o ${css}/default.css ${css}/default.css
yui-compressor -o ${css}/error.css ${css}/error.css

cat ${css}/base.css ${css}/default.css > ${css}/tmp.css
mv ${css}/tmp.css ${css}/default.css
cat ${css}/base.css ${css}/error.css > ${css}/tmp.css
mv ${css}/tmp.css ${css}/error.css
rm ${css}/base.css
cd ${css} && yui-compressor -o '.css$$:.css' all.css all-nocdn.css
cd ${js} && yui-compressor -o '.js$$:.js' all.js all-nocdn.js

.PHONY: rebuild
rebuild: clean build

.PHONY: clean
clean:
pipenv run nikola clean

.PHONY: distclean
distclean:
rm -rf ${dst}

.PHONY: run
run:
DEBUG=true pipenv run python ${src}/site.py run
pipenv run nikola serve -b

+ 4
- 5
Pipfile View File

@@ -1,15 +1,14 @@
[[source]]

name = "pypi"
verify_ssl = true
url = "https://pypi.python.org/simple"
name = "pypi"


[packages]
[dev-packages]

nikola = {extras = ["extras"]}


[dev-packages]
[packages]

frozen-flask = "*"
flask-flatpages = "*"

+ 538
- 26
Pipfile.lock View File

@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "2203d79b296329a1e9151ce4adce0e5b791db798ae48882defa155aa017d2acf"
"sha256": "41f102711d6daebb2a235a9cae84f86cd29316a0aa68749f279c9eadb181b51d"
},
"host-environment-markers": {
"implementation_name": "cpython",
@@ -9,9 +9,9 @@
"os_name": "posix",
"platform_machine": "x86_64",
"platform_python_implementation": "CPython",
"platform_release": "4.4.0-112-generic",
"platform_release": "4.4.0-116-generic",
"platform_system": "Linux",
"platform_version": "#135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018",
"platform_version": "#140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018",
"python_full_version": "3.5.2",
"python_version": "3.5",
"sys_platform": "linux"
@@ -28,39 +28,131 @@
},
"default": {},
"develop": {
"click": {
"argh": {
"hashes": [
"sha256:29f99fc6125fbc931b758dc053b3114e55c77a6e4c6c3a2674a2dc986016381d",
"sha256:f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
"sha256:a9b3aaa1904eeb78e32394cd46c6f37ac0fb4af6dc488daa58971bdc7d7fcaf3",
"sha256:e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65"
],
"version": "==6.7"
"version": "==0.26.2"
},
"flask": {
"bleach": {
"hashes": [
"sha256:0749df235e3ff61ac108f69ac178c9770caeaccad2509cb762ce1f65570a8856",
"sha256:49f44461237b69ecd901cc7ce66feea0319b9158743dd27a2899962ab214dac1"
"sha256:cf567e7ed30ea5e05b31231d88ae170af1c5544758b9d7bebbc20590b7c30b1e",
"sha256:38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19"
],
"version": "==0.12.2"
"version": "==2.1.2"
},
"flask-flatpages": {
"blinker": {
"hashes": [
"sha256:8a35eaf8b3ccb111a3d634e64f56853e22d2d8017928497af323df6557ad142a",
"sha256:b52d502579a0903c8660816a77c17f61f5cb526b5091fbe910a2ee17d2063bf2"
"sha256:471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6"
],
"version": "==0.6"
"version": "==1.4"
},
"frozen-flask": {
"certifi": {
"hashes": [
"sha256:0a7a71334210ce84f8cbd1dc23c8b265d3e21748805c09c77d0e6fbcc4faab14",
"sha256:83858d6ed8b9d3fa7fc9523e415e65fb86b99352798d7695f63cffbd59a56269"
"sha256:14131608ad2fd56836d33a71ee60fa1c82bc9d2c8d98b7bdbc631fe1b3cd1296",
"sha256:edbc3f203427eef571f79a7692bb160a2b0f7ccaa31953e99bd17e307cf63f7d"
],
"version": "==0.15"
"version": "==2018.1.18"
},
"itsdangerous": {
"chardet": {
"hashes": [
"sha256:cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519"
"sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691",
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
],
"version": "==0.24"
"version": "==3.0.4"
},
"cloudpickle": {
"hashes": [
"sha256:604c1cb39c2043ba44f017444dd89b7f82541701dfa8a64f5ae72e6346755c0b",
"sha256:b0e63dd89ed5285171a570186751bc9b84493675e99e12789e9a5dc5490ef554"
],
"version": "==0.5.2"
},
"decorator": {
"hashes": [
"sha256:94d1d8905f5010d74bbbd86c30471255661a14187c45f8d7f3e5aa8540fdb2e5",
"sha256:7d46dd9f3ea1cf5f06ee0e4e1277ae618cf48dfb10ada7c8427cd46c42702a0e"
],
"version": "==4.2.1"
},
"docutils": {
"hashes": [
"sha256:7a4bd47eaf6596e1295ecb11361139febe29b084a87bf005bf899f9a42edc3c6",
"sha256:02aec4bd92ab067f6ff27a38a38a41173bf01bed8f89157768c1573f53e474a6",
"sha256:51e64ef2ebfb29cae1faa133b3710143496eca21c530f3f71424d77687764274"
],
"version": "==0.14"
},
"doit": {
"hashes": [
"sha256:2988c8450fb3fb281877eb9a16860e1a8873c6ee0bb75ef0d78bb03a18d59ab9"
],
"markers": "python_version >= '3.4'",
"version": "==0.30.3"
},
"entrypoints": {
"hashes": [
"sha256:10ad569bb245e7e2ba425285b9fa3e8178a0dc92fc53b1e1c553805e15a8825b",
"sha256:d2d587dde06f99545fb13a383d2cd336a8ff1f359c5839ce3a64c917d10c029f"
],
"version": "==0.2.3"
},
"ghp-import2": {
"hashes": [
"sha256:1172fa772abc3dba7f3ff902e7b202eb8ebaf4a463e9d63b8e90cc9edd57330e",
"sha256:fdf95846b26c5b42964b3146ffc4f22107bbba7baa42659f0f22bfe08ec96d7f"
],
"version": "==1.0.1"
},
"html5lib": {
"hashes": [
"sha256:20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3",
"sha256:66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736"
],
"version": "==1.0.1"
},
"husl": {
"hashes": [
"sha256:8a1d622565a01ca553a87f52de97244f33d04c20d9e4d0dac76ddfeccb6850b9"
],
"version": "==4.0.3"
},
"idna": {
"hashes": [
"sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4",
"sha256:2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f"
],
"version": "==2.6"
},
"ipykernel": {
"hashes": [
"sha256:395f020610e33ffa0b0c9c0cd1a1d927d51ab9aa9f30a7ae36bb0c908a33e89c",
"sha256:935941dba29d856eee34b8b5261d971bd5012547239ed73ddfff099143748c37",
"sha256:c091449dd0fad7710ddd9c4a06e8b9e15277da306590bc07a3a1afa6b4453c8f"
],
"version": "==4.8.2"
},
"ipython": {
"hashes": [
"sha256:fcc6d46f08c3c4de7b15ae1c426e15be1b7932bcda9d83ce1a4304e8c1129df3",
"sha256:51c158a6c8b899898d1c91c6b51a34110196815cc905f9be0fa5878e19355608"
],
"version": "==6.2.1"
},
"ipython-genutils": {
"hashes": [
"sha256:72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8",
"sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8"
],
"version": "==0.2.0"
},
"jedi": {
"hashes": [
"sha256:d795f2c2e659f5ea39a839e5230d70a0b045d0daee7ca2403568d8f348d0ad89",
"sha256:d6e799d04d1ade9459ed0f20de47c32f2285438956a677d083d3c98def59fa97"
],
"version": "==0.11.1"
},
"jinja2": {
"hashes": [
@@ -69,6 +161,78 @@
],
"version": "==2.10"
},
"jsonschema": {
"hashes": [
"sha256:000e68abd33c972a5248544925a0cae7d1125f9bf6c58280d37546b946769a08",
"sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02"
],
"version": "==2.6.0"
},
"jupyter-client": {
"hashes": [
"sha256:e144e7ba1670424b1670a6325b00dae7f7b043f99486d2f77bdbc14cc90f2c2f",
"sha256:83d5e23132f0d8f79ccd3939f53fb9fa97f88a896a85114dc48d0e86909b06c4"
],
"version": "==5.2.2"
},
"jupyter-core": {
"hashes": [
"sha256:927d713ffa616ea11972534411544589976b2493fc7e09ad946e010aa7eb9970",
"sha256:ba70754aa680300306c699790128f6fbd8c306ee5927976cbe48adacf240c0b7"
],
"version": "==4.4.0"
},
"logbook": {
"hashes": [
"sha256:fe205ca51aa004ee83a0218e40a214308b6723b2186c7f04f134f94410286aae",
"sha256:645e50279e0e8121a5f622cf640a9d83fc0e0f1b78b29e01cf5e13e487b9f6fb",
"sha256:969161f46d5562e041f4d01cdf413114fe8012038e7d69052dff6b1f0ba2803d",
"sha256:bc345cef7b58f745da01feee461f6941d08260026b41586a77f5112c12355488",
"sha256:7ef1857de50bb6e70b1e4ef034f1c032d37577ce9eb70e164974a0ae8177b537",
"sha256:6b6da02a51cace9e851b05789cc841d39dec33c8b083ce727bf061fac1611c06",
"sha256:ac201ccdb5b37170602a26d8a47df735e8904f11d51a73fa84f09a3014fc6001"
],
"version": "==1.2.1"
},
"lxml": {
"hashes": [
"sha256:41f59cbdab232f11680d5d4dec9f2e6782fd24d78e37ee833447702e34e675f4",
"sha256:e7e41d383f19bab9d57f5f3b18d158655bcd682e7e723f441b9e183e1e35a6b5",
"sha256:155521c337acecf8202091cff85bb9f709f238130ebadf04280fb1db11f5ad8b",
"sha256:d2c985d2460b81c6ca5feb8b86f1bc594ad59405d0bdf68626b85852b701553c",
"sha256:950e63387514aa1b881eba5ac6cb2ec51a118b3dafe99dd80ca19d8fb0142f30",
"sha256:470d7ce41e8047208ba1a376560bad17f1468df1f3097bc83902b26cfafdbb0c",
"sha256:e608839a5ee2180164424ccf279c8e2d9bbe8816d002c58fd97d6b621ba4aa94",
"sha256:87a66bcadac270fc010cb029022a93fc722bf1204a8b03e782d4c790f0edf7ca",
"sha256:2dedfeeecc2d5a939cf622602f5a1ce443ca82407f386880f739f1a9f08053ad",
"sha256:ba05732e4bcf59e948f61588851dcf620fd60d5bbd9d704203e5f59bbaa60219",
"sha256:2190266059fec3c5a55f9d6c30532c64c6d414d3228909c0af573fe4907e78d1",
"sha256:dd291debfaa535d9cb6cee8d7aca2328775e037d02d13f1634e57f49bc302cc4",
"sha256:29a36e354c39b2e24bc4ee103de53417ebb80f976a6ab9e8d093d559e2ac03e1",
"sha256:e37427d5a27eefbcfc48847e0b37f348113fac7280bc857421db39ffc6372570",
"sha256:b106d4d2383382399ad82108fd187e92f40b1c90f55c2d36bbcb1c44bcf940fc",
"sha256:0ee07da52d240f1dc3c83eef5cd5f1b7f018226c1121f2a54d446645779a6d17",
"sha256:3b33549fb8f91b38a7500078242b03cca513f3412a2cdae722e89bf83f95971d",
"sha256:4c12e90886d9c53ab434c8d0cebea122321cce19614c3c6b6d1a7700d7cc6212",
"sha256:79322000279cda10b53c374d53ca632ead3bc51c6aebf8e62c8fa93a4d08b750",
"sha256:6cba398eb37e0631e60e0e080c101cfe91769b2c8267105b64b4625e2581ea21",
"sha256:49a655956f8de69e1258bc0fcfc43eb3bd1e038655784d77d1869b4b81444e37",
"sha256:af8a5373241d09b8fc53e0490e1719ce5dc90a21b19db89b6596c1adcdd52270",
"sha256:e6b6698415c7e8d227a47a3b1038e1b37c2b438a1b48c2db7ad9e74ddbcd1149",
"sha256:155c916cf2645b4a8f2bd5d09065e92d1b67b8d464bdc001e0b524af84bedf6f",
"sha256:fa7320679ced5e25b20203d157280680fc84eb783b6cc650cb0c98e1858b7dd3",
"sha256:4187c4b0cefc3353181db048c51f42c489d9ac51e40b86c4851dc0671372971d",
"sha256:d5d29663e979e83b3fc361e97200f959cddb3a14797391d15273d84a5a8ae44b",
"sha256:940caef1ec7c78e0c34b0f6b94fe42d0f2022915ffc78643d28538a5cfd0f40e"
],
"version": "==4.1.1"
},
"mako": {
"hashes": [
"sha256:4e02fde57bd4abb5ec400181e4c314f56ac3e49ba4fb8b0d50bba18cb27d25ae"
],
"version": "==1.0.7"
},
"markdown": {
"hashes": [
"sha256:9ba587db9daee7ec761cfc656272be6aabe2ed300fece21208e4aab2e457bc8f",
@@ -82,6 +246,203 @@
],
"version": "==1.0"
},
"micawber": {
"hashes": [
"sha256:d61b31a06c28f3653d58d997e63ac3a6a302807bb98198618e9b90e09034d85e"
],
"version": "==0.3.5"
},
"mistune": {
"hashes": [
"sha256:b4c512ce2fc99e5a62eb95a4aba4b73e5f90264115c40b70a21e1f7d4e0eac91",
"sha256:bc10c33bfdcaa4e749b779f62f60d6e12f8215c46a292d05e486b869ae306619"
],
"version": "==0.8.3"
},
"natsort": {
"hashes": [
"sha256:a9156f61336a8d743f67a8c9f336b1287529f67a07fe6001c7d4b5673a42308e",
"sha256:c960082d2145b04723041c4b85092546560538e29664dd197a1344d5b090bc91"
],
"version": "==5.2.0"
},
"nbconvert": {
"hashes": [
"sha256:260d390b989a647575b8ecae2cd06a9eaead10d396733d6e50185d5ebd08996e",
"sha256:12b1a4671d4463ab73af6e4cbcc965b62254e05d182cd54995dda0d0ef9e2db9"
],
"version": "==5.3.1"
},
"nbformat": {
"hashes": [
"sha256:b9a0dbdbd45bb034f4f8893cafd6f652ea08c8c1674ba83f2dc55d3955743b0b",
"sha256:f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402"
],
"version": "==4.4.0"
},
"nikola": {
"hashes": [
"sha256:3b61f785c973637e9a5439ca0b25ece9a7f9066252b2aa2c8f2010c170a4507d",
"sha256:10d95b3af84e61496ef729665eafa2235fd0fd4cc6c57644dd0f2c19a968dd0f"
],
"version": "==7.8.11"
},
"notebook": {
"hashes": [
"sha256:9063a0daaac7816e1b7fc7dfcf69ee173904dcf3b460b45f5b6df06818969bd6",
"sha256:dd431fad9bdd25aa9ff8265da096ef770475e21bf1d327982611a7de5cd904ca"
],
"version": "==5.4.0"
},
"pandocfilters": {
"hashes": [
"sha256:b3dd70e169bb5449e6bc6ff96aea89c5eea8c5f6ab5e207fc2f521a2cf4a0da9"
],
"version": "==1.4.2"
},
"parso": {
"hashes": [
"sha256:a7bb86fe0844304869d1c08e8bd0e52be931228483025c422917411ab82d628a",
"sha256:5815f3fe254e5665f3c5d6f54f086c2502035cb631a91341591b5a564203cffb"
],
"version": "==0.1.1"
},
"pathtools": {
"hashes": [
"sha256:7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
],
"version": "==0.1.2"
},
"pexpect": {
"hashes": [
"sha256:6ff881b07aff0cb8ec02055670443f784434395f90c3285d2ae470f921ade52a",
"sha256:67b85a1565968e3d5b5e7c9283caddc90c3947a2625bed1905be27bd5a03e47d"
],
"markers": "sys_platform != 'win32'",
"version": "==4.4.0"
},
"phpserialize": {
"hashes": [
"sha256:bf672d312d203d09a84c26366fab8f438a3ffb355c407e69974b7ef2d39a0fa7"
],
"version": "==1.3"
},
"pickleshare": {
"hashes": [
"sha256:c9a2541f25aeabc070f12f452e1f2a8eae2abd51e1cd19e8430402bdf4c1d8b5",
"sha256:84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b"
],
"version": "==0.7.4"
},
"piexif": {
"hashes": [
"sha256:47befcbc9a6ee171a0b8c35b981eb02df2120427eb19418d257450b055c622ac",
"sha256:1d3dde03bd6298393645bc11d585b67a6ea98fd7e9e1aded6d5d6ec3e4cfbdda"
],
"version": "==1.0.13"
},
"pillow": {
"hashes": [
"sha256:718ec7a122b28d64afc5fbc3a9b99bb0545ef511373cac06fe7624520e82cb20",
"sha256:801cca8923508311bf5d6d0f7da5362552e8208ebd8ec0d7b9f2cd2ff5705734",
"sha256:43334f9581cd067945b8898cef9eb5714ee4883f8de0304c011f1dbdb1d4e2aa",
"sha256:153ec6f18f7b61641e0e6e502acfaf4a06c9aba2ea11c0b4b3578ea9f13a4a4a",
"sha256:25193f934d37d836a6b1f4c062ce574a96cbca7c6d9dc8ddfbbac7f9c54deaa4",
"sha256:b85f703c2ffe539313e39ce0676bed0f355cec45a16e58c9ab7417445843047c",
"sha256:8580fc58074a16b749905b26cf8363f7b628dd167ba0130f5382cdc91c86b509",
"sha256:2fcde9954c8882d1c7f93bb828caa34a4c5e3ee69dbc7895dc8652ad972b455a",
"sha256:1a5b93084e01328a1cb1ecdad99d11d75e881e89a95f88d85b523646553b36c2",
"sha256:b2240f298482f823576f397bb9f32ea913ad9456c526e141bc6f0a022b37a3e8",
"sha256:b1d33c63a55d0d85df0ad02b2c16158fb4d8153afa7b908f1a67330fac694cd6",
"sha256:6977cf073d83358b34f93abf5c1f1193b88675fe0e4441e0e28318bc3dcba7a0",
"sha256:1912b7230459fd53682dae32b83cbd8e5d642ba36d4be18566f00a9c063aa13d",
"sha256:4bd4a71501b6d51db4abc07e1f43f5a6fed0a1a9583cca0b401d6af50284b0db",
"sha256:0013f590a8f260df60bcfd65db19d18efc04e7f046c3c82a40e2e2b3292a937c",
"sha256:a224651a81e45ef4f1d0164e256c5f6b4abb49f2ae8f22ba2f3a9d0ff338e608",
"sha256:c793dfaa130847ccff958492b76ae8b9304e60b8a79a92962cb19e368276a22b",
"sha256:0b899ee80920bb533f26581af9b4660bc12aff4562555afe74e429101ebf3c94",
"sha256:9525cd680a6f9e80c6c0af03cf973e6505c59f60b4745f682cd1a449e54b31bb",
"sha256:35f7d998b8e82fb3fb51ff88b30485eb81cd7dd56ec7e1a8deba23eb88532d44",
"sha256:5b0d657460d9f3615876fec6306e97ca15a471f6169b622d76a47e270998acf1",
"sha256:ddd16ab250b4fc97db1c47407e78c25216a75c29d29d10ad37e51b7a2ec7b2c3",
"sha256:b9f63451084a718eccdeb1e382768c94647915653af4d6019f64560d9e98642b",
"sha256:a370d1c570f1d72e877099651e752332444b1c5009381f043c9da5fd47f3ebae",
"sha256:dc4b018d5c9b636f7546583c5591b9ea00c328c3e5871992ef5b95bac353f097",
"sha256:e126ff4fed71e78333840c07279e1617f63cfca76d63ad5b27d65a7277206a3d",
"sha256:fcf64c91fd44485100a2965d23bb0e227d093e91f7e776c5ca3b32574766eb56",
"sha256:2c042352b430d678db50c78c5214e19638eff8b688941271da2de21fd298dfe5",
"sha256:17fe25efc785194d48c38fad85dce470013ba19d2fb66639e149f14bccf1327f",
"sha256:2e818dbe445e86fc6c266973fe540c35125c42eb2cf13a6095e9adaa89c0deb5",
"sha256:135e9aa65150c53f7db85bf2bebb8a0e1a48ea850e80cf66e16dd04fa09d309c",
"sha256:7dfbefdb3fb911ca9faed307bf309861e9995e36cca6b761c7ba6d9b77a9744a",
"sha256:12f29d6c23424f704c66b5b68c02fe0b571504459605cfe36ab8158359b0e1bb",
"sha256:f8d49be8c282df8d2e1ab6ab53ab8abd859b1fa6fed384457ee85c9eff64ef97",
"sha256:82b172e3264e62372c01b5b009b5b1a02fbb9276cbe5cc57ab00a6d6e5ed9a18",
"sha256:57aa6198ba8acba1313c3b743e267d821a60cac77e6026caf0b55ca58d3d23be",
"sha256:d60c1625b108432ace8b1fa1a584017e5efa73f107d0f493c7f39c79bebf1d41",
"sha256:82d1ff571489765df2816785d532e243bde213752156c227fca595723ec5ff42",
"sha256:37cc0339abfa9e295c75d9a7f227d35cb44716feb95057f9449c4a9e9a17daf7",
"sha256:931030d1d6282b7900e6b0a7ff9ecdb503b5e1e6781800dab2b71a9f39405bff",
"sha256:5cd36804f9f06a914a883fe682df5711d16d7b4f44d43189c5f013e7cd91e149"
],
"version": "==5.0.0"
},
"prompt-toolkit": {
"hashes": [
"sha256:3f473ae040ddaa52b52f97f6b4a493cfa9f5920c255a12dc56a7d34397a398a4",
"sha256:1df952620eccb399c53ebb359cc7d9a8d3a9538cb34c5a1344bdbeb29fbcc381",
"sha256:858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917"
],
"version": "==1.0.15"
},
"ptyprocess": {
"hashes": [
"sha256:e8c43b5eee76b2083a9badde89fd1bbce6c8942d1045146e100b7b5e014f4f1a",
"sha256:e64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365"
],
"markers": "os_name != 'nt'",
"version": "==0.5.2"
},
"pygal": {
"hashes": [
"sha256:27abab93cbc31e21f3c6bdecc05bda6cd3570cbdbd8297b7caa6904051b50d72",
"sha256:9204f05380b02a8a32f9bf99d310b51aa2a932cba5b369f7a4dc3705f0a4ce83"
],
"version": "==2.4.0"
},
"pygments": {
"hashes": [
"sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d",
"sha256:dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"
],
"version": "==2.2.0"
},
"pyinotify": {
"hashes": [
"sha256:9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4"
],
"version": "==0.9.6"
},
"pyphen": {
"hashes": [
"sha256:3ad2ae9b5a077c234cdc18329e7a4aad58c0d1bf0ab0ddd2be938a4292b3ade9",
"sha256:abfa9a0ab055341f6e250c1a6bef395c3a06f0e4cba216eeef37f617b32c0bd7"
],
"version": "==0.9.4"
},
"pyrss2gen": {
"hashes": [
"sha256:7960aed7e998d2482bf58716c316509786f596426f879b05f8d84e98b82c6ee7"
],
"version": "==1.1"
},
"python-dateutil": {
"hashes": [
"sha256:95511bae634d69bc7329ba55e646499a842bc4ec342ad54a8cdb65645a0aad3c",
"sha256:891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca"
],
"version": "==2.6.1"
},
"pyyaml": {
"hashes": [
"sha256:3262c96a1ca437e7e4763e2843746588a965426550f3797a79fca9c6199c431f",
@@ -101,12 +462,163 @@
],
"version": "==3.12"
},
"werkzeug": {
"pyzmq": {
"hashes": [
"sha256:2fb4d745ffe0a65ebf8fd29df093bb5c0ac96a506cb05b9a7b7c94b2524ae7f6",
"sha256:b89268020a843d4c3cc04180577ec061fe96d35f267b0b672cb006e4d70560da",
"sha256:d51eb3902d27d691483243707bfa67972167a70269bbbc172b74eeac4f780a1d",
"sha256:e5578ae84bb94e97adadfcb00106a1cb161cb8017f89b01f6c3737f356257811",
"sha256:4193cc666591495ab7fe8d24fa8374a35f9775f16dc7c46e03615559e1fc1855",
"sha256:b328c538061757f627d32f7f8885c16f1d2f59f5374e057822f3c8e6cd94c41b",
"sha256:18de8a02768b1c0b3495ac635b24bd902fafc08befb70a6e68c4d343ccbd6cbd",
"sha256:fb983aec4bddee3680a0b7395f99e4595d70d81841370da736c5dc642bad4cd2",
"sha256:ad5a8b19b6671b52d30ccfc3a0f4c600e49c4e2dcc88caf4106ed5958dec8d5e",
"sha256:767e1d0b1f7fff1950127abc08c5a5af2754987bc6480c6d641bed6971278a7a",
"sha256:c30d27c9b35285597b8ef3019f97b9b98457b053f65dcc87a90dfdd4db09ca78",
"sha256:bdb12b485b3440b5193cd337d27cc126cdfc54ea9f38df237e1ead6216435cbe",
"sha256:ba0b43aebf856e5e249250d74c1232d6600b6859328920d12e2ba72a565ab1b1",
"sha256:630fb21f7474eb9e409a1ad476bf1ec489a69eb021172d422f2485cc3a44cd79",
"sha256:6c3632d2c17cf03ce728ffaa328d45bb053623b3a0aa9747adcde81778d5a4d5",
"sha256:538dfdd9542cf9ff37cd958da03b58d56b53b90800159ea07adc51a8ec7ffcb8",
"sha256:613ac1fc4591b1c6a0a52ce3ed17dbffd6a17e985df504e8b4cdb987f97285b1",
"sha256:a0ecf4c3eccd92f030a4e3e334b9da6fa3ee86be00249343c74e476d70567d0f",
"sha256:863ec1bfa52da6eaa5c4aa59143eeaeb4ef7a076862407a548ec645f25e6d6df",
"sha256:f35b4cdeffff79357a9d929daa2a8620fb362b2cbeebdc5dd2cf9fcd27c44821",
"sha256:445fed4d71ac48da258ba38f2e29c88c5091124212a4004a0a6a42e6586a7de1",
"sha256:b31f2b50ad2920f21b904f5edf66bee324e42bb978df1407ecf381b210d4678e",
"sha256:0145ae59139b41f65e047a3a9ed11bbc36e37d5e96c64382fcdff911c4d8c3f0"
],
"version": "==17.0.0"
},
"requests": {
"hashes": [
"sha256:6a1b267aa90cac58ac3a765d067950e7dbbf75b1da07e895d1f594193a40a38b",
"sha256:9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e"
],
"version": "==2.18.4"
},
"send2trash": {
"hashes": [
"sha256:f1691922577b6fa12821234aeb57599d887c4900b9ca537948d2dac34aea888b",
"sha256:60001cc07d707fe247c94f74ca6ac0d3255aabcb930529690897ca2a39db28b2"
],
"version": "==1.5.0"
},
"simplegeneric": {
"hashes": [
"sha256:dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173"
],
"version": "==0.8.1"
},
"six": {
"hashes": [
"sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb",
"sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
],
"version": "==1.11.0"
},
"smartypants": {
"hashes": [
"sha256:8db97f7cbdf08d15b158a86037cd9e116b4cf37703d24e0419a0d64ca5808f0d"
],
"version": "==2.0.1"
},
"terminado": {
"hashes": [
"sha256:65011551baff97f5414c67018e908110693143cfbaeb16831b743fe7cad8b927",
"sha256:55abf9ade563b8f9be1f34e4233c7b7bde726059947a593322e8a553cc4c067a"
],
"version": "==0.8.1"
},
"testpath": {
"hashes": [
"sha256:039fa6a6c9fd3488f8336d23aebbfead5fa602c4a47d49d83845f55a595ec1b4",
"sha256:0d5337839c788da5900df70f8e01015aec141aa3fe7936cb0d0a2953f7ac7609"
],
"version": "==0.3.1"
},
"toml": {
"hashes": [
"sha256:b3953bffe848ad9a6d554114d82f2dcb3e23945e90b4d9addc9956f37f336594"
],
"version": "==0.9.2"
},
"tornado": {
"hashes": [
"sha256:92b7ca81e18ba9ec3031a7ee73d4577ac21d41a0c9b775a9182f43301c3b5f8e",
"sha256:b36298e9f63f18cad97378db2222c0e0ca6a55f6304e605515e05a25483ed51a",
"sha256:ab587996fe6fb9ce65abfda440f9b61e4f9f2cf921967723540679176915e4c3",
"sha256:5ef073ac6180038ccf99411fe05ae9aafb675952a2c8db60592d5daf8401f803",
"sha256:6d14e47eab0e15799cf3cdcc86b0b98279da68522caace2bd7ce644287685f0a"
],
"version": "==4.5.3"
},
"traitlets": {
"hashes": [
"sha256:c6cb5e6f57c5a9bdaa40fa71ce7b4af30298fbab9ece9815b5d995ab6217c7d9",
"sha256:9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835"
],
"version": "==4.3.2"
},
"typogrify": {
"hashes": [
"sha256:8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38"
],
"version": "==2.0.7"
},
"unidecode": {
"hashes": [
"sha256:72f49d3729f3d8f5799f710b97c1451c5163102e76d64d20e170aedbbd923582",
"sha256:8c33dd588e0c9bc22a76eaa0c715a5434851f726131bd44a6c26471746efabf5"
],
"version": "==1.0.22"
},
"urllib3": {
"hashes": [
"sha256:06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b",
"sha256:cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"
],
"version": "==1.22"
},
"watchdog": {
"hashes": [
"sha256:7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162"
],
"version": "==0.8.3"
},
"wcwidth": {
"hashes": [
"sha256:f4ebe71925af7b40a864553f761ed559b43544f8f71746c2d756c7fe788ade7c",
"sha256:3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e"
],
"version": "==0.1.7"
},
"webassets": {
"hashes": [
"sha256:e7d9c8887343123fd5b32309b33167428cb1318cdda97ece12d0907fd69d38db"
],
"version": "==0.12.1"
},
"webencodings": {
"hashes": [
"sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78",
"sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
],
"version": "==0.5.1"
},
"ws4py": {
"hashes": [
"sha256:7ac69ce3e6ec6917a5d678b65f0a18e244a4dc670db6414bc0271b3f4911237f"
],
"version": "==0.4.2"
},
"yapsy": {
"hashes": [
"sha256:d5da73735293558eb1651ee2fddc4d0dedcfa06538b8813a2e20011583c9e49b",
"sha256:c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c"
"sha256:428d7e3037d5ea02870d5c52d2fb383877621ed7e62e03158ffbda3fca9f6e12",
"sha256:c1968456ed490107371895423b42062308aba11f9ff4619a7653485fdd64cf41",
"sha256:45bb39a72461913388d7f3e92ce33816e84fff59946c45e16796eb1fb1d5f2a6"
],
"version": "==0.14.1"
"version": "==1.11.223"
}
}
}

+ 1406
- 0
conf.py
File diff suppressed because it is too large
View File


+ 15
- 0
pages/404.md View File

@@ -0,0 +1,15 @@
<!--
.. title: Page Not Found
.. slug: 404
.. date:
.. tags:
.. category:
.. link:
.. description:
.. type: text
.. template: error.tmpl
-->

# 404

### It looks like your quest has not yet come to an end. ;)

+ 15
- 0
pages/404.pl.md View File

@@ -0,0 +1,15 @@
<!--
.. title: Nie odnaleziono strony
.. slug: 404
.. date:
.. tags:
.. category:
.. link:
.. description:
.. type: text
.. template: error.tmpl
-->

# 404

### Wygląda na to, że Twoje poszukiwania nie dobiegły jeszcze końca. ;)

src/content/welcome.md → pages/index.md View File

@@ -1,8 +1,15 @@
lang: en
langs: [{'href': '/witaj', 'caption': 'polski'}]
title: Welcome

# Few things about my repositories
<!--
.. title: Welcome, here are few informations...
.. slug: index
.. date:
.. tags:
.. category:
.. link:
.. description:
.. type: text
-->

## ... about my repositories

**My applications**

@@ -35,7 +42,7 @@ title: Welcome
* [Real World Haskell](/git/orzech/real-world-haskell) - solutions for exercises from the
[book](http://book.realworldhaskell.org){: rel="noopener noreferrer" } with the same title.

# Few things about me
## ... about me

* Son of Mieczysław and Sylwia; Wioleta's fiancé.
* True-born islander - born on

src/content/welcome_pl.md → pages/index.pl.md View File

@@ -1,8 +1,15 @@
lang: pl
langs: [{'href': '/welcome', 'caption': 'English'}]
title: Witaj

# Kilka informacji o moich repozytoriach
<!--
.. title: Witaj, oto kilka informacji...
.. slug: index
.. date:
.. tags:
.. category:
.. link:
.. description:
.. type: text
-->

## ... o moich repozytoriach

**Moje aplikacje**

@@ -37,7 +44,7 @@ title: Witaj
* [Real World Haskell](/git/orzech/real-world-haskell) - rozwiązania zadań z
[książki](http://book.realworldhaskell.org){: rel="noopener noreferrer" } o tym samym tytule.

# Kilka informacji o mnie
## ... o mnie

* Syn Mieczysława i Sylwii; narzeczony Wiolety.
* Wyspiarz z krwi i kości - urodzony na

+ 0
- 7
src/content/404.md View File

@@ -1,7 +0,0 @@
lang: en
title: Page not found

# 404

## It looks like your quest has not yet come to an end. ;)


+ 0
- 7
src/content/404_pl.md View File

@@ -1,7 +0,0 @@
lang: pl
title: Nie odnaleziono strony

# 404

## Wygląda na to, że Twoje poszukiwania nie dobiegły jeszcze końca. ;)


+ 0
- 88
src/site.py View File

@@ -1,88 +0,0 @@
#!/usr/bin/python3

import argparse
import os
import sys

from datetime import date
from flask import Flask, render_template
from flask_flatpages import FlatPages, pygments_style_defs
from flask_frozen import Freezer

DEBUG = os.environ['DEBUG'] == 'true'

SITE_AUTHOR = 'Piotr Orzechowski'
SITE_DOMAIN = 'orzechowski.tech'
SITE_DOMAIN_LINK = '<a href="//{0}">{0}</a>'.format(SITE_DOMAIN)
SITE_START_YEAR = '2012'
SITE_CURRENT_YEAR = '{}'.format(date.today().year)
SITE_LANG_ENGLISH = 'en'
SITE_LANG_POLISH = 'pl'
SITE_GENERATOR_LINK = ('<a href="//pythonhosted.org/Frozen-Flask" rel="noopener noreferrer">'
'Frozen-Flask'
'</a>')

FREEZER_BASE_URL = 'https://{}'.format(SITE_DOMAIN)
FREEZER_DESTINATION = '../dist'

FLATPAGES_AUTO_RELOAD = DEBUG
FLATPAGES_ROOT = 'content'
FLATPAGES_EXTENSION = '.md'
FLATPAGES_MARKDOWN_EXTENSIONS = ['codehilite', 'attr_list']

app = Flask(__name__)
flatpages = FlatPages(app)
freezer = Freezer(app)

app.config.from_object(__name__)

app.jinja_env.globals['DEBUG'] = DEBUG
app.jinja_env.globals['SITE_AUTHOR'] = SITE_AUTHOR
app.jinja_env.globals['SITE_DOMAIN'] = SITE_DOMAIN
app.jinja_env.globals['SITE_DOMAIN_LINK'] = SITE_DOMAIN_LINK
app.jinja_env.globals['SITE_START_YEAR'] = SITE_START_YEAR
app.jinja_env.globals['SITE_CURRENT_YEAR'] = SITE_CURRENT_YEAR
app.jinja_env.globals['SITE_LANG_ENGLISH'] = SITE_LANG_ENGLISH
app.jinja_env.globals['SITE_LANG_POLISH'] = SITE_LANG_POLISH
app.jinja_env.globals['SITE_GENERATOR_LINK'] = SITE_GENERATOR_LINK


def page(name):
page = flatpages.get(name)
return render_template('default.html', page=page)


@app.route('/welcome/')
def welcome():
return page('welcome')


@app.route('/witaj/')
def welcome_pl():
return page('welcome_pl')


@app.route('/en/404/')
def page_not_found():
return page_not_found('404')


@app.route('/pl/404/')
def page_not_found_pl():
return page_not_found('404_pl')


def page_not_found(name):
page = flatpages.get(name)
return render_template('error.html', page=page)


if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('action', choices=['build', 'run'])

args = parser.parse_args()
if args.action == 'build':
freezer.freeze()
elif args.action == 'run':
app.run(host='localhost', debug=True)

+ 0
- 185
src/static/css/base.css View File

@@ -1,185 +0,0 @@
/*------------------------------------------------------------------------------
CSS reset
------------------------------------------------------------------------------*/
html {
font-family: sans-serif;
font-size: 62.5%;
}

body {
margin: 0;
}

/*------------------------------------------------------------------------------
Typography
------------------------------------------------------------------------------*/
body {
font-size: 1.4em;
line-height: 1.5;
font-weight: 400;
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #333;
background-color: #373737;
}

.header {
color: #f2f2f2;
font-weight: 400;
margin: 0;
padding: 14px 20px 0;
}

.header h1 {
margin-top: 0;
margin-bottom: 0;
padding-bottom: 0.8rem;
}

.header-sep {
color: #33a7ff;
}

.menu {
color: #f2f2f2;
background-color: #373737;
border-top: 1px solid #33a7ff;
margin-bottom: 6px;
overflow: auto;
}

.content-background {
background-color: #f2f2f2;
}

.content {
padding: 15px 20px 20px;
}

ul {
list-style-type: square;
margin: 0 0 1rem 0;
padding-left: 3rem;
}

a {
color: #33a7ff;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

h1 {
font-size: 3rem;
line-height: 1.2;
}

h2 {
font-size: 2.6rem;
line-height: 1.25;
}

h1, h2 {
margin: 0;
margin-bottom: 1rem;
font-weight: 700;
}

.content h1 {
color: #0073cc;
}

.content a {
color: #0073cc;
text-decoration: none;
}

.content a:hover {
text-decoration: underline;
}

h1 small {
font-size: 0.75em;
font-weight: 400;
}

.footer {
color: #f2f2f2;
padding: 10px 20px 30px;
}

/*------------------------------------------------------------------------------
No-grid layout
------------------------------------------------------------------------------*/
@supports not(display: grid) {
.site {
max-witdh: 50em;
margin: 0 auto;
}
}

/*------------------------------------------------------------------------------
Grid layout
------------------------------------------------------------------------------*/
@media screen and (min-width: 600px) {
@supports (display: grid) {
.site {
display: grid;
grid-template-columns: 1fr minmax(auto, 940px) 1fr;
grid-template-rows: minmax(1em, auto) auto minmax(1em, auto);
}

.header {
display: grid;
grid-template-columns: auto auto;
grid-template-rows: auto auto;
grid-column: 2;
grid-row: 1;
}

.title {
grid-column: 1;
grid-row: 1;
justify-self: start;
}

.lang-menu {
grid-column: 2;
grid-row: 1;
justify-self: end;
}

.menu {
grid-column: span 2;
grid-row: 2;
}

.content-background {
display: grid;
grid-template-columns: 1fr minmax(auto, 940px) 1fr;
grid-column: span 3;
grid-row: 2;
}

.content {
grid-column: 2;
}

.footer {
display: grid;
grid-template-columns: auto auto;
grid-column: 2;
grid-row: 3;
}

.generator {
grid-column: 1;
}

.copyright {
grid-column: 2;
justify-self: end;
}
}
}

+ 0
- 35
src/static/css/default.css View File

@@ -1,35 +0,0 @@
.main-menu ul {
list-style: none outside;
padding: 0;
}

.main-menu a {
color: #f2f2f2;
padding: 10px 15px;
float: left;
border: 1px solid transparent;
text-decoration: none;
}

.main-menu a:hover {
border: 1px solid #f2f2f2;
border-radius: 5px;
}

.menu li {
margin: 5px 0;
}

.lang-menu a {
color: #33a7ff;
padding: 0.65rem 2.2rem;
border: 1px solid #33a7ff;
border-radius: 5px;
margin: .35rem 0;
font-weight: bold;
}

.lang-menu a:hover {
color: #f2f2f2;
border-color: #f2f2f2;
}

+ 0
- 16
src/static/css/error.css View File

@@ -1,16 +0,0 @@
h1, h2 {
text-align: center;
}

h2 {
font-size: 1.4em;
}

.content-background {
margin-top: 4rem;
}

.content {
padding-top: 125px;
padding-bottom: 175px;
}

+ 0
- 15
src/templates/copyright.html View File

@@ -1,15 +0,0 @@
<div class="generator">
{% if page.lang == SITE_LANG_POLISH -%}
Ta strona została wygenerowana przy użyciu {{ SITE_GENERATOR_LINK | safe }}.
{%- else -%}
This page was generated with {{ SITE_GENERATOR_LINK | safe }}.
{%- endif %}
</div>

<div class="copyright">
{% if page.lang == SITE_LANG_POLISH -%}
Copyright ©{{ SITE_START_YEAR }}–{{ SITE_CURRENT_YEAR }} Piotr Orzechowski [{{ SITE_DOMAIN_LINK | safe }}].
{%- else -%}
Copyright ©{{ SITE_START_YEAR }}–{{ SITE_CURRENT_YEAR }} Piotr Orzechowski [{{ SITE_DOMAIN_LINK | safe }}].
{%- endif %}
</div>

+ 0
- 57
src/templates/default.html View File

@@ -1,57 +0,0 @@
<!DOCTYPE html>
{% if page.lang != '' -%}
<html lang="{{ page.lang }}">
{%- else -%}
<html>
{%- endif %}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% if page.title -%}
<title>{{ page.title }} · {{ SITE_AUTHOR }}</title>
{%- else -%}
<title>{{ SITE_AUTHOR }}</title>
{%- endif %}
{% if DEBUG -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/base.css') }}" />
{% endif -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/default.css') }}" />
</head>
<body>
<div class="site">
<div class="header">
<div class="title">
<h1>
{% if page.title -%}
{{ SITE_AUTHOR }} <span class="header-sep">·</span> <small>{{ page.title }}</small>
{%- else -%}
{{ SITE_AUTHOR }}
{%- endif %}
</h1>
</div>

<div class="lang-menu main-menu">
<ul>
{% for lang in page.langs -%}
<li><a href="{{ lang['href'] }}">{{ lang['caption'] }}</a></li>
{%- endfor %}
</ul>
</div>

<div class="menu main-menu">
{% include 'menu.html' %}
</div>
</div>

<div class="content-background">
<div class="content">
{{ page.html | safe }}
</div>
</div>

<div class="footer">
{% include 'copyright.html' %}
</div>
</div>
</body>
</html>

+ 0
- 48
src/templates/error.html View File

@@ -1,48 +0,0 @@
<!DOCTYPE html>
{% if page.lang != '' -%}
<html lang="{{ page.lang }}">
{%- else -%}
<html>
{%- endif %}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% if page.title -%}
<title>{{ page.title }} · {{ SITE_AUTHOR }}</title>
{%- else -%}
<title>{{ SITE_AUTHOR }}</title>
{%- endif %}
{% if DEBUG -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/base.css') }}" />
{% endif -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/error.css') }}" />
</head>
<body>
<div class="site">
<div class="header">
<div class="title">
<h1>
{% if page.title -%}
{{ SITE_AUTHOR }} <span class="header-sep">·</span> <small>{{ page.title }}</small>
{%- else -%}
{{ SITE_AUTHOR }}
{%- endif %}
</h1>
</div>

<div class="lang-menu main-menu"></div>
<div class="menu main-menu"></div>
</div>

<div class="content-background">
<div class="content">
{{ page.html | safe }}
</div>
</div>

<div class="footer">
{% include 'copyright.html' %}
</div>
</div>
</body>
</html>

+ 0
- 9
src/templates/menu.html View File

@@ -1,9 +0,0 @@
<ul>
{% if page.lang == SITE_LANG_POLISH -%}
<li><a href="{{ url_for('welcome_pl') }}">Witaj</a></li>
<li><a href="/git/orzech?tab=activity">Ostatnie zmiany</a></li>
{%- else -%}
<li><a href="{{ url_for('welcome') }}">Welcome</a></li>
<li><a href="/git/orzech?tab=activity">Latest changes</a></li>
{%- endif %}
</ul>

+ 88
- 0
themes/orzech-slate/assets/css/custom.css View File

@@ -0,0 +1,88 @@
/* COLORS */

body {
background-color: #f2f2f2;
}

a, h1, h2, article > .entry-content h3 {
color: #0073cc;
}

.navbar {
background-color: #373737;
}

.navbar > .container::after {
border-bottom: 1px solid #33a7ff;
width: 100%;
}

.navbar-header > a > span,
.navbar-inverse .navbar-nav > li > a {
color: #f2f2f2;
}

.navbar-header > a > span:hover,
.navbar-header > a > span:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #33a7ff;
}

.errorpage > .entry-content h4 {
color: #373737;
}

/* FONTS */

.navbar-header > a > span {
font-size: 1.75em;
font-weight: bold;
}

.errorpage > .entry-content h2,
.errorpage > .entry-content h4 {
font-weight: bold;
}

/* SHAPES */

ul {
list-style-type: square;
}

/* LAYOUT */

body {
margin-bottom: 15px;
}

.navbar {
padding-bottom: 5px;
margin-bottom: 5px;
}

.errorpage > .entry-content {
padding-top: 125px;
padding-bottom: 175px;
}

.errorpage > .entry-content h2,
.errorpage > .entry-content h4 {
text-align: center;
}

footer {
text-align: center;
}

@media (min-width: 1024px) {
.navbar > .container {
padding: 10px 15% 10px 15%;
}

body > .container {
padding-left: 15%;
padding-right: 15%;
}
}

+ 10
- 0
themes/orzech-slate/orzech-slate.theme View File

@@ -0,0 +1,10 @@
[Theme]
engine = jinja
parent = bootstrap3-jinja
author = Piotr Orzechowski [orzechowski.tech]
author_url = https://orzechowski.tech
based_on = Bootstrap3 <https://themes.getnikola.com/v8/bootstrap3-jinja/>, Slate <https://github.com/pages-themes/slate>
tags = bootstrap3, jinja

[Family]
family = bootstrap3-jinja

+ 1
- 0
themes/orzech-slate/parent View File

@@ -0,0 +1 @@
bootstrap3-jinja

+ 10
- 0
themes/orzech-slate/templates/error.tmpl View File

@@ -0,0 +1,10 @@
{# -*- coding: utf-8 -*- #}
{% extends 'post.tmpl' %}

{% block content %}
<article class="post-{{ post.meta('type') }} storypage errorpage" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="e-content entry-content" itemprop="articleBody text">
{{ post.text() }}
</div>
</article>
{% endblock %}

Loading…
Cancel
Save