init
This commit is contained in:
18
theme/LICENCE
Normal file
18
theme/LICENCE
Normal file
@@ -0,0 +1,18 @@
|
||||
Copyright (c) 2007-2008 Mark Pilgrim
|
||||
|
||||
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.
|
BIN
theme/atom-24x24.png
Normal file
BIN
theme/atom-24x24.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
5
theme/config.ini
Normal file
5
theme/config.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
[Planet]
|
||||
|
||||
template_files: atom.xml.xslt index.html.tmpl
|
||||
|
||||
template_directories: /usr/share/planet-venus/theme/common
|
160
theme/index.html.tmpl
Normal file
160
theme/index.html.tmpl
Normal file
@@ -0,0 +1,160 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang=en>
|
||||
<head>
|
||||
<meta charset=utf-8>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
<TMPL_VAR name>
|
||||
</title>
|
||||
<link rel=alternate type=application/atom+xml href=/atom.xml title=Feed>
|
||||
<style type=text/css media=screen>
|
||||
html{
|
||||
background:#FFF
|
||||
}
|
||||
html, a{
|
||||
color:#333333
|
||||
}
|
||||
@media screen and (max-width: 800px) /* Mobile */{
|
||||
body {
|
||||
font:normal medium 'Gill Sans', Optima, Verdana, sans-serif;
|
||||
margin:40px auto 1em auto;
|
||||
width:85%;
|
||||
line-height:180%
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 801px) /* Desktop */ {
|
||||
body {
|
||||
font:normal medium 'Gill Sans', Optima, Verdana, sans-serif;
|
||||
margin:40px auto 1em auto;
|
||||
width:55%;
|
||||
line-height:180%
|
||||
}
|
||||
}
|
||||
img{
|
||||
border:0;
|
||||
max-width:100%;
|
||||
height:auto;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
video{
|
||||
max-width:100%;
|
||||
}
|
||||
figcaption{
|
||||
font-style: italic;
|
||||
font-size: smaller;
|
||||
text-align: center;
|
||||
}
|
||||
ul{
|
||||
list-style:none;margin-left:0;
|
||||
padding-left:0
|
||||
}
|
||||
li{
|
||||
clear:both
|
||||
}
|
||||
#footer{
|
||||
clear:both;
|
||||
text-align:center;
|
||||
font-size:small
|
||||
}
|
||||
.horizontal, .simple li{
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style:none;
|
||||
display:inline
|
||||
}
|
||||
.simple li:before{
|
||||
content:"+ "
|
||||
}
|
||||
.simple > li:first-child:before{
|
||||
content:""
|
||||
}
|
||||
.author{
|
||||
text-decoration:none;
|
||||
display:block;
|
||||
float:right;
|
||||
margin-left:2em;
|
||||
font-size:small
|
||||
}
|
||||
.content{
|
||||
margin:1em 20px
|
||||
}
|
||||
pre {
|
||||
Background:#eeeef4;
|
||||
display: block;
|
||||
border:1px;
|
||||
padding: 8px;
|
||||
border-radius:4px;
|
||||
overflow:auto;
|
||||
max-width:100%;
|
||||
}
|
||||
.logo {
|
||||
display: inline-block;
|
||||
}
|
||||
.additional-info a {
|
||||
color: blue;
|
||||
font-size: medium;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>
|
||||
<TMPL_VAR name>
|
||||
</h1>
|
||||
<ul>
|
||||
<TMPL_LOOP Items>
|
||||
<TMPL_IF new_date>
|
||||
</ul>
|
||||
|
||||
<h2 class=date>
|
||||
<TMPL_VAR new_date>
|
||||
</h2>
|
||||
<ul> </TMPL_IF>
|
||||
<li<TMPL_IF channel_language> lang="<TMPL_VAR channel_language>"</TMPL_IF>>
|
||||
<h3>
|
||||
<a class=author href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">">
|
||||
<TMPL_VAR channel_name ESCAPE="HTML">
|
||||
</a>
|
||||
<TMPL_IF title>
|
||||
<a<TMPL_IF link> href="<TMPL_VAR link ESCAPE="HTML">"</TMPL_IF><TMPL_IF title_language> lang="<TMPL_VAR title_language>"</TMPL_IF>>
|
||||
<TMPL_VAR title>
|
||||
</a>
|
||||
</TMPL_IF>
|
||||
</h3>
|
||||
<TMPL_IF content>
|
||||
<div class="content">
|
||||
<TMPL_VAR content>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</li> <hr>
|
||||
</TMPL_LOOP>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
<div id=footer>
|
||||
<p>via these fine people and organizations:</p>
|
||||
<ul class="simple horizontal">
|
||||
<TMPL_LOOP Channels>
|
||||
<li>
|
||||
<a href="<TMPL_VAR link ESCAPE="HTML">" title="<TMPL_VAR title ESCAPE="HTML">">
|
||||
<TMPL_VAR name>
|
||||
</a>
|
||||
</li>
|
||||
</TMPL_LOOP>
|
||||
<ul>
|
||||
|
||||
<br>
|
||||
<div class="additional-info">
|
||||
<!-- the webfeed image is linked to atom feed link -->
|
||||
<a href="https://planet.fsci.in/atom.xml">
|
||||
<img src="https://gitlab.com/fsci/blog.fsci.org.in/-/raw/master/theme/atom-24x24.png" alt="webfeed logo" class="logo"></img>
|
||||
</a>
|
||||
<a href="https://planet.fsci.in/atom.xml">Atom Feed</a> |
|
||||
<a href="https://gitlab.com/fsci/blog.fsci.org.in#steps-to-add-blog">Add your blog</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user