yannstatic/static/aide-jekyll-text-theme.html

4684 lines
445 KiB
HTML
Raw Permalink Normal View History

2024-10-31 20:18:37 +01:00
<!DOCTYPE html><html lang="fr">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"><title>Aide Jekyll TeXt thème - YannStatic</title>
<meta name="description" content="Expérimentations et tests
">
<link rel="canonical" href="https://static.rnmkcy.eu/aide-jekyll-text-theme.html"><link rel="alternate" type="application/rss+xml" title="YannStatic" href="/feed.xml">
<!-- - include head/favicon.html - -->
<link rel="shortcut icon" type="image/png" href="/assets/favicon/favicon.png"><link rel="stylesheet" href="/assets/css/main.css"><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" ><!-- start custom head snippets --><link rel="stylesheet" href="/assets/css/expand.css">
<!-- end custom head snippets --><script>(function() {
window.isArray = function(val) {
return Object.prototype.toString.call(val) === '[object Array]';
};
window.isString = function(val) {
return typeof val === 'string';
};
window.hasEvent = function(event) {
return 'on'.concat(event) in window.document;
};
window.isOverallScroller = function(node) {
return node === document.documentElement || node === document.body || node === window;
};
window.isFormElement = function(node) {
var tagName = node.tagName;
return tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA';
};
window.pageLoad = (function () {
var loaded = false, cbs = [];
window.addEventListener('load', function () {
var i;
loaded = true;
if (cbs.length > 0) {
for (i = 0; i < cbs.length; i++) {
cbs[i]();
}
}
});
return {
then: function(cb) {
cb && (loaded ? cb() : (cbs.push(cb)));
}
};
})();
})();
(function() {
window.throttle = function(func, wait) {
var args, result, thisArg, timeoutId, lastCalled = 0;
function trailingCall() {
lastCalled = new Date;
timeoutId = null;
result = func.apply(thisArg, args);
}
return function() {
var now = new Date,
remaining = wait - (now - lastCalled);
args = arguments;
thisArg = this;
if (remaining <= 0) {
clearTimeout(timeoutId);
timeoutId = null;
lastCalled = now;
result = func.apply(thisArg, args);
} else if (!timeoutId) {
timeoutId = setTimeout(trailingCall, remaining);
}
return result;
};
};
})();
(function() {
var Set = (function() {
var add = function(item) {
var i, data = this._data;
for (i = 0; i < data.length; i++) {
if (data[i] === item) {
return;
}
}
this.size ++;
data.push(item);
return data;
};
var Set = function(data) {
this.size = 0;
this._data = [];
var i;
if (data.length > 0) {
for (i = 0; i < data.length; i++) {
add.call(this, data[i]);
}
}
};
Set.prototype.add = add;
Set.prototype.get = function(index) { return this._data[index]; };
Set.prototype.has = function(item) {
var i, data = this._data;
for (i = 0; i < data.length; i++) {
if (this.get(i) === item) {
return true;
}
}
return false;
};
Set.prototype.is = function(map) {
if (map._data.length !== this._data.length) { return false; }
var i, j, flag, tData = this._data, mData = map._data;
for (i = 0; i < tData.length; i++) {
for (flag = false, j = 0; j < mData.length; j++) {
if (tData[i] === mData[j]) {
flag = true;
break;
}
}
if (!flag) { return false; }
}
return true;
};
Set.prototype.values = function() {
return this._data;
};
return Set;
})();
window.Lazyload = (function(doc) {
var queue = {js: [], css: []}, sources = {js: {}, css: {}}, context = this;
var createNode = function(name, attrs) {
var node = doc.createElement(name), attr;
for (attr in attrs) {
if (attrs.hasOwnProperty(attr)) {
node.setAttribute(attr, attrs[attr]);
}
}
return node;
};
var end = function(type, url) {
var s, q, qi, cbs, i, j, cur, val, flag;
if (type === 'js' || type ==='css') {
s = sources[type], q = queue[type];
s[url] = true;
for (i = 0; i < q.length; i++) {
cur = q[i];
if (cur.urls.has(url)) {
qi = cur, val = qi.urls.values();
qi && (cbs = qi.callbacks);
for (flag = true, j = 0; j < val.length; j++) {
cur = val[j];
if (!s[cur]) {
flag = false;
}
}
if (flag && cbs && cbs.length > 0) {
for (j = 0; j < cbs.length; j++) {
cbs[j].call(context);
}
qi.load = true;
}
}
}
}
};
var load = function(type, urls, callback) {
var s, q, qi, node, i, cur,
_urls = typeof urls === 'string' ? new Set([urls]) : new Set(urls), val, url;
if (type === 'js' || type ==='css') {
s = sources[type], q = queue[type];
for (i = 0; i < q.length; i++) {
cur = q[i];
if (_urls.is(cur.urls)) {
qi = cur;
break;
}
}
val = _urls.values();
if (qi) {
callback && (qi.load || qi.callbacks.push(callback));
callback && (qi.load && callback());
} else {
q.push({
urls: _urls,
callbacks: callback ? [callback] : [],
load: false
});
for (i = 0; i < val.length; i++) {
node = null, url = val[i];
if (s[url] === undefined) {
(type === 'js' ) && (node = createNode('script', { src: url }));
(type === 'css') && (node = createNode('link', { rel: 'stylesheet', href: url }));
if (node) {
node.onload = (function(type, url) {
return function() {
end(type, url);
};
})(type, url);
(doc.head || doc.body).appendChild(node);
s[url] = false;
}
}
}
}
}
};
return {
js: function(url, callback) {
load('js', url, callback);
},
css: function(url, callback) {
load('css', url, callback);
}
};
})(this.document);
})();
</script><script>
(function() {
var TEXT_VARIABLES = {
version: '2.2.6',
sources: {
font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css',
jquery: '/assets/js/jquery.min.js',
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js',
chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js',
gitalk: {
js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js',
css: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.css'
},
valine: 'https://unpkg.com/valine/dist/Valine.min.js'
},
site: {
toc: {
selectors: 'h1,h2,h3'
}
},
paths: {
search_js: '/assets/search.js'
}
};
window.TEXT_VARIABLES = TEXT_VARIABLES;
})();
</script>
</head>
<body>
<div class="root" data-is-touch="false">
<div class="layout--page js-page-root"><!----><div class="page__main js-page-main page__viewport hide-footer has-aside cell cell--auto">
<div class="page__main-inner"><div class="page__header d-print-none"><header class="header"><div class="main">
<div class="header__title">
<div class="header__brand"><svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="478.9473684210526" viewBox="0, 0, 400,478.9473684210526"><g id="svgg"><path id="path0" d="M308.400 56.805 C 306.970 56.966,303.280 57.385,300.200 57.738 C 290.906 58.803,278.299 59.676,269.200 59.887 L 260.600 60.085 259.400 61.171 C 258.010 62.428,256.198 63.600,255.645 63.600 C 255.070 63.600,252.887 65.897,252.598 66.806 C 252.460 67.243,252.206 67.600,252.034 67.600 C 251.397 67.600,247.206 71.509,247.202 72.107 C 247.201 72.275,246.390 73.190,245.400 74.138 C 243.961 75.517,243.598 76.137,243.592 77.231 C 243.579 79.293,241.785 83.966,240.470 85.364 C 239.176 86.740,238.522 88.365,237.991 91.521 C 237.631 93.665,236.114 97.200,235.554 97.200 C 234.938 97.200,232.737 102.354,232.450 104.472 C 232.158 106.625,230.879 109.226,229.535 110.400 C 228.933 110.926,228.171 113.162,226.434 119.500 C 226.178 120.435,225.795 121.200,225.584 121.200 C 225.373 121.200,225.200 121.476,225.200 121.813 C 225.200 122.149,224.885 122.541,224.500 122.683 C 223.606 123.013,223.214 123.593,223.204 124.600 C 223.183 126.555,220.763 132.911,219.410 134.562 C 218.443 135.742,217.876 136.956,217.599 138.440 C 217.041 141.424,215.177 146.434,214.532 146.681 C 214.240 146.794,214.000 147.055,214.000 147.261 C 214.000 147.467,213.550 148.086,213.000 148.636 C 212.450 149.186,212.000 149.893,212.000 150.208 C 212.000 151.386,208.441 154.450,207.597 153.998 C 206.319 153.315,204.913 150.379,204.633 147.811 C 204.365 145.357,202.848 142.147,201.759 141.729 C 200.967 141.425,199.200 137.451,199.200 135.974 C 199.200 134.629,198.435 133.224,196.660 131.311 C 195.363 129.913,194.572 128.123,193.870 125.000 C 193.623 123.900,193.236 122.793,193.010 122.540 C 190.863 120.133,190.147 118.880,188.978 115.481 C 188.100 112.928,187.151 111.003,186.254 109.955 C 185.358 108.908,184.518 107.204,183.847 105.073 C 183.280 103.273,182.497 101.329,182.108 100.753 C 181.719 100.177,180.904 98.997,180.298 98.131 C 179.693 97.265,178.939 95.576,178.624 94.378 C 178.041 92.159,177.125 90.326,175.023 87.168 C 174.375 86.196,173.619 84.539,173.342 83.486 C 172.800 81.429,171.529 79.567,170.131 78.785 C 169.654 78.517,168.697 77.511,168.006 76.549 C 167.316 75.587,166.594 74.800,166.402 74.800 C 166.210 74.800,164.869 73.633,163.421 72.206 C 160.103 68.936,161.107 69.109,146.550 69.301 C 133.437 69.474,128.581 70.162,126.618 72.124 C 126.248 72.495,125.462 72.904,124.872 73.033 C 124.282 73.163,123.088 73.536,122.219 73.863 C 121.349 74.191,119.028 74.638,117.061 74.858 C 113.514 75.254,109.970 76.350,108.782 77.419 C 107.652 78.436,100.146 80.400,97.388 80.400 C 95.775 80.400,93.167 81.360,91.200 82.679 C 90.430 83.195,89.113 83.804,88.274 84.031 C 85.875 84.681,78.799 90.910,74.400 96.243 L 73.400 97.456 73.455 106.028 C 73.526 117.055,74.527 121.238,77.820 124.263 C 78.919 125.273,80.400 127.902,80.400 128.842 C 80.400 129.202,81.075 130.256,81.900 131.186 C 83.563 133.059,85.497 136.346,86.039 138.216 C 86.233 138.886,87.203 140.207,88.196 141.153 C 89.188 142.098,90.000 143.104,90.000 143.388 C 90.000 144.337,92.129 148.594,92.869 149.123 C 93.271 149.410,93.600 149.831,93.600 150.059 C 93.600 150.286,93.932 150.771,94.337 151.136 C 94.743 151.501,95.598 153.004,96.237 154.475 C 96.877 155.947,97.760 157.351,98.200 157.596 C 98.640 157.841,99.900 159.943,101.000 162.267 C 102.207 164.817,103.327 166.644,103.825 166.876 C 104.278 167.087,105.065 168.101,105.573 169.130 C 107.658 173.348,108.097 174.093,110.006 176.647 C 111.103 178.114,112.000 179.725,112.000 180.227 C 112.000 181.048,113.425 183.163,114.678 184.200 C 115.295 184.711,117.396 188.733,117.720 190.022 C 117.855 190.562,118.603 191.633,119.381 192.402 C 120.160 193.171,121.496 195.258,122.351 197.039 C 123.206 198.820,124.167 200.378,124.487 200.501 C 124.807 200.624,125.953 202.496,127.034 204.662 C 128.114 206.828,129.676 209.299,130.505 210.153 C 131.333 211.007,132.124 212.177,132.262 212.753 C 132.618 214.239,134.291 217.048,136.288 219.5
" href="/">YannStatic</a></div><!--<button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button>--><!-- <li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li> -->
<!-- Champ de recherche -->
<div id="searchbox" class="search search--dark" style="visibility: visible">
<div class="main">
<div class="search__header"></div>
<div class="search-bar">
<div class="search-box js-search-box">
<div class="search-box__icon-search"><i class="fas fa-search"></i></div>
<input id="search-input" type="text" />
<!-- <div class="search-box__icon-clear js-icon-clear">
<a><i class="fas fa-times"></i></a>
</div> -->
</div>
</div>
</div>
</div>
<!-- Script pointing to search-script.js -->
<script>/*!
* Simple-Jekyll-Search
* Copyright 2015-2020, Christian Fei
* Licensed under the MIT License.
*/
(function(){
'use strict'
var _$Templater_7 = {
compile: compile,
setOptions: setOptions
}
const options = {}
options.pattern = /\{(.*?)\}/g
options.template = ''
options.middleware = function () {}
function setOptions (_options) {
options.pattern = _options.pattern || options.pattern
options.template = _options.template || options.template
if (typeof _options.middleware === 'function') {
options.middleware = _options.middleware
}
}
function compile (data) {
return options.template.replace(options.pattern, function (match, prop) {
const value = options.middleware(prop, data[prop], options.template)
if (typeof value !== 'undefined') {
return value
}
return data[prop] || match
})
}
'use strict';
function fuzzysearch (needle, haystack) {
var tlen = haystack.length;
var qlen = needle.length;
if (qlen > tlen) {
return false;
}
if (qlen === tlen) {
return needle === haystack;
}
outer: for (var i = 0, j = 0; i < qlen; i++) {
var nch = needle.charCodeAt(i);
while (j < tlen) {
if (haystack.charCodeAt(j++) === nch) {
continue outer;
}
}
return false;
}
return true;
}
var _$fuzzysearch_1 = fuzzysearch;
'use strict'
/* removed: const _$fuzzysearch_1 = require('fuzzysearch') */;
var _$FuzzySearchStrategy_5 = new FuzzySearchStrategy()
function FuzzySearchStrategy () {
this.matches = function (string, crit) {
return _$fuzzysearch_1(crit.toLowerCase(), string.toLowerCase())
}
}
'use strict'
var _$LiteralSearchStrategy_6 = new LiteralSearchStrategy()
function LiteralSearchStrategy () {
this.matches = function (str, crit) {
if (!str) return false
str = str.trim().toLowerCase()
crit = crit.trim().toLowerCase()
return crit.split(' ').filter(function (word) {
return str.indexOf(word) >= 0
}).length === crit.split(' ').length
}
}
'use strict'
var _$Repository_4 = {
put: put,
clear: clear,
search: search,
setOptions: __setOptions_4
}
/* removed: const _$FuzzySearchStrategy_5 = require('./SearchStrategies/FuzzySearchStrategy') */;
/* removed: const _$LiteralSearchStrategy_6 = require('./SearchStrategies/LiteralSearchStrategy') */;
function NoSort () {
return 0
}
const data = []
let opt = {}
opt.fuzzy = false
opt.limit = 10
opt.searchStrategy = opt.fuzzy ? _$FuzzySearchStrategy_5 : _$LiteralSearchStrategy_6
opt.sort = NoSort
opt.exclude = []
function put (data) {
if (isObject(data)) {
return addObject(data)
}
if (isArray(data)) {
return addArray(data)
}
return undefined
}
function clear () {
data.length = 0
return data
}
function isObject (obj) {
return Boolean(obj) && Object.prototype.toString.call(obj) === '[object Object]'
}
function isArray (obj) {
return Boolean(obj) && Object.prototype.toString.call(obj) === '[object Array]'
}
function addObject (_data) {
data.push(_data)
return data
}
function addArray (_data) {
const added = []
clear()
for (let i = 0, len = _data.length; i < len; i++) {
if (isObject(_data[i])) {
added.push(addObject(_data[i]))
}
}
return added
}
function search (crit) {
if (!crit) {
return []
}
return findMatches(data, crit, opt.searchStrategy, opt).sort(opt.sort)
}
function __setOptions_4 (_opt) {
opt = _opt || {}
opt.fuzzy = _opt.fuzzy || false
opt.limit = _opt.limit || 10
opt.searchStrategy = _opt.fuzzy ? _$FuzzySearchStrategy_5 : _$LiteralSearchStrategy_6
opt.sort = _opt.sort || NoSort
opt.exclude = _opt.exclude || []
}
function findMatches (data, crit, strategy, opt) {
const matches = []
for (let i = 0; i < data.length && matches.length < opt.limit; i++) {
const match = findMatchesInObject(data[i], crit, strategy, opt)
if (match) {
matches.push(match)
}
}
return matches
}
function findMatchesInObject (obj, crit, strategy, opt) {
for (const key in obj) {
if (!isExcluded(obj[key], opt.exclude) && strategy.matches(obj[key], crit)) {
return obj
}
}
}
function isExcluded (term, excludedTerms) {
for (let i = 0, len = excludedTerms.length; i < len; i++) {
const excludedTerm = excludedTerms[i]
if (new RegExp(excludedTerm).test(term)) {
return true
}
}
return false
}
/* globals ActiveXObject:false */
'use strict'
var _$JSONLoader_2 = {
load: load
}
function load (location, callback) {
const xhr = getXHR()
xhr.open('GET', location, true)
xhr.onreadystatechange = createStateChangeListener(xhr, callback)
xhr.send()
}
function createStateChangeListener (xhr, callback) {
return function () {
if (xhr.readyState === 4 && xhr.status === 200) {
try {
callback(null, JSON.parse(xhr.responseText))
} catch (err) {
callback(err, null)
}
}
}
}
function getXHR () {
return window.XMLHttpRequest ? new window.XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP')
}
'use strict'
var _$OptionsValidator_3 = function OptionsValidator (params) {
if (!validateParams(params)) {
throw new Error('-- OptionsValidator: required options missing')
}
if (!(this instanceof OptionsValidator)) {
return new OptionsValidator(params)
}
const requiredOptions = params.required
this.getRequiredOptions = function () {
return requiredOptions
}
this.validate = function (parameters) {
const errors = []
requiredOptions.forEach(function (requiredOptionName) {
if (typeof parameters[requiredOptionName] === 'undefined') {
errors.push(requiredOptionName)
}
})
return errors
}
function validateParams (params) {
if (!params) {
return false
}
return typeof params.required !== 'undefined' && params.required instanceof Array
}
}
'use strict'
var _$utils_9 = {
merge: merge,
isJSON: isJSON
}
function merge (defaultParams, mergeParams) {
const mergedOptions = {}
for (const option in defaultParams) {
mergedOptions[option] = defaultParams[option]
if (typeof mergeParams[option] !== 'undefined') {
mergedOptions[option] = mergeParams[option]
}
}
return mergedOptions
}
function isJSON (json) {
try {
if (json instanceof Object && JSON.parse(JSON.stringify(json))) {
return true
}
return false
} catch (err) {
return false
}
}
var _$src_8 = {};
(function (window) {
'use strict'
let options = {
searchInput: null,
resultsContainer: null,
json: [],
success: Function.prototype,
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
templateMiddleware: Function.prototype,
sortMiddleware: function () {
return 0
},
noResultsText: 'No results found',
limit: 10,
fuzzy: false,
debounceTime: null,
exclude: []
}
let debounceTimerHandle
const debounce = function (func, delayMillis) {
if (delayMillis) {
clearTimeout(debounceTimerHandle)
debounceTimerHandle = setTimeout(func, delayMillis)
} else {
func.call()
}
}
const requiredOptions = ['searchInput', 'resultsContainer', 'json']
/* removed: const _$Templater_7 = require('./Templater') */;
/* removed: const _$Repository_4 = require('./Repository') */;
/* removed: const _$JSONLoader_2 = require('./JSONLoader') */;
const optionsValidator = _$OptionsValidator_3({
required: requiredOptions
})
/* removed: const _$utils_9 = require('./utils') */;
window.SimpleJekyllSearch = function (_options) {
const errors = optionsValidator.validate(_options)
if (errors.length > 0) {
throwError('You must specify the following required options: ' + requiredOptions)
}
options = _$utils_9.merge(options, _options)
_$Templater_7.setOptions({
template: options.searchResultTemplate,
middleware: options.templateMiddleware
})
_$Repository_4.setOptions({
fuzzy: options.fuzzy,
limit: options.limit,
sort: options.sortMiddleware,
exclude: options.exclude
})
if (_$utils_9.isJSON(options.json)) {
initWithJSON(options.json)
} else {
initWithURL(options.json)
}
const rv = {
search: search
}
typeof options.success === 'function' && options.success.call(rv)
return rv
}
function initWithJSON (json) {
_$Repository_4.put(json)
registerInput()
}
function initWithURL (url) {
_$JSONLoader_2.load(url, function (err, json) {
if (err) {
throwError('failed to get JSON (' + url + ')')
}
initWithJSON(json)
})
}
function emptyResultsContainer () {
options.resultsContainer.innerHTML = ''
}
function appendToResultsContainer (text) {
options.resultsContainer.innerHTML += text
}
function registerInput () {
options.searchInput.addEventListener('input', function (e) {
if (isWhitelistedKey(e.which)) {
emptyResultsContainer()
debounce(function () { search(e.target.value) }, options.debounceTime)
}
})
}
function search (query) {
if (isValidQuery(query)) {
emptyResultsContainer()
render(_$Repository_4.search(query), query)
}
}
function render (results, query) {
const len = results.length
if (len === 0) {
return appendToResultsContainer(options.noResultsText)
}
for (let i = 0; i < len; i++) {
results[i].query = query
appendToResultsContainer(_$Templater_7.compile(results[i]))
}
}
function isValidQuery (query) {
return query && query.length > 0
}
function isWhitelistedKey (key) {
return [13, 16, 20, 37, 38, 39, 40, 91].indexOf(key) === -1
}
function throwError (message) {
throw new Error('SimpleJekyllSearch --- ' + message)
}
})(window)
}());
</script>
<!-- Configuration -->
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '/search.json',
//searchResultTemplate: '<li><a href="https://static.rnmkcy.eu{url}">{date}&nbsp;{title}</a></li>'
searchResultTemplate: '<li><a href="{url}">{date}&nbsp;{title}</a></li>'
})
</script>
<!-- Fin déclaration champ de recherche --></div><nav class="navigation">
<ul><li class="navigation__item"><a href="/archive.html">Etiquettes</a></li><li class="navigation__item"><a href="/htmldoc.html">Documents</a></li><li class="navigation__item"><a href="/liens_ttrss.html">Liens</a></li><li class="navigation__item navigation__item--active"><a href="/aide-jekyll-text-theme.html">Aide</a></li></ul>
</nav></div>
</header>
</div><div class="page__content"><div class ="main"><div class="grid grid--reverse">
<div class="col-main cell cell--auto"><!-- start custom main top snippet --><div id="results-container" class="search-result js-search-result"></div><!-- end custom main top snippet -->
<article itemscope itemtype="http://schema.org/Article"><div class="article__header"><header><h1 style="color:Tomato;">Aide Jekyll TeXt thème</h1></header></div><meta itemprop="headline" content="Aide Jekyll TeXt thème"><div class="js-article-content">
<div class="layout--article"><!-- start custom article top snippet -->
<style>
#myBtn {
display: none;
position: fixed;
bottom: 10px;
right: 10px;
z-index: 99;
font-size: 12px;
font-weight: bold;
border: none;
outline: none;
background-color: white;
color: black;
cursor: pointer;
padding: 5px;
border-radius: 4px;
}
#myBtn:hover {
background-color: #555;
}
</style>
<button onclick="topFunction()" id="myBtn" title="Haut de page">&#8679;</button>
<script>
//Get the button
var mybutton = document.getElementById("myBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<!-- end custom article top snippet -->
<div class="article__content" itemprop="articleBody"><p><em>TeXt est un thème Jekyll super personnalisable pour site personnel, site déquipe, blog, projet, documentation, etc…</em></p>
<h2 id="sommaire">Sommaire</h2>
<ul>
<li><a href="#caractéristiques">Caractéristiques</a></li>
<li><a href="#démarrage-rapide">Démarrage rapide</a>
<ul>
<li><a href="#installer-le-thème">Installer le thème</a></li>
<li><a href="#configuration">Configuration</a></li>
<li><a href="#paramètres-du-site">Paramètres du site</a></li>
</ul>
</li>
<li><a href="#navigation">Navigation</a>
<ul>
<li><a href="#header-navigation">Header Navigation</a></li>
<li><a href="#sidebar-navigation">Sidebar Navigation</a></li>
</ul>
</li>
<li><a href="#layout">Layout</a>
<ul>
<li><a href="#mise-en-page">Mise en page</a></li>
<li><a href="#article-layout">Article Layout</a></li>
<li><a href="#home-layout">Home Layout</a></li>
<li><a href="#archive-layout">Archive Layout</a></li>
<li><a href="#landing-layout">Landing Layout</a></li>
<li><a href="#404-layout">404 Layout</a></li>
</ul>
</li>
<li><a href="#logo-et-favicon">Logo et Favicon</a>
<ul>
<li><a href="#logo">Logo</a></li>
<li><a href="#favicon">Favicon</a></li>
</ul>
</li>
<li><a href="#auteurs">Auteurs</a></li>
<li><a href="#internationalisation">Internationalisation</a></li>
<li><a href="#rédaction-des-messages">Rédaction des messages</a>
<ul>
<li><a href="#création-de-fichiers-de-poste">Création de fichiers de poste</a></li>
</ul>
</li>
<li><a href="#chart">Chart</a></li>
<li><a href="#autres-styles">Autres styles</a>
<ul>
<li><a href="#alerte">Alerte</a></li>
<li><a href="#tag">Tag</a></li>
<li><a href="#image">Image</a></li>
</ul>
</li>
<li><a href="#spacing">Spacing</a>
<ul>
<li><a href="#exemples">EXEMPLES</a></li>
</ul>
</li>
<li><a href="#grid">Grid</a>
<ul>
<li><a href="#base">Base</a></li>
<li><a href="#responsive">Responsive</a></li>
<li><a href="#auto-sizing">Auto Sizing</a></li>
<li><a href="#gutters">Gutters</a></li>
<li><a href="#overflow">Overflow</a></li>
</ul>
</li>
<li><a href="#icons">Icons</a></li>
<li><a href="#image">Image</a>
<ul>
<li><a href="#size">Size</a></li>
</ul>
</li>
<li><a href="#button">Button</a>
<ul>
<li><a href="#type">Type</a></li>
<li><a href="#shape">Shape</a></li>
<li><a href="#size">Size</a></li>
</ul>
</li>
<li><a href="#item">Item</a>
<ul>
<li><a href="#content">Content</a></li>
<li><a href="#image-and-content">Image and Content</a></li>
<li><a href="#image-size">Image Size</a></li>
</ul>
</li>
<li><a href="#card">Card</a>
<ul>
<li><a href="#image">Image</a></li>
<li><a href="#content">Content</a></li>
<li><a href="#image-and-content">Image and Content</a></li>
<li><a href="#image-overlay">Image Overlay</a></li>
<li><a href="#flat">Flat</a></li>
<li><a href="#clickable">Clickable</a></li>
</ul>
</li>
<li><a href="#hero">Hero</a>
<ul>
<li><a href="#normal">Normal</a></li>
<li><a href="#center">Center</a></li>
<li><a href="#dark-theme">Dark Theme</a></li>
<li><a href="#background-image">Background Image</a></li>
<li><a href="#height">Height</a></li>
<li><a href="#background-image--center">Background Image + Center</a></li>
</ul>
</li>
<li><a href="#swiper">Swiper</a>
<ul>
<li><a href="#normal">Normal</a></li>
<li><a href="#light-theme">Light Theme</a></li>
<li><a href="#dark-theme">Dark Theme</a></li>
</ul>
</li>
</ul>
<h2 id="caractéristiques">Caractéristiques</h2>
<ul>
<li><a href="https://github.com/kitian616/jekyll-TeXt-theme">Github jekyll-text-theme (original)</a></li>
<li>Responsive</li>
<li>HTML sémantique</li>
<li>Skins</li>
<li>Thème principal</li>
<li>Internationalisation</li>
<li>Recherchez</li>
<li>Table des matières</li>
<li>Auteurs</li>
<li>Styles supplémentaires (alerte, tag, image, icône, bouton, grille, etc.)</li>
<li>Extensions (audios, vidéos, diapositives, démos)</li>
<li>Améliorations de la démarque (<a href="https://mermaidjs.github.io/">mermaid</a>, <a href="http://www.chartjs.org/">chartjs</a>)</li>
<li>RSS (<a href="https://github.com/jekyll/jekyll-feed">jekyll-feed</a>)</li>
</ul>
<p><strong>Skins</strong></p>
<p>TeXt dispose de 6 skins intégrés, vous pouvez également créer votre propre skin.</p>
<table>
<thead>
<tr>
<th><code class="language-plaintext highlighter-rouge">default</code></th>
<th><code class="language-plaintext highlighter-rouge">dark</code></th>
<th><code class="language-plaintext highlighter-rouge">forest</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_default.jpg" alt="Default" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_dark.jpg" alt="Dark" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_forest.jpg" alt="Forest" /></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th><code class="language-plaintext highlighter-rouge">ocean</code></th>
<th><code class="language-plaintext highlighter-rouge">chocolate</code></th>
<th><code class="language-plaintext highlighter-rouge">orange</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_ocean.jpg" alt="Ocean" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_chocolate.jpg" alt="Chocolate" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_orange.jpg" alt="Orange" /></td>
</tr>
</tbody>
</table>
<p><strong>Highlight Theme</strong></p>
<p>TeXt utilise <a href="https://github.com/chriskempson/tomorrow-theme">Tomorrow</a> comme thème principal.</p>
<table>
<thead>
<tr>
<th><code class="language-plaintext highlighter-rouge">tomorrow</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night-eighties</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night-blue</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night-bright</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow.png" alt="Tomorrow" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night.png" alt="Tomorrow Night" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-eighties.png" alt="Tomorrow Night Eighties" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-blue.png" alt="Tomorrow Night Blue" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-bright.png" alt="Tomorrow Night Bright" /></td>
</tr>
</tbody>
</table>
<h2 id="démarrage-rapide">Démarrage rapide</h2>
<p>TeXt Theme est 100% compatible avec les pages GitHub et a été développé en tant que <a href="https://jekyllrb.com/docs/themes/">thèmes basés sur les pierres précieuses</a> pour une utilisation plus facile.</p>
<p>Dans ce document, vous apprendrez comment <strong>installer le thème</strong>, <strong>régler votre site</strong>, <strong>prévision locale</strong> pour le développement, <strong>construire</strong> et <strong>publier</strong>.</p>
<!--more-->
<pre><code class="language-mermaid">graph LR;
A0(Installing TeXt)
B0(Common Method)
B1[Ruby Gem Method]
C0[Fork this repo]
C1[Clone from GitHub]
C2[Download]
D0[Setup Your Site]
E0(Installing Development Environment)
F0[Installing Directly]
F1[Docker]
A0--&gt;B0;
A0--&gt;B1;
B0--&gt;C0;
B0--&gt;C1;
B0--&gt;C2;
B1--&gt;D0;
C1--&gt;E0
C2--&gt;E0
D0--&gt;E0
E0--&gt;F0
E0--&gt;F1
</code></pre>
<h3 id="installer-le-thème">Installer le thème</h3>
<p><strong>Méthode commune</strong></p>
<p>Pour linstaller avec la méthode commune, il vous suffit de copier tous les fichiers du thème dans votre projet. Il y a plusieurs façons de le faire :</p>
<ol>
<li>
<p>Cloner <a href="https://github.com/kitian616/jekyll-TeXt-theme">jekyll-TeXt-theme</a> à partir de github.</p>
<p><strong>Clone avec HTTPS:</strong></p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone https://github.com/kitian616/jekyll-TeXt-theme.git
</code></pre></div> </div>
<p><strong>Clone with SSH:</strong></p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone git@github.com:kitian616/jekyll-TeXt-theme.git
</code></pre></div> </div>
</li>
<li>
<p>Téléchargez et dézippez le fichier dans le répertoire de votre site Jekyll.</p>
<p><a class="button button--success button--rounded" href="https://github.com/kitian616/jekyll-TeXt-theme/archive/master.zip"><i class="fas fa-download"></i> Download TeXt Theme</a></p>
</li>
<li>
<p>Si vous hébergez votre site sur les pages GitHub, vous pouvez simplement bifurquer vers <a href="https://github.com/kitian616/jekyll-TeXt-theme">jekyll-TeXt-theme</a>, puis renommer le dépôt en <strong>USERNAME.github.io</strong> - en remplaçant <strong>USERNAME</strong> par votre nom dutilisateur GitHub.</p>
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/github-fork.jpg" alt="Fork" /></p>
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/github-rename-repo.jpg" alt="Rename" /></p>
</li>
</ol>
<p><strong>Méthode Ruby Gem</strong></p>
<ol>
<li>
<p>Ajoutez cette ligne au <em>Gemfile</em> de votre site Jekyll :</p>
<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">gem</span> <span class="s2">"jekyll-text-theme"</span>
</code></pre></div> </div>
</li>
<li>
<p>Ajoutez cette ligne au fichier <em>_config.yml</em> de votre site Jekyll :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">theme</span><span class="pi">:</span> <span class="s">jekyll-text-theme</span>
</code></pre></div> </div>
</li>
</ol>
<p><strong>Configurez votre site</strong></p>
<p>Si vous installez le thème avec la méthode commune, vous pouvez passer directement à létape suivante. Mais <strong>si vous installez le thème avec la méthode ruby gem, vous devez faire quelques travaux supplémentaires</strong>.</p>
<p>Avec les thèmes basés sur gem, certains des répertoires du site (tels que les répertoires <em>assets</em>, <em>_layouts</em>, <em>_includes</em> et <em>_sass</em>) sont stockés dans le gem du thème, cachés de votre vue immédiate. Vous devez ajouter quelques fichiers dans le répertoire de votre site Jekyll :</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>├── 404.html
├── Gemfile
├── _config.yml
├── _data
│   └── locale.yml
├── _posts
│   └── ...
├── about.md
├── archive.html
└── index.html
</code></pre></div></div>
<p>Vous pouvez vous référer au dossier <a href="https://github.com/kitian616/jekyll-TeXt-theme/tree/master/test">/test</a>, cest un exemple avec des thèmes basés sur les pierres précieuses.</p>
<p><strong>Installation de lenvironnement de développement</strong></p>
<p>Si vous souhaitez les exécuter localement, vous devez dabord installer Ruby et Jekyll, voir <a href="https://jekyllrb.com/docs/installation/">Installation</a> pour plus de détails.</p>
<p>Ensuite, lancez le bundler pour installer les dépendances :</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>bundle <span class="nb">install</span> <span class="nt">--path</span> vendor/bundle
</code></pre></div></div>
<p>De plus, TeXt offre <a href="https://www.docker.com/">Docker</a> un soutien au développement et au public, ce qui facilite la mise en place de lenvironnement.</p>
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/docker.jpg" alt="Docker" width="400px" /></p>
<p>Il suffit de suivre ces trois étapes :</p>
<ol>
<li>
<p><a href="https://docs.docker.com/install/">Installer le docker</a>.</p>
</li>
<li>
<p>Générer <em>Gemfile.lock</em> :</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run <span class="nt">--rm</span> <span class="nt">-v</span> <span class="s2">"</span><span class="nv">$PWD</span><span class="s2">"</span>:/usr/src/app <span class="nt">-w</span> /usr/src/app ruby:2.6 bundle <span class="nb">install</span>
</code></pre></div> </div>
</li>
<li>
<p>Construire limage du Docker :</p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker-compose <span class="nt">-f</span> ./docker/docker-compose.build-image.yml build
</code></pre></div> </div>
</li>
</ol>
<p><strong>Avant-première locale</strong></p>
<p>Lancez le service <code class="language-plaintext highlighter-rouge">bundle exec jekyll serve</code> pour démarrer le serveur de développement, puis vous pouvez visiter <a href="http://localhost:4000/">http://localhost:4000/</a> pour prévisualiser votre site.</p>
<p>Pour Docker, lancez <code class="language-plaintext highlighter-rouge">docker-compose -f./docker/docker-compose.default.yml up</code> pour démarrer le serveur de développement.</p>
<p><strong>Construction et publication</strong></p>
<p>Si vous hébergez votre site sur les pages GitHub, il suffit de pousser la source vers la branche principale de votre dépôt USERNAME.github.io, GitHub se construira automatiquement. Vous pouvez visiter votre site sur <strong>https://USERNAME.github.io</strong> quelques minutes plus tard.</p>
<p>Si vous hébergez votre site sur votre serveur, vous devez dabord lancer <code class="language-plaintext highlighter-rouge">JEKYLL_ENV=production bundle exec jekyll build</code> pour générer votre site, puis mettre à jour les fichiers du dossier <em>_site</em> sur votre serveur.</p>
<p><strong>Structure</strong></p>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>├── _data
│ ├── locale.yml
│ ├── navigation.yml
│ └── variables.yml
├── _includes
│ ├── analytics-providers
│ ├── aside
│ ├── comments-providers
│ ├── markdown-enhancements
│ ├── pageview-providers
│ ├── scripts
│ ├── sidebar
│ ├── snippets
│ ├── svg
│ │ ├── icon
│ │ │ ├── social
│ │ │ │ ├── facebook.svg
│ │ │ │ └── ...
│ │ └── logo.svg
│ └── ...
├── _layouts
│ ├── 404.html
│ ├── archive.html
│ ├── article.html
│ ├── base.html
│ ├── home.html
│ ├── none.html
│ └── page.html
├── _sass
├── assets
│ ├── css
│ │ └── blog.scss
│ └── images
├── tools
├── 404.html
├── Gemfile
├── _config.yml
├── about.md
├── archive.html
├── favicon.ico
├── gulpfile.js
├── index.html
├── jekyll-text-theme.gemspec
└── package.json
</code></pre></div></div>
<h3 id="configuration">Configuration</h3>
<p>Jekyll vous permet de concocter vos sites comme vous le souhaitez, et cest grâce aux options de configuration puissantes et flexibles que cela est possible. Ces options peuvent être spécifiées soit dans un fichier <em>_config.yml</em> placé dans le répertoire racine de votre site, soit sous forme de drapeaux pour lexécutable jekyll dans le terminal.</p>
<p class="warning">Pour des raisons techniques, <em>_config.yml</em> nest <strong>PAS</strong> rechargé automatiquement lorsque vous utilisez <code class="language-plaintext highlighter-rouge">jekyll serve</code>. Si vous modifiez ce fichier, veuillez redémarrer le processus du serveur.</p>
<!--more-->
<h3 id="paramètres-du-site">Paramètres du site</h3>
<p><strong>Thème</strong></p>
<p>Si vous utilisez la version Ruby gem du thème, vous aurez besoin de cette ligne pour lactiver :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">theme</span><span class="pi">:</span> <span class="s">jekyll-text-theme</span>
</code></pre></div></div>
<p><strong>Skin</strong></p>
<p>TeXt dispose de 6 skins intégrés, vous pouvez également créer votre propre skin.</p>
<table>
<thead>
<tr>
<th><code class="language-plaintext highlighter-rouge">default</code></th>
<th><code class="language-plaintext highlighter-rouge">dark</code></th>
<th><code class="language-plaintext highlighter-rouge">forest</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_default.jpg" alt="Default" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_dark.jpg" alt="Dark" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_forest.jpg" alt="Forest" /></td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th><code class="language-plaintext highlighter-rouge">ocean</code></th>
<th><code class="language-plaintext highlighter-rouge">chocolate</code></th>
<th><code class="language-plaintext highlighter-rouge">orange</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_ocean.jpg" alt="Ocean" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_chocolate.jpg" alt="Chocolate" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_orange.jpg" alt="Orange" /></td>
</tr>
</tbody>
</table>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">text_skin</span><span class="pi">:</span> <span class="s">default</span> <span class="c1"># "default" (default), "dark", "forest", "ocean", "chocolate", "orange"</span>
</code></pre></div></div>
<p><strong>Highlight Theme</strong></p>
<p>TeXt use <a href="https://github.com/chriskempson/tomorrow-theme">Tomorrow</a> as the highlight theme.</p>
<table>
<thead>
<tr>
<th><code class="language-plaintext highlighter-rouge">tomorrow</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night-eighties</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night-blue</code></th>
<th><code class="language-plaintext highlighter-rouge">tomorrow-night-bright</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow.png" alt="Tomorrow" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night.png" alt="Tomorrow Night" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-eighties.png" alt="Tomorrow Night Eighties" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-blue.png" alt="Tomorrow Night Blue" /></td>
<td><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-bright.png" alt="Tomorrow Night Bright" /></td>
</tr>
</tbody>
</table>
<p>Every skin has a default highlight theme, but you can overwrite it by <code class="language-plaintext highlighter-rouge">highlight_theme</code> variable.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">highlight_theme</span><span class="pi">:</span> <span class="s">default</span> <span class="c1"># "default" (default), "tomorrow", "tomorrow-night", "tomorrow-night-eighties", "tomorrow-night-blue", "tomorrow-night-bright"</span>
</code></pre></div></div>
<p><strong>URL</strong></p>
2024-11-21 17:20:33 +01:00
<p>Le nom dhôte et le protocole de base de votre site. Si vous hébergez le site sur des pages Github, celui-ci sera défini comme le domaine des pages GitHub (cname ou user domain) <sup id="fnref:gitHub_metadata"><a href="#fn:gitHub_metadata" class="footnote" rel="footnote" role="doc-noteref">1</a></sup>. Par exemple, https://kitian616.github.io ou https://tianqi.name sil y a un fichier cname.</p>
2024-10-31 20:18:37 +01:00
2024-11-21 17:20:33 +01:00
<p class="warning">Jekyll 3.3 remplace cette valeur par lurl suivante : http://localhost:4000 lorsque vous exécutez <code class="language-plaintext highlighter-rouge">jekyll serve</code> dans un environnement de développement <sup id="fnref:jekyll_site_variables"><a href="#fn:jekyll_site_variables" class="footnote" rel="footnote" role="doc-noteref">2</a></sup>. Vous pouvez spécifier lenvironnement Jekyll <sup id="fnref:jekyll_specifying_environment"><a href="#fn:jekyll_specifying_environment" class="footnote" rel="footnote" role="doc-noteref">3</a></sup> à lenvironnement de production par <code class="language-plaintext highlighter-rouge">JEKYLL_ENV=production</code> pour éviter ce comportement.</p>
2024-10-31 20:18:37 +01:00
<p><strong>URL de base</strong></p>
2024-11-21 17:20:33 +01:00
<p>LURL de base de votre site, par défaut, est “/”. Si vous hébergez le site sur des pages Github, elle sera définie comme le nom du projet pour les pages de projet si aucune nest définie <sup id="fnref:gitHub_metadata:1"><a href="#fn:gitHub_metadata" class="footnote" rel="footnote" role="doc-noteref">1</a></sup>.</p>
2024-10-31 20:18:37 +01:00
<p><strong>Titre</strong></p>
<p>Le nom de votre site.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">My</span><span class="nv"> </span><span class="s">Awesome</span><span class="nv"> </span><span class="s">Website"</span>
</code></pre></div></div>
<p><strong>Description</strong></p>
<p>Utilisez quelques mots pour décrire votre site.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">description</span><span class="pi">:</span> <span class="pi">&gt;</span> <span class="c1"># this means to ignore newlines until "nav_lists:"</span>
<span class="s">A website with awesome stories.</span>
</code></pre></div></div>
<p><strong>Langue et fuseau horaire</strong></p>
2024-11-21 17:20:33 +01:00
<p>La langue de votre site, vous pouvez la remplacer par dautres sur des postes spécifiques, des pages de YAML Front Matter <sup id="fnref:font_matter"><a href="#fn:font_matter" class="footnote" rel="footnote" role="doc-noteref">4</a></sup>, en savoir plus sur <a href="#internationalisation">Internationalisation</a>.</p>
2024-10-31 20:18:37 +01:00
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">lang</span><span class="pi">:</span> <span class="s">fr</span>
</code></pre></div></div>
<p>Définissez le fuseau horaire pour la génération du site. Cela définit la variable denvironnement TZ, que Ruby utilise pour gérer la création et la manipulation de lheure et de la date. Une liste de toutes les valeurs disponibles se trouve <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">ICI</a>.</p>
2024-11-21 17:20:33 +01:00
<p>Lorsque le service est effectué sur une machine locale, le fuseau horaire par défaut est défini par votre système dexploitation. Mais lorsquil est servi sur un hôte/serveur distant, le fuseau horaire par défaut dépend du paramétrage ou de lemplacement du serveur <sup id="fnref:jekyll_global_configuration"><a href="#fn:jekyll_global_configuration" class="footnote" rel="footnote" role="doc-noteref">5</a></sup>.</p>
2024-10-31 20:18:37 +01:00
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">timezone</span><span class="pi">:</span> <span class="s">Europe/Paris</span>
</code></pre></div></div>
<p><strong>Auteur et social</strong></p>
<p>Informations sur lauteur du site (une personne, une équipe ou une organisation).</p>
<p><strong>Type</strong></p>
<p>Type de lauteur du site, une personne ou une organisation, utilisé par le balisage <a href="https://schema.org/">schema.org</a>, par défaut “personne”.</p>
<p><strong>Nom</strong></p>
<p>Utilisé pour désigner lauteur dun site.</p>
<p><strong>Avatar</strong></p>
<p>Photo ou Logo de lauteur du site</p>
<p><strong>Bio</strong></p>
<p>Brève introduction pour lauteur du site</p>
<p><strong>Social</strong></p>
<p>Nom dutilisateur ou identifiant des réseaux sociaux de lauteur du site.</p>
<p>TeXt supporte Email, Facebook, Twitter, Weibo, Google Plus, Telegram, Medium, Zhihu, Douban, Linkedin, Github et Npm, plus à ajouter.</p>
<p>En fonction de vos paramètres, les boutons de réseau social safficheront dans le pied de page de chaque page.</p>
<p><strong>Dépôt GitHub</strong></p>
<p>Pour plus dinformations sur linstallation du plugin <a href="https://github.com/jekyll/github-metadata">GitHub Metadata</a>, veuillez consulter <a href="https://github.com/jekyll/github-metadata/blob/master/docs/configuration.md#configuration">ICI</a>.</p>
<p>Pour que jekyll-github-metadata sache quelles métadonnées rechercher, il doit être capable de déterminer le dépôt NWO à demander à GitHub.</p>
<p>“NWO” signifie “nom avec propriétaire”. Il sagit du nom dutilisateur du propriétaire du dépôt, plus une barre oblique vers lavant et le nom du dépôt, par exemple kitian616/jekyll-TeXt-theme, où “kitian616” est le propriétaire et “jekyll-TeXt-theme” est le nom du dépôt.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">repository</span><span class="pi">:</span> <span class="s">user_name/repo_name</span>
</code></pre></div></div>
<p><strong>Post Extrait</strong></p>
<p>Chaque message prend automatiquement le premier bloc de texte, du début du contenu à la première occurrence de <code class="language-plaintext highlighter-rouge">excerpt_separator</code>, et le définit comme lextrait du message.</p>
<p>Lextrait de larticle est affiché dans la liste des articles dans la mise en page daccueil. Il existe deux types dextrait, le type texte et le type html.</p>
<table>
<thead>
<tr>
<th>Type Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>text</strong></td>
<td>lextrait est un texte simple qui filtre tous les éléments non textuels (tels que le titre, le lien, la liste, le tableau, limage, etc.) et ne comporte que 350 caractères au maximum.</td>
</tr>
<tr>
<td><strong>html</strong></td>
<td>Lextrait est un document HTML tout comme le contenu de larticle. Il affiche tout le contenu par défaut, à lexception de lajout de <code class="language-plaintext highlighter-rouge">&lt;!--more--&gt;</code> dans le fichier Markdown de larticle. Vous pouvez trouver plus dinformations <a href="https://jekyllrb.com/docs/posts/#post-excerpts">ICI</a>.</td>
</tr>
</tbody>
</table>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">excerpt_separator</span><span class="pi">:</span> <span class="s">&lt;!--more--&gt;</span>
<span class="na">excerpt_type</span><span class="pi">:</span> <span class="s">text</span> <span class="c1"># text (default), html</span>
</code></pre></div></div>
<p><strong>Licence</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>License</th>
<th>Image</th>
</tr>
</thead>
<tbody>
<tr>
<td>CC-BY-4.0</td>
<td><a href="https://creativecommons.org/licenses/by/4.0/">Attribution 4.0 International</a></td>
<td><img src="https://i.creativecommons.org/l/by/4.0/88x31.png" alt="CC-BY-4.0" /></td>
</tr>
<tr>
<td>CC-BY-SA-4.0</td>
<td><a href="https://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 International</a></td>
<td><img src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" alt="CC-BY-SA-4.0" /></td>
</tr>
<tr>
<td>CC-BY-NC-4.0</td>
<td><a href="https://creativecommons.org/licenses/by-nc/4.0/">Attribution-NonCommercial 4.0 International</a></td>
<td><img src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" alt="CC-BY-NC-4.0" /></td>
</tr>
<tr>
<td>CC-BY-ND-4.0</td>
<td><a href="https://creativecommons.org/licenses/by-nd/4.0/">Attribution-NoDerivatives 4.0 International</a></td>
<td><img src="https://i.creativecommons.org/l/by-nd/4.0/88x31.png" alt="CC-BY-ND-4.0" /></td>
</tr>
</tbody>
</table>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">license</span><span class="pi">:</span> <span class="s">CC-BY-NC-4.0</span>
</code></pre></div></div>
<p><strong>TOC</strong></p>
<p>Éléments à utiliser comme titres.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">toc</span><span class="pi">:</span>
<span class="na">selectors</span><span class="pi">:</span> <span class="s2">"</span><span class="s">h1,h2,h3"</span>
</code></pre></div></div>
<p><strong>Améliorations markdown</strong></p>
<p>Afin daméliorer lexpérience de lutilisateur tant pour la lecture que pour lécriture des messages, TeXt a apporté quelques améliorations pour la démarque. Par défaut, toutes les améliorations pour la démarque sont activées. Vous devez régler les paramètres sur true pour les activer :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">## Mermaid</span>
<span class="na">mermaid</span><span class="pi">:</span> <span class="kc">true</span>
<span class="c1">## Chart</span>
<span class="na">chart</span><span class="pi">:</span> <span class="kc">true</span>
</code></pre></div></div>
2024-11-21 17:20:33 +01:00
<p>Et vous pouvez également le remplacer par dautres sur des postes spécifiques, des pages de YAML Front Matter <sup id="fnref:font_matter:1"><a href="#fn:font_matter" class="footnote" rel="footnote" role="doc-noteref">4</a></sup>.</p>
2024-10-31 20:18:37 +01:00
<p>Vérifiez <a href="/">Writing Posts</a> pour une utilisation détaillée.</p>
<p><strong>Paginer</strong></p>
<p>Paramètres du plugin <a href="https://github.com/jekyll/jekyll-paginate">Jekyll Paginate</a>. Pour activer la pagination des articles de votre blog, ajoutez une ligne au fichier <em>_config.yml</em> qui précise le nombre darticles à afficher par page :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">paginate</span><span class="pi">:</span> <span class="m">8</span>
</code></pre></div></div>
<p>Le nombre doit être le nombre maximum de messages que vous souhaitez voir affichés par page dans le site généré.</p>
<p>Vous pouvez également spécifier la destination des pages de pagination :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">paginate_path</span><span class="pi">:</span> <span class="s">/page:num</span> <span class="c1"># don't change this unless for special need</span>
</code></pre></div></div>
<p><strong>Sources</strong></p>
2024-11-21 17:20:33 +01:00
<p>TeXt utilise CDN<sup id="fnref:cdn"><a href="#fn:cdn" class="footnote" rel="footnote" role="doc-noteref">6</a></sup> pour améliorer la vitesse, vous pouvez choisir <a href="http://www.bootcdn.cn/">BootCDN</a> (par défaut) ou <a href="https://unpkg.com/">unpkg</a> comme fournisseur CDN de votre site, les deux sont open source et gratuits.</p>
2024-10-31 20:18:37 +01:00
<p>Si votre site est principalement destiné aux Chinois, utilisez simplement BootCDN.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">sources</span><span class="pi">:</span> <span class="s">bootcdn</span> <span class="c1"># bootcdn (default), unpkg</span>
</code></pre></div></div>
<p><strong>Partage</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Sharing Provider</th>
<th>Minimum Version</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>addtoany</strong></td>
<td><a href="https://www.addtoany.com/">AddToAny</a></td>
<td>2.2.2</td>
</tr>
<tr>
<td><strong>addthis</strong></td>
<td><a href="https://www.addthis.com/">AddThis</a></td>
<td>2.2.3</td>
</tr>
<tr>
<td><strong>custom</strong></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<p><strong>AddToAny</strong></p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">comments</span><span class="pi">:</span>
<span class="na">provider</span><span class="pi">:</span> <span class="s">addtoany</span>
</code></pre></div></div>
<p><strong>AddThis</strong></p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">comments</span><span class="pi">:</span>
<span class="na">provider</span><span class="pi">:</span> <span class="s">addthis</span>
<span class="na">addthis</span><span class="pi">:</span>
<span class="na">id</span><span class="pi">:</span> <span class="s2">"</span><span class="s">your-addthis-pubid"</span>
</code></pre></div></div>
<p class="warning">Vous DEVEZ définir la variable “sharing” comme “true” dans le <strong>YAML Front Matter</strong> de la page pour permettre le partage sur cette page</p>
<h2 id="navigation">Navigation</h2>
<p>Il existe deux types de navigation dans TeXt : <strong>Header Navigation</strong> et <strong>Sidebar Navigation</strong>, toutes deux définies dans <em>data/navigation.yml</em>.</p>
<!--more-->
<h3 id="header-navigation">Header Navigation</h3>
<p>La navigation dans len-tête est définie sous la clé “header” dans <em>data/navigation.yml</em>, cest un tableau de titre(s) et durl :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">header</span><span class="pi">:</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Docs</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/docs/en/quick-start</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">文档</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/docs/zh/quick-start</span>
<span class="pi">-</span> <span class="na">titles</span><span class="pi">:</span>
<span class="na">en</span><span class="pi">:</span> <span class="s">Archive</span>
<span class="na">zh</span><span class="pi">:</span> <span class="s">归档</span>
<span class="na">zh-Hans</span><span class="pi">:</span> <span class="s">归档</span>
<span class="na">zh-Hant</span><span class="pi">:</span> <span class="s">歸檔</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/archive.html</span>
<span class="pi">-</span> <span class="na">titles</span><span class="pi">:</span>
<span class="na">en</span><span class="pi">:</span> <span class="s">About</span>
<span class="na">zh</span><span class="pi">:</span> <span class="s">关于</span>
<span class="na">zh-Hans</span><span class="pi">:</span> <span class="s">关于</span>
<span class="na">zh-Hant</span><span class="pi">:</span> <span class="s">關於</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/about.html</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">GitHub</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">https://github.com/kitian616/jekyll-TeXt-theme</span>
</code></pre></div></div>
<p>Vous pouvez utiliser des <code class="language-plaintext highlighter-rouge">titles</code> pour un nom multilingue.</p>
<h3 id="sidebar-navigation">Sidebar Navigation</h3>
<p>Pour utiliser la navigation latérale, vous devez dabord définir une navigation dans <em>data/navigation.yml</em>.</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">docs-en</span><span class="pi">:</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Start</span>
<span class="na">children</span><span class="pi">:</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Quick Start</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/docs/en/quick-start</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Structure</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/docs/en/structure</span>
<span class="s">...</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Customization</span>
<span class="na">children</span><span class="pi">:</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Configuration</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/docs/en/configuration</span>
<span class="pi">-</span> <span class="na">title</span><span class="pi">:</span> <span class="s">Navigation</span>
<span class="na">url</span><span class="pi">:</span> <span class="s">/docs/en/navigation</span>
<span class="s">...</span>
</code></pre></div></div>
<p>Ensuite, utilisez la navigation définie comme navigation latérale de larticle dans le Front Matter :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">sidebar</span><span class="pi">:</span>
<span class="na">nav</span><span class="pi">:</span> <span class="s">docs-en</span>
</code></pre></div></div>
<h2 id="layout">Layout</h2>
<pre><code class="language-mermaid">graph TB;
NONE[none]
BASE[base]
PAGE[page]
ARTICLE[article]
ARTICLES[articles]
HOME[home]
ARCHIVE[archive]
LANDING[landing]
404[404]
NONE--&gt;BASE;
BASE--&gt;PAGE;
PAGE--&gt;ARTICLE;
PAGE--&gt;ARTICLES;
ARTICLES--&gt;HOME;
PAGE--&gt;ARCHIVE;
PAGE--&gt;LANDING;
PAGE--&gt;404;
</code></pre>
<h3 id="mise-en-page">Mise en page</h3>
<p>Base sur le schéma de base.</p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
<th>Minimum Version</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>mode</strong></td>
<td>normal (default), immersive</td>
<td>mode of the page.</td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>type</strong></td>
<td>webpage (default), article</td>
<td>type of the page, used by <a href="https://schema.org/">schema.org</a> markup.</td>
<td> </td>
</tr>
<tr>
<td><strong>key</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>Unique key for the post, required by Comments and Pageview. begin with a letter (<code class="language-plaintext highlighter-rouge">[A-Za-z]</code>) and may be followed by any number of letters, digits (<code class="language-plaintext highlighter-rouge">[0-9]</code>), hyphens (<code class="language-plaintext highlighter-rouge">-</code>), underscores (<code class="language-plaintext highlighter-rouge">_</code>), colons (<code class="language-plaintext highlighter-rouge">:</code>), and periods (<code class="language-plaintext highlighter-rouge">.</code>).</td>
<td> </td>
</tr>
<tr>
<td><strong>lang</strong></td>
<td>en (default), zh, zh-Hans, zh-Hant</td>
<td>Language of this page.</td>
<td> </td>
</tr>
<tr>
<td><strong>show_title</strong></td>
<td>true (default), false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">false</code> to hide title on this page.</td>
<td> </td>
</tr>
<tr>
<td><strong>show_date</strong></td>
<td>true (default), false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">false</code> to hide date on this page.</td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>show_tags</strong></td>
<td>true (default), false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">false</code> to hide tags on this page.</td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>full_width</strong></td>
<td>true, false (default)</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to make main full width on this page.</td>
<td> </td>
</tr>
<tr>
<td><strong>pageview</strong></td>
<td>true, false (default)</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to enable pageview on this page.</td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>comment</strong></td>
<td>true (default), false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">false</code> to disable comment on this page.</td>
<td> </td>
</tr>
<tr>
<td><strong>mermaid</strong></td>
<td>true, false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to enable Mermaid on this page.</td>
<td> </td>
</tr>
<tr>
<td><strong>chart</strong></td>
<td>true, false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to enable Chart on this page.</td>
<td> </td>
</tr>
<tr>
<td><strong>cover</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>Url of the cover image.</td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>header</strong></td>
<td>false, <code class="language-plaintext highlighter-rouge">!!map</code></td>
<td>Set as <code class="language-plaintext highlighter-rouge">false</code> to hide header on this page.</td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>article_header</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td> </td>
<td>2.2.0</td>
</tr>
<tr>
<td><strong>aside</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>sidebar</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>footer</strong></td>
<td>false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">false</code> to hide footer on this page.</td>
<td>2.2.3</td>
</tr>
<tr>
<td><strong>lightbox</strong></td>
<td>true, false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to enable lightbox (modal image gallery) for large images on this page, you can set <code class="language-plaintext highlighter-rouge">lightbox-ignore</code> class name to ignore the certain image.</td>
<td>2.2.4</td>
</tr>
</tbody>
</table>
<p><strong>header</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>theme</strong></td>
<td>light, dark</td>
<td> </td>
</tr>
<tr>
<td><strong>background</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>Available when specified theme.</td>
</tr>
</tbody>
</table>
<p><strong>article_header</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>type</strong></td>
<td>overlay, cover</td>
<td> </td>
</tr>
<tr>
<td><strong>align</strong></td>
<td>left (default), center</td>
<td> </td>
</tr>
<tr>
<td><strong>theme</strong></td>
<td>light (default), dark</td>
<td> </td>
</tr>
<tr>
<td><strong>background_color</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">overlay</code>. If set to a dark color, you need set theme as dark.</td>
</tr>
<tr>
<td><strong>background_image</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">overlay</code>, set as <code class="language-plaintext highlighter-rouge">false</code> can overwrite <code class="language-plaintext highlighter-rouge">cover</code> to disable background image.</td>
</tr>
<tr>
<td><strong>image</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">cover</code>.</td>
</tr>
<tr>
<td><strong>actions</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!seq</code></td>
<td> </td>
</tr>
</tbody>
</table>
<p><strong>article_header.background_image</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>gradient</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td> </td>
</tr>
<tr>
<td><strong>src</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>Default to <code class="language-plaintext highlighter-rouge">cover</code></td>
</tr>
</tbody>
</table>
<p><strong>article_header.image</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>src</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td> </td>
</tr>
</tbody>
</table>
<p><strong>aside</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>toc</strong></td>
<td>true, false</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to enable TOC on this pages aside.</td>
</tr>
</tbody>
</table>
<p><strong>sidebar</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>nav</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td> </td>
</tr>
</tbody>
</table>
<h3 id="article-layout">Article Layout</h3>
<p>Basé sur Page Layout.</p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
<th>Minimum Version</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>modify_date</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>The last modified date of this article, the date is modified in the format <code class="language-plaintext highlighter-rouge">YYYY-MM-DD HH:MM:SS +/-TTTT</code>; hours, minutes, seconds, and timezone offset are optional. just like <code class="language-plaintext highlighter-rouge">date</code> variable.</td>
<td> </td>
</tr>
<tr>
<td><strong>sharing</strong></td>
<td>true, false (default)</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to enable Sharing on this article.</td>
<td>2.2.2</td>
</tr>
<tr>
<td><strong>show_author_profile</strong></td>
<td>true, false (default)</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to show author profile at the beginning of the article.</td>
<td> </td>
</tr>
<tr>
<td><strong>show_subscribe</strong></td>
<td>true, false (default)</td>
<td>Set as <code class="language-plaintext highlighter-rouge">true</code> to show subscribe info on this page.</td>
<td>latest</td>
</tr>
<tr>
<td><strong>license</strong></td>
<td>true, false (default), CC-BY-4.0, CC-BY-SA-4.0, CC-BY-NC-4.0, CC-BY-ND-4.0</td>
<td>license of the article. Set true to use <code class="language-plaintext highlighter-rouge">license</code> variable that set in <em>_config.yml</em>, set false to enable it.</td>
<td> </td>
</tr>
</tbody>
</table>
<p><strong>Articles Layout</strong></p>
<p>Basé sur Page Layout, valable depuis version <strong>2.2.0</strong>.</p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>articles</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td> </td>
</tr>
</tbody>
</table>
<p><strong>articles</strong></p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>data_source</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!str</code></td>
<td>You can set it as a collections name, then the page will show the article list of this collections. You can refer to <a href="https://jekyllrb.com/docs/collections/">Collections</a> to learn more about collections.</td>
</tr>
<tr>
<td><strong>type</strong></td>
<td>item, brief, grid</td>
<td>TeXt supports 3 article list type with various settings, yan can find EXEMPLES <a href="https://tianqi.name/jekyll-TeXt-theme/samples.html#articles-layout">ICI</a>.</td>
</tr>
<tr>
<td><strong>size</strong></td>
<td>md, sm</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">grid</code>.</td>
</tr>
<tr>
<td><strong>article_type</strong></td>
<td>BlogPosting</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code>.</td>
</tr>
<tr>
<td><strong>show_cover</strong></td>
<td>true (default), false</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code>. Before set it to <code class="language-plaintext highlighter-rouge">true</code>, you need first set each article a cover image, refer to the <code class="language-plaintext highlighter-rouge">cover</code> variable in <a href="#page-layout">Page Layout</a>.</td>
</tr>
<tr>
<td><strong>cover_size</strong></td>
<td>lg, md, sm</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code>.</td>
</tr>
<tr>
<td><strong>show_excerpt</strong></td>
<td>true, false (default)</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code>, refer to <a href="#excerpt_type">excerpt_type</a> below.</td>
</tr>
<tr>
<td><strong>excerpt_type</strong></td>
<td>text, html</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code>.</td>
</tr>
<tr>
<td><strong>show_readmore</strong></td>
<td>true, false (default)</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code>.</td>
</tr>
<tr>
<td><strong>show_info</strong></td>
<td>true, false (default)</td>
<td>Available when type is <code class="language-plaintext highlighter-rouge">normal</code> or <code class="language-plaintext highlighter-rouge">brief</code>.</td>
</tr>
</tbody>
</table>
<p><strong>articles.excerpt_type</strong></p>
<p>Chaque message prend automatiquement le premier bloc de texte, du début du contenu à la première occurrence de <code class="language-plaintext highlighter-rouge">excerpt_separator</code>, et le définit comme lextrait du message.</p>
<p>Lextrait est affiché dans la liste des articles dans les articles et la mise en page daccueil. Il existe deux types dextrait, le type texte et le type html.</p>
<table>
<thead>
<tr>
<th>Type Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>text</strong></td>
<td>lextrait est un texte simple qui filtre tous les éléments non textuels (tels que le titre, le lien, la liste, le tableau, limage, etc.) et ne comporte que 350 caractères au maximum.</td>
</tr>
<tr>
<td><strong>html</strong></td>
<td>lextrait est un document HTML tout comme le contenu de larticle, Cela affichera tout le contenu par défaut, sauf lajout de <code class="language-plaintext highlighter-rouge">&lt;!--more--&gt;</code> dans le fichier Markdown de larticle, Vous pouvez trouver plus dinformations <a href="https://jekyllrb.com/docs/posts/#post-excerpts">ICI</a>.</td>
</tr>
</tbody>
</table>
<p>Pour la page daccueil, vous pouvez mettre <code class="language-plaintext highlighter-rouge">excerpt_type</code> à <code class="language-plaintext highlighter-rouge">HTML</code> comme ceci :</p>
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">layout</span><span class="pi">:</span> <span class="s">home</span>
<span class="na">articles</span><span class="pi">:</span>
<span class="na">excerpt_type</span><span class="pi">:</span> <span class="s">html</span>
</code></pre></div></div>
<h3 id="home-layout">Home Layout</h3>
<p>Basé sur Articles Layout.</p>
<h3 id="archive-layout">Archive Layout</h3>
<p>Basé sur Page Layout.</p>
<h3 id="landing-layout">Landing Layout</h3>
<p>Basé sur Page Layout.</p>
<table>
<thead>
<tr>
<th>Variable</th>
<th>Option Values</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>data</strong></td>
<td><code class="language-plaintext highlighter-rouge">!!map</code></td>
<td> </td>
</tr>
</tbody>
</table>
<h3 id="404-layout">404 Layout</h3>
<p>Basé surPage Layout.</p>
<h2 id="logo-et-favicon">Logo et Favicon</h2>
<h3 id="logo">Logo</h3>
<p>TeXt <span><svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="478.9473684210526" viewBox="0, 0, 400,478.9473684210526"><g id="svgg"><path id="path0" d="M308.400 56.805 C 306.970 56.966,303.280 57.385,300.200 57.738 C 290.906 58.803,278.299 59.676,269.200 59.887 L 260.600 60.085 259.400 61.171 C 258.010 62.428,256.198 63.600,255.645 63.600 C 255.070 63.600,252.887 65.897,252.598 66.806 C 252.460 67.243,252.206 67.600,252.034 67.600 C 251.397 67.600,247.206 71.509,247.202 72.107 C 247.201 72.275,246.390 73.190,245.400 74.138 C 243.961 75.517,243.598 76.137,243.592 77.231 C 243.579 79.293,241.785 83.966,240.470 85.364 C 239.176 86.740,238.522 88.365,237.991 91.521 C 237.631 93.665,236.114 97.200,235.554 97.200 C 234.938 97.200,232.737 102.354,232.450 104.472 C 232.158 106.625,230.879 109.226,229.535 110.400 C 228.933 110.926,228.171 113.162,226.434 119.500 C 226.178 120.435,225.795 121.200,225.584 121.200 C 225.373 121.200,225.200 121.476,225.200 121.813 C 225.200 122.149,224.885 122.541,224.500 122.683 C 223.606 123.013,223.214 123.593,223.204 124.600 C 223.183 126.555,220.763 132.911,219.410 134.562 C 218.443 135.742,217.876 136.956,217.599 138.440 C 217.041 141.424,215.177 146.434,214.532 146.681 C 214.240 146.794,214.000 147.055,214.000 147.261 C 214.000 147.467,213.550 148.086,213.000 148.636 C 212.450 149.186,212.000 149.893,212.000 150.208 C 212.000 151.386,208.441 154.450,207.597 153.998 C 206.319 153.315,204.913 150.379,204.633 147.811 C 204.365 145.357,202.848 142.147,201.759 141.729 C 200.967 141.425,199.200 137.451,199.200 135.974 C 199.200 134.629,198.435 133.224,196.660 131.311 C 195.363 129.913,194.572 128.123,193.870 125.000 C 193.623 123.900,193.236 122.793,193.010 122.540 C 190.863 120.133,190.147 118.880,188.978 115.481 C 188.100 112.928,187.151 111.003,186.254 109.955 C 185.358 108.908,184.518 107.204,183.847 105.073 C 183.280 103.273,182.497 101.329,182.108 100.753 C 181.719 100.177,180.904 98.997,180.298 98.131 C 179.693 97.265,178.939 95.576,178.624 94.378 C 178.041 92.159,177.125 90.326,175.023 87.168 C 174.375 86.196,173.619 84.539,173.342 83.486 C 172.800 81.429,171.529 79.567,170.131 78.785 C 169.654 78.517,168.697 77.511,168.006 76.549 C 167.316 75.587,166.594 74.800,166.402 74.800 C 166.210 74.800,164.869 73.633,163.421 72.206 C 160.103 68.936,161.107 69.109,146.550 69.301 C 133.437 69.474,128.581 70.162,126.618 72.124 C 126.248 72.495,125.462 72.904,124.872 73.033 C 124.282 73.163,123.088 73.536,122.219 73.863 C 121.349 74.191,119.028 74.638,117.061 74.858 C 113.514 75.254,109.970 76.350,108.782 77.419 C 107.652 78.436,100.146 80.400,97.388 80.400 C 95.775 80.400,93.167 81.360,91.200 82.679 C 90.430 83.195,89.113 83.804,88.274 84.031 C 85.875 84.681,78.799 90.910,74.400 96.243 L 73.400 97.456 73.455 106.028 C 73.526 117.055,74.527 121.238,77.820 124.263 C 78.919 125.273,80.400 127.902,80.400 128.842 C 80.400 129.202,81.075 130.256,81.900 131.186 C 83.563 133.059,85.497 136.346,86.039 138.216 C 86.233 138.886,87.203 140.207,88.196 141.153 C 89.188 142.098,90.000 143.104,90.000 143.388 C 90.000 144.337,92.129 148.594,92.869 149.123 C 93.271 149.410,93.600 149.831,93.600 150.059 C 93.600 150.286,93.932 150.771,94.337 151.136 C 94.743 151.501,95.598 153.004,96.237 154.475 C 96.877 155.947,97.760 157.351,98.200 157.596 C 98.640 157.841,99.900 159.943,101.000 162.267 C 102.207 164.817,103.327 166.644,103.825 166.876 C 104.278 167.087,105.065 168.101,105.573 169.130 C 107.658 173.348,108.097 174.093,110.006 176.647 C 111.103 178.114,112.000 179.725,112.000 180.227 C 112.000 181.048,113.425 183.163,114.678 184.200 C 115.295 184.711,117.396 188.733,117.720 190.022 C 117.855 190.562,118.603 191.633,119.381 192.402 C 120.160 193.171,121.496 195.258,122.351 197.039 C 123.206 198.820,124.167 200.378,124.487 200.501 C 124.807 200.624,125.953 202.496,127.034 204.662 C 128.114 206.828,129.676 209.299,130.505 210.153 C 131.333 211.007,132.124 212.177,132.262 212.753 C 132.618 214.239,134.291 217.048,136.288 219.516 C 137.230 220.679,
<h3 id="favicon">Favicon</h3>
<p>TeXt recommande <a href="https://realfavicongenerator.net/">RealFaviconGenerator</a> pour générer des favicons.</p>
<p>Ouvrez <a href="https://realfavicongenerator.net/">RealFaviconGenerator</a>, cliquez sur “Select your Favicon picture” et choisissez ensuite votre image de favicon.</p>
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-select-favicon-picture.jpg" alt="Sélectionnez votre image Favicon" /></p>
<p>Après les réglages, vous devez indiquer au générateur où vous placerez les fichiers favicon, TeXt les met par défaut à <em>/actifs</em>.</p>
<p class="warning">Il est recommandé de placer les fichiers favicon à la racine de votre site.</p>
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-path.jpg" alt="Sélectionnez votre chemin Favicon" /></p>
<p>Si tout est fait, il suffit de cliquer sur “Générez vos Favicons et votre code HTML” à la dernière étape.</p>
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-result.jpg" alt="Résultat" /></p>
<p>Téléchargez le paquet favicon et dézippez-le dans le chemin que vous venez de définir, et remplacez le code HTML dans <em>_includes/head/favicon.html</em>.</p>
<h2 id="auteurs">Auteurs</h2>
<p>Par défaut, tous les messages ou pages sont rédigés par l“auteur” configuré dans <em>_config.yml</em>, mais vous pouvez lécraser dans le YAML Front Mater de la page.</p>
<p>Pour ce faire, vous devez créer <em>_data/authors.yml</em> et ajouter des auteurs en utilisant le format suivant. Toutes les variables se trouvant sous “auteur” dans <em>_config.yml</em> peuvent être utilisées (type, nom, url, avatar, bio, email, facebook, etc.).</p>
<div class="language-yml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">Tian Qi</span><span class="pi">:</span>
<span class="na">name </span><span class="pi">:</span> <span class="s">Tian Qi</span>
<span class="na">url </span><span class="pi">:</span> <span class="s">https://tianqi.name</span>
<span class="na">avatar </span><span class="pi">:</span> <span class="s">https://wx3.sinaimg.cn/large/73bd9e13ly1fjkqy66hl8j208c08c0td.jpg</span>
<span class="na">bio </span><span class="pi">:</span> <span class="s">Author of TeXt.</span>
<span class="na">email </span><span class="pi">:</span> <span class="s">kitian616@outlook.com</span>
<span class="na">facebook </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name</span>
<span class="na">twitter </span><span class="pi">:</span> <span class="s">kitian616</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://twitter.com/user_name</span>
<span class="na">weibo </span><span class="pi">:</span> <span class="m">234695683</span> <span class="c1"># "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?...</span>
<span class="na">googleplus</span><span class="pi">:</span> <span class="m">101827554735084402671</span> <span class="c1"># "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id</span>
<span class="na">telegram </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://t.me/user_name</span>
<span class="na">medium </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://medium.com/user_name</span>
<span class="na">zhihu </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://www.zhihu.com/people/user_name</span>
<span class="na">douban </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://www.douban.com/people/user_name</span>
<span class="na">linkedin </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://www.linkedin.com/in/user_name</span>
<span class="na">github </span><span class="pi">:</span> <span class="s">kitian616</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://github.com/user_name</span>
<span class="na">npm </span><span class="pi">:</span> <span class="c1"># "user_name" the last part of your profile url, e.g. https://www.npmjs.com/~user_name</span>
</code></pre></div></div>
<p>Assignez un des auteurs dans <em>authors.yml</em> à un message ou une page que vous souhaitez remplacer par <code class="language-plaintext highlighter-rouge">site.author</code>.</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>---
author: Yann M
---
</code></pre></div></div>
<h2 id="internationalisation">Internationalisation</h2>
<p>Les textes des éléments de linterface utilisateur sont regroupés sous forme dun ensemble de clés de traduction dans <em>_data/locale.yml</em>, ce qui permet à TeXt de prendre facilement en charge différentes langues.</p>
<p>En utilisant les <code class="language-plaintext highlighter-rouge">titres</code>, vous pouvez définir un nom multilingue pour la page, la mise en page et le titre du navigateur. Par défaut, TeXt a défini un nom multilingue dans <em>_data/navigation</em>, <em>_layouts/archive</em>, <em>_layouts/home</em> et <em>about.md</em>.</p>
<!-- more -->
<p>Les clés de traduction et les noms multilingues mentionnés ci-dessus prennent en charge les langues suivantes :
<!-- @start locale config --></p>
<table>
<thead>
<tr>
<th>Language</th>
<th><code class="language-plaintext highlighter-rouge">lang</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>English</strong></td>
<td>en, en-GB, en-US, en-CA, en-AU</td>
</tr>
<tr>
<td><strong>French</strong></td>
<td>fr, fr-BE, fr-CA, fr-CH, fr-FR, fr-LU</td>
</tr>
</tbody>
</table>
<!-- @end locale config -->
<p>Vous pouvez voir des exemples pour différentes langues <a href="https://tianqi.name/jekyll-TeXt-theme/samples.html#languages">ICI</a>.</p>
<h2 id="rédaction-des-messages">Rédaction des messages</h2>
<p>Comme expliqué sur la page <a href="https://jekyllrb.com/docs/structure/">structure des répertoires</a>, <strong>le dossier <em>/_posts</em> est lendroit où se trouvent les articles de votre blog</strong>. Ces fichiers sont généralement Markdown ou HTML. Tous les articles doivent avoir le format YAML Front Matter, et ils seront convertis de leur format source en une page HTML qui fait partie de votre site statique.</p>
<!--more-->
<h3 id="création-de-fichiers-de-poste">Création de fichiers de poste</h3>
<p>Pour créer un nouveau poste, il suffit de créer un fichier dans le répertoire <em>/_posts</em>. Jekyll exige que les fichiers de messages de blog soient nommés comme ceux-ci :</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>2011-12-31-new-years-eve-is-awesome.md
2012-09-12-how-to-write-a-blog.markdown
</code></pre></div></div>
<p><strong>Contenu</strong></p>
<p>Tous les fichiers darticles de blog doivent commencer par YAML Front Matter.</p>
<p>Afin daméliorer lexpérience de lutilisateur tant pour la lecture que pour lécriture des billets, TeXt a apporté quelques améliorations pour la démarque et quelques styles supplémentaires.</p>
<p><strong>YAML Front Matter</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>---
layout: article
title: Document - Writing Posts
---
</code></pre></div></div>
<p>Entre ces lignes à triple pointillés, vous pouvez définir des variables. Vous pouvez considérer cela comme une configuration de page, celles-ci remplaceraient la configuration globale dans <em>_config.yml</em>.</p>
<p>En plus des variables prédéfinies par Jekyll, TeXt définit de nouvelles variables pour chaque mise en page, voir <a href="#layout">Layout</a> pour plus de détails.</p>
<h2 id="chart">Chart</h2>
<p><a href="http://www.chartjs.org/docs/latest/">Chart.js</a> supporte 7 sortes of graphique:</p>
<ul>
<li><a href="http://www.chartjs.org/docs/latest/charts/line.html">Line Chart</a></li>
<li><a href="http://www.chartjs.org/docs/latest/charts/bar.html">Bar Chart</a></li>
<li><a href="http://www.chartjs.org/docs/latest/charts/radar.html">Radar Chart</a></li>
<li><a href="http://www.chartjs.org/latest/charts/polar.html">Polar Area Chart</a></li>
<li><a href="http://www.chartjs.org/docs/latest/charts/doughnut.html">Pie Chart</a></li>
<li><a href="http://www.chartjs.org/docs/latest/charts/doughnut.html">Doughnut Chart</a></li>
<li><a href="http://www.chartjs.org/docs/latest/charts/bubble.html">Bubble Chart</a></li>
</ul>
<h2 id="autres-styles">Autres styles</h2>
2024-11-21 17:20:33 +01:00
<p>Jekyll utilise kramdown comme processeur de démarque par défaut. kramdown peut ajouter des attributs aux éléments de niveau bloc et span thgird-containre ALDs <sup id="fnref:ALDs"><a href="#fn:ALDs" class="footnote" rel="footnote" role="doc-noteref">7</a></sup> feature. avec laide des ALD, nous pouvons définir les noms de classe dun élément par <code class="language-plaintext highlighter-rouge">{ :.class-name1.class-name-2}</code>.</p>
2024-10-31 20:18:37 +01:00
<h3 id="alerte">Alerte</h3>
<table>
<thead>
<tr>
<th>Class Names</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>success</strong></td>
</tr>
<tr>
<td><strong>info</strong></td>
</tr>
<tr>
<td><strong>warning</strong></td>
</tr>
<tr>
<td><strong>error</strong></td>
</tr>
</tbody>
</table>
<p class="success">Success Text.</p>
<p class="info">Info Text.</p>
<p class="warning">Warning Text.</p>
<p class="error">Error Text.</p>
<p><strong>markdown:</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Success Text.
{:.success}
</code></pre></div></div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Info Text.
{:.info}
</code></pre></div></div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Warning Text.
{:.warning}
</code></pre></div></div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Error Text.
{:.error}
</code></pre></div></div>
<h3 id="tag">Tag</h3>
<table>
<thead>
<tr>
<th>Class Names</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>success</strong></td>
</tr>
<tr>
<td><strong>info</strong></td>
</tr>
<tr>
<td><strong>warning</strong></td>
</tr>
<tr>
<td><strong>error</strong></td>
</tr>
</tbody>
</table>
<p><code class="language-plaintext success highlighter-rouge">success</code></p>
<p><code class="language-plaintext info highlighter-rouge">info</code></p>
<p><code class="language-plaintext warning highlighter-rouge">warning</code></p>
<p><code class="language-plaintext error highlighter-rouge">error</code></p>
<p><strong>markdown:</strong></p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>`success`{:.success}
</code></pre></div></div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>`info`{:.info}
</code></pre></div></div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>`warning`{:.warning}
</code></pre></div></div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>`error`{:.error}
</code></pre></div></div>
<h3 id="image">Image</h3>
<table>
<thead>
<tr>
<th>Class Names</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>border</strong></td>
</tr>
<tr>
<td><strong>shadow</strong></td>
</tr>
<tr>
<td><strong>rounded</strong></td>
</tr>
<tr>
<td><strong>circle</strong></td>
</tr>
</tbody>
</table>
<p><strong>Border</strong></p>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_border" class="border" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.border}
</code></pre></div> </div>
</div>
</div>
</div>
<p><strong>Shadow</strong></p>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_shadow" class="shadow" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.shadow}
</code></pre></div> </div>
</div>
</div>
</div>
<p><strong>Rounded</strong></p>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_rounded" class="rounded" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.rounded}
</code></pre></div> </div>
</div>
</div>
</div>
<p><strong>Circle</strong></p>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_circle" class="circle" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.circle}
</code></pre></div> </div>
</div>
</div>
</div>
<p><strong>Mixture</strong></p>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_border+rounded" class="border rounded" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.border.rounded}
</code></pre></div> </div>
</div>
</div>
</div>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_circle+shadow" class="circle shadow" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.circle.shadow}
</code></pre></div> </div>
</div>
</div>
</div>
<div class="grid-containre">
<div class="grid grid--p-2">
<div class="cell cell--12 cell--md-4 ">
<p><img src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" alt="Image" title="Image_circle+border+shadow" class="circle border shadow" /></p>
</div>
<div class="cell cell--12 cell--md-auto">
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>![Image](path-to-image){:.circle.border.shadow}
</code></pre></div> </div>
</div>
</div>
</div>
<h2 id="spacing">Spacing</h2>
<p>Spacing classes are named using the format <code class="language-plaintext highlighter-rouge">{property}{side}-{spacer}</code>.</p>
<p>where <em>property</em> is one of:</p>
<ul>
<li><code class="language-plaintext highlighter-rouge">m</code> - for classes that set <code class="language-plaintext highlighter-rouge">margin</code></li>
<li><code class="language-plaintext highlighter-rouge">p</code> - for classes that set <code class="language-plaintext highlighter-rouge">padding</code></li>
</ul>
<p>where <em>side</em> is one of:</p>
<ul>
<li><code class="language-plaintext highlighter-rouge">t</code> - for classes that set <code class="language-plaintext highlighter-rouge">margin-top</code> or <code class="language-plaintext highlighter-rouge">padding-top</code></li>
<li><code class="language-plaintext highlighter-rouge">b</code> - for classes that set <code class="language-plaintext highlighter-rouge">margin-bottom</code> or <code class="language-plaintext highlighter-rouge">padding-bottom</code></li>
<li><code class="language-plaintext highlighter-rouge">l</code> - for classes that set <code class="language-plaintext highlighter-rouge">margin-left</code> or <code class="language-plaintext highlighter-rouge">padding-left</code></li>
<li><code class="language-plaintext highlighter-rouge">r</code> - for classes that set <code class="language-plaintext highlighter-rouge">margin-right</code> or <code class="language-plaintext highlighter-rouge">padding-right</code></li>
<li><code class="language-plaintext highlighter-rouge">x</code> - for classes that set both <code class="language-plaintext highlighter-rouge">*-left</code> and <code class="language-plaintext highlighter-rouge">*-right</code></li>
<li><code class="language-plaintext highlighter-rouge">y</code> - for classes that set both <code class="language-plaintext highlighter-rouge">*-top</code> and <code class="language-plaintext highlighter-rouge">*-bottom</code></li>
</ul>
<p>blank - for classes that set a <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> on all 4 sides of the element</p>
<p>where <em>spacer</em> is one of:</p>
<ul>
<li>0 - for classes that eliminate the <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> by setting it to <code class="language-plaintext highlighter-rouge">0</code></li>
<li>1 - for classes that set the <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> to <code class="language-plaintext highlighter-rouge">$spacer * .25</code></li>
<li>2 - for classes that set the <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> to <code class="language-plaintext highlighter-rouge">$spacer * .5</code></li>
<li>3 - for classes that set the <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> to <code class="language-plaintext highlighter-rouge">$spacer</code></li>
<li>4 - for classes that set the <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> to <code class="language-plaintext highlighter-rouge">$spacer * 1.5</code></li>
<li>5 - for classes that set the <code class="language-plaintext highlighter-rouge">margin</code> or <code class="language-plaintext highlighter-rouge">padding</code> to <code class="language-plaintext highlighter-rouge">$spacer * 3</code></li>
<li>auto - for classes that set the <code class="language-plaintext highlighter-rouge">margin</code> to <code class="language-plaintext highlighter-rouge">auto</code></li>
</ul>
<p><code class="language-plaintext highlighter-rouge">$spacer</code> is default to <code class="language-plaintext highlighter-rouge">1rem</code>, you can change or add new entries to the <code class="language-plaintext highlighter-rouge">$spacers</code> Sass map variable.</p>
<h3 id="exemples">EXEMPLES</h3>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mt-2"</span><span class="nt">&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">style=</span><span class="s">"margin-top: ($spacer * .5)"</span><span class="nt">&gt;&lt;/div&gt;</span>
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mx-3"</span><span class="nt">&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"margin-left: $spacer; margin-right: $spacer;"</span><span class="nt">&gt;&lt;/div&gt;</span>
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"p-4"</span><span class="nt">&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"padding: ($spacer * 1.5);"</span><span class="nt">&gt;&lt;/div&gt;</span>
</code></pre></div></div>
<h2 id="grid">Grid</h2>
<style>
.grid-example {
background-color: rgba(37, 147, 252, .28);
}
.content {
padding: 5px 0;
overflow: auto;
color: #fff;
word-wrap: normal;
background-color: #2593fc;
border: 1px rgba(0, 0, 0, .4) solid;
}
.content--auto {
background-color: #ff69b4;
}
</style>
<h3 id="base">Base</h3>
<div class="grid-example my-5">
<div class="grid">
<div class="cell cell--6 content">6 cells</div>
<div class="cell cell--2 content">2 cells</div>
<div class="cell cell--4 content">4 cells</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;</span>6 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--2"</span><span class="nt">&gt;</span>2 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--4"</span><span class="nt">&gt;</span>4 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="responsive">Responsive</h3>
<div class="grid-example my-5">
<div class="grid">
<div class="cell cell--12 cell--lg-6 content">12/12/6 cells</div>
<div class="cell cell--12 cell--md-4 cell--lg-2 content">12/4/2 cells</div>
<div class="cell cell--12 cell--md-8 cell--lg-4 content">12/8/4 cells</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--12 cell--lg-6 content"</span><span class="nt">&gt;</span>12/12/6 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--12 cell--md-4 cell--lg-2 content"</span><span class="nt">&gt;</span>12/4/2 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--12 cell--md-8 cell--lg-4 content"</span><span class="nt">&gt;</span>12/8/4 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="auto-sizing">Auto Sizing</h3>
<div class="grid-example my-5">
<div class="grid">
<div class="cell cell--2 content">2 cells</div>
<div class="cell cell--auto content content--auto">Whatever's left!</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--2"</span><span class="nt">&gt;</span>2 cells<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--auto"</span><span class="nt">&gt;</span>whatever's left!<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="grid-example my-5">
<div class="grid">
<div class="cell cell--shrink content">shrink</div>
<div class="cell cell--auto content content--auto">expand</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--shrink"</span><span class="nt">&gt;</span>shrink<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--auto"</span><span class="nt">&gt;</span>expand<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="gutters">Gutters</h3>
<div class="grid-container my-5 grid-example">
<div class="grid grid--p-3">
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid-container"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid grid--p-3"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="grid-container my-5 grid-example">
<div class="grid grid--px-3">
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid-container"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid grid--px-3"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="grid-container my-5 grid-example">
<div class="grid grid--py-3">
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
<div class="cell cell--6">
<div class="content">6 cells</div>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid-container"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"grid grid--py-3"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"cell cell--6"</span><span class="nt">&gt;&lt;div&gt;</span>6 cells<span class="nt">&lt;/div&gt;&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="overflow">Overflow</h3>
<div class="grid-example my-5">
<div class="grid">
<div class="cell cell--6">
<div class="content">loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</div>
</div>
<div class="cell cell--6">
<div class="content">loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</div>
</div>
</div>
</div>
<div class="grid-example my-5">
<div class="grid">
<div class="cell cell--4">
<div class="content">loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</div>
</div>
<div class="cell cell--auto">
<div class="content content--auto">loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</div>
</div>
</div>
</div>
<div class="grid-example grid-container my-5">
<div class="grid grid--p-3">
<div class="cell cell--6">
<div class="content">loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</div>
</div>
<div class="cell cell--6">
<div class="content">loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong</div>
</div>
</div>
</div>
<h2 id="icons">Icons</h2>
<p>TeXt uses Font Awesome for icons, you can search available icon code snippet <a href="https://fontawesome.com/icons?d=gallery&amp;q=donw&amp;m=free">ICI</a>.</p>
<p><i class="fas fa-download"></i></p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fas fa-download"</span><span class="nt">&gt;&lt;/i&gt;</span>
</code></pre></div></div>
<div class="button button--success button--rounded button--lg"><i class="fas fa-download"></i> Download TeXt Theme</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--success button--rounded button--lg"</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">&gt;&lt;i</span> <span class="na">class=</span><span class="s">"fas fa-download"</span><span class="nt">&gt;&lt;/i&gt;</span> Download TeXt Theme<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<h2 id="image-1">Image</h2>
<table>
<thead>
<tr>
<th>Type</th>
<th>Class Names</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>base</strong></td>
<td>image</td>
</tr>
<tr>
<td><strong>size</strong></td>
<td>image--md (default), image--xs, image--sm, image--lg, image--xl</td>
</tr>
</tbody>
</table>
<h3 id="size">Size</h3>
<p><strong>Extreme Small</strong></p>
<p><img class="image image--xs" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" /></p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--xs"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
</code></pre></div></div>
<p><strong>Small</strong></p>
<p><img class="image image--sm" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" /></p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--sm"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
</code></pre></div></div>
<p><strong>Middle</strong></p>
<p><img class="image image--md" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" /></p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--md"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
</code></pre></div></div>
<p><strong>Large</strong></p>
<p><img class="image image--lg" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" /></p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--lg"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
</code></pre></div></div>
<p><strong>Extreme Large</strong></p>
<p><img class="image image--xl" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" /></p>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--xl"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
</code></pre></div></div>
<h2 id="button">Button</h2>
<table>
<thead>
<tr>
<th>Type</th>
<th>Class Names</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>base</strong></td>
<td>button</td>
</tr>
<tr>
<td><strong>type</strong></td>
<td>button--primary, button--secondary, button--success, button--info, button--warning, button--error, button--outline-primary, button--outline-secondary, button--outline-success, button--outline-info, button--outline-warning, button--outline-error</td>
</tr>
<tr>
<td><strong>shape</strong></td>
<td>button--pill, button--rounded, button--circle</td>
</tr>
<tr>
<td><strong>size</strong></td>
<td>button--md (default), button--xs, button--sm, button--lg, button--xl</td>
</tr>
</tbody>
</table>
<h3 id="type">Type</h3>
<p><strong>Primary</strong></p>
<div class="button button--primary button--pill">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--pill}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--pill"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Secondary</strong></p>
<div class="button button--secondary button--pill">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--secondary.button--pill}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--secondary button--pill"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Success</strong></p>
<div class="button button--success button--pill">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--success.button--pill}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--success button--pill"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Outline</strong></p>
<div class="button button--outline-success button--pill">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--outline-success.button--pill}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--outline-success button--pill"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<h3 id="shape">Shape</h3>
<p><strong>Pill</strong></p>
<div class="button button--primary button--pill">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--pill}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--pill"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Rounded</strong></p>
<div class="button button--primary button--rounded">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--rounded}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--rounded"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Circle</strong></p>
<div class="button button--primary button--circle">X</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[X](#){:.button.button--primary.button--circle}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--circle"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>X<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<h3 id="size-1">Size</h3>
<p><strong>Extreme Small</strong></p>
<div class="button button--primary button--rounded button--xs">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--rounded.button--xs}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--rounded button--xs"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Small</strong></p>
<div class="button button--primary button--rounded button--sm">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--rounded.button--sm}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--rounded button--sm"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Middle</strong></p>
<div class="button button--primary button--rounded">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--rounded}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--rounded"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Large</strong></p>
<div class="button button--primary button--rounded button--lg">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--rounded.button--lg}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--rounded button--lg"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<p><strong>Extreme Large</strong></p>
<div class="button button--primary button--rounded button--xl">BUTTON</div>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[BUTTON](#){:.button.button--primary.button--rounded.button--xl}
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">class=</span><span class="s">"button button--primary button--rounded button--xl"</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>BUTTON<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<h2 id="item">Item</h2>
<h3 id="content">Content</h3>
<div class="item">
<div class="item__content">
<div class="item__header">
<h4>Photograph</h4>
</div>
<div class="item__description">
<p>
A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.
</p>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__description"</span><span class="nt">&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="image-and-content">Image and Content</h3>
<div class="item">
<div class="item__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="item__content">
<div class="item__header">
<h4>Photograph</h4>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="item">
<div class="item__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="item__content">
<div class="item__header">
<h4>Photograph</h4>
</div>
<div class="item__description">
<p>
A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.
</p>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__description"</span><span class="nt">&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="image-size">Image Size</h3>
<div class="item">
<div class="item__image">
<img class="image image--xs" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="item__content">
<div class="item__header">
<h4>Photograph</h4>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--xs"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="item">
<div class="item__image">
<img class="image image--sm" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="item__content">
<div class="item__header">
<h4>Photograph</h4>
</div>
<div class="item__description">
<p>
A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.
</p>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--sm"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__description"</span><span class="nt">&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="item">
<div class="item__image">
<img class="image image--lg" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="item__content">
<div class="item__header">
<h4>Photograph</h4>
</div>
<div class="item__description">
<p>
A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.
</p>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image image--lg"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"item__description"</span><span class="nt">&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h2 id="card">Card</h2>
<h3 id="image-2">Image</h3>
<div class="card">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="content-1">Content</h3>
<div class="card">
<div class="card__content">
<div class="card__header">
<h4>Photograph</h4>
</div>
<p>A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.</p>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="image-and-content-1">Image and Content</h3>
<div class="card">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="card__content">
<div class="card__header">
<h4>Photograph</h4>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="card">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="card__content">
<div class="card__header">
<h4>Photograph</h4>
</div>
<p>
A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.
</p>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="image-overlay">Image Overlay</h3>
<div class="card">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
<div class="overlay">
<p>Photograph</p>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"overlay"</span><span class="nt">&gt;</span>
<span class="nt">&lt;p&gt;</span>Photograph<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="card">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
<div class="overlay overlay--bottom">
<p>Photograph</p>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"overlay overlay--bottom"</span><span class="nt">&gt;</span>
<span class="nt">&lt;p&gt;</span>Photograph<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="flat">Flat</h3>
<div class="card card--flat">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
<div class="card__content">
<div class="card__header">
<h4>Photograph</h4>
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card card--flat"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__header"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h4&gt;</span>Photograph<span class="nt">&lt;/h4&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="clickable">Clickable</h3>
<div>
<div class="card card--clickable">
<div class="card__image">
<img class="image" src="https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg" />
</div>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">""</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card card--clickable"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"card__image"</span><span class="nt">&gt;</span>
<span class="nt">&lt;img</span> <span class="na">class=</span><span class="s">"image"</span> <span class="na">src=</span><span class="s">""</span><span class="nt">/&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/a&gt;</span>
</code></pre></div></div>
<h2 id="hero">Hero</h2>
<h3 id="normal">Normal</h3>
<div class="hero hero-example hero-fill-example my-3">
<div class="hero__content">
<h3>Hero</h3>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero"</span> <span class="na">style=</span><span class="s">"background-color: #ccc;"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="center">Center</h3>
<div class="hero hero-example hero--center hero-fill-example my-3">
<div class="hero__content">
<h3>Hero</h3>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--center"</span> <span class="na">style=</span><span class="s">"background-color: #ccc;"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="dark-theme">Dark Theme</h3>
<div class="hero hero-example hero--dark hero-fill-example--dark my-3">
<div class="hero__content">
<h3>Hero</h3>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--dark"</span> <span class="na">style=</span><span class="s">"background-color: #123;"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="background-image">Background Image</h3>
<div class="hero hero-example hero--dark hero-bg-image-example my-3">
<div class="hero__content">
<h3>Hero</h3>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--dark"</span> <span class="na">style=</span><span class="s">'background-image: url("path-to-image");'</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="hero hero-example hero--dark hero-bg-image-example my-3">
<div class="hero__content">
<h3>Hero</h3>
<p>There's a hero, If you look inside your heart,</p>
<p>You don't have to be afraid of what you are.</p>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--dark"</span> <span class="na">style=</span><span class="s">'background-image: url("path-to-image");'</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="height">Height</h3>
<div class="hero hero-example hero--dark hero-bg-image-example hero-example--height my-3">
<div class="hero__content">
<h3>Hero</h3>
<p>There's a hero, If you look inside your heart,</p>
<p>You don't have to be afraid of what you are.</p>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--dark"</span> <span class="na">style=</span><span class="s">'height: 500px; background-image: url("path-to-image");'</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h3 id="background-image--center">Background Image + Center</h3>
<div class="hero hero-example hero--center hero--dark hero-bg-image-example my-3">
<div class="hero__content">
<h3>Hero</h3>
<p>There's a hero, If you look inside your heart,</p>
<p>You don't have to be afraid of what you are.</p>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--center hero--dark"</span> <span class="na">style=</span><span class="s">'background-image: url("path-to-image");'</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="hero hero-example hero--center hero--dark hero-bg-image-example--linear-gradient my-3">
<div class="hero__content">
<h3>Hero</h3>
<p>There's a hero, If you look inside your heart,</p>
<p>You don't have to be afraid of what you are.</p>
</div>
</div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;style&gt;</span>
<span class="nc">.hero-example--linear-gradient</span> <span class="p">{</span>
<span class="nl">background-image</span><span class="p">:</span> <span class="n">linear-gradient</span><span class="p">(</span><span class="m">135deg</span><span class="p">,</span> <span class="n">rgba</span><span class="p">(</span><span class="m">255</span><span class="p">,</span> <span class="m">69</span><span class="p">,</span> <span class="m">0</span><span class="p">,</span> <span class="m">.5</span><span class="p">),</span> <span class="n">rgba</span><span class="p">(</span><span class="m">255</span><span class="p">,</span> <span class="m">197</span><span class="p">,</span> <span class="m">0</span><span class="p">,</span> <span class="m">.2</span><span class="p">)),</span> <span class="sx">url("path-to-image")</span><span class="p">;</span>
<span class="p">}</span>
<span class="nt">&lt;/style&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero hero--center hero--dark hero-example--linear-gradient"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"hero__content"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h3&gt;</span>Hero<span class="nt">&lt;/h3&gt;</span>
<span class="nt">&lt;p&gt;</span>...<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<h2 id="swiper">Swiper</h2>
<style>
.swiper-demo {
height: 220px;
}
.swiper-demo .swiper__slide {
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: #fff;
}
.swiper-demo .swiper__slide:nth-child(even) {
background-color: #ff69b4;
}
.swiper-demo .swiper__slide:nth-child(odd) {
background-color: #2593fc;
}
.swiper-demo--dark .swiper__slide:nth-child(even) {
background-color: #312;
}
.swiper-demo--dark .swiper__slide:nth-child(odd) {
background-color: #123;
}
.swiper-demo--image .swiper__slide:nth-child(n) {
background-color: #000;
}
</style>
<p><code class="language-plaintext warning highlighter-rouge">Alpha</code></p>
<h3 id="normal-1">Normal</h3>
<div class="swiper my-3 swiper-demo swiper-demo--0">
<div class="swiper__wrapper">
<div class="swiper__slide">1</div>
<div class="swiper__slide">2</div>
<div class="swiper__slide">3</div>
<div class="swiper__slide">4</div>
<div class="swiper__slide">5</div>
<div class="swiper__slide">6</div>
<div class="swiper__slide">7</div>
</div>
<!-- <div class="swiper__pagination"></div> -->
<div class="swiper__button swiper__button--prev fas fa-chevron-left"></div>
<div class="swiper__button swiper__button--next fas fa-chevron-right"></div>
<!-- <div class="swiper-scrollbar"></div> -->
</div>
<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nc">.swiper-demo</span> <span class="p">{</span>
<span class="nl">height</span><span class="p">:</span> <span class="m">220px</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper swiper-demo"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__wrapper"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>2<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>3<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>4<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>5<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>6<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__slide"</span><span class="nt">&gt;</span>7<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__button swiper__button--prev fas fa-chevron-left"</span><span class="nt">&gt;&lt;/div&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"swiper__button swiper__button--next fas fa-chevron-right"</span><span class="nt">&gt;&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</code></pre></div></div>
<div class="language-js highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="o">%-</span> <span class="nx">include</span> <span class="nx">scripts</span><span class="o">/</span><span class="nx">lib</span><span class="o">/</span><span class="nx">swiper</span><span class="p">.</span><span class="nx">js</span> <span class="o">-%</span><span class="p">}</span>
<span class="kd">var</span> <span class="nx">SOURCES</span> <span class="o">=</span> <span class="nb">window</span><span class="p">.</span><span class="nx">TEXT_VARIABLES</span><span class="p">.</span><span class="nx">sources</span><span class="p">;</span>
<span class="nb">window</span><span class="p">.</span><span class="nx">Lazyload</span><span class="p">.</span><span class="nf">js</span><span class="p">(</span><span class="nx">SOURCES</span><span class="p">.</span><span class="nx">jquery</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="nf">$</span><span class="p">(</span><span class="dl">'</span><span class="s1">.swiper-demo</span><span class="dl">'</span><span class="p">).</span><span class="nf">swiper</span><span class="p">();</span>
<span class="p">});</span>
</code></pre></div></div>
<h3 id="light-theme">Light Theme</h3>
<div class="swiper swiper--light my-3 swiper-demo swiper-demo--1">
<div class="swiper__wrapper">
<div class="swiper__slide">1</div>
<div class="swiper__slide">2</div>
<div class="swiper__slide">3</div>
<div class="swiper__slide">4</div>
<div class="swiper__slide">5</div>
<div class="swiper__slide">6</div>
<div class="swiper__slide">7</div>
</div>
<div class="swiper__button swiper__button--prev fas fa-chevron-left"></div>
<div class="swiper__button swiper__button--next fas fa-chevron-right"></div>
</div>
<h3 id="dark-theme-1">Dark Theme</h3>
<div class="swiper swiper--dark my-3 swiper-demo swiper-demo--dark swiper-demo--2">
<div class="swiper__wrapper">
<div class="swiper__slide">1</div>
<div class="swiper__slide">2</div>
<div class="swiper__slide">3</div>
<div class="swiper__slide">4</div>
<div class="swiper__slide">5</div>
<div class="swiper__slide">6</div>
<div class="swiper__slide">7</div>
</div>
<div class="swiper__button swiper__button--prev fas fa-chevron-left"></div>
<div class="swiper__button swiper__button--next fas fa-chevron-right"></div>
</div>
<p><strong>Without Animation</strong></p>
<div class="swiper my-3 swiper-demo swiper-demo--4">
<div class="swiper__wrapper">
<div class="swiper__slide">1</div>
<div class="swiper__slide">2</div>
<div class="swiper__slide">3</div>
<div class="swiper__slide">4</div>
<div class="swiper__slide">5</div>
<div class="swiper__slide">6</div>
<div class="swiper__slide">7</div>
</div>
<div class="swiper__button swiper__button--prev fas fa-chevron-left"></div>
<div class="swiper__button swiper__button--next fas fa-chevron-right"></div>
</div>
<script>(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
function swiper(options) {
var $window = $(window), $root = this, $swiperWrapper, $swiperSlides, $swiperButtonPrev, $swiperButtonNext,
initialSlide, animation, onChange, onChangeEnd,
rootWidth, count, preIndex, curIndex, translateX, CRITICAL_ANGLE = Math.PI / 3;
function setOptions(options) {
var _options = options || {};
initialSlide = _options.initialSlide || 0;
animation = _options.animation === undefined && true;
onChange = onChange || _options.onChange;
onChangeEnd = onChangeEnd || _options.onChangeEnd;
}
function init() {
$swiperWrapper = $root.find('.swiper__wrapper');
$swiperSlides = $root.find('.swiper__slide');
$swiperButtonPrev = $root.find('.swiper__button--prev');
$swiperButtonNext = $root.find('.swiper__button--next');
animation && $swiperWrapper.addClass('swiper__wrapper--animation');
calc(true);
}
function preCalc() {
rootWidth = $root.width();
count = $swiperWrapper.children('.swiper__slide').length;
if (count < 2) {
$swiperButtonPrev.addClass('d-none');
$swiperButtonNext.addClass('d-none');
}
curIndex = initialSlide || 0;
translateX = getTranslateXFromCurIndex();
}
var calc = (function() {
var preAnimation, $swiperSlide, $preSwiperSlide;
return function (needPreCalc, params) {
needPreCalc && preCalc();
var _animation = (params && params.animation !== undefined) ? params.animation : animation;
if (preAnimation === undefined || preAnimation !== _animation) {
preAnimation = _animation ? $swiperWrapper.addClass('swiper__wrapper--animation') :
$swiperWrapper.removeClass('swiper__wrapper--animation');
}
if (preIndex !== curIndex) {
($preSwiperSlide = $swiperSlides.eq(preIndex)).removeClass('active');
($swiperSlide = $swiperSlides.eq(curIndex)).addClass('active');
onChange && onChange(curIndex, $swiperSlides.eq(curIndex), $swiperSlide, $preSwiperSlide);
if (onChangeEnd) {
if (_animation) {
setTimeout(function() {
onChangeEnd(curIndex, $swiperSlides.eq(curIndex), $swiperSlide, $preSwiperSlide);
}, 400);
} else {
onChangeEnd(curIndex, $swiperSlides.eq(curIndex), $swiperSlide, $preSwiperSlide);
}
}
preIndex = curIndex;
}
$swiperWrapper.css('transform', 'translate(' + translateX + 'px, 0)');
if (count > 1) {
if (curIndex <= 0) {
$swiperButtonPrev.addClass('disabled');
} else {
$swiperButtonPrev.removeClass('disabled');
}
if (curIndex >= count - 1) {
$swiperButtonNext.addClass('disabled');
} else {
$swiperButtonNext.removeClass('disabled');
}
}
};
})();
function getTranslateXFromCurIndex() {
return curIndex <= 0 ? 0 : - rootWidth * curIndex;
}
function moveToIndex(index ,params) {
preIndex = curIndex;
curIndex = index;
translateX = getTranslateXFromCurIndex();
calc(false, params);
}
function move(type) {
var nextIndex = curIndex, unstableTranslateX;
if (type === 'prev') {
nextIndex > 0 && nextIndex--;
} else if (type === 'next') {
nextIndex < count - 1 && nextIndex++;
}
if (type === 'cur') {
moveToIndex(curIndex, { animation: true });
return;
}
unstableTranslateX = translateX % rootWidth !== 0;
if (nextIndex !== curIndex || unstableTranslateX) {
unstableTranslateX ? moveToIndex(nextIndex, { animation: true }) : moveToIndex(nextIndex);
}
}
setOptions(options);
init();
preIndex = curIndex;
$swiperButtonPrev.on('click', function(e) {
e.stopPropagation();
move('prev');
});
$swiperButtonNext.on('click', function(e) {
e.stopPropagation();
move('next');
});
$window.on('resize', function() {
calc(true, { animation: false });
});
(function() {
var pageX, pageY, velocityX, preTranslateX = translateX, timeStamp, touching;
function handleTouchstart(e) {
var point = e.touches ? e.touches[0] : e;
pageX = point.pageX;
pageY = point.pageY;
velocityX = 0;
preTranslateX = translateX;
}
function handleTouchmove(e) {
if (e.touches && e.touches.length > 1) {
return;
}
var point = e.touches ? e.touches[0] : e;
var deltaX = point.pageX - pageX;
var deltaY = point.pageY - pageY;
velocityX = deltaX / (e.timeStamp - timeStamp);
timeStamp = e.timeStamp;
if (e.cancelable && Math.abs(Math.atan(deltaY / deltaX)) < CRITICAL_ANGLE) {
touching = true;
translateX += deltaX;
calc(false, { animation: false });
}
pageX = point.pageX;
pageY = point.pageY;
}
function handleTouchend() {
touching = false;
var deltaX = translateX - preTranslateX;
var distance = deltaX + velocityX * rootWidth;
if (Math.abs(distance) > rootWidth / 2) {
distance > 0 ? move('prev') : move('next');
} else {
move('cur');
}
}
$swiperWrapper.on('touchstart', handleTouchstart);
$swiperWrapper.on('touchmove', handleTouchmove);
$swiperWrapper.on('touchend', handleTouchend);
$swiperWrapper.on('touchcancel', handleTouchend);
(function() {
var pressing = false, moved = false;
$swiperWrapper.on('mousedown', function(e) {
pressing = true; handleTouchstart(e);
});
$swiperWrapper.on('mousemove', function(e) {
pressing && (e.preventDefault(), moved = true, handleTouchmove(e));
});
$swiperWrapper.on('mouseup', function(e) {
pressing && (pressing = false, handleTouchend(e));
});
$swiperWrapper.on('mouseleave', function(e) {
pressing && (pressing = false, handleTouchend(e));
});
$swiperWrapper.on('click', function(e) {
moved && (e.stopPropagation(), moved = false);
});
})();
$root.on('touchmove', function(e) {
if (e.cancelable & touching) {
e.preventDefault();
}
});
})();
return {
setOptions: setOptions,
previous: function(){
move('prev');
},
next: function(){
move('next');
},
refresh: function() {
calc(true, { animation: false });
}
};
}
$.fn.swiper = swiper;
});
})();
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
$('.swiper-demo--0').swiper();
$('.swiper-demo--1').swiper();
$('.swiper-demo--2').swiper();
$('.swiper-demo--3').swiper();
$('.swiper-demo--4').swiper({ animation: false });
});
</script>
<div class="footnotes" role="doc-endnotes">
<ol>
2024-11-21 17:20:33 +01:00
<li id="fn:gitHub_metadata">
2024-10-31 20:18:37 +01:00
<p><a href="https://github.com/jekyll/github-metadata#what-it-does">GitHub Metadata, a.k.a. site.github</a> <a href="#fnref:gitHub_metadata" class="reversefootnote" role="doc-backlink">&#8617;</a> <a href="#fnref:gitHub_metadata:1" class="reversefootnote" role="doc-backlink">&#8617;<sup>2</sup></a></p>
</li>
2024-11-21 17:20:33 +01:00
<li id="fn:jekyll_site_variables">
2024-10-31 20:18:37 +01:00
<p><a href="https://jekyllrb.com/docs/variables/#site-variables">Variables#Site Variables</a> <a href="#fnref:jekyll_site_variables" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
</li>
2024-11-21 17:20:33 +01:00
<li id="fn:jekyll_specifying_environment">
2024-10-31 20:18:37 +01:00
<p><a href="https://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time">Configuration#Specifying a Jekyll environment at build timePermalink</a> <a href="#fnref:jekyll_specifying_environment" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
</li>
2024-11-21 17:20:33 +01:00
<li id="fn:font_matter">
2024-10-31 20:18:37 +01:00
<p><a href="https://jekyllrb.com/docs/frontmatter/">Front Matter</a> <a href="#fnref:font_matter" class="reversefootnote" role="doc-backlink">&#8617;</a> <a href="#fnref:font_matter:1" class="reversefootnote" role="doc-backlink">&#8617;<sup>2</sup></a></p>
</li>
2024-11-21 17:20:33 +01:00
<li id="fn:jekyll_global_configuration">
2024-10-31 20:18:37 +01:00
<p><a href="https://jekyllrb.com/docs/configuration/#global-configuration">Configuration#Global Configuration</a> <a href="#fnref:jekyll_global_configuration" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
</li>
2024-11-21 17:20:33 +01:00
<li id="fn:cdn">
2024-10-31 20:18:37 +01:00
<p><a href="https://en.wikipedia.org/wiki/Content_delivery_network">Content delivery network</a> <a href="#fnref:cdn" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
</li>
2024-11-21 17:20:33 +01:00
<li id="fn:ALDs">
2024-10-31 20:18:37 +01:00
<p><a href="https://kramdown.gettalong.org/syntax.html#attribute-list-definitions">Attribute List Definitions</a> <a href="#fnref:ALDs" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
</li>
</ol>
</div>
</div>
<script>
window.Lazyload.js('https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js', function() {
mermaid.initialize({
startOnLoad: true
});
mermaid.init(undefined, '.language-mermaid');
});
</script>
<script>
window.Lazyload.js(['/assets/js/jquery.min.js', 'https://cdn.jsdelivr.net/npm/chart.js'], function() {
var $canvas = null, $this = null, _ctx = null, _text = '';
$('.language-chart').each(function(){
$this = $(this);
$canvas = $('<canvas></canvas>');
_text = $this.text();
$this.text('').append($canvas);
_ctx = $canvas.get(0).getContext('2d');
(_ctx && _text) && (new Chart(_ctx, JSON.parse(_text)) && $this.attr('data-processed', true));
});
});
</script>
<div class="d-print-none"><footer class="article__footer"><!-- start custom article footer snippet -->
<!-- end custom article footer snippet -->
<!--
<div align="right">&emsp;</div>
-->
</footer>
</div>
</div>
<script>(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
$(function() {
var $this ,$scroll;
var $articleContent = $('.js-article-content');
var hasSidebar = $('.js-page-root').hasClass('layout--page--sidebar');
var scroll = hasSidebar ? '.js-page-main' : 'html, body';
$scroll = $(scroll);
$articleContent.find('.highlight').each(function() {
$this = $(this);
$this.attr('data-lang', $this.find('code').attr('data-lang'));
});
$articleContent.find('h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]').each(function() {
$this = $(this);
$this.append($('<a class="anchor d-print-none" aria-hidden="true"></a>').html('<i class="fas fa-anchor"></i>'));
});
$articleContent.on('click', '.anchor', function() {
$scroll.scrollToAnchor('#' + $(this).parent().attr('id'), 400);
});
});
});
})();
</script>
</div><section class="page__comments d-print-none"></section></article><!-- start custom main bottom snippet -->
<!-- end custom main bottom snippet -->
</div>
</div></div></div></div>
</div><script>(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
var $body = $('body'), $window = $(window);
var $pageRoot = $('.js-page-root'), $pageMain = $('.js-page-main');
var activeCount = 0;
function modal(options) {
var $root = this, visible, onChange, hideWhenWindowScroll = false;
var scrollTop;
function setOptions(options) {
var _options = options || {};
visible = _options.initialVisible === undefined ? false : show;
onChange = _options.onChange;
hideWhenWindowScroll = _options.hideWhenWindowScroll;
}
function init() {
setState(visible);
}
function setState(isShow) {
if (isShow === visible) {
return;
}
visible = isShow;
if (visible) {
activeCount++;
scrollTop = $(window).scrollTop() || $pageMain.scrollTop();
$root.addClass('modal--show');
$pageMain.scrollTop(scrollTop);
activeCount === 1 && ($pageRoot.addClass('show-modal'), $body.addClass('of-hidden'));
hideWhenWindowScroll && window.hasEvent('touchstart') && $window.on('scroll', hide);
$window.on('keyup', handleKeyup);
} else {
activeCount > 0 && activeCount--;
$root.removeClass('modal--show');
$window.scrollTop(scrollTop);
activeCount === 0 && ($pageRoot.removeClass('show-modal'), $body.removeClass('of-hidden'));
hideWhenWindowScroll && window.hasEvent('touchstart') && $window.off('scroll', hide);
$window.off('keyup', handleKeyup);
}
onChange && onChange(visible);
}
function show() {
setState(true);
}
function hide() {
setState(false);
}
function handleKeyup(e) {
// Char Code: 27 ESC
if (e.which === 27) {
hide();
}
}
setOptions(options);
init();
return {
show: show,
hide: hide,
$el: $root
};
}
$.fn.modal = modal;
});
})();
</script><div class="modal modal--overflow page__search-modal d-print-none js-page-search-modal"><script>
(function () {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
// search panel
var search = (window.search || (window.search = {}));
var useDefaultSearchBox = window.useDefaultSearchBox === undefined ?
true : window.useDefaultSearchBox ;
var $searchModal = $('.js-page-search-modal');
var $searchToggle = $('.js-search-toggle');
var searchModal = $searchModal.modal({ onChange: handleModalChange, hideWhenWindowScroll: true });
var modalVisible = false;
search.searchModal = searchModal;
var $searchBox = null;
var $searchInput = null;
var $searchClear = null;
function getModalVisible() {
return modalVisible;
}
search.getModalVisible = getModalVisible;
function handleModalChange(visible) {
modalVisible = visible;
if (visible) {
search.onShow && search.onShow();
useDefaultSearchBox && $searchInput[0] && $searchInput[0].focus();
} else {
search.onShow && search.onHide();
useDefaultSearchBox && $searchInput[0] && $searchInput[0].blur();
setTimeout(function() {
useDefaultSearchBox && ($searchInput.val(''), $searchBox.removeClass('not-empty'));
search.clear && search.clear();
window.pageAsideAffix && window.pageAsideAffix.refresh();
}, 400);
}
}
$searchToggle.on('click', function() {
modalVisible ? searchModal.hide() : searchModal.show();
});
// Char Code: 83 S, 191 /
$(window).on('keyup', function(e) {
if (!modalVisible && !window.isFormElement(e.target || e.srcElement) && (e.which === 83 || e.which === 191)) {
modalVisible || searchModal.show();
}
});
if (useDefaultSearchBox) {
$searchBox = $('.js-search-box');
$searchInput = $searchBox.children('input');
$searchClear = $searchBox.children('.js-icon-clear');
search.getSearchInput = function() {
return $searchInput.get(0);
};
search.getVal = function() {
return $searchInput.val();
};
search.setVal = function(val) {
$searchInput.val(val);
};
$searchInput.on('focus', function() {
$(this).addClass('focus');
});
$searchInput.on('blur', function() {
$(this).removeClass('focus');
});
$searchInput.on('input', window.throttle(function() {
var val = $(this).val();
if (val === '' || typeof val !== 'string') {
search.clear && search.clear();
} else {
$searchBox.addClass('not-empty');
search.onInputNotEmpty && search.onInputNotEmpty(val);
}
}, 400));
$searchClear.on('click', function() {
$searchInput.val(''); $searchBox.removeClass('not-empty');
search.clear && search.clear();
});
}
});
})();
</script><div class="search search--dark">
<div class="main">
<div class="search__header">Recherche</div>
<div class="search-bar">
<div class="search-box js-search-box">
<div class="search-box__icon-search"><i class="fas fa-search"></i></div>
<input id="search-input" type="text" />
<div class="search-box__icon-clear js-icon-clear">
<a><i class="fas fa-times"></i></a>
</div>
</div>
<button class="button button--theme-dark button--pill search__cancel js-search-toggle">
Annuler</button>
</div>
<div id="results-container" class="search-result js-search-result"></div>
</div>
</div>
<!-- Script pointing to search-script.js -->
<script>/*!
* Simple-Jekyll-Search
* Copyright 2015-2020, Christian Fei
* Licensed under the MIT License.
*/
(function(){
'use strict'
var _$Templater_7 = {
compile: compile,
setOptions: setOptions
}
const options = {}
options.pattern = /\{(.*?)\}/g
options.template = ''
options.middleware = function () {}
function setOptions (_options) {
options.pattern = _options.pattern || options.pattern
options.template = _options.template || options.template
if (typeof _options.middleware === 'function') {
options.middleware = _options.middleware
}
}
function compile (data) {
return options.template.replace(options.pattern, function (match, prop) {
const value = options.middleware(prop, data[prop], options.template)
if (typeof value !== 'undefined') {
return value
}
return data[prop] || match
})
}
'use strict';
function fuzzysearch (needle, haystack) {
var tlen = haystack.length;
var qlen = needle.length;
if (qlen > tlen) {
return false;
}
if (qlen === tlen) {
return needle === haystack;
}
outer: for (var i = 0, j = 0; i < qlen; i++) {
var nch = needle.charCodeAt(i);
while (j < tlen) {
if (haystack.charCodeAt(j++) === nch) {
continue outer;
}
}
return false;
}
return true;
}
var _$fuzzysearch_1 = fuzzysearch;
'use strict'
/* removed: const _$fuzzysearch_1 = require('fuzzysearch') */;
var _$FuzzySearchStrategy_5 = new FuzzySearchStrategy()
function FuzzySearchStrategy () {
this.matches = function (string, crit) {
return _$fuzzysearch_1(crit.toLowerCase(), string.toLowerCase())
}
}
'use strict'
var _$LiteralSearchStrategy_6 = new LiteralSearchStrategy()
function LiteralSearchStrategy () {
this.matches = function (str, crit) {
if (!str) return false
str = str.trim().toLowerCase()
crit = crit.trim().toLowerCase()
return crit.split(' ').filter(function (word) {
return str.indexOf(word) >= 0
}).length === crit.split(' ').length
}
}
'use strict'
var _$Repository_4 = {
put: put,
clear: clear,
search: search,
setOptions: __setOptions_4
}
/* removed: const _$FuzzySearchStrategy_5 = require('./SearchStrategies/FuzzySearchStrategy') */;
/* removed: const _$LiteralSearchStrategy_6 = require('./SearchStrategies/LiteralSearchStrategy') */;
function NoSort () {
return 0
}
const data = []
let opt = {}
opt.fuzzy = false
opt.limit = 10
opt.searchStrategy = opt.fuzzy ? _$FuzzySearchStrategy_5 : _$LiteralSearchStrategy_6
opt.sort = NoSort
opt.exclude = []
function put (data) {
if (isObject(data)) {
return addObject(data)
}
if (isArray(data)) {
return addArray(data)
}
return undefined
}
function clear () {
data.length = 0
return data
}
function isObject (obj) {
return Boolean(obj) && Object.prototype.toString.call(obj) === '[object Object]'
}
function isArray (obj) {
return Boolean(obj) && Object.prototype.toString.call(obj) === '[object Array]'
}
function addObject (_data) {
data.push(_data)
return data
}
function addArray (_data) {
const added = []
clear()
for (let i = 0, len = _data.length; i < len; i++) {
if (isObject(_data[i])) {
added.push(addObject(_data[i]))
}
}
return added
}
function search (crit) {
if (!crit) {
return []
}
return findMatches(data, crit, opt.searchStrategy, opt).sort(opt.sort)
}
function __setOptions_4 (_opt) {
opt = _opt || {}
opt.fuzzy = _opt.fuzzy || false
opt.limit = _opt.limit || 10
opt.searchStrategy = _opt.fuzzy ? _$FuzzySearchStrategy_5 : _$LiteralSearchStrategy_6
opt.sort = _opt.sort || NoSort
opt.exclude = _opt.exclude || []
}
function findMatches (data, crit, strategy, opt) {
const matches = []
for (let i = 0; i < data.length && matches.length < opt.limit; i++) {
const match = findMatchesInObject(data[i], crit, strategy, opt)
if (match) {
matches.push(match)
}
}
return matches
}
function findMatchesInObject (obj, crit, strategy, opt) {
for (const key in obj) {
if (!isExcluded(obj[key], opt.exclude) && strategy.matches(obj[key], crit)) {
return obj
}
}
}
function isExcluded (term, excludedTerms) {
for (let i = 0, len = excludedTerms.length; i < len; i++) {
const excludedTerm = excludedTerms[i]
if (new RegExp(excludedTerm).test(term)) {
return true
}
}
return false
}
/* globals ActiveXObject:false */
'use strict'
var _$JSONLoader_2 = {
load: load
}
function load (location, callback) {
const xhr = getXHR()
xhr.open('GET', location, true)
xhr.onreadystatechange = createStateChangeListener(xhr, callback)
xhr.send()
}
function createStateChangeListener (xhr, callback) {
return function () {
if (xhr.readyState === 4 && xhr.status === 200) {
try {
callback(null, JSON.parse(xhr.responseText))
} catch (err) {
callback(err, null)
}
}
}
}
function getXHR () {
return window.XMLHttpRequest ? new window.XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP')
}
'use strict'
var _$OptionsValidator_3 = function OptionsValidator (params) {
if (!validateParams(params)) {
throw new Error('-- OptionsValidator: required options missing')
}
if (!(this instanceof OptionsValidator)) {
return new OptionsValidator(params)
}
const requiredOptions = params.required
this.getRequiredOptions = function () {
return requiredOptions
}
this.validate = function (parameters) {
const errors = []
requiredOptions.forEach(function (requiredOptionName) {
if (typeof parameters[requiredOptionName] === 'undefined') {
errors.push(requiredOptionName)
}
})
return errors
}
function validateParams (params) {
if (!params) {
return false
}
return typeof params.required !== 'undefined' && params.required instanceof Array
}
}
'use strict'
var _$utils_9 = {
merge: merge,
isJSON: isJSON
}
function merge (defaultParams, mergeParams) {
const mergedOptions = {}
for (const option in defaultParams) {
mergedOptions[option] = defaultParams[option]
if (typeof mergeParams[option] !== 'undefined') {
mergedOptions[option] = mergeParams[option]
}
}
return mergedOptions
}
function isJSON (json) {
try {
if (json instanceof Object && JSON.parse(JSON.stringify(json))) {
return true
}
return false
} catch (err) {
return false
}
}
var _$src_8 = {};
(function (window) {
'use strict'
let options = {
searchInput: null,
resultsContainer: null,
json: [],
success: Function.prototype,
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
templateMiddleware: Function.prototype,
sortMiddleware: function () {
return 0
},
noResultsText: 'No results found',
limit: 10,
fuzzy: false,
debounceTime: null,
exclude: []
}
let debounceTimerHandle
const debounce = function (func, delayMillis) {
if (delayMillis) {
clearTimeout(debounceTimerHandle)
debounceTimerHandle = setTimeout(func, delayMillis)
} else {
func.call()
}
}
const requiredOptions = ['searchInput', 'resultsContainer', 'json']
/* removed: const _$Templater_7 = require('./Templater') */;
/* removed: const _$Repository_4 = require('./Repository') */;
/* removed: const _$JSONLoader_2 = require('./JSONLoader') */;
const optionsValidator = _$OptionsValidator_3({
required: requiredOptions
})
/* removed: const _$utils_9 = require('./utils') */;
window.SimpleJekyllSearch = function (_options) {
const errors = optionsValidator.validate(_options)
if (errors.length > 0) {
throwError('You must specify the following required options: ' + requiredOptions)
}
options = _$utils_9.merge(options, _options)
_$Templater_7.setOptions({
template: options.searchResultTemplate,
middleware: options.templateMiddleware
})
_$Repository_4.setOptions({
fuzzy: options.fuzzy,
limit: options.limit,
sort: options.sortMiddleware,
exclude: options.exclude
})
if (_$utils_9.isJSON(options.json)) {
initWithJSON(options.json)
} else {
initWithURL(options.json)
}
const rv = {
search: search
}
typeof options.success === 'function' && options.success.call(rv)
return rv
}
function initWithJSON (json) {
_$Repository_4.put(json)
registerInput()
}
function initWithURL (url) {
_$JSONLoader_2.load(url, function (err, json) {
if (err) {
throwError('failed to get JSON (' + url + ')')
}
initWithJSON(json)
})
}
function emptyResultsContainer () {
options.resultsContainer.innerHTML = ''
}
function appendToResultsContainer (text) {
options.resultsContainer.innerHTML += text
}
function registerInput () {
options.searchInput.addEventListener('input', function (e) {
if (isWhitelistedKey(e.which)) {
emptyResultsContainer()
debounce(function () { search(e.target.value) }, options.debounceTime)
}
})
}
function search (query) {
if (isValidQuery(query)) {
emptyResultsContainer()
render(_$Repository_4.search(query), query)
}
}
function render (results, query) {
const len = results.length
if (len === 0) {
return appendToResultsContainer(options.noResultsText)
}
for (let i = 0; i < len; i++) {
results[i].query = query
appendToResultsContainer(_$Templater_7.compile(results[i]))
}
}
function isValidQuery (query) {
return query && query.length > 0
}
function isWhitelistedKey (key) {
return [13, 16, 20, 37, 38, 39, 40, 91].indexOf(key) === -1
}
function throwError (message) {
throw new Error('SimpleJekyllSearch --- ' + message)
}
})(window)
}());
</script>
<!-- Configuration -->
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
noResultsText: '<p>Aucun résultat!</p>',
json: '/search.json',
searchResultTemplate: '<li><a href="{url}">{date}&nbsp;{title}</a>&nbsp;(Création {create})</li>'
})
</script>
</div></div>
<script>(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
function scrollToAnchor(anchor, duration, callback) {
var $root = this;
$root.animate({ scrollTop: $(anchor).position().top }, duration, function() {
window.history.replaceState(null, '', window.location.href.split('#')[0] + anchor);
callback && callback();
});
}
$.fn.scrollToAnchor = scrollToAnchor;
});
})();
(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
function affix(options) {
var $root = this, $window = $(window), $scrollTarget, $scroll,
offsetBottom = 0, scrollTarget = window, scroll = window.document, disabled = false, isOverallScroller = true,
rootTop, rootLeft, rootHeight, scrollBottom, rootBottomTop,
hasInit = false, curState;
function setOptions(options) {
var _options = options || {};
_options.offsetBottom && (offsetBottom = _options.offsetBottom);
_options.scrollTarget && (scrollTarget = _options.scrollTarget);
_options.scroll && (scroll = _options.scroll);
_options.disabled !== undefined && (disabled = _options.disabled);
$scrollTarget = $(scrollTarget);
isOverallScroller = window.isOverallScroller($scrollTarget[0]);
$scroll = $(scroll);
}
function preCalc() {
top();
rootHeight = $root.outerHeight();
rootTop = $root.offset().top + (isOverallScroller ? 0 : $scrollTarget.scrollTop());
rootLeft = $root.offset().left;
}
function calc(needPreCalc) {
needPreCalc && preCalc();
scrollBottom = $scroll.outerHeight() - offsetBottom - rootHeight;
rootBottomTop = scrollBottom - rootTop;
}
function top() {
if (curState !== 'top') {
$root.removeClass('fixed').css({
left: 0,
top: 0
});
curState = 'top';
}
}
function fixed() {
if (curState !== 'fixed') {
$root.addClass('fixed').css({
left: rootLeft + 'px',
top: 0
});
curState = 'fixed';
}
}
function bottom() {
if (curState !== 'bottom') {
$root.removeClass('fixed').css({
left: 0,
top: rootBottomTop + 'px'
});
curState = 'bottom';
}
}
function setState() {
var scrollTop = $scrollTarget.scrollTop();
if (scrollTop >= rootTop && scrollTop <= scrollBottom) {
fixed();
} else if (scrollTop < rootTop) {
top();
} else {
bottom();
}
}
function init() {
if(!hasInit) {
var interval, timeout;
calc(true); setState();
// run calc every 100 millisecond
interval = setInterval(function() {
calc();
}, 100);
timeout = setTimeout(function() {
clearInterval(interval);
}, 45000);
window.pageLoad.then(function() {
setTimeout(function() {
clearInterval(interval);
clearTimeout(timeout);
}, 3000);
});
$scrollTarget.on('scroll', function() {
disabled || setState();
});
$window.on('resize', function() {
disabled || (calc(true), setState());
});
hasInit = true;
}
}
setOptions(options);
if (!disabled) {
init();
}
$window.on('resize', window.throttle(function() {
init();
}, 200));
return {
setOptions: setOptions,
refresh: function() {
calc(true, { animation: false }); setState();
}
};
}
$.fn.affix = affix;
});
})();
(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
window.Lazyload.js(SOURCES.jquery, function() {
function toc(options) {
var $root = this, $window = $(window), $scrollTarget, $scroller, $tocUl = $('<ul class="toc toc--ellipsis"></ul>'), $tocLi, $headings, $activeLast, $activeCur,
selectors = 'h1,h2,h3', container = 'body', scrollTarget = window, scroller = 'html, body', disabled = false,
headingsPos, scrolling = false, hasRendered = false, hasInit = false;
function setOptions(options) {
var _options = options || {};
_options.selectors && (selectors = _options.selectors);
_options.container && (container = _options.container);
_options.scrollTarget && (scrollTarget = _options.scrollTarget);
_options.scroller && (scroller = _options.scroller);
_options.disabled !== undefined && (disabled = _options.disabled);
$headings = $(container).find(selectors).filter('[id]');
$scrollTarget = $(scrollTarget);
$scroller = $(scroller);
}
function calc() {
headingsPos = [];
$headings.each(function() {
headingsPos.push(Math.floor($(this).position().top));
});
}
function setState(element, disabled) {
var scrollTop = $scrollTarget.scrollTop(), i;
if (disabled || !headingsPos || headingsPos.length < 1) { return; }
if (element) {
$activeCur = element;
} else {
for (i = 0; i < headingsPos.length; i++) {
if (scrollTop >= headingsPos[i]) {
$activeCur = $tocLi.eq(i);
} else {
$activeCur || ($activeCur = $tocLi.eq(i));
break;
}
}
}
$activeLast && $activeLast.removeClass('active');
($activeLast = $activeCur).addClass('active');
}
function render() {
if(!hasRendered) {
$root.append($tocUl);
$headings.each(function() {
var $this = $(this);
$tocUl.append($('<li></li>').addClass('toc-' + $this.prop('tagName').toLowerCase())
.append($('<a></a>').text($this.text()).attr('href', '#' + $this.prop('id'))));
});
$tocLi = $tocUl.children('li');
$tocUl.on('click', 'a', function(e) {
e.preventDefault();
var $this = $(this);
scrolling = true;
setState($this.parent());
$scroller.scrollToAnchor($this.attr('href'), 400, function() {
scrolling = false;
});
});
}
hasRendered = true;
}
function init() {
var interval, timeout;
if(!hasInit) {
render(); calc(); setState(null, scrolling);
// run calc every 100 millisecond
interval = setInterval(function() {
calc();
}, 100);
timeout = setTimeout(function() {
clearInterval(interval);
}, 45000);
window.pageLoad.then(function() {
setTimeout(function() {
clearInterval(interval);
clearTimeout(timeout);
}, 3000);
});
$scrollTarget.on('scroll', function() {
disabled || setState(null, scrolling);
});
$window.on('resize', window.throttle(function() {
if (!disabled) {
render(); calc(); setState(null, scrolling);
}
}, 100));
}
hasInit = true;
}
setOptions(options);
if (!disabled) {
init();
}
$window.on('resize', window.throttle(function() {
init();
}, 200));
return {
setOptions: setOptions
};
}
$.fn.toc = toc;
});
})();
/*(function () {
})();*/
</script><script>
window.Lazyload.js(['/assets/js/jquery.min.js', 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'], function() {
var $canvas = null, $this = null, _ctx = null, _text = '';
$('.language-chart').each(function(){
$this = $(this);
$canvas = $('<canvas></canvas>');
_text = $this.text();
$this.text('').append($canvas);
_ctx = $canvas.get(0).getContext('2d');
(_ctx && _text) && (new Chart(_ctx, JSON.parse(_text)) && $this.attr('data-processed', true));
});
});
</script>
<script>
window.Lazyload.js('https://cdn.bootcss.com/mermaid/8.0.0-rc.8/mermaid.min.js', function() {
mermaid.initialize({
startOnLoad: true
});
mermaid.init(undefined, '.language-mermaid');
});
</script>
<!---->
</div>
<script>(function () {
var $root = document.getElementsByClassName('root')[0];
if (window.hasEvent('touchstart')) {
$root.dataset.isTouch = true;
document.addEventListener('touchstart', function(){}, false);
}
})();
</script>
</body>
</html>