forked from asciidoctor/asciidoctor.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html.slim
141 lines (139 loc) · 6.49 KB
/
base.html.slim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
doctype 5
|<!--[if IE 8]><html class="no-js lt-ie9" lang="en"><![endif]-->
|<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
head
meta charset='utf-8'
meta name='viewport' content='width=device-width, initial-scale=1.0'
- if site.engine.production?
|<script>!function(l,p){if(l.protocol!==p){l.protocol=p}else if(l.host=="asciidoctor.netlify.com"){l.host="asciidoctor.org"}}(location,"https:")</script>
link rel='stylesheet' href='/stylesheets/styles.css'
script src='/javascripts/vendor/custom.modernizr.js'
title=((page.title && page.title != site.title ? [page.title, site.title] : [site.title, site.description]) * ' | ').gsub(/<(\/?[^>]+)>/) { $~[1].start_with?('/') ? ')' : '(' }
- if page.url.start_with? '/news/'
link href='/feed.atom' rel="alternate" title='AsciiDoctor.org News Feed' type='application/atom+xml'
- if page.description
meta name='description' content=page.description
- if page.keywords
meta name='keywords' content=page.keywords
- if page.author
meta name='author' content=page.author
link rel='author' href='/humans.txt'
- if page.layout == 'post'
meta name='twitter:card' content='summary'
meta name='twitter:site' content='@asciidoctor'
meta name='twitter:title' content=page.title
- if page.description
meta name='twitter:description' content=page.description
- else
meta name='twitter:description' content=summarize(html_to_text(page.content).strip.gsub(/^[:space:]*\n/, ''), 25)
meta name='twitter:url' content="#{site.base_url}#{page.url}"
link rel='icon' href='/favicon.ico' type='image/x-icon'
body.antialiased
nav.top-bar
ul.title-area
li.name
h1: a href='/' Asciidoctor
li.toggle-topbar.menu-icon: a href='#': span
section.top-bar-section
ul.right
li: a href='/' About
li.divider
li: a href='/news/' News
li.divider
li: a href='http://gist.asciidoctor.org' Gist
li.divider
li: a href='https://github.com/asciidoctor' Code
li.divider
li: a href='http://discuss.asciidoctor.org' Discuss
li.divider
li: a href='/docs/' Docs
li.divider
li.has-form: a.button href='/docs/asciidoc-writers-guide/' Get Writing!
.container
=content
footer
.row.full-width
.large-6.columns
.row style='margin-top: 1em; margin-bottom: 1em'
.large-5.columns
p
i.fa.fa-fw.fa-download
=<> 'Download:'
a.rubygem href='https://rubygems.org/gems/asciidoctor'
img src='https://img.shields.io/gem/v/asciidoctor.svg' alt='Asciidoctor gem version' style='margin-top: -2px'
br
i.fa.fa-fw.fa-github
=<> 'Development:'
a href='https://github.com/asciidoctor' GitHub
br
i.fa.fa-fw.fa-group
=<> 'Discussions:'
a href='http://discuss.asciidoctor.org' Nabble
.large-7.columns
p
i.fa.fa-fw.fa-comments
=<> 'Chat:'
a href='https://gitter.im/asciidoctor/asciidoctor' Gitter
br
i.fa.fa-fw.fa-twitter
=<> 'Twitter:'
a.twitter href='https://twitter.com/asciidoctor' @asciidoctor
.large-6.large-text-right.columns
p style='margin-bottom: 0'
|Thanks to our <a href="/supporters/">supporters</a> and <a href="/contributors/">contributors</a>!
p style='margin-bottom: 1em'
|<a href="https://developer.okta.com/signup?utm_source=asciidoctor&utm_medium=logo&utm_campaign=sponsor" title="Add User Auth to Your Apps in Minutes with Okta"><img src="https://www.okta.com/sites/all/themes/Okta/images/blog/Logos/Okta_Logo_BrightBlue_Medium.png" alt="Okta Logo" width="64"></a>
|<a href="https://opendevise.com" title="OpenDevise"><img src="https://secure.gravatar.com/avatar/823717a797dbd78ceff7b26aa397f383.png?size=50" alt="OpenDevise Logo" width="25" style="margin-left: 5px"></a>
p
|Composed in AsciiDoc. Styled by Foundation. Baked with Awestruct.
br
|© #{site.author} #{Date.today.year}. Content licensed under CC BY 3.0.
script
|document.write('<script src=' + ('__proto__' in {} ? '/javascripts/vendor/zepto' : '/javascripts/vendor/jquery') + '.js><\/script>')
- if page.layout == 'docs'
script
|$('.toggle-navigation').click(function() { $('.navigation').toggle(); $('.content').toggleClass('large-8'); $('.content').toggleClass('large-12'); $(this).toggleClass('off').blur(); });
script src='/javascripts/foundation/foundation.js'
- [:topbar].each do |component|
script src="/javascripts/foundation/foundation.#{component}.js"
script
|$(document).foundation();
- (page.javascripts || []).each do |javascript|
script src="/javascripts/#{javascript}.js"
- if page.url.start_with? '/news/'
script
|var langs = navigator.languages;
|if (langs) {
| $('article[lang]').each(function(i, article) {
| var lang = article.getAttribute('lang');
| if (!langs.find(function(candidate) { return candidate === lang || candidate.startsWith(lang + '-'); })) {
| $(article).hide();
| }
| });
|}
- if page.stem
script type='text/x-mathjax-config'
|MathJax.Hub.Config({
| messageStyle: "none",
| tex2jax: {
| inlineMath: [["\\(", "\\)"]],
| displayMath: [["\\[", "\\]"]],
| ignoreClass: "nostem|nolatexmath"
| },
| asciimath2jax: {
| delimiters: [["\\$", "\\$"]],
| ignoreClass: "nostem|noasciimath"
| },
| TeX: { equationNumbers: { autoNumber: "none" } }
|});
script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_HTMLorMML"
/ custom built highlight.js from https://github.com/isagalaev/highlight.js using:
/ python3 tools/build.py xml javascript java ruby asciidoc
/script src='/javascripts/vendor/highlight.min.js'
/script
/ |$(hljs.initHighlighting);
- if site.google_analytics
/=google_analytics_universal
script
|!function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m);}(window,document,'script','//www.google-analytics.com/analytics.js','ga'),ga('create','#{site.google_analytics[:account]}','auto'),ga('send','pageview');
|</html>