This repository was archived by the owner on Mar 26, 2023. It is now read-only.
File tree 2 files changed +30
-6
lines changed
2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 5
5
{% assign author = site.data.authors[page.author] %}
6
6
7
7
< article >
8
- < h1 class ="post-title "> {{ page.title }} < small class ="post-date "> {{ page.date | date_to_string }}</ small > </ h1 >
9
- < p class ="lead "> < em > Written by: < a href ="https://twitter.com/{{ author.twitter }} " target ="_blank "> {{ author.name }}</ a > </ em > </ p >
10
- < div class ="post-content ">
11
- {{ content }}
12
- </ div > <!-- post-content -->
8
+ < h1 class ="post-title "> {{ page.title }} < small class ="post-date "> {{ page.date | date_to_string }}</ small > </ h1 >
9
+ < p class ="lead "> < em > Written by: < a href ="https://twitter.com/{{ author.twitter }} " target ="_blank "> {{ author.name }}</ a > </ em > </ p >
10
+ < div class ="post-content ">
11
+ {{ page.excerpt }}
12
+
13
+ {% if page.sponsor %}
14
+ < div class ="alert alert-warning sponsor ">
15
+ < h4 > Sponsored Link</ h4 >
16
+ < h4 > < a href ="{{ page.sponsor.link }}/?utm_campaign={{ site.title }}&utm_medium=web&utm_source={{ site.title }} {{ page.title | remove: '#' }} "
17
+ target ="_blank "> {{ page.sponsor.heading | markdownify }}</ a >
18
+ </ h4 >
19
+ < p > {{ page.sponsor.body | markdownify }}</ p >
20
+ </ div >
21
+ {% endif %}
22
+
23
+ {{ page.content | remove: page.excerpt }}
24
+ </ div > <!-- post-content -->
13
25
</ article >
14
26
15
27
{% include social_share.html %}
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ a:active {
52
52
text-decoration : none;
53
53
}
54
54
55
- h1 > a : link {
55
+ h1 > a : link ,
56
+ .sponsor a : link {
56
57
border-width : 0px ;
57
58
}
58
59
@@ -82,6 +83,17 @@ header h2 {
82
83
color : # 666666 ;
83
84
}
84
85
86
+ /* SPONSOR */
87
+
88
+ .sponsor p {
89
+ padding : 0rem ;
90
+ }
91
+
92
+ .sponsor {
93
+ margin-top : 3rem ;
94
+ margin-bottom : 3rem ;
95
+ }
96
+
85
97
/* POST LIST */
86
98
87
99
.post {
You can’t perform that action at this time.
0 commit comments