Skip to content

Commit a7ba916

Browse files
committed
Initial commit
1 parent c69c496 commit a7ba916

File tree

8 files changed

+108
-0
lines changed

8 files changed

+108
-0
lines changed

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
title: TI10KO
33
timezone: Europe/Warsaw
44
collections:
5+
notes:
6+
title: Notes
7+
output: true
58
articles:
69
title: Articles
710
output: true

_layouts/notes.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: default
3+
---
4+
5+
<article class="note">
6+
<h1>{{ page.title }}</h1>
7+
8+
<div class="entry">
9+
{{ content }}
10+
</div>
11+
12+
<div class="date">
13+
Written on {{ page.date | date: "%B %e, %Y" }}
14+
</div>
15+
16+
{% include disqus.html %}
17+
</article>
18+

_notes/notes-markdown-generator.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
cat >index.md <<EOF
3+
---
4+
title: note
5+
date: `date '+%Y-%m-%d %H:%M:%S +02:00'`
6+
layout: notes
7+
---
8+
9+
![Name]({{ site.baseurl }}/uploads/img.png)
10+
11+
# Header
12+
13+
Text
14+
EOF

_notes/text.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: note
3+
date: 2021-05-25 18:37:37 +02:00
4+
layout: notes
5+
---
6+
7+
# Header
8+
9+
Text

_sass/_notes.scss

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.notes > .note {
2+
padding-bottom: 2em;
3+
border-bottom: 1px solid $lightGray;
4+
}
5+
6+
.notes > .note:last-child {
7+
padding-bottom: 1em;
8+
border-bottom: none;
9+
}
10+
11+
.note {
12+
blockquote {
13+
margin: 1.8em .8em;
14+
border-left: 2px solid $gray;
15+
padding: 0.1em 1em;
16+
color: $gray;
17+
font-size: 22px;
18+
font-style: italic;
19+
}
20+
.comments {
21+
margin-top: 10px;
22+
}
23+
24+
.read-more {
25+
text-transform: none;
26+
font-size: 15px;
27+
display: inline-block;
28+
padding:5px 15px;
29+
background:#00A0DF;
30+
color:#fff;
31+
font-size:18px;
32+
border-radius:5px;
33+
text-decoration:none;
34+
font-family: 'Open Sans', Verdana, Arial, sans-serif;
35+
}
36+
}
37+

notes.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="notes">
6+
{% for notes in site.notes %}
7+
<article class="notes">
8+
9+
<h1><a href="{{ site.baseurl }}{{ notes.url }}">{{ notes.title }}</a></h1>
10+
11+
<div class="entry">
12+
{{ notes.excerpt }}
13+
</div>
14+
15+
<a href="{{ site.baseurl }}{{ notes.url }}" class="read-more">Читать дальше</a>
16+
</article>
17+
{% endfor %}
18+
</div>
19+

style.scss

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@import "news";
1111
@import "social";
1212
@import "articles";
13+
@import "notes";
1314
// Syntax highlighting @import is at the bottom of this file
1415

1516
/**************/

test.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: articles
3+
date: 2021-25-05 04:40:45 +02:00
4+
layout: articles
5+
---
6+
7+
# Header

0 commit comments

Comments
 (0)