Browse Source

new catcet theme added

transformations
mb@mb 7 years ago
parent
commit
72212032f8
  1. 2
      pelicanconf.py
  2. 221
      themes/catcet/static/css/main2.css
  3. 50
      themes/catcet/templates/article.html
  4. 9
      themes/catcet/templates/translations.html
  5. 100
      themes/cetcat/static/css/main.css
  6. 0
      themes/cetcat/static/css/pygment.css
  7. 0
      themes/cetcat/static/fonts/Now-Black.otf
  8. 0
      themes/cetcat/static/fonts/Now-Bold.otf
  9. 0
      themes/cetcat/static/fonts/Now-Light.otf
  10. 0
      themes/cetcat/static/fonts/Now-Medium.otf
  11. 0
      themes/cetcat/static/fonts/Now-Regular.otf
  12. 0
      themes/cetcat/static/fonts/Now-Thin.otf
  13. 0
      themes/cetcat/static/js/stars.js
  14. 0
      themes/cetcat/templates/archives.html
  15. 49
      themes/cetcat/templates/article.html
  16. 0
      themes/cetcat/templates/author.html
  17. 0
      themes/cetcat/templates/authors.html
  18. 2
      themes/cetcat/templates/base.html
  19. 0
      themes/cetcat/templates/categories.html
  20. 0
      themes/cetcat/templates/category.html
  21. 0
      themes/cetcat/templates/gosquared.html
  22. 0
      themes/cetcat/templates/index.html
  23. 0
      themes/cetcat/templates/page.html
  24. 0
      themes/cetcat/templates/pagination.html
  25. 0
      themes/cetcat/templates/period_archives.html
  26. 0
      themes/cetcat/templates/syndication.html
  27. 0
      themes/cetcat/templates/tag.html
  28. 0
      themes/cetcat/templates/tags.html
  29. 11
      themes/cetcat/templates/translations.html

2
pelicanconf.py

@ -51,7 +51,7 @@ MENUITEMS=(
('news', '/'), ('news', '/'),
) )
THEME = 'themes/catcet' THEME = 'themes/cetcat'
ARTICLE_LANG_URL = '{slug}-{lang}.html' ARTICLE_LANG_URL = '{slug}-{lang}.html'

221
themes/catcet/static/css/main2.css

@ -1,221 +0,0 @@
/*
2k17 Homebrewserver.club Pelican theme
---
Style sheet is ordered vertically, with declarations for the header on top and footer on the bottom.
With contributions by club members:
http://roelof.info
http://randomiser.info/
http://majesticmoo.se
*/
@font-face {
font-family: 'NowBlack';
src: url('../fonts/Now-Black.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'NowBold';
src: url('../fonts/Now-Bold.otf') format('opentype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'NowLight';
src: url('../fonts/Now-Light.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'NowMedium';
src: url('../fonts/Now-Medium.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'NowRegular';
src: url('../fonts/Now-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'NowThin';
src: url('../fonts/Now-Thin.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
header {
width:100%;
margin-top:3em;
margin-bottom:3em;
color: #538cc6;
}
#title {
margin-top:0.5em;
font-size: 120px;
width:50%;
}
#subtitle{
font-size: 16px;
}
hr {
color: white;
margin-top:1em;
}
pre {
}
#menu{
font-size:23px;
font-weight:bold;
width:40%;
float: right;
}
body {
line-height:1.5em;
background-color: #f2f2f2;
font-size: 16px;
margin: 0 auto;
width: 900px;
font-family:"NowRegular";
font-style: normal;
}
a {
color:#0000ff;
font-weight: bold;
}
.paginator{
float:right;
margin:0px;
}
#index{
}
#post-list {
padding-left:0px;
margin-top:0px;
}
ul {
padding-left:0px;
}
.hentry{
/*margin-top:2em;*/
border-width: 1px;
border-color: #444;
}
.article-info{
clear: right;
display: inline;
float: left;
margin-bottom: 5em;
max-width: 150px;
padding-right: em;
transform: rotate(-3deg);
}
.entry-title span{
width:100%;
display:inline-block;
}
.entry-content{
display: inline;
float: right;
margin-bottom: 2.5em;
max-width: 700px;
padding-right: 1em;
}
.entry-content pre{
font-size:20px;
padding-left:1em;
overflow: auto;
background-color: #F8F8F8;
line-height:1.2em;
}
.entry-content img{
max-width:100%;
border: 2px solid white;
}
.entry-content ul {
font-size:20px;
line-height:1.5;
margin: auto;
max-width:800px;
}
.highlight{
margin: auto;
max-width:800px;
}
#page-content img{
max-width:100%;
}
blockquote {
font-style:italic;
}
#content{
margin:auto;
width:100%;
}
.divider {
font-size:12px;
width:100%;
line-height:1em;
background-color:white;
}
.published{
font-size:smaller;
}
.article_tags{
font-size:smaller;
}
#categories {
font-size: 40px;
margin-top: 2em;
text-align: center;
}
#pertaining{
margin-top:2em;
text-align:center;
}
.simple-footnotes{
font-size:14px;
margin:auto;
max-width:800px;
}
.author{
font-size:smaller;
}

50
themes/catcet/templates/article.html

@ -1,50 +0,0 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}
{% if article.tags or article.category or article.keywords %}
<meta name="keywords" content="{{ [article.tags|join(', '), article.category, article.keywords]|join(', ') }}" />
{% endif %}
{% endblock %}
<div class="file type_folder">
<a title="../" href="/log/" id="link0" class="type_folder"><img alt="../" src="/icons/back.png" class="type_folder"></a>
</br>
<span class="filename">../</span>
{% block content %}
<section id="content" class="body">
<div class="article-info">
<div class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></div>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<div class="post-info">
<time class="published" datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</time>
{% if article.modified %}
<time class="modified" datetime="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</time>
{% endif %}
{% if article.authors %}
<address class="vcard author">
By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
</div>
</div>
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
</section>
{% endblock %}

9
themes/catcet/templates/translations.html

@ -1,9 +0,0 @@
{% macro translations_for(article) %}
{% if article.translations %}
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
{% endif %}
{% endmacro %}

100
themes/catcet/static/css/main.css → themes/cetcat/static/css/main.css

@ -54,7 +54,11 @@ http://majesticmoo.se
header { header {
width:100%; width:100%;
margin-top:3em; margin-top:3em;
margin-bottom:3em; margin-bottom:1em;
line-height: 1.5em;
border-bottom: 1px solid;
padding-bottom:1em;
/*transform:rotate(3deg);*/
} }
#title { #title {
@ -67,33 +71,44 @@ header {
} }
hr { hr {
color: white; border:0;
color: black;
border-bottom:1px solid;
margin-top:1em; margin-top:1em;
} }
pre { pre {
} }
#menu{ #menu{
font-size:40px; position: absolute;
top:25px;
right:25px;
font-size:20px;
font-weight:bold; font-weight:bold;
width:50%;
float: right; float: right;
} }
body { body {
line-height:1.5em;
background-color: #f13030;
font-size: 16px; font-size: 16px;
line-height:1.8;
background-color: rgb(239, 225, 79);
/*background-color: rgba(100,100,250,1);*/
margin: 0 auto; margin: 0 auto;
width: 900px; width: calc(100% - 50px);
color:white; color:black;
font-family:"NowRegular"; /*color:white;*/
font-family: monospace;
font-style: normal; font-style: normal;
} }
a { a {
color:#22181c; color:#7e5211;
font-weight: bold; font-weight: bold;
} }
h1, h2, h3, h4, h5, h6, #header{
font-family: sans-serif, "NowRegular";
margin:1em 0 0 0;
padding:0;
}
.paginator{ .paginator{
float:right; float:right;
@ -112,35 +127,47 @@ ul {
padding-left:0px; padding-left:0px;
} }
.hentry{ #translation{
/*margin-top:2em;*/ float: left;
border-width: 1px;
border-color: #444;
} }
.article-info{ .hentry{
clear: right;
display: inline;
float: left; float: left;
margin-bottom: 5em; width: 200px;
max-width: 150px; display: inline-block;
padding-right: em; margin-right:2em;
transform: rotate(-3deg); font-size: 12px;
} }
.article-info{
/*clear: right;*/
/*display: inline;*/
/*float: left;*/
/*margin-bottom: 0em;*/
/*max-width: 150px;*/
/*padding-right: 1em;*/
/*transform: rotate(-3deg);*/
}
/* log */
.entry-title span{ .entry-title span{
width:100%; width:100%;
display:inline-block; display:inline-block;
} }
.entry-content{ .entry-content{
display: inline; /*display: inline;*/
float: right; /*float: right;*/
margin-bottom: 2.5em; /*margin-top:-6em;*/
max-width: 700px; /*margin-bottom: 2.5em;*/
padding-right: 1em; /*min-width: 400px;*/
/*max-width: 800px;*/
/*transform:rotate(-3deg);*/
/*padding:0 15%;*/
/*border-bottom: 1px solid;*/
}
.entry-content p, .entry-content h1, .entry-content h2, .entry-content h3{
/*transform:rotate(3deg); */
} }
.entry-content pre{ .entry-content pre{
@ -150,25 +177,30 @@ ul {
background-color: #F8F8F8; background-color: #F8F8F8;
line-height:1.2em; line-height:1.2em;
} }
.entry-content img{ .entry-content img{
max-width:100%; max-width:100%;
border: 2px solid white;
} }
.entry-content ul { .entry-content ul {
font-size:20px; font-size:20px;
line-height:1.5; line-height:1.5;
margin: auto; margin: auto;
max-width:800px; max-width:800px;
} }
.separator hr{
display: none;
}
.highlight{ .highlight{
margin: auto; margin: auto;
max-width:800px; max-width:800px;
} }
#page-content{
clear: both;
float: left;
margin-top:-0.5em;
/*max-width: 800px;*/
}
#page-content img{ #page-content img{
max-width:100%; max-width:100%;
} }
@ -188,15 +220,14 @@ blockquote {
line-height:1em; line-height:1em;
background-color:white; background-color:white;
} }
/*
.published{ .published{
font-size:smaller; font-size:smaller;
} }
.article_tags{ .article_tags{
font-size:smaller; font-size:smaller;
} }
*/
#categories { #categories {
font-size: 40px; font-size: 40px;
@ -215,6 +246,7 @@ blockquote {
} }
.author{ .author{
display: none;
font-size:smaller; font-size:smaller;
} }

0
themes/catcet/static/css/pygment.css → themes/cetcat/static/css/pygment.css

0
themes/catcet/static/fonts/Now-Black.otf → themes/cetcat/static/fonts/Now-Black.otf

0
themes/catcet/static/fonts/Now-Bold.otf → themes/cetcat/static/fonts/Now-Bold.otf

0
themes/catcet/static/fonts/Now-Light.otf → themes/cetcat/static/fonts/Now-Light.otf

0
themes/catcet/static/fonts/Now-Medium.otf → themes/cetcat/static/fonts/Now-Medium.otf

0
themes/catcet/static/fonts/Now-Regular.otf → themes/cetcat/static/fonts/Now-Regular.otf

0
themes/catcet/static/fonts/Now-Thin.otf → themes/cetcat/static/fonts/Now-Thin.otf

0
themes/catcet/static/js/stars.js → themes/cetcat/static/js/stars.js

0
themes/catcet/templates/archives.html → themes/cetcat/templates/archives.html

49
themes/cetcat/templates/article.html

@ -0,0 +1,49 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
{% endif %}
{% if article.tags or article.category or article.keywords %}
<meta name="keywords" content="{{ [article.tags|join(', '), article.category, article.keywords]|join(', ') }}" />
{% endif %}
{% endblock %}
<div class="file type_folder">
<a title="../" href="/log/" id="link0" class="type_folder"><img alt="../" src="/icons/back.png" class="type_folder"></a>
</br>
<span class="filename">../</span>
{% block content %}
<section id="content" class="body">
<div class="article-info">
<div class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</div>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<div class="post-info">
<time class="published" datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
</time>
{% if article.modified %}
<time class="modified" datetime="{{ article.modified.isoformat() }}">
{{ article.locale_modified }}
</time>
{% endif %}
{% if article.authors %}
<address class="vcard author">
By {% for author in article.authors %}
<a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{% endif %}
</div>
</div>
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
</section>
{% endblock %}

0
themes/catcet/templates/author.html → themes/cetcat/templates/author.html

0
themes/catcet/templates/authors.html → themes/cetcat/templates/authors.html

2
themes/catcet/templates/base.html → themes/cetcat/templates/base.html

@ -61,7 +61,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endif %} {% endif %}
</ul></nav><hr></header><!-- /#menu --> </ul></nav></header><!-- /#menu -->
{% block content %} {% block content %}
{% endblock %} {% endblock %}

0
themes/catcet/templates/categories.html → themes/cetcat/templates/categories.html

0
themes/catcet/templates/category.html → themes/cetcat/templates/category.html

0
themes/catcet/templates/gosquared.html → themes/cetcat/templates/gosquared.html

0
themes/catcet/templates/index.html → themes/cetcat/templates/index.html

0
themes/catcet/templates/page.html → themes/cetcat/templates/page.html

0
themes/catcet/templates/pagination.html → themes/cetcat/templates/pagination.html

0
themes/catcet/templates/period_archives.html → themes/cetcat/templates/period_archives.html

0
themes/catcet/templates/syndication.html → themes/cetcat/templates/syndication.html

0
themes/catcet/templates/tag.html → themes/cetcat/templates/tag.html

0
themes/catcet/templates/tags.html → themes/cetcat/templates/tags.html

11
themes/cetcat/templates/translations.html

@ -0,0 +1,11 @@
{% macro translations_for(article) %}
{% if article.translations %}
<div id="translation">
Translations:
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
{% endfor %}
</div>
{% endif %}
{% endmacro %}
Loading…
Cancel
Save