-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
post.html.haml
52 lines (39 loc) · 1.23 KB
/
post.html.haml
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
---
layout: default
section: blog
---
:css
.videoblock iframe {
aspect-ratio: 16 / 9;
max-width: 100%;
height: auto;
}
= partial('anchors.html.haml', :selector => '.app-post-page')
%article.container.app-post-page
%div{:class => "app-!-display-flex"}
%a.app-back-link{:href => expand_link("node")}
Back to blog
%h1
= page.title
.post-attrs
= display_author_for(page)
- if page.date
= page.date.strftime('%B %-d, %Y')
%a.twitter-share-button{:href => "https://twitter.com/intent/tweet?text=#{CGI::escape(page.title)}&url=#{CGI::escape("https://www.jenkins.io" + expand_link(page.url))}", :'data-lang' => 'en', 'rel' => 'noreferrer nofollow', 'target' => '_blank'}
Tweet
%div.blog-content
- if page.note
= asciidoc("NOTE: #{page.note}")
= content
- if page.tags
%ul.app-tags
- page.tags.each do |tag|
%li
%a.app-tags__tag{:href => expand_link("blog/tags/#{tag}")}
= tag
- authors = page.authors || [page.author]
%h2
= authors.length > 1 ? "About the authors" : "About the author"
- authors.each do |author|
= partial("author.html.haml", :author => author)
= partial('discuss.html.haml', :links => page.links)