added walden theme
@ -52,7 +52,7 @@ PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
|
||||
# have to be in caps
|
||||
# foobar = "barbaz"
|
||||
|
||||
THEME = 'themes/eule'
|
||||
THEME = 'themes/walden'
|
||||
OUTPUT_PATH = 'output'
|
||||
PATH = 'content'
|
||||
|
||||
|
107
themes/walden/static/css/eule.css
Normal file
@ -0,0 +1,107 @@
|
||||
body {
|
||||
background: #ffffff;
|
||||
height: 100%;
|
||||
font-family: Hack, monospace;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #000000;
|
||||
margin-top: 75px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
h1 a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: solid #666666 1px;
|
||||
}
|
||||
|
||||
p.post-meta {
|
||||
color: #666666;
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
color: #666666;
|
||||
font-size: 75%;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
figure {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 90%;
|
||||
font-size: small;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content pre, blockquote {
|
||||
border: 1px solid #666666;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.content img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#tipue_search_input {
|
||||
font-family: Hack, monospace;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#tipue_search_results_count, .tipue_search_content_title a, .tipue_search_content_url a, .tipue_search_content_text, #tipue_search_warning {
|
||||
font-family: Hack, monospace;
|
||||
}
|
||||
|
||||
.tipue_search_content_title a, .tipue_search_content_url a {
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.tipue_search_content_title a:hover {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.tipue_search_content_url a:hover {
|
||||
color: #000000;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
background-image: url(../images/background.png);
|
||||
position: absolute;
|
||||
height: 65px;
|
||||
}
|
||||
|
||||
@media (min-width: 550px) {
|
||||
|
||||
.sidebar {
|
||||
background-image: url(../images/background.png);
|
||||
background-size: cover;
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
}
|
427
themes/walden/static/css/normalize.css
vendored
Normal file
@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
418
themes/walden/static/css/skeleton.css
vendored
Normal file
@ -0,0 +1,418 @@
|
||||
/*
|
||||
* Skeleton V2.0.4
|
||||
* Copyright 2014, Dave Gamache
|
||||
* www.getskeleton.com
|
||||
* Free to use under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* 12/29/2014
|
||||
*/
|
||||
|
||||
|
||||
/* Table of contents
|
||||
––––––––––––––––––––––––––––––––––––––––––––––––––
|
||||
- Grid
|
||||
- Base Styles
|
||||
- Typography
|
||||
- Links
|
||||
- Buttons
|
||||
- Forms
|
||||
- Lists
|
||||
- Code
|
||||
- Tables
|
||||
- Spacing
|
||||
- Utilities
|
||||
- Clearing
|
||||
- Media Queries
|
||||
*/
|
||||
|
||||
|
||||
/* Grid
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box; }
|
||||
.column,
|
||||
.columns {
|
||||
width: 100%;
|
||||
float: left;
|
||||
box-sizing: border-box; }
|
||||
|
||||
/* For devices larger than 400px */
|
||||
@media (min-width: 400px) {
|
||||
.container {
|
||||
width: 85%;
|
||||
padding: 0; }
|
||||
}
|
||||
|
||||
/* For devices larger than 550px */
|
||||
@media (min-width: 550px) {
|
||||
.container {
|
||||
width: 80%; }
|
||||
.column,
|
||||
.columns {
|
||||
margin-left: 4%; }
|
||||
.column:first-child,
|
||||
.columns:first-child {
|
||||
margin-left: 0; }
|
||||
|
||||
.one.column,
|
||||
.one.columns { width: 4.66666666667%; }
|
||||
.two.columns { width: 13.3333333333%; }
|
||||
.three.columns { width: 22%; }
|
||||
.four.columns { width: 30.6666666667%; }
|
||||
.five.columns { width: 39.3333333333%; }
|
||||
.six.columns { width: 48%; }
|
||||
.seven.columns { width: 56.6666666667%; }
|
||||
.eight.columns { width: 65.3333333333%; }
|
||||
.nine.columns { width: 74.0%; }
|
||||
.ten.columns { width: 82.6666666667%; }
|
||||
.eleven.columns { width: 91.3333333333%; }
|
||||
.twelve.columns { width: 100%; margin-left: 0; }
|
||||
|
||||
.one-third.column { width: 30.6666666667%; }
|
||||
.two-thirds.column { width: 65.3333333333%; }
|
||||
|
||||
.one-half.column { width: 48%; }
|
||||
|
||||
/* Offsets */
|
||||
.offset-by-one.column,
|
||||
.offset-by-one.columns { margin-left: 8.66666666667%; }
|
||||
.offset-by-two.column,
|
||||
.offset-by-two.columns { margin-left: 17.3333333333%; }
|
||||
.offset-by-three.column,
|
||||
.offset-by-three.columns { margin-left: 26%; }
|
||||
.offset-by-four.column,
|
||||
.offset-by-four.columns { margin-left: 34.6666666667%; }
|
||||
.offset-by-five.column,
|
||||
.offset-by-five.columns { margin-left: 43.3333333333%; }
|
||||
.offset-by-six.column,
|
||||
.offset-by-six.columns { margin-left: 52%; }
|
||||
.offset-by-seven.column,
|
||||
.offset-by-seven.columns { margin-left: 60.6666666667%; }
|
||||
.offset-by-eight.column,
|
||||
.offset-by-eight.columns { margin-left: 69.3333333333%; }
|
||||
.offset-by-nine.column,
|
||||
.offset-by-nine.columns { margin-left: 78.0%; }
|
||||
.offset-by-ten.column,
|
||||
.offset-by-ten.columns { margin-left: 86.6666666667%; }
|
||||
.offset-by-eleven.column,
|
||||
.offset-by-eleven.columns { margin-left: 95.3333333333%; }
|
||||
|
||||
.offset-by-one-third.column,
|
||||
.offset-by-one-third.columns { margin-left: 34.6666666667%; }
|
||||
.offset-by-two-thirds.column,
|
||||
.offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
|
||||
|
||||
.offset-by-one-half.column,
|
||||
.offset-by-one-half.columns { margin-left: 52%; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Base Styles
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
/* NOTE
|
||||
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
||||
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
||||
html {
|
||||
font-size: 62.5%; }
|
||||
body {
|
||||
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
|
||||
line-height: 1.6;
|
||||
font-weight: 400;
|
||||
font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #222; }
|
||||
|
||||
|
||||
/* Typography
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 2rem;
|
||||
font-weight: 300; }
|
||||
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
|
||||
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
|
||||
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
|
||||
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
|
||||
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
|
||||
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
|
||||
|
||||
/* Larger than phablet */
|
||||
@media (min-width: 550px) {
|
||||
h1 { font-size: 5.0rem; }
|
||||
h2 { font-size: 4.2rem; }
|
||||
h3 { font-size: 3.6rem; }
|
||||
h4 { font-size: 3.0rem; }
|
||||
h5 { font-size: 2.4rem; }
|
||||
h6 { font-size: 1.5rem; }
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0; }
|
||||
|
||||
|
||||
/* Links
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
a {
|
||||
color: #1EAEDB; }
|
||||
a:hover {
|
||||
color: #0FA0CE; }
|
||||
|
||||
|
||||
/* Buttons
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.button,
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"] {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
padding: 0 30px;
|
||||
color: #555;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 38px;
|
||||
letter-spacing: .1rem;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
background-color: transparent;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #bbb;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box; }
|
||||
.button:hover,
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
input[type="reset"]:hover,
|
||||
input[type="button"]:hover,
|
||||
.button:focus,
|
||||
button:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="reset"]:focus,
|
||||
input[type="button"]:focus {
|
||||
color: #333;
|
||||
border-color: #888;
|
||||
outline: 0; }
|
||||
.button.button-primary,
|
||||
button.button-primary,
|
||||
input[type="submit"].button-primary,
|
||||
input[type="reset"].button-primary,
|
||||
input[type="button"].button-primary {
|
||||
color: #FFF;
|
||||
background-color: #33C3F0;
|
||||
border-color: #33C3F0; }
|
||||
.button.button-primary:hover,
|
||||
button.button-primary:hover,
|
||||
input[type="submit"].button-primary:hover,
|
||||
input[type="reset"].button-primary:hover,
|
||||
input[type="button"].button-primary:hover,
|
||||
.button.button-primary:focus,
|
||||
button.button-primary:focus,
|
||||
input[type="submit"].button-primary:focus,
|
||||
input[type="reset"].button-primary:focus,
|
||||
input[type="button"].button-primary:focus {
|
||||
color: #FFF;
|
||||
background-color: #1EAEDB;
|
||||
border-color: #1EAEDB; }
|
||||
|
||||
|
||||
/* Forms
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="text"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea,
|
||||
select {
|
||||
height: 38px;
|
||||
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
|
||||
background-color: #fff;
|
||||
border: 1px solid #D1D1D1;
|
||||
border-radius: 4px;
|
||||
box-shadow: none;
|
||||
box-sizing: border-box; }
|
||||
/* Removes awkward default styles on some inputs for iOS */
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="text"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none; }
|
||||
textarea {
|
||||
min-height: 65px;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px; }
|
||||
input[type="email"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="text"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
textarea:focus,
|
||||
select:focus {
|
||||
border: 1px solid #33C3F0;
|
||||
outline: 0; }
|
||||
label,
|
||||
legend {
|
||||
display: block;
|
||||
margin-bottom: .5rem;
|
||||
font-weight: 600; }
|
||||
fieldset {
|
||||
padding: 0;
|
||||
border-width: 0; }
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
display: inline; }
|
||||
label > .label-body {
|
||||
display: inline-block;
|
||||
margin-left: .5rem;
|
||||
font-weight: normal; }
|
||||
|
||||
|
||||
/* Lists
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
ul {
|
||||
list-style: circle inside; }
|
||||
ol {
|
||||
list-style: decimal inside; }
|
||||
ol, ul {
|
||||
padding-left: 0;
|
||||
margin-top: 0; }
|
||||
ul ul,
|
||||
ul ol,
|
||||
ol ol,
|
||||
ol ul {
|
||||
margin: 1.5rem 0 1.5rem 3rem;
|
||||
font-size: 90%; }
|
||||
li {
|
||||
margin-bottom: 1rem; }
|
||||
|
||||
|
||||
/* Code
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
code {
|
||||
padding: .2rem .5rem;
|
||||
margin: 0 .2rem;
|
||||
font-size: 90%;
|
||||
white-space: nowrap;
|
||||
background: #F1F1F1;
|
||||
border: 1px solid #E1E1E1;
|
||||
border-radius: 4px; }
|
||||
pre > code {
|
||||
display: block;
|
||||
padding: 1rem 1.5rem;
|
||||
white-space: pre; }
|
||||
|
||||
|
||||
/* Tables
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
th,
|
||||
td {
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #E1E1E1; }
|
||||
th:first-child,
|
||||
td:first-child {
|
||||
padding-left: 0; }
|
||||
th:last-child,
|
||||
td:last-child {
|
||||
padding-right: 0; }
|
||||
|
||||
|
||||
/* Spacing
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
button,
|
||||
.button {
|
||||
margin-bottom: 1rem; }
|
||||
input,
|
||||
textarea,
|
||||
select,
|
||||
fieldset {
|
||||
margin-bottom: 1.5rem; }
|
||||
pre,
|
||||
blockquote,
|
||||
dl,
|
||||
figure,
|
||||
table,
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
form {
|
||||
margin-bottom: 2.5rem; }
|
||||
|
||||
|
||||
/* Utilities
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.u-full-width {
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.u-max-full-width {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.u-pull-right {
|
||||
float: right; }
|
||||
.u-pull-left {
|
||||
float: left; }
|
||||
|
||||
|
||||
/* Misc
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
hr {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3.5rem;
|
||||
border-width: 0;
|
||||
border-top: 1px solid #E1E1E1; }
|
||||
|
||||
|
||||
/* Clearing
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
|
||||
/* Self Clearing Goodness */
|
||||
.container:after,
|
||||
.row:after,
|
||||
.u-cf {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both; }
|
||||
|
||||
|
||||
/* Media Queries
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
/*
|
||||
Note: The best way to structure the use of media queries is to create the queries
|
||||
near the relevant code. For example, if you wanted to change the styles for buttons
|
||||
on small devices, paste the mobile query code up in the buttons section and style it
|
||||
there.
|
||||
*/
|
||||
|
||||
|
||||
/* Larger than mobile */
|
||||
@media (min-width: 400px) {}
|
||||
|
||||
/* Larger than phablet (also point when grid becomes active) */
|
||||
@media (min-width: 550px) {}
|
||||
|
||||
/* Larger than tablet */
|
||||
@media (min-width: 750px) {}
|
||||
|
||||
/* Larger than desktop */
|
||||
@media (min-width: 1000px) {}
|
||||
|
||||
/* Larger than Desktop HD */
|
||||
@media (min-width: 1200px) {}
|
251
themes/walden/static/css/tipuesearch.css
Normal file
@ -0,0 +1,251 @@
|
||||
|
||||
/*
|
||||
Tipue Search 6.0
|
||||
Copyright (c) 2017 Tipue
|
||||
Tipue Search is released under the MIT License
|
||||
http://www.tipue.com/search
|
||||
*/
|
||||
|
||||
|
||||
/* fonts */
|
||||
|
||||
|
||||
#tipue_search_input, #tipue_search_foot_boxes
|
||||
{
|
||||
font: 300 14px/1 Roboto, sans-serif;
|
||||
}
|
||||
#tipue_search_results_count, #tipue_search_warning, .tipue_search_content_url, .tipue_search_content_debug, .tipue_search_related_text
|
||||
{
|
||||
font: 300 14px/1.7 Roboto, sans-serif;
|
||||
}
|
||||
.tipue_search_content_title
|
||||
{
|
||||
font: 100 26px/1.7 Roboto, sans-serif;
|
||||
}
|
||||
.tipue_search_content_text, .tipue_search_related_title
|
||||
{
|
||||
font: 300 15px/1.7 Roboto, sans-serif;
|
||||
}
|
||||
.tipue_search_content_bold, .tipue_search_related_bold
|
||||
{
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
/* search box */
|
||||
|
||||
|
||||
#tipue_search_input
|
||||
{
|
||||
color: #333;
|
||||
max-width: 210px;
|
||||
padding: 17px;
|
||||
border: 1px solid #e3e3e3;
|
||||
border-radius: 0;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
box-shadow: none;
|
||||
outline: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.tipue_search_icon
|
||||
{
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.tipue_search_left
|
||||
{
|
||||
float: left;
|
||||
padding: 15px 9px 0 0;
|
||||
}
|
||||
.tipue_search_right
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
|
||||
|
||||
/* search results */
|
||||
|
||||
|
||||
#tipue_search_content
|
||||
{
|
||||
max-width: 750px;
|
||||
padding-top: 15px;
|
||||
margin: 0;
|
||||
}
|
||||
#tipue_search_results_count
|
||||
{
|
||||
color: #333;
|
||||
}
|
||||
#tipue_search_warning
|
||||
{
|
||||
color: #333;
|
||||
margin: 7px 0;
|
||||
}
|
||||
#tipue_search_warning a
|
||||
{
|
||||
color: #5396ea;
|
||||
text-decoration: none;
|
||||
}
|
||||
#tipue_search_warning a:hover
|
||||
{
|
||||
color: #555;
|
||||
}
|
||||
.tipue_search_content_title
|
||||
{
|
||||
color: #666;
|
||||
margin-top: 21px;
|
||||
}
|
||||
.tipue_search_content_title a
|
||||
{
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tipue_search_content_title a:hover
|
||||
{
|
||||
color: #666;
|
||||
}
|
||||
.tipue_search_content_url
|
||||
{
|
||||
word-wrap: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
.tipue_search_content_url a, .tipue_search_related_text a
|
||||
{
|
||||
color: #5396ea;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tipue_search_content_url a:hover, .tipue_search_related_text a:hover, .tipue_search_related_before, .tipue_search_related_after
|
||||
{
|
||||
color: #555;
|
||||
}
|
||||
.tipue_search_content_text
|
||||
{
|
||||
color: #333;
|
||||
word-wrap: break-word;
|
||||
hyphens: auto;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.tipue_search_content_bold
|
||||
{
|
||||
color: #333;
|
||||
}
|
||||
.tipue_search_content_debug
|
||||
{
|
||||
color: #333;
|
||||
margin: 5px 0;
|
||||
}
|
||||
.tipue_search_related_title
|
||||
{
|
||||
color: #333;
|
||||
margin: 26px 0 7px 0;
|
||||
}
|
||||
.tipue_search_related_cols
|
||||
{
|
||||
-webkit-columns: 230px 2;
|
||||
-moz-columns: 230px 2;
|
||||
columns: 230px 2;
|
||||
}
|
||||
|
||||
#tipue_search_foot
|
||||
{
|
||||
margin: 51px 0 21px 0;
|
||||
}
|
||||
#tipue_search_foot_boxes
|
||||
{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
#tipue_search_foot_boxes li
|
||||
{
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
}
|
||||
#tipue_search_foot_boxes li a
|
||||
{
|
||||
padding: 10px 17px 11px 17px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #e3e3e3;
|
||||
border-radius: 1px;
|
||||
color: #333;
|
||||
margin-right: 7px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
}
|
||||
#tipue_search_foot_boxes li.current
|
||||
{
|
||||
padding: 10px 17px 11px 17px;
|
||||
background: #f6f6f6;
|
||||
border: 1px solid #e3e3e3;
|
||||
border-radius: 1px;
|
||||
color: #333;
|
||||
margin-right: 7px;
|
||||
text-align: center;
|
||||
}
|
||||
#tipue_search_foot_boxes li a:hover
|
||||
{
|
||||
background: #f6f6f6;
|
||||
}
|
||||
|
||||
|
||||
/* spinner */
|
||||
|
||||
|
||||
.tipue_search_spinner
|
||||
{
|
||||
width: 50px;
|
||||
height: 28px;
|
||||
}
|
||||
.tipue_search_spinner > div
|
||||
{
|
||||
background-color: #e3e3e3;
|
||||
height: 100%;
|
||||
width: 2px;
|
||||
display: inline-block;
|
||||
margin-right: 2px;
|
||||
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
|
||||
animation: stretchdelay 1.2s infinite ease-in-out;
|
||||
}
|
||||
.tipue_search_spinner .tipue_search_rect2
|
||||
{
|
||||
-webkit-animation-delay: -1.1s;
|
||||
animation-delay: -1.1s;
|
||||
}
|
||||
.tipue_search_spinner .tipue_search_rect3
|
||||
{
|
||||
-webkit-animation-delay: -1.0s;
|
||||
animation-delay: -1.0s;
|
||||
}
|
||||
@-webkit-keyframes stretchdelay
|
||||
{
|
||||
0%, 40%, 100%
|
||||
{
|
||||
-webkit-transform: scaleY(0.4)
|
||||
}
|
||||
20%
|
||||
{
|
||||
-webkit-transform: scaleY(1.0)
|
||||
}
|
||||
}
|
||||
@keyframes stretchdelay
|
||||
{
|
||||
0%, 40%, 100%
|
||||
{
|
||||
transform: scaleY(0.4);
|
||||
-webkit-transform: scaleY(0.4);
|
||||
}
|
||||
20%
|
||||
{
|
||||
transform: scaleY(1.0);
|
||||
-webkit-transform: scaleY(1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
BIN
themes/walden/static/images/background.png
Normal file
After Width: | Height: | Size: 635 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-114x114.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-120x120.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-144x144.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-152x152.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-57x57.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-60x60.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-72x72.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
themes/walden/static/images/favicon/apple-touch-icon-76x76.png
Normal file
After Width: | Height: | Size: 14 KiB |
20
themes/walden/static/images/favicon/code.txt
Normal file
@ -0,0 +1,20 @@
|
||||
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="apple-touch-icon-60x60.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152.png" />
|
||||
<link rel="icon" type="image/png" href="favicon-196x196.png" sizes="196x196" />
|
||||
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="icon" type="image/png" href="favicon-128.png" sizes="128x128" />
|
||||
<meta name="application-name" content=" "/>
|
||||
<meta name="msapplication-TileColor" content="#FFFFFF" />
|
||||
<meta name="msapplication-TileImage" content="mstile-144x144.png" />
|
||||
<meta name="msapplication-square70x70logo" content="mstile-70x70.png" />
|
||||
<meta name="msapplication-square150x150logo" content="mstile-150x150.png" />
|
||||
<meta name="msapplication-wide310x150logo" content="mstile-310x150.png" />
|
||||
<meta name="msapplication-square310x310logo" content="mstile-310x310.png" />
|
BIN
themes/walden/static/images/favicon/favicon-128.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
themes/walden/static/images/favicon/favicon-16x16.png
Normal file
After Width: | Height: | Size: 829 B |
BIN
themes/walden/static/images/favicon/favicon-196x196.png
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
themes/walden/static/images/favicon/favicon-32x32.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/walden/static/images/favicon/favicon-96x96.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
themes/walden/static/images/favicon/favicon.ico
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
themes/walden/static/images/favicon/mstile-144x144.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
themes/walden/static/images/favicon/mstile-150x150.png
Normal file
After Width: | Height: | Size: 171 KiB |
BIN
themes/walden/static/images/favicon/mstile-310x150.png
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
themes/walden/static/images/favicon/mstile-310x310.png
Normal file
After Width: | Height: | Size: 548 KiB |
BIN
themes/walden/static/images/favicon/mstile-70x70.png
Normal file
After Width: | Height: | Size: 40 KiB |
4
themes/walden/static/js/jquery-3.2.1.min.js
vendored
Normal file
87
themes/walden/static/js/jquery.fitvids.js
Normal file
@ -0,0 +1,87 @@
|
||||
/*jshint browser:true */
|
||||
/*!
|
||||
* FitVids 1.1
|
||||
*
|
||||
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
*/
|
||||
|
||||
;(function( $ ){
|
||||
|
||||
'use strict';
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null,
|
||||
ignore: null
|
||||
};
|
||||
|
||||
if(!document.getElementById('fit-vids-style')) {
|
||||
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
|
||||
var div = document.createElement("div");
|
||||
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
|
||||
head.appendChild(div.childNodes[1]);
|
||||
}
|
||||
|
||||
if ( options ) {
|
||||
$.extend( settings, options );
|
||||
}
|
||||
|
||||
return this.each(function(){
|
||||
var selectors = [
|
||||
'iframe[src*="player.vimeo.com"]',
|
||||
'iframe[src*="youtube.com"]',
|
||||
'iframe[src*="youtube-nocookie.com"]',
|
||||
'iframe[src*="kickstarter.com"][src*="video.html"]',
|
||||
'object',
|
||||
'embed'
|
||||
];
|
||||
|
||||
if (settings.customSelector) {
|
||||
selectors.push(settings.customSelector);
|
||||
}
|
||||
|
||||
var ignoreList = '.fitvidsignore';
|
||||
|
||||
if(settings.ignore) {
|
||||
ignoreList = ignoreList + ', ' + settings.ignore;
|
||||
}
|
||||
|
||||
var $allVideos = $(this).find(selectors.join(','));
|
||||
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
|
||||
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if($this.parents(ignoreList).length > 0) {
|
||||
return; // Disable FitVids on this video.
|
||||
}
|
||||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
|
||||
{
|
||||
$this.attr('height', 9);
|
||||
$this.attr('width', 16);
|
||||
}
|
||||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
||||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
||||
aspectRatio = height / width;
|
||||
if(!$this.attr('name')){
|
||||
var videoName = 'fitvid' + $.fn.fitVids._count;
|
||||
$this.attr('name', videoName);
|
||||
$.fn.fitVids._count++;
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Internal counter for unique video names.
|
||||
$.fn.fitVids._count = 0;
|
||||
|
||||
// Works with either jQuery or Zepto
|
||||
})( window.jQuery || window.Zepto );
|
178
themes/walden/static/js/tipuesearch.min.js
vendored
Normal file
@ -0,0 +1,178 @@
|
||||
(function($){$.fn.tipuesearch=function(options){var set=$.extend({'contentLocation':'tipuesearch/tipuesearch_content.json','contextBuffer':60,'contextLength':60,'contextStart':90,'debug':false,'descriptiveWords':25,'highlightTerms':true,'liveContent':'*','liveDescription':'*','minimumLength':3,'mode':'static','newWindow':false,'show':9,'showContext':true,'showRelated':true,'showTime':true,'showTitleCount':true,'showURL':true,'wholeWords':true},options);return this.each(function(){var tipuesearch_in={pages:[]};$.ajaxSetup({async:false});var tipuesearch_t_c=0;$('#tipue_search_content').hide().html('<div class="tipue_search_spinner"><div class="tipue_search_rect1"></div><div class="tipue_search_rect2"></div><div class="rect3"></div></div>').show();if(set.mode=='live')
|
||||
{for(var i=0;i<tipuesearch_pages.length;i++)
|
||||
{$.get(tipuesearch_pages[i]).done(function(html)
|
||||
{var cont=$(set.liveContent,html).text();cont=cont.replace(/\s+/g,' ');var desc=$(set.liveDescription,html).text();desc=desc.replace(/\s+/g,' ');var t_1=html.toLowerCase().indexOf('<title>');var t_2=html.toLowerCase().indexOf('</title>',t_1+7);if(t_1!=-1&&t_2!=-1)
|
||||
{var tit=html.slice(t_1+7,t_2);}
|
||||
else
|
||||
{var tit=tipuesearch_string_1;}
|
||||
tipuesearch_in.pages.push({"title":tit,"text":desc,"tags":cont,"url":tipuesearch_pages[i]});});}}
|
||||
if(set.mode=='json')
|
||||
{$.getJSON(set.contentLocation).done(function(json)
|
||||
{tipuesearch_in=$.extend({},json);});}
|
||||
if(set.mode=='static')
|
||||
{tipuesearch_in=$.extend({},tipuesearch);}
|
||||
var tipue_search_w='';if(set.newWindow)
|
||||
{tipue_search_w=' target="_blank"';}
|
||||
function getURLP(name)
|
||||
{var _locSearch=location.search;var _splitted=(new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(_locSearch)||[,""]);var searchString=_splitted[1].replace(/\+/g,'%20');try
|
||||
{searchString=decodeURIComponent(searchString);}
|
||||
catch(e)
|
||||
{searchString=unescape(searchString);}
|
||||
return searchString||null;}
|
||||
if(getURLP('q'))
|
||||
{$('#tipue_search_input').val(getURLP('q'));getTipueSearch(0,true);}
|
||||
$(this).keyup(function(event)
|
||||
{if(event.keyCode=='13')
|
||||
{getTipueSearch(0,true);}});function getTipueSearch(start,replace)
|
||||
{var out='';var results='';var show_replace=false;var show_stop=false;var standard=true;var c=0;found=[];var d_o=$('#tipue_search_input').val();var d=d_o.toLowerCase();d=$.trim(d);if((d.match("^\"")&&d.match("\"$"))||(d.match("^'")&&d.match("'$")))
|
||||
{standard=false;}
|
||||
var d_w=d.split(' ');if(standard)
|
||||
{d='';for(var i=0;i<d_w.length;i++)
|
||||
{var a_w=true;for(var f=0;f<tipuesearch_stop_words.length;f++)
|
||||
{if(d_w[i]==tipuesearch_stop_words[f])
|
||||
{a_w=false;show_stop=true;}}
|
||||
if(a_w)
|
||||
{d=d+' '+d_w[i];}}
|
||||
d=$.trim(d);d_w=d.split(' ');}
|
||||
else
|
||||
{d=d.substring(1,d.length-1);}
|
||||
if(d.length>=set.minimumLength)
|
||||
{if(standard)
|
||||
{if(replace)
|
||||
{var d_r=d;for(var i=0;i<d_w.length;i++)
|
||||
{for(var f=0;f<tipuesearch_replace.words.length;f++)
|
||||
{if(d_w[i]==tipuesearch_replace.words[f].word)
|
||||
{d=d.replace(d_w[i],tipuesearch_replace.words[f].replace_with);show_replace=true;}}}
|
||||
d_w=d.split(' ');}
|
||||
var d_t=d;for(var i=0;i<d_w.length;i++)
|
||||
{for(var f=0;f<tipuesearch_stem.words.length;f++)
|
||||
{if(d_w[i]==tipuesearch_stem.words[f].word)
|
||||
{d_t=d_t+' '+tipuesearch_stem.words[f].stem;}}}
|
||||
d_w=d_t.split(' ');for(var i=0;i<tipuesearch_in.pages.length;i++)
|
||||
{var score=0;var s_t=tipuesearch_in.pages[i].text;for(var f=0;f<d_w.length;f++)
|
||||
{if(set.wholeWords)
|
||||
{var pat=new RegExp('\\b'+d_w[f]+'\\b','gi');}
|
||||
else
|
||||
{var pat=new RegExp(d_w[f],'gi');}
|
||||
if(tipuesearch_in.pages[i].title.search(pat)!=-1)
|
||||
{var m_c=tipuesearch_in.pages[i].title.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch_in.pages[i].text.search(pat)!=-1)
|
||||
{var m_c=tipuesearch_in.pages[i].text.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch_in.pages[i].tags.search(pat)!=-1)
|
||||
{var m_c=tipuesearch_in.pages[i].tags.match(pat).length;score+=(10*m_c);}
|
||||
if(tipuesearch_in.pages[i].url.search(pat)!=-1)
|
||||
{score+=20;}
|
||||
if(score!=0)
|
||||
{for(var e=0;e<tipuesearch_weight.weight.length;e++)
|
||||
{if(tipuesearch_in.pages[i].url==tipuesearch_weight.weight[e].url)
|
||||
{score+=tipuesearch_weight.weight[e].score;}}}
|
||||
if(d_w[f].match('^-'))
|
||||
{pat=new RegExp(d_w[f].substring(1),'i');if(tipuesearch_in.pages[i].title.search(pat)!=-1||tipuesearch_in.pages[i].text.search(pat)!=-1||tipuesearch_in.pages[i].tags.search(pat)!=-1)
|
||||
{score=0;}}}
|
||||
if(score!=0)
|
||||
{found.push({"score":score,"title":tipuesearch_in.pages[i].title,"desc":s_t,"url":tipuesearch_in.pages[i].url});c++;}}}
|
||||
else
|
||||
{for(var i=0;i<tipuesearch_in.pages.length;i++)
|
||||
{var score=0;var s_t=tipuesearch_in.pages[i].text;var pat=new RegExp(d,'gi');if(tipuesearch_in.pages[i].title.search(pat)!=-1)
|
||||
{var m_c=tipuesearch_in.pages[i].title.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch_in.pages[i].text.search(pat)!=-1)
|
||||
{var m_c=tipuesearch_in.pages[i].text.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch_in.pages[i].tags.search(pat)!=-1)
|
||||
{var m_c=tipuesearch_in.pages[i].tags.match(pat).length;score+=(10*m_c);}
|
||||
if(tipuesearch_in.pages[i].url.search(pat)!=-1)
|
||||
{score+=20;}
|
||||
if(score!=0)
|
||||
{for(var e=0;e<tipuesearch_weight.weight.length;e++)
|
||||
{if(tipuesearch_in.pages[i].url==tipuesearch_weight.weight[e].url)
|
||||
{score+=tipuesearch_weight.weight[e].score;}}}
|
||||
if(score!=0)
|
||||
{found.push({"score":score,"title":tipuesearch_in.pages[i].title,"desc":s_t,"url":tipuesearch_in.pages[i].url});c++;}}}
|
||||
if(c!=0)
|
||||
{if(set.showTitleCount&&tipuesearch_t_c==0)
|
||||
{var title=document.title;document.title='('+c+') '+title;tipuesearch_t_c++;}
|
||||
if(show_replace)
|
||||
{out+='<div id="tipue_search_warning">'+tipuesearch_string_2+' '+d+'. '+tipuesearch_string_3+' <a id="tipue_search_replaced">'+d_r+'</a></div>';}
|
||||
if(c==1)
|
||||
{out+='<div id="tipue_search_results_count">'+tipuesearch_string_4;}
|
||||
else
|
||||
{c_c=c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");out+='<div id="tipue_search_results_count">'+c_c+' '+tipuesearch_string_5;}
|
||||
if(set.showTime)
|
||||
{var endTimer=new Date().getTime();var time=(endTimer-startTimer)/ 1000;out+=' ('+time.toFixed(2)+' '+tipuesearch_string_14+')';set.showTime=false;}
|
||||
out+='</div>';found.sort(function(a,b){return b.score-a.score});var l_o=0;for(var i=0;i<found.length;i++)
|
||||
{if(l_o>=start&&l_o<set.show+start)
|
||||
{out+='<div class="tipue_search_content_title"><a href="'+found[i].url+'"'+tipue_search_w+'>'+found[i].title+'</a></div>';if(set.debug)
|
||||
{out+='<div class="tipue_search_content_debug">Score: '+found[i].score+'</div>';}
|
||||
if(set.showURL)
|
||||
{var s_u=found[i].url.toLowerCase();if(s_u.indexOf('http://')==0)
|
||||
{s_u=s_u.slice(7);}
|
||||
out+='<div class="tipue_search_content_url"><a href="'+found[i].url+'"'+tipue_search_w+'>'+s_u+'</a></div>';}
|
||||
if(found[i].desc)
|
||||
{var t=found[i].desc;if(set.showContext)
|
||||
{d_w=d.split(' ');var s_1=found[i].desc.toLowerCase().indexOf(d_w[0]);if(s_1>set.contextStart)
|
||||
{var t_1=t.substr(s_1-set.contextBuffer);var s_2=t_1.indexOf(' ');t_1=t.substr(s_1-set.contextBuffer+s_2);t_1=$.trim(t_1);if(t_1.length>set.contextLength)
|
||||
{t='... '+t_1;}}}
|
||||
if(standard)
|
||||
{d_w=d.split(' ');for(var f=0;f<d_w.length;f++)
|
||||
{if(set.highlightTerms)
|
||||
{var patr=new RegExp('('+d_w[f]+')','gi');t=t.replace(patr,"<span class=\"h0011\">$1</span>");}}}
|
||||
else if(set.highlightTerms)
|
||||
{var patr=new RegExp('('+d+')','gi');t=t.replace(patr,"<span class=\"h0011\">$1</span>");}
|
||||
var t_d='';var t_w=t.split(' ');if(t_w.length<set.descriptiveWords)
|
||||
{t_d=t;}
|
||||
else
|
||||
{for(var f=0;f<set.descriptiveWords;f++)
|
||||
{t_d+=t_w[f]+' ';}}
|
||||
t_d=$.trim(t_d);if(t_d.charAt(t_d.length-1)!='.')
|
||||
{t_d+=' ...';}
|
||||
t_d=t_d.replace(/h0011/g,'tipue_search_content_bold');out+='<div class="tipue_search_content_text">'+t_d+'</div>';}}
|
||||
l_o++;}
|
||||
if(set.showRelated&&standard)
|
||||
{f=0;for(var i=0;i<tipuesearch_related.searches.length;i++)
|
||||
{if(d==tipuesearch_related.searches[i].search)
|
||||
{if(show_replace)
|
||||
{d_o=d;}
|
||||
if(!f)
|
||||
{out+='<div class="tipue_search_related_title">Searches related to <span class="tipue_search_related_bold">'+d_o+'</span></div><div class="tipue_search_related_cols">';}
|
||||
out+='<div class="tipue_search_related_text"><a class="tipue_search_related" id="'+tipuesearch_related.searches[i].related+'">';if(tipuesearch_related.searches[i].before)
|
||||
{out+='<span class="tipue_search_related_before">'+tipuesearch_related.searches[i].before+'</span> ';}
|
||||
out+=tipuesearch_related.searches[i].related;if(tipuesearch_related.searches[i].after)
|
||||
{out+=' <span class="tipue_search_related_after">'+tipuesearch_related.searches[i].after+'</span>';}
|
||||
out+='</a></div>';f++;}}
|
||||
if(f)
|
||||
{out+='</div>';}}
|
||||
if(c>set.show)
|
||||
{var pages=Math.ceil(c / set.show);var page=(start / set.show);out+='<nav><div id="tipue_search_foot"><ul id="tipue_search_foot_boxes">';if(start>0)
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" accesskey="b" id="'+(start-set.show)+'_'+replace+'">'+tipuesearch_string_6+'</a></li>';}
|
||||
if(page<=2)
|
||||
{var p_b=pages;if(pages>3)
|
||||
{p_b=3;}
|
||||
for(var f=0;f<p_b;f++)
|
||||
{if(f==page)
|
||||
{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
||||
else
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" id="'+(f*set.show)+'_'+replace+'">'+(f+1)+'</a></li>';}}}
|
||||
else
|
||||
{var p_b=page+2;if(p_b>pages)
|
||||
{p_b=pages;}
|
||||
for(var f=page-1;f<p_b;f++)
|
||||
{if(f==page)
|
||||
{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
||||
else
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" id="'+(f*set.show)+'_'+replace+'">'+(f+1)+'</a></li>';}}}
|
||||
if(page+1!=pages)
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" accesskey="m" id="'+(start+set.show)+'_'+replace+'">'+tipuesearch_string_7+'</a></li>';}
|
||||
out+='</ul></div></nav>';}}
|
||||
else
|
||||
{out+='<div id="tipue_search_warning">'+tipuesearch_string_8+'</div>';}}
|
||||
else
|
||||
{if(show_stop)
|
||||
{out+='<div id="tipue_search_warning">'+tipuesearch_string_8+'. '+tipuesearch_string_9+'</div>';}
|
||||
else
|
||||
{out+='<div id="tipue_search_warning">'+tipuesearch_string_10+'</div>';if(set.minimumLength==1)
|
||||
{out+='<div id="tipue_search_warning">'+tipuesearch_string_11+'</div>';}
|
||||
else
|
||||
{out+='<div id="tipue_search_warning">'+tipuesearch_string_12+' '+set.minimumLength+' '+tipuesearch_string_13+'</div>';}}}
|
||||
$('#tipue_search_content').hide().html(out).slideDown(200);$('#tipue_search_replaced').click(function()
|
||||
{getTipueSearch(0,false);});$('.tipue_search_related').click(function()
|
||||
{$('#tipue_search_input').val($(this).attr('id'));getTipueSearch(0,true);});$('.tipue_search_foot_box').click(function()
|
||||
{var id_v=$(this).attr('id');var id_a=id_v.split('_');getTipueSearch(parseInt(id_a[0]),id_a[1]);});}});};})(jQuery);
|
80
themes/walden/static/js/tipuesearch_set.js
Normal file
@ -0,0 +1,80 @@
|
||||
|
||||
/*
|
||||
Tipue Search 6.0
|
||||
Copyright (c) 2017 Tipue
|
||||
Tipue Search is released under the MIT License
|
||||
http://www.tipue.com/search
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
Stop words
|
||||
Stop words list from http://www.ranks.nl/stopwords
|
||||
*/
|
||||
|
||||
var tipuesearch_stop_words = ["a", "about", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"];
|
||||
|
||||
|
||||
// Word replace
|
||||
|
||||
var tipuesearch_replace = {'words': [
|
||||
{'word': 'tip', 'replace_with': 'tipue'},
|
||||
{'word': 'javscript', 'replace_with': 'javascript'},
|
||||
{'word': 'jqeury', 'replace_with': 'jquery'}
|
||||
]};
|
||||
|
||||
|
||||
// Weighting
|
||||
|
||||
var tipuesearch_weight = {'weight': [
|
||||
{'url': 'http://www.tipue.com', 'score': 20},
|
||||
{'url': 'http://www.tipue.com/search', 'score': 30},
|
||||
{'url': 'http://www.tipue.com/is', 'score': 10}
|
||||
]};
|
||||
|
||||
|
||||
// Illogical stemming
|
||||
|
||||
var tipuesearch_stem = {'words': [
|
||||
{'word': 'e-mail', 'stem': 'email'},
|
||||
{'word': 'javascript', 'stem': 'jquery'},
|
||||
{'word': 'javascript', 'stem': 'js'}
|
||||
]};
|
||||
|
||||
|
||||
// Related searches
|
||||
|
||||
var tipuesearch_related = {'searches': [
|
||||
{'search': 'tipue', 'related': 'Tipue Search'},
|
||||
{'search': 'tipue', 'before': 'Tipue Search', 'related': 'Getting Started'},
|
||||
{'search': 'tipue', 'before': 'Tipue', 'related': 'jQuery'},
|
||||
{'search': 'tipue', 'before': 'Tipue', 'related': 'Blog'}
|
||||
]};
|
||||
|
||||
|
||||
// Internal strings
|
||||
|
||||
var tipuesearch_string_1 = 'No title';
|
||||
var tipuesearch_string_2 = 'Showing results for';
|
||||
var tipuesearch_string_3 = 'Search instead for';
|
||||
var tipuesearch_string_4 = '1 result';
|
||||
var tipuesearch_string_5 = 'results';
|
||||
var tipuesearch_string_6 = 'Back';
|
||||
var tipuesearch_string_7 = 'More';
|
||||
var tipuesearch_string_8 = 'Nothing found.';
|
||||
var tipuesearch_string_9 = 'Common words are largely ignored.';
|
||||
var tipuesearch_string_10 = 'Search too short';
|
||||
var tipuesearch_string_11 = 'Should be one character or more.';
|
||||
var tipuesearch_string_12 = 'Should be';
|
||||
var tipuesearch_string_13 = 'characters or more.';
|
||||
var tipuesearch_string_14 = 'seconds';
|
||||
var tipuesearch_string_15 = 'Searches related to';
|
||||
|
||||
|
||||
// Internals
|
||||
|
||||
|
||||
// Timer for showTime
|
||||
|
||||
var startTimer = new Date().getTime();
|
||||
|
23
themes/walden/templates/article.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - {{ article.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ article.title }}</h1>
|
||||
<p class="post-meta">
|
||||
Posted on {{ article.locale_date }}
|
||||
{% if article.tags %}
|
||||
• Tagged with
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if DISQUS_SITENAME %}
|
||||
• <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">Leave a comment</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{{ article.content }}
|
||||
|
||||
{% include 'disqus.html' %}
|
||||
|
||||
{% endblock %}
|
87
themes/walden/templates/base.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>{{ SITENAME }}{% block title %}{% endblock %}</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/normalize.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/skeleton.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/eule.css">
|
||||
<link rel="stylesheet" href="https://code.cdn.mozilla.net/fonts/fira.css">
|
||||
{% if CUSTOM_CSS %}
|
||||
<link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% if FEED_ALL_ATOM %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom">
|
||||
{% endif %}
|
||||
{% if FEED_ALL_RSS %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS">
|
||||
{% endif %}
|
||||
|
||||
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-114x114.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-72x72.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-144x144.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-60x60.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-120x120.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-76x76.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/apple-touch-icon-152x152.png" />
|
||||
<link rel="icon" type="image/png" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/favicon-196x196.png" sizes="196x196" />
|
||||
<link rel="icon" type="image/png" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/png" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/favicon-32x32.png" sizes="32x32" />
|
||||
<link rel="icon" type="image/png" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/favicon-16x16.png" sizes="16x16" />
|
||||
<link rel="icon" type="image/png" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/favicon-128.png" sizes="128x128" />
|
||||
<meta name="application-name" content=" "/>
|
||||
<meta name="msapplication-TileColor" content="#FFFFFF" />
|
||||
<meta name="msapplication-TileImage" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/mstile-144x144.png" />
|
||||
<meta name="msapplication-square70x70logo" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/mstile-70x70.png" />
|
||||
<meta name="msapplication-square150x150logo" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/mstile-150x150.png" />
|
||||
<meta name="msapplication-wide310x150logo" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/mstile-310x150.png" />
|
||||
<meta name="msapplication-square310x310logo" content="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/favicon/mstile-310x310.png" />
|
||||
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<a href="{{ SITEURL }}"><div class="four columns sidebar"></div></a>
|
||||
|
||||
<div class="eight columns offset-by-four">
|
||||
<div class="container content">
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<hr>
|
||||
|
||||
<p class="footer">LINKS: {% for name, url in LINKS %}<a href="{{ url }}">{{ name }}</a> {% endfor %}</p>
|
||||
<p class="footer">PAGES: {% for page in pages %}<a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a> {% endfor %}</p>
|
||||
<p class="footer">SOCIAL: {% for name, url in SOCIAL %}<a href="{{ url }}">{{ name }}</a> {% endfor %}</p>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.fitvids.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".content img").each(function() {
|
||||
if($(this).attr("alt"))
|
||||
$(this).wrap('<figure class="image"></figure>')
|
||||
.after('<figcaption>'+$(this).attr("alt")+'</figcaption>');
|
||||
});
|
||||
|
||||
$(".videobox").fitVids();
|
||||
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
</body>
|
12
themes/walden/templates/disqus.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
||||
{% endif %}
|
11
themes/walden/templates/disqus_count.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% if DISQUS_SITENAME %}
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{% endif %}
|
31
themes/walden/templates/index.html
Normal file
@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% for article in articles_page.object_list %}
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{{ article.title }}</a></h1>
|
||||
<p class="post-meta">
|
||||
Posted on {{ article.locale_date }}
|
||||
{% if article.tags %}
|
||||
• Tagged with
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if DISQUS_SITENAME %}
|
||||
• <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">Leave a comment</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{{ article.content }}
|
||||
{% endfor %}
|
||||
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
{% include 'disqus_count.html' %}
|
||||
{% endblock %}
|
9
themes/walden/templates/page.html
Normal file
@ -0,0 +1,9 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - {{ page.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page.content }}
|
||||
|
||||
{% endblock %}
|
11
themes/walden/templates/pagination.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% if DEFAULT_PAGINATION %}
|
||||
<p class="paginator footer">
|
||||
{% 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 %}
|
35
themes/walden/templates/search.html
Normal file
@ -0,0 +1,35 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - Search{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/tipuesearch.css">
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Search</h1>
|
||||
<form action="{{ SITEURL}}/pages/search.html">
|
||||
<input type="text" value="" placeholder="Suchen" name="q" id="tipue_search_input" autocomplete="on" required>
|
||||
<br>
|
||||
<br><input type="submit"/>
|
||||
</form>
|
||||
|
||||
<div id="tipue_search_content"><div id="tipue_search_loading"></div></div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/tipuesearch_set.js"></script>
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/tipuesearch.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tipue_search_input').tipuesearch({
|
||||
'mode' : 'json',
|
||||
'show': 1000,
|
||||
'newWindow': false,
|
||||
'contentLocation': '{{ SITEURL }}/tipuesearch_content.json'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
3
themes/walden/templates/tag.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% extends 'index.html' %}
|
||||
|
||||
{% block title %} - {{ tag }}{% endblock %}
|
10
themes/walden/templates/tags.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - 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 %}
|