mb@mb
6 years ago
48 changed files with 10707 additions and 276 deletions
@ -1,2 +1,3 @@ |
|||||
{% extends "index.html" %} |
{% extends "index.html" %} |
||||
|
{% block indexpage %} |
||||
|
{% endblock indexpage %} |
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,93 @@ |
|||||
|
Copyright 2015 The Arima Project Authors (info@ndiscovered.com) |
||||
|
|
||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1. |
||||
|
This license is copied below, and is also available with a FAQ at: |
||||
|
http://scripts.sil.org/OFL |
||||
|
|
||||
|
|
||||
|
----------------------------------------------------------- |
||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 |
||||
|
----------------------------------------------------------- |
||||
|
|
||||
|
PREAMBLE |
||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide |
||||
|
development of collaborative font projects, to support the font creation |
||||
|
efforts of academic and linguistic communities, and to provide a free and |
||||
|
open framework in which fonts may be shared and improved in partnership |
||||
|
with others. |
||||
|
|
||||
|
The OFL allows the licensed fonts to be used, studied, modified and |
||||
|
redistributed freely as long as they are not sold by themselves. The |
||||
|
fonts, including any derivative works, can be bundled, embedded, |
||||
|
redistributed and/or sold with any software provided that any reserved |
||||
|
names are not used by derivative works. The fonts and derivatives, |
||||
|
however, cannot be released under any other type of license. The |
||||
|
requirement for fonts to remain under this license does not apply |
||||
|
to any document created using the fonts or their derivatives. |
||||
|
|
||||
|
DEFINITIONS |
||||
|
"Font Software" refers to the set of files released by the Copyright |
||||
|
Holder(s) under this license and clearly marked as such. This may |
||||
|
include source files, build scripts and documentation. |
||||
|
|
||||
|
"Reserved Font Name" refers to any names specified as such after the |
||||
|
copyright statement(s). |
||||
|
|
||||
|
"Original Version" refers to the collection of Font Software components as |
||||
|
distributed by the Copyright Holder(s). |
||||
|
|
||||
|
"Modified Version" refers to any derivative made by adding to, deleting, |
||||
|
or substituting -- in part or in whole -- any of the components of the |
||||
|
Original Version, by changing formats or by porting the Font Software to a |
||||
|
new environment. |
||||
|
|
||||
|
"Author" refers to any designer, engineer, programmer, technical |
||||
|
writer or other person who contributed to the Font Software. |
||||
|
|
||||
|
PERMISSION & CONDITIONS |
||||
|
Permission is hereby granted, free of charge, to any person obtaining |
||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify, |
||||
|
redistribute, and sell modified and unmodified copies of the Font |
||||
|
Software, subject to the following conditions: |
||||
|
|
||||
|
1) Neither the Font Software nor any of its individual components, |
||||
|
in Original or Modified Versions, may be sold by itself. |
||||
|
|
||||
|
2) Original or Modified Versions of the Font Software may be bundled, |
||||
|
redistributed and/or sold with any software, provided that each copy |
||||
|
contains the above copyright notice and this license. These can be |
||||
|
included either as stand-alone text files, human-readable headers or |
||||
|
in the appropriate machine-readable metadata fields within text or |
||||
|
binary files as long as those fields can be easily viewed by the user. |
||||
|
|
||||
|
3) No Modified Version of the Font Software may use the Reserved Font |
||||
|
Name(s) unless explicit written permission is granted by the corresponding |
||||
|
Copyright Holder. This restriction only applies to the primary font name as |
||||
|
presented to the users. |
||||
|
|
||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font |
||||
|
Software shall not be used to promote, endorse or advertise any |
||||
|
Modified Version, except to acknowledge the contribution(s) of the |
||||
|
Copyright Holder(s) and the Author(s) or with their explicit written |
||||
|
permission. |
||||
|
|
||||
|
5) The Font Software, modified or unmodified, in part or in whole, |
||||
|
must be distributed entirely under this license, and must not be |
||||
|
distributed under any other license. The requirement for fonts to |
||||
|
remain under this license does not apply to any document created |
||||
|
using the Font Software. |
||||
|
|
||||
|
TERMINATION |
||||
|
This license becomes null and void if any of the above conditions are |
||||
|
not met. |
||||
|
|
||||
|
DISCLAIMER |
||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF |
||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE |
||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL |
||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM |
||||
|
OTHER DEALINGS IN THE FONT SOFTWARE. |
@ -0,0 +1,12 @@ |
|||||
|
AUTHORS |
||||
|
|
||||
|
Current Contributors (sorted alphabetically): |
||||
|
- Pravin Satpute <psatpute at redhat dot com> |
||||
|
Project Owner (Current) |
||||
|
Red Hat, Inc. |
||||
|
|
||||
|
Previous Contributors |
||||
|
|
||||
|
- Steve Matteson |
||||
|
Original Designer |
||||
|
Ascender, Inc. |
@ -0,0 +1,14 @@ |
|||||
|
* Thu Oct 04 2012 Pravin Satpute <psatpute AT redhat DOT com> |
||||
|
- Resolved "Glyphs with multiple unicode encodings inhibit subsetting" #851790 |
||||
|
- Resolved #851791, #854601 and #851825 |
||||
|
- Following GASP table version as per Liberation old version. (Anti-aliasing disabled) |
||||
|
- Added support for Serbian glyphs for wikipedia #657849 |
||||
|
- In Monospace fonts, isFixedPitch bit set via script for getting it recognized as Monospace in putty.exe |
||||
|
|
||||
|
* Fri Jul 06 2012 Pravin Satpute <psatpute AT redhat DOT com> |
||||
|
- Initial version of Liberation fonts based on croscore fonts version 1.21.0 |
||||
|
- Converted TTF files into SFD files to be open source. |
||||
|
- Update Copyright and License file |
||||
|
- set fsType bit to 0, Installable Embedding is allowed. |
||||
|
- Absolute value in HHeadAscent/Descent values for maintaining Metric compatibility. |
||||
|
|
@ -0,0 +1,102 @@ |
|||||
|
Digitized data copyright (c) 2010 Google Corporation |
||||
|
with Reserved Font Arimo, Tinos and Cousine. |
||||
|
Copyright (c) 2012 Red Hat, Inc. |
||||
|
with Reserved Font Name Liberation. |
||||
|
|
||||
|
This Font Software is licensed under the SIL Open Font License, |
||||
|
Version 1.1. |
||||
|
|
||||
|
This license is copied below, and is also available with a FAQ at: |
||||
|
http://scripts.sil.org/OFL |
||||
|
|
||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 |
||||
|
|
||||
|
PREAMBLE The goals of the Open Font License (OFL) are to stimulate |
||||
|
worldwide development of collaborative font projects, to support the font |
||||
|
creation efforts of academic and linguistic communities, and to provide |
||||
|
a free and open framework in which fonts may be shared and improved in |
||||
|
partnership with others. |
||||
|
|
||||
|
The OFL allows the licensed fonts to be used, studied, modified and |
||||
|
redistributed freely as long as they are not sold by themselves. |
||||
|
The fonts, including any derivative works, can be bundled, embedded, |
||||
|
redistributed and/or sold with any software provided that any reserved |
||||
|
names are not used by derivative works. The fonts and derivatives, |
||||
|
however, cannot be released under any other type of license. The |
||||
|
requirement for fonts to remain under this license does not apply to |
||||
|
any document created using the fonts or their derivatives. |
||||
|
|
||||
|
|
||||
|
|
||||
|
DEFINITIONS |
||||
|
"Font Software" refers to the set of files released by the Copyright |
||||
|
Holder(s) under this license and clearly marked as such. |
||||
|
This may include source files, build scripts and documentation. |
||||
|
|
||||
|
"Reserved Font Name" refers to any names specified as such after the |
||||
|
copyright statement(s). |
||||
|
|
||||
|
"Original Version" refers to the collection of Font Software components |
||||
|
as distributed by the Copyright Holder(s). |
||||
|
|
||||
|
"Modified Version" refers to any derivative made by adding to, deleting, |
||||
|
or substituting ? in part or in whole ? |
||||
|
any of the components of the Original Version, by changing formats or |
||||
|
by porting the Font Software to a new environment. |
||||
|
|
||||
|
"Author" refers to any designer, engineer, programmer, technical writer |
||||
|
or other person who contributed to the Font Software. |
||||
|
|
||||
|
|
||||
|
PERMISSION & CONDITIONS |
||||
|
|
||||
|
Permission is hereby granted, free of charge, to any person obtaining a |
||||
|
copy of the Font Software, to use, study, copy, merge, embed, modify, |
||||
|
redistribute, and sell modified and unmodified copies of the Font |
||||
|
Software, subject to the following conditions: |
||||
|
|
||||
|
1) Neither the Font Software nor any of its individual components,in |
||||
|
Original or Modified Versions, may be sold by itself. |
||||
|
|
||||
|
2) Original or Modified Versions of the Font Software may be bundled, |
||||
|
redistributed and/or sold with any software, provided that each copy |
||||
|
contains the above copyright notice and this license. These can be |
||||
|
included either as stand-alone text files, human-readable headers or |
||||
|
in the appropriate machine-readable metadata fields within text or |
||||
|
binary files as long as those fields can be easily viewed by the user. |
||||
|
|
||||
|
3) No Modified Version of the Font Software may use the Reserved Font |
||||
|
Name(s) unless explicit written permission is granted by the |
||||
|
corresponding Copyright Holder. This restriction only applies to the |
||||
|
primary font name as presented to the users. |
||||
|
|
||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font |
||||
|
Software shall not be used to promote, endorse or advertise any |
||||
|
Modified Version, except to acknowledge the contribution(s) of the |
||||
|
Copyright Holder(s) and the Author(s) or with their explicit written |
||||
|
permission. |
||||
|
|
||||
|
5) The Font Software, modified or unmodified, in part or in whole, must |
||||
|
be distributed entirely under this license, and must not be distributed |
||||
|
under any other license. The requirement for fonts to remain under |
||||
|
this license does not apply to any document created using the Font |
||||
|
Software. |
||||
|
|
||||
|
|
||||
|
|
||||
|
TERMINATION |
||||
|
This license becomes null and void if any of the above conditions are not met. |
||||
|
|
||||
|
|
||||
|
|
||||
|
DISCLAIMER |
||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF |
||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT |
||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE |
||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL |
||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER |
||||
|
DEALINGS IN THE FONT SOFTWARE. |
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,80 @@ |
|||||
|
1. What's this? |
||||
|
================= |
||||
|
|
||||
|
The Liberation Fonts is font collection which aims to provide document |
||||
|
layout compatibility as usage of Times New Roman, Arial, Courier New. |
||||
|
|
||||
|
|
||||
|
2. Requirements |
||||
|
================= |
||||
|
|
||||
|
* fontforge is installed. |
||||
|
(http://fontforge.sourceforge.net) |
||||
|
|
||||
|
|
||||
|
3. Install |
||||
|
============ |
||||
|
|
||||
|
3.1 Decompress tarball |
||||
|
|
||||
|
You can extract the files by following command: |
||||
|
|
||||
|
$ tar zxvf liberation-fonts-[VERSION].tar.gz |
||||
|
|
||||
|
3.2 Build from the source |
||||
|
|
||||
|
Change into directory liberation-fonts-[VERSION]/ and build from sources by |
||||
|
following commands: |
||||
|
|
||||
|
$ cd liberation-fonts-[VERSION] |
||||
|
$ make |
||||
|
|
||||
|
The built font files will be available in 'build' directory. |
||||
|
|
||||
|
3.3 Install to system |
||||
|
|
||||
|
For Fedora, you could manually install the fonts by copying the TTFs to |
||||
|
~/.fonts for user wide usage, or to /usr/share/fonts/truetype/liberation |
||||
|
for system-wide availability. Then, run "fc-cache" to let that cached. |
||||
|
|
||||
|
For other distributions, please check out corresponding documentation. |
||||
|
|
||||
|
|
||||
|
4. Usage |
||||
|
========== |
||||
|
|
||||
|
Simply select preferred liberation font in applications and start using. |
||||
|
|
||||
|
|
||||
|
5. License |
||||
|
============ |
||||
|
|
||||
|
This Font Software is licensed under the SIL Open Font License, |
||||
|
Version 1.1. |
||||
|
|
||||
|
Please read file "LICENSE" for details. |
||||
|
|
||||
|
|
||||
|
6. For Maintainers |
||||
|
==================== |
||||
|
|
||||
|
Before packaging a new release based on a new source tarball, you have to |
||||
|
update the version suffix in the Makefile: |
||||
|
|
||||
|
VER = [VERSION] |
||||
|
|
||||
|
Make sure that the defined version corresponds to the font software metadata |
||||
|
which you can check with ftinfo/otfinfo or fontforge itself. It is highly |
||||
|
recommended that file 'ChangeLog' is updated to reflect changes. |
||||
|
|
||||
|
Create a tarball with the following command: |
||||
|
|
||||
|
$ make dist |
||||
|
|
||||
|
The new versioned tarball will be available in the dist/ folder as |
||||
|
'liberation-fonts-[NEW_VERSION].tar.gz'. |
||||
|
|
||||
|
7. Credits |
||||
|
============ |
||||
|
|
||||
|
Please read file "AUTHORS" for list of contributors. |
@ -0,0 +1,5 @@ |
|||||
|
Here are todo for next release |
||||
|
1) Serbian glyph for wikipedia https://bugzilla.redhat.com/show_bug.cgi?id=657849 |
||||
|
- Improving shape of S_BE https://bugzilla.redhat.com/show_bug.cgi?id=657849#c96 |
||||
|
2) Liberation Mono not recognizing as Mono in Windows application #861003 |
||||
|
- presently it is patch, we have to update zero width characters to fixed width |
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 758 B |
After Width: | Height: | Size: 518 B |
After Width: | Height: | Size: 486 B |
After Width: | Height: | Size: 460 B |
After Width: | Height: | Size: 475 B |
File diff suppressed because it is too large
@ -0,0 +1,413 @@ |
|||||
|
@font-face{ |
||||
|
font-family: "serif"; |
||||
|
src:url('fonts/liberation-serif/LiberationSerif-Regular.ttf'); |
||||
|
font-weight: normal; |
||||
|
font-style: normal; |
||||
|
} |
||||
|
@font-face{ |
||||
|
font-family: "serif"; |
||||
|
src:url('fonts/liberation-serif/LiberationSerif-Italic.ttf'); |
||||
|
font-weight: normal; |
||||
|
font-style: italic; |
||||
|
} |
||||
|
@font-face{ |
||||
|
font-family: "serif"; |
||||
|
src:url('fonts/liberation-serif/LiberationSerif-Bold.ttf'); |
||||
|
font-weight: bold; |
||||
|
font-style: normal; |
||||
|
} |
||||
|
@font-face{ |
||||
|
font-family: "serif"; |
||||
|
src:url('fonts/liberation-serif/LiberationSerif-BoldItalic.ttf'); |
||||
|
font-weight: bold; |
||||
|
font-style: italic; |
||||
|
} |
||||
|
|
||||
|
@font-face{ |
||||
|
font-family: "headers"; |
||||
|
src:url('fonts/arima-koshi/ArimaKoshi-Medium.otf'); |
||||
|
font-weight: normal; |
||||
|
font-style: normal; |
||||
|
} |
||||
|
@font-face{ |
||||
|
font-family: "headers"; |
||||
|
src:url('fonts/arima-koshi/ArimaKoshi-ExtraBold.otf'); |
||||
|
font-weight: bold; |
||||
|
font-style: normal; |
||||
|
} |
||||
|
body{ |
||||
|
margin:0px; |
||||
|
font-size: 14px; |
||||
|
font-family: "headers"; |
||||
|
background-color: #ccd1cab3; |
||||
|
/*background: linear-gradient(to bottom right, #c2c2c2, #fff7f7, #e4e3e3);*/ |
||||
|
word-break: normal; |
||||
|
} |
||||
|
h1{ |
||||
|
font-size: 42px; |
||||
|
line-height:45px; |
||||
|
margin-top: 0.3em; |
||||
|
margin-bottom: 0.3em; |
||||
|
font-size: 36px; |
||||
|
font-family: "headers"; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
h2, h3, h4, h5, h6{ |
||||
|
font-family: "headers"; |
||||
|
font-weight: bold; |
||||
|
margin-bottom: 0; |
||||
|
padding-bottom: 0; |
||||
|
} |
||||
|
p{ |
||||
|
margin: 0 0 1em 0; |
||||
|
} |
||||
|
|
||||
|
a, a:visited, a:active{ |
||||
|
color:black; |
||||
|
} |
||||
|
blockquote{ |
||||
|
font-weight:bold; |
||||
|
font-family: "headers"; |
||||
|
font-weight: normal; |
||||
|
} |
||||
|
code{ |
||||
|
font-family: monospace; |
||||
|
font-size: 12px; |
||||
|
padding:0 5px; |
||||
|
} |
||||
|
|
||||
|
a, a:active, a:visited{ |
||||
|
color:inherit; |
||||
|
text-decoration: underline; |
||||
|
} |
||||
|
hr{ |
||||
|
border:0; |
||||
|
border-bottom:1px solid; |
||||
|
} |
||||
|
em{ |
||||
|
font-style: italic; |
||||
|
} |
||||
|
|
||||
|
section{ |
||||
|
width: calc(100% - 4em); |
||||
|
padding:0 2em; |
||||
|
} |
||||
|
header{ |
||||
|
top:0; |
||||
|
width: 100%; |
||||
|
height: auto; |
||||
|
margin:0 0 5em 0; |
||||
|
padding:0; |
||||
|
text-align: left; |
||||
|
} |
||||
|
#menu{ |
||||
|
width: auto; |
||||
|
margin:0; |
||||
|
padding:90px 1em; |
||||
|
font-size: 5vw; |
||||
|
line-height: 1.35; |
||||
|
color:white; |
||||
|
background-color: #fb4817; |
||||
|
background: linear-gradient(to bottom, salmon, #ff7f4d, #ccd1cab3); |
||||
|
} |
||||
|
#menu.main{ |
||||
|
position: relative; |
||||
|
z-index: 10; |
||||
|
} |
||||
|
#menu a{ |
||||
|
text-decoration: none; |
||||
|
} |
||||
|
#menu.main .indent{ |
||||
|
padding-left:60px; |
||||
|
} |
||||
|
#menu #subtitle{ |
||||
|
margin:2em 2em 1em 60px; |
||||
|
font-family: 'serif'; |
||||
|
font-size: 32px; |
||||
|
font-weight: normal; |
||||
|
line-height: 1.3; |
||||
|
color:white; |
||||
|
} |
||||
|
#menu img.shape{ |
||||
|
width:20px; |
||||
|
height: 20px; |
||||
|
position: absolute; |
||||
|
opacity: 0.15; |
||||
|
filter: alpha(opacity=15); /* For IE8 and earlier */ |
||||
|
} |
||||
|
#menu select{ |
||||
|
height:5vw; |
||||
|
vertical-align: middle; |
||||
|
color:black; |
||||
|
padding: 0 0 0 1em; |
||||
|
margin:0 1em; |
||||
|
} |
||||
|
#menu.sticky{ |
||||
|
position: fixed; |
||||
|
font-size: 1.1em; |
||||
|
width: calc(100% - 2em); |
||||
|
top:0; |
||||
|
left:0; |
||||
|
padding:2px 1em 2px 2em; |
||||
|
margin:0; |
||||
|
background-color: #fb4817; |
||||
|
} |
||||
|
#menu.sticky{ |
||||
|
z-index: 1; |
||||
|
} |
||||
|
#menu.sticky a{ |
||||
|
color:white; |
||||
|
text-decoration: none; |
||||
|
} |
||||
|
#menu.sticky #character{ |
||||
|
display: none; |
||||
|
} |
||||
|
#menu.sticky select{ |
||||
|
padding:0; |
||||
|
height: auto; |
||||
|
margin:0 0.5em; |
||||
|
font-size: 12px; |
||||
|
} |
||||
|
|
||||
|
#content{ |
||||
|
margin-bottom:5em; |
||||
|
} |
||||
|
#agenda{ |
||||
|
width: calc(50% - 6.5em); |
||||
|
float: left; |
||||
|
padding: 1em 1.5em 2em 4em; |
||||
|
margin:0 0 2em 0; |
||||
|
background-color: #6ade4e; |
||||
|
color:#3c0e02; |
||||
|
border-radius: 15px; |
||||
|
} |
||||
|
#agenda h2{ |
||||
|
margin-bottom:-1em; |
||||
|
} |
||||
|
#agenda h3{ |
||||
|
margin:2em 0 0.5em 0; |
||||
|
} |
||||
|
#agenda h3:before{ |
||||
|
content:'⟿'; |
||||
|
margin-left:-1.8em; |
||||
|
padding-right: 0.5em; |
||||
|
} |
||||
|
#agenda strong{ |
||||
|
font-family: "headers"; |
||||
|
font-weight: bold; |
||||
|
font-size: 130%; |
||||
|
line-height: 1.2; |
||||
|
} |
||||
|
.featured { |
||||
|
max-width: calc(50% - 1.5em); |
||||
|
float: left; |
||||
|
margin:2em 0; |
||||
|
color:rgb(0, 5, 33); |
||||
|
} |
||||
|
|
||||
|
.featured:nth-of-type(even) { |
||||
|
float:right; |
||||
|
} |
||||
|
.featured:nth-of-type(odd) { |
||||
|
clear: left; |
||||
|
} |
||||
|
.featured:last-of-type{ |
||||
|
margin-bottom:5em; |
||||
|
} |
||||
|
.entry-title{ |
||||
|
border: 0; |
||||
|
border-radius: 15px 50px; |
||||
|
background-color: white; |
||||
|
padding: 2em; |
||||
|
text-align: center; |
||||
|
} |
||||
|
.entry-title a{ |
||||
|
color:#3c0e02; |
||||
|
text-decoration: none; |
||||
|
} |
||||
|
.entry-subtitle{ |
||||
|
font-size: 16px; |
||||
|
line-height: 1.5; |
||||
|
text-align:left; |
||||
|
margin:1em 0 2em; |
||||
|
padding:0 20px; |
||||
|
color:#3c0e02; |
||||
|
} |
||||
|
.entry-category{ |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
.entry-content #summary p:last-of-type{ |
||||
|
display: inline; |
||||
|
} |
||||
|
.entry-content #summary a.readmore, .entry-content #summary a.readmore:active, .entry-content #summary a.readmore:visited{ |
||||
|
color:#4d4b5d; |
||||
|
} |
||||
|
.entry-content{ |
||||
|
font: 18px 'serif'; |
||||
|
line-height: 28px; |
||||
|
letter-spacing: 0.01em; |
||||
|
padding:0 20px; |
||||
|
color:black; |
||||
|
} |
||||
|
.entry-content img{ |
||||
|
width: 100%; |
||||
|
} |
||||
|
.entry-content a{ |
||||
|
text-decoration: underline; |
||||
|
} |
||||
|
.entry-readmore a{ |
||||
|
text-decoration: underline; |
||||
|
} |
||||
|
.entry-tags a{ |
||||
|
font-weight:bold; |
||||
|
text-decoration: underline; |
||||
|
color:#3c0e02; |
||||
|
} |
||||
|
|
||||
|
/* article pages */ |
||||
|
#content.article{ |
||||
|
} |
||||
|
#content.article .entry-title{ |
||||
|
margin:3em 3em 2em 2em; |
||||
|
} |
||||
|
#content.article h1, #content.article h2, #content.article h3{ |
||||
|
clear: both; |
||||
|
} |
||||
|
#content.article .entry-content{ |
||||
|
font-size: 18px; |
||||
|
letter-spacing: 0.03em; |
||||
|
line-height: 1.7; |
||||
|
max-width: 900px; |
||||
|
margin:0 0 5em 50px; |
||||
|
} |
||||
|
#content.article .entry-content .img{ |
||||
|
width: 80%; |
||||
|
margin:2em 0; |
||||
|
font-family: sans-serif; |
||||
|
font-size:12px; |
||||
|
line-height: 1.4; |
||||
|
} |
||||
|
#content.article .entry-content .img img{ |
||||
|
width: 100%; |
||||
|
margin-bottom: 0.5em |
||||
|
} |
||||
|
|
||||
|
#list{ |
||||
|
margin:3em 0; |
||||
|
clear: both; |
||||
|
} |
||||
|
#list ul, #list li{ |
||||
|
list-style: none; |
||||
|
padding:0; |
||||
|
margin:2em 0; |
||||
|
} |
||||
|
#list .entry-title{ |
||||
|
margin-top:0; /* reset */ |
||||
|
margin-bottom:0; /* reset */ |
||||
|
padding:1em 2em; |
||||
|
} |
||||
|
|
||||
|
footer{ |
||||
|
width: calc(100% - 4em); |
||||
|
margin:0; |
||||
|
padding:2em; |
||||
|
left:0; |
||||
|
background-color: black; |
||||
|
color:white; |
||||
|
clear:both; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@media only screen and (orientation:portrait) { |
||||
|
body { |
||||
|
|
||||
|
} |
||||
|
h1{ |
||||
|
font-size: 26px; |
||||
|
line-height: 1.4; |
||||
|
} |
||||
|
header{ |
||||
|
margin:0 0 2em 0; |
||||
|
} |
||||
|
#menu{ |
||||
|
clear:both; |
||||
|
max-width: 100%; |
||||
|
padding:1em 1em 1em 1em; |
||||
|
font-size: 12vw; |
||||
|
} |
||||
|
#menu.sticky{ |
||||
|
font-size: 1em; |
||||
|
padding:0.5em 1em; |
||||
|
} |
||||
|
#menu title{ |
||||
|
vertical-align: top; |
||||
|
} |
||||
|
#menu.main .indent{ |
||||
|
padding-left:0; |
||||
|
} |
||||
|
#menu select{ |
||||
|
height: auto; |
||||
|
} |
||||
|
#menu.sticky select{ |
||||
|
float: right; |
||||
|
position: absolute; |
||||
|
top: 40px; |
||||
|
right: 10px; |
||||
|
padding: 1em; |
||||
|
} |
||||
|
#menu.sticky #character{ |
||||
|
display: inline-block; |
||||
|
} |
||||
|
#menu #subtitle{ |
||||
|
width: calc(100% - 2em); |
||||
|
top: 18em; |
||||
|
left: 1em; |
||||
|
margin: 2em 1em 1em 1em; |
||||
|
font-family: 'serif'; |
||||
|
font-size: 22px; |
||||
|
line-height: 1.6; |
||||
|
} |
||||
|
#menu img.shape{ |
||||
|
width: 12px; |
||||
|
height: 12px; |
||||
|
} |
||||
|
#agenda{ |
||||
|
width: calc(100% - 6em); |
||||
|
margin: 1em 0px; |
||||
|
padding:1em 2.5em 2em 3.5em; |
||||
|
} |
||||
|
.featured{ |
||||
|
max-width: 100%; !important |
||||
|
clear:both; !important |
||||
|
float: none; |
||||
|
margin-top:0; |
||||
|
} |
||||
|
.featured:nth-child(even) { |
||||
|
clear:both; !important |
||||
|
} |
||||
|
.entry-title{ |
||||
|
margin:1em 0 0; |
||||
|
padding:1.5em 1em; |
||||
|
} |
||||
|
.entry-content{ |
||||
|
max-width: 100%; |
||||
|
padding:0; |
||||
|
font-size: 5vw; |
||||
|
line-height: 1.7; |
||||
|
} |
||||
|
#content.article{ |
||||
|
margin:0 0 2em 0; |
||||
|
left:0; |
||||
|
} |
||||
|
#content.article .entry-title{ |
||||
|
margin:2em 0 0 0; |
||||
|
padding:1.5em 1em; |
||||
|
} |
||||
|
#content.article .entry-content{ |
||||
|
font-size: 20px; |
||||
|
line-height: 1.6; |
||||
|
} |
||||
|
footer{ |
||||
|
padding:1em 2em; |
||||
|
} |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% block content %} |
||||
|
<h1>Archives for {{ SITENAME }}</h1> |
||||
|
|
||||
|
<dl> |
||||
|
{% for article in dates %} |
||||
|
<dt>{{ article.locale_date }}</dt> |
||||
|
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> |
||||
|
{% endfor %} |
||||
|
</dl> |
||||
|
{% endblock %} |
@ -0,0 +1,45 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% block head %} |
||||
|
{{ super() }} |
||||
|
{% if article.description %} |
||||
|
<meta name="description" content="{{article.description}}" /> |
||||
|
{% endif %} |
||||
|
{% endblock %} |
||||
|
|
||||
|
{% block header %} |
||||
|
<h1 id="menu" class="sticky"> |
||||
|
<a href="{{ SITEURL }}/">Welcome to |
||||
|
the <span id="character">�</span></a> |
||||
|
<select onchange="window.location.href=this.value"> |
||||
|
{%- for t, article in tags|sort %} |
||||
|
<option value="{{SITEURL}}/{{ t.url }}" {% if t == tag %}selected{% endif %}>{{ t }}</option> |
||||
|
{% endfor %} |
||||
|
</select> |
||||
|
<a href="{{ SITEURL }}/">Federation</a> |
||||
|
</h1> |
||||
|
{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<section id="content" class="body article"> |
||||
|
<h1 class="entry-title p-name"> |
||||
|
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> |
||||
|
</h1> |
||||
|
<div class="entry-subtitle"> |
||||
|
<span class="entry-category"> |
||||
|
{{ article.category }} |
||||
|
</span> |
||||
|
about |
||||
|
<span class="entry-tags"> |
||||
|
{% for tag in article.tags %} |
||||
|
<span itemprop="keywords"> |
||||
|
<a href="{{ SITEURL }}/{{ tag.url }}" rel="tag">{{ tag }}</a> |
||||
|
</span> |
||||
|
{% endfor %} |
||||
|
</span> |
||||
|
⟿ published on |
||||
|
<span class="entry-date dt-published">{{ article.date | strftime('%d %B %Y')}}</span> |
||||
|
</div> |
||||
|
<div class="entry-content e-content">{{ article.content }}</div> |
||||
|
</section> |
||||
|
|
||||
|
{% endblock %} |
@ -0,0 +1,7 @@ |
|||||
|
{% extends "index.html" %} |
||||
|
|
||||
|
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} |
||||
|
{% block content_title %} |
||||
|
<h2>Articles by {{ author }}</h2> |
||||
|
{% endblock %} |
||||
|
|
@ -0,0 +1,13 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
|
||||
|
{% block title %}{{ SITENAME }} - Authors{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<h1>Authors on {{ SITENAME }}</h1> |
||||
|
|
||||
|
<ul> |
||||
|
{%- for author, articles in authors|sort %} |
||||
|
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li> |
||||
|
{% endfor %} |
||||
|
</ul> |
||||
|
{% endblock %} |
@ -0,0 +1,92 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="{{ DEFAULT_LANG }}"> |
||||
|
<head> |
||||
|
{% block head %} |
||||
|
<title>{% block title %}{{ SITENAME }} ⟿ {{ SUBTITLE }}{% endblock title %}</title> |
||||
|
<meta charset="utf-8" /> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
|
<link rel="stylesheet" type="text/css" href="{{SITEURL}}/{{ THEME_STATIC_DIR }}{{ CSS_FILE }}" /> |
||||
|
{% from 'syndication.html' import syndication with context %} |
||||
|
{{ syndication(article) }} |
||||
|
<link rel="icon" href="{{ SITEURL }}/favicon.ico" type="image/x-icon"> |
||||
|
{% if FEED_ALL_ATOM %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> |
||||
|
{% endif %} |
||||
|
{% if FEED_ALL_RSS %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" /> |
||||
|
{% endif %} |
||||
|
{% if FEED_ATOM %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{%if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" /> |
||||
|
{% endif %} |
||||
|
{% if FEED_RSS %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> |
||||
|
{% endif %} |
||||
|
{% if CATEGORY_FEED_ATOM and category %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM|format(category.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" /> |
||||
|
{% endif %} |
||||
|
{% if CATEGORY_FEED_RSS and category %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL|format(category.slug) }}{% else %}{{ CATEGORY_FEED_RSS|format(category.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" /> |
||||
|
{% endif %} |
||||
|
{% if TAG_FEED_ATOM and tag %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_ATOM|format(tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" /> |
||||
|
{% endif %} |
||||
|
{% if TAG_FEED_RSS and tag %} |
||||
|
<link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL|format(tag.slug) }}{% else %}{{ TAG_FEED_RSS|format(tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" /> |
||||
|
{% endif %} |
||||
|
{% endblock head %} |
||||
|
<script src="{{SITEURL}}/theme/js/jquery-2.1.3.js" type="text/javascript"></script> |
||||
|
</head> |
||||
|
|
||||
|
<body id="index" class="home"> |
||||
|
<header id="banner"> |
||||
|
{% block header %} |
||||
|
<h1 id="menu" class="main"> |
||||
|
<div id="title"> |
||||
|
<a href="{{ SITEURL }}/">Welcome |
||||
|
<div class="indent">to the</a> |
||||
|
<select onchange="window.location.href=this.value"> |
||||
|
{%- for t, article in tags|sort %} |
||||
|
<option value="{{ SITEURL }}/{{ t.url }}" {% if t == tag %}selected{% endif %}>{{ t }}</option> |
||||
|
{% endfor %} |
||||
|
</select> |
||||
|
</div> |
||||
|
<div class="indent"><a href="{{ SITEURL }}/">Federation</a></div> |
||||
|
</div> |
||||
|
<div id="subtitle"> |
||||
|
{{ SUBTITLE }} |
||||
|
</div> |
||||
|
</h1> |
||||
|
<h1 id="menu" class="sticky"> |
||||
|
<a href="{{ SITEURL }}/">Welcome to |
||||
|
the <span id="character">�</span></a> |
||||
|
<select onchange="window.location.href=this.value"> |
||||
|
{%- for t, article in tags|sort %} |
||||
|
<option value="{{ SITEURL }}/{{ t.url }}" {% if t == tag %}selected{% endif %}>{{ t }}</option> |
||||
|
{% endfor %} |
||||
|
</select> |
||||
|
<a href="{{ SITEURL }}/">Federation</a> |
||||
|
</h1> |
||||
|
{% endblock %} |
||||
|
</header> |
||||
|
{% block content %} |
||||
|
{% endblock %} |
||||
|
<footer> |
||||
|
{% for page in pages %} |
||||
|
{% if page.title == 'colophon' %} |
||||
|
{{ page.content }} |
||||
|
{%endif%} |
||||
|
{% endfor %} |
||||
|
</footer> |
||||
|
</body> |
||||
|
<script type="text/javascript"> |
||||
|
function getRandom(min, max) { |
||||
|
return Math.floor(Math.random() * (max - min) + min); |
||||
|
} |
||||
|
for(var i = 0; i < 30; i++){ |
||||
|
var t = getRandom(-5,95); |
||||
|
var l = getRandom(-5,98); |
||||
|
var s = getRandom(1,6); |
||||
|
$('header #menu.main').append('<img class="shape" src="{{ SITEURL }}/theme/img/shape'+s.toString()+'.svg" style="top:'+t.toString()+'%; left:'+l.toString()+'%;"/>'); |
||||
|
} |
||||
|
</script> |
||||
|
</html> |
@ -0,0 +1,8 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% block content %} |
||||
|
<ul> |
||||
|
{% for category, articles in categories %} |
||||
|
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li> |
||||
|
{% endfor %} |
||||
|
</ul> |
||||
|
{% endblock %} |
@ -0,0 +1,5 @@ |
|||||
|
{% extends "index.html" %} |
||||
|
{% block content_title %} |
||||
|
<h2>Articles in the {{ category }} category</h2> |
||||
|
{% endblock %} |
||||
|
|
@ -0,0 +1,14 @@ |
|||||
|
{% if GOSQUARED_SITENAME %} |
||||
|
<script type="text/javascript"> |
||||
|
var GoSquared={}; |
||||
|
GoSquared.acct = "{{ GOSQUARED_SITENAME }}"; |
||||
|
(function(w){ |
||||
|
function gs(){ |
||||
|
w._gstc_lt=+(new Date); var d=document; |
||||
|
var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "https://d1l6p2sc9645hc.cloudfront.net/tracker.js"; |
||||
|
var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s); |
||||
|
} |
||||
|
w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs); |
||||
|
})(window); |
||||
|
</script> |
||||
|
{% endif %} |
@ -0,0 +1,98 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% block content %} |
||||
|
{% if articles %} |
||||
|
<section id="content"> |
||||
|
{% for page in pages %} |
||||
|
{% if page.title == 'agenda' %} |
||||
|
<div id="agenda">{{ page.content }}</div> |
||||
|
{% endif %} |
||||
|
{% endfor %} |
||||
|
{% for article in articles_page.object_list %} |
||||
|
{% if loop.index <= 5 %} |
||||
|
<div class="featured"> |
||||
|
<article> |
||||
|
<h1 class="entry-title p-name"> |
||||
|
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> |
||||
|
</h1> |
||||
|
<div class="entry-subtitle"> |
||||
|
<span class="entry-category"> |
||||
|
{{ article.category }} |
||||
|
</span> |
||||
|
about |
||||
|
<span class="entry-tags"> |
||||
|
{% for tag in article.tags %} |
||||
|
<span itemprop="keywords"> |
||||
|
<a href="{{ SITEURL }}/{{ tag.url }}" rel="tag">{{ tag }}</a> |
||||
|
</span> |
||||
|
{% endfor %} |
||||
|
</span> |
||||
|
⟿ published on |
||||
|
<span class="entry-date dt-published">{{ article.date | strftime('%d %B %Y') }}</span> |
||||
|
</div> |
||||
|
<div class="entry-content e-content"> |
||||
|
{% if article.has_summary == True %} |
||||
|
<div id="summary">{{ article.summary }} |
||||
|
<a href="{{ SITEURL }}/{{ article.url }}" class="readmore">Read more ...</a> |
||||
|
</div> |
||||
|
{% else %} |
||||
|
{{ article.content }} |
||||
|
{% endif %} |
||||
|
</div> |
||||
|
</article> |
||||
|
</div> |
||||
|
{% if loop.index < 5 %} |
||||
|
{% if loop.last %} |
||||
|
</section> |
||||
|
{% endif %} |
||||
|
{% endif %} |
||||
|
{% if loop.index == 5 %} |
||||
|
</section> |
||||
|
<section id="list"> |
||||
|
<strong>Other articles</strong> |
||||
|
<hr /> |
||||
|
<ul id="posts-list"> |
||||
|
{% endif %} |
||||
|
{# other items #} |
||||
|
{% else %} |
||||
|
{% if loop.first %} |
||||
|
</section> |
||||
|
<section id="list"> |
||||
|
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}"> |
||||
|
{% endif %} |
||||
|
<li> |
||||
|
<article class="hentry"> |
||||
|
<div class="head"> |
||||
|
<h1 class="p-name entry-title"> |
||||
|
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a> |
||||
|
</h1> |
||||
|
<div class="entry-subtitle"> |
||||
|
<span class="entry-category"> |
||||
|
<em>{{ article.category }}</em> |
||||
|
</span> |
||||
|
about |
||||
|
<span class="entry-tags"> |
||||
|
{% for tag in article.tags %} |
||||
|
<span itemprop="keywords"> |
||||
|
<a href="{{ SITEURL }}/{{ tag.url }}" rel="tag">{{ tag }}</a> |
||||
|
</span> |
||||
|
{% endfor %} |
||||
|
</span> |
||||
|
published on |
||||
|
<span class="entry-date dt-published">{{ article.date }}</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="entry-content"> |
||||
|
<p class="p-summary entry-content">{{ article.summary }}</p> |
||||
|
<span class="entry-readmore"><a class="readmore" href="{{ SITEURL }}/{{ article.url }}"> read more</a></span> |
||||
|
</div> |
||||
|
</article> |
||||
|
</li> |
||||
|
{% endif %} |
||||
|
</ol> |
||||
|
{% endfor %} |
||||
|
</section> |
||||
|
{% endif %} |
||||
|
{% endblock content %} |
||||
|
|
||||
|
|
@ -0,0 +1,15 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% block title %}{{ page.title }}{%endblock%} |
||||
|
{% block content %} |
||||
|
<h1>{{ page.title }}</h1> |
||||
|
{% import 'translations.html' as translations with context %} |
||||
|
{{ translations.translations_for(page) }} |
||||
|
|
||||
|
{{ page.content }} |
||||
|
|
||||
|
{% if page.modified %} |
||||
|
<p> |
||||
|
Last updated: {{ page.locale_modified }} |
||||
|
</p> |
||||
|
{% endif %} |
||||
|
{% endblock %} |
@ -0,0 +1,11 @@ |
|||||
|
{% if DEFAULT_PAGINATION %} |
||||
|
<p class="paginator"> |
||||
|
{% if articles_page.has_previous() %} |
||||
|
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a> |
||||
|
{% endif %} |
||||
|
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} |
||||
|
{% if articles_page.has_next() %} |
||||
|
<a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a> |
||||
|
{% endif %} |
||||
|
</p> |
||||
|
{% endif %} |
@ -0,0 +1,11 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
{% block content %} |
||||
|
<h1>Archives for {{ period | reverse | join(' ') }}</h1> |
||||
|
|
||||
|
<dl> |
||||
|
{% for article in dates %} |
||||
|
<dt>{{ article.locale_date }}</dt> |
||||
|
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd> |
||||
|
{% endfor %} |
||||
|
</dl> |
||||
|
{% endblock %} |
@ -0,0 +1,59 @@ |
|||||
|
{#This template is for syndicating across the fucked up part of the web. It implements Open Graph and Twitter Card metadata to display links to HBSC well on social media |
||||
|
# This code is mostly taken from Talha Mansoor's Elegant pelican theme https://github.com/talha131/pelican-elegant |
||||
|
#} |
||||
|
|
||||
|
{# Thumbnail image to show when homepage is shared on social media. It also |
||||
|
serves as the default image for posts whose featured_image is not set. #} |
||||
|
{% if not FEATURED_IMAGE %} |
||||
|
{% set FEATURED_IMAGE = 'https://roelof.info/~r/wttf/images/fi.jpg' %} |
||||
|
{% else %} |
||||
|
{% set FEATURED_IMAGE = FEATURED_IMAGE %} |
||||
|
{% endif %} |
||||
|
|
||||
|
|
||||
|
{% macro syndication(article) %} |
||||
|
{% if article %} |
||||
|
<meta property="og:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}"/> |
||||
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" /> |
||||
|
<meta property="og:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}" /> |
||||
|
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" /> |
||||
|
<meta property="og:article:author" content="{{ article.author }}" /> |
||||
|
{% if article.date %} |
||||
|
<meta property="og:article:published_time" content="{{ article.date.isoformat() }}" /> |
||||
|
{% endif %} |
||||
|
{% if article.locale_modified and article.modified %} |
||||
|
<meta property="" content="{{ article.modified.isoformat() }}" /> |
||||
|
{% endif %} |
||||
|
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}"> |
||||
|
<meta name="twitter:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}"> |
||||
|
{% if article.featured_image %} |
||||
|
<meta name="twitter:card" content="summary_large_image"> |
||||
|
<meta property="og:image" content="{{SITEURL}}/{{article.featured_image}}" /> |
||||
|
<meta property="og:image:secure_url" content="{{SITEURL}}/{{article.featured_image}}" /> |
||||
|
<meta name="twitter:image" content="{{SITEURL}}/{{article.featured_image}}" > |
||||
|
{% else %} |
||||
|
{% if FEATURED_IMAGE %} |
||||
|
<meta property="og:image" content="{{FEATURED_IMAGE}}" /> |
||||
|
<meta name="twitter:image" content="{{FEATURED_IMAGE}}" > |
||||
|
<meta name="twitter:card" content="summary" /> |
||||
|
{% endif %} |
||||
|
{% endif %} |
||||
|
|
||||
|
{% endif %} |
||||
|
{% if not article %} |
||||
|
<meta property="og:title" content="{{ SITENAME|striptags|e }}"/> |
||||
|
<meta name="twitter:title" content="{{ SITENAME|striptags|e }}"> |
||||
|
<meta name="twitter:card" content="summary" /> |
||||
|
<meta property="og:url" content="{{ SITEURL }}" /> |
||||
|
<meta property="og:description" content="{{ SUBTITLE }}"> |
||||
|
<meta property="twitter:description" content=" {{ SUBTITLE }}"> |
||||
|
<meta property="og:site_name" content="{{ SITENAME|striptags|e }}" /> |
||||
|
<meta property="og:article:author" content="{{ AUTHOR }}" /> |
||||
|
{% if FEATURED_IMAGE %} |
||||
|
<meta property="og:image" content="{{FEATURED_IMAGE}}" /> |
||||
|
<meta name="twitter:image" content="{{FEATURED_IMAGE}}" > |
||||
|
{% endif %} |
||||
|
{% endif %} |
||||
|
{% endmacro %}b |
||||
|
|
||||
|
|
@ -0,0 +1,2 @@ |
|||||
|
{% extends "index.html" %} |
||||
|
|
@ -0,0 +1,10 @@ |
|||||
|
{% extends "base.html" %} |
||||
|
|
||||
|
{% block title %}{{ SITENAME }} - Tags{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<h1>Tags for {{ SITENAME }}</h1> |
||||
|
{%- for tag, articles in tags|sort %} |
||||
|
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li> |
||||
|
{% endfor %} |
||||
|
{% endblock %} |
@ -0,0 +1,9 @@ |
|||||
|
{% macro translations_for(article) %} |
||||
|
{% if article.translations %} |
||||
|
Translations: |
||||
|
{% for translation in article.translations %} |
||||
|
<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a> |
||||
|
{% endfor %} |
||||
|
{% endif %} |
||||
|
{% endmacro %} |
||||
|
|
Loading…
Reference in new issue