linus 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68b5edaba988b3244532fcd46e8447f74aff5099d11ac1fa38fdccf3316d0805
4
- data.tar.gz: a4e79495a4a229194a953096ac344e788589e34731f40af03fe5f9ed40af0664
3
+ metadata.gz: 989fe2d5cf817d60b1dd66189d982d8d268e27d513049ab7ccad35db2a045a30
4
+ data.tar.gz: 21f49120ccb862d778d0431f1a280e43d5d626f0b389eaecddefb60410d93c50
5
5
  SHA512:
6
- metadata.gz: c7f0139d69b8efe40f1764c4f4ee07129f3ffb641cb90393e1868fcaffab60178a7ccb0e98a72fa1a82a3be1a203e1fb17e1a560b7d4e46412f5c3ee0f755dc0
7
- data.tar.gz: 76ba8c4993063c5d2cbddf6a3da00838a420cc4c64fbc42ea5d9606fc6d1297acf6e9dd6ef269f472d0b25cac83023dbab96e4aaeacc76ad1e2d81fca77fa2d2
6
+ metadata.gz: 37747dd3c0cb32aa4027482e827051a07e8f238123cc7bfb72afc051edf515e2084cc81ccf1337bfba77743c4431a40a4840d19de840e99e683f546cd4afb28b
7
+ data.tar.gz: f73d15358245107ba2bbd09cd655287ffb2a66fd848c17a7d6969a411549c8a52316e0791aaf11a55d5d055c7bbe6754d98c7edc3f10b76266272702072cc31c
@@ -12,11 +12,13 @@
12
12
  {{- include.post.title -}}
13
13
  </a>
14
14
 
15
- <cite class="post-source-title u-in-reply-to h-cite">
16
- <a class="post-source u-url p-name" href="{{- include.post.source -}}">
17
- {{- include.post.source | remove: "https://" | remove: "http://" | split: '/' | first | prepend: "&hookrightarrow; " -}}
18
- </a>
19
- </cite>
15
+ {%- if include.post.source -%}
16
+ <cite class="post-source-title u-in-reply-to h-cite">
17
+ <a class="post-source u-url p-name" href="{{- include.post.source -}}">
18
+ {{- include.post.source | remove: "https://" | remove: "http://" | split: '/' | first | prepend: "&hookrightarrow; " -}}
19
+ </a>
20
+ </cite>
21
+ {%- endif -%}
20
22
  </h2>
21
23
  {%- assign post_title = include.post.title -%}
22
24
  {%- elsif include.post.source -%}
@@ -62,11 +64,7 @@
62
64
  </div>
63
65
  {%- endif -%}
64
66
  {%- else -%}
65
- <div class="post-content e-content">
66
- {% if post.title != "" and post.source %}
67
- {%- include link-preview.html url=post.source -%}
68
- {% endif %}
69
-
67
+ <div class="post-content e-content">
70
68
  {{ include.post.content }}
71
69
  </div>
72
70
  {%- endif -%}
data/_layouts/post.html CHANGED
@@ -15,6 +15,14 @@ layout: default
15
15
  {%- if page.title and page.title != "" -%}
16
16
  <h1 class="post-title p-name">
17
17
  {{- page.title -}}
18
+
19
+ {% if page.source %}
20
+ <cite class="post-source-title u-in-reply-to h-cite">
21
+ <a class="post-source u-url p-name" href="{{- page.source -}}">
22
+ {{- page.source | remove: "https://" | remove: "http://" | split: '/' | first | prepend: "&hookrightarrow; " -}}
23
+ </a>
24
+ </cite>
25
+ {% endif %}
18
26
  </h1>
19
27
  {%- assign post_title = page.title -%}
20
28
  {%- elsif page.source -%}
@@ -30,7 +38,7 @@ layout: default
30
38
  {%- else -%}
31
39
  <cite class="post-source-title u-in-reply-to h-cite">
32
40
  <a class="post-source u-url p-name" href="{{- page.source -}}">
33
- {{- page.source | remove: "https://" | remove: "http://" | prepend: "&hookrightarrow; " -}}
41
+ {{- page.source | remove: "https://" | remove: "http://" | split: '/' | first | prepend: "&hookrightarrow; " -}}
34
42
  </a>
35
43
  </cite>
36
44
  {%- endif -%}
@@ -54,11 +62,6 @@ layout: default
54
62
  </header>
55
63
 
56
64
  <div class="post-content e-content">
57
-
58
- {% if page.title != "" and page.source %}
59
- {%- include link-preview.html url=page.source -%}
60
- {% endif %}
61
-
62
65
  {{ page.content }}
63
66
  </div>
64
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Freitas