pupupu

simple static CMS for crappy servers
git clone https://git.ce9e.org/pupupu.git

commit
97c9180b437d288361bc75778a657ede85c625f2
parent
c8aece2669e285a0e4b6dfb4de328bf6e6ec8c92
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-10-19 13:56
add default theme

Diffstat

M Makefile 2 +-
A themes/default/default.html 35 +++++++++++++++++++++++++++++++++++

2 files changed, 36 insertions, 1 deletions


diff --git a/Makefile b/Makefile

@@ -11,4 +11,4 @@ node_modules:
   11    11 	sassc $< > $@
   12    12 
   13    13 pupupu.zip:
   14    -1 	cd .. && zip -r -FS pupupu/$@ pupupu/index.php pupupu/static/ pupupu/templates/ pupupu/vendor/ pupupu/node_modules/font-awesome/css/ pupupu/node_modules/font-awesome/fonts/ pupupu/node_modules/simplemde/dist/
   -1    14 	cd .. && zip -r -FS pupupu/$@ pupupu/index.php pupupu/static/ pupupu/templates/ pupupu/themes/ pupupu/vendor/ pupupu/node_modules/font-awesome/css/ pupupu/node_modules/font-awesome/fonts/ pupupu/node_modules/simplemde/dist/

diff --git a/themes/default/default.html b/themes/default/default.html

@@ -0,0 +1,35 @@
   -1     1 <!DOCTYPE html>
   -1     2 <html>
   -1     3     <head>
   -1     4         <meta charset="utf-8" />
   -1     5         <meta http-equiv="Content-Security-Policy" content="default-src 'self'">
   -1     6         <meta name="viewport" content="width=device-width">
   -1     7         <title>{{ site.title }}{% if page.title %} - {{ page.title }}{% endif %}</title>
   -1     8         <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
   -1     9         <link rel="stylesheet" type="text/css" href="/static/style.css" />
   -1    10     </head>
   -1    11 
   -1    12     <body>
   -1    13         <header>
   -1    14             <a href="/" rel="home"><img src="/files/logo.jpg" class="logo" alt="{{ site.title }}"></a>
   -1    15 
   -1    16             <nav>
   -1    17                 <a href="/" rel="home">Home</a>
   -1    18                 {% for url, name in site.nav %}
   -1    19                     <a href="{{ url }}">{{ name }}</a>
   -1    20                 {% endfor %}
   -1    21             </nav>
   -1    22         </header>
   -1    23 
   -1    24         <main id="main">
   -1    25             {% if page.title %}<h1>{{ page.title }}</h1>{% endif %}
   -1    26             {{ body|md|shift_headings(1)|raw }}
   -1    27         </main>
   -1    28 
   -1    29         <footer>
   -1    30             {% for url, name in site.footer %}
   -1    31                 <a href="{{ url }}">{{ name }}</a>
   -1    32             {% endfor %}
   -1    33         </footer>
   -1    34     </body>
   -1    35 </html>