Skip to content

Commit 5ad4522

Browse files
authored
Fix arrow extra space and tweet warning (luizdepra#785)
Remove the extra `\n` that was adding an extra space after the link arrow. Also fix the tweet shortcode warning.
1 parent 3c5a33d commit 5ad4522

14 files changed

+3992
-41
lines changed

exampleSite/content/posts/rich-content.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme
2121

2222
---
2323

24-
## Twitter Simple Shortcode
24+
## Twitter Shortcode
2525

26-
{{< twitter_simple 1085870671291310081 >}}
26+
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}
2727

2828
<br>
2929

exampleSite/content/posts/rich-content.pt-br.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ O Hugo vem com vários [Shortcodes Internos](https://gohugo.io/content-managemen
2121

2222
---
2323

24-
## Shortcode simples do Twitter
24+
## Shortcode do Twitter
2525

26-
{{< twitter_simple 1085870671291310081 >}}
26+
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}
2727

2828
<br>
2929

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} class="external-link" target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
1+
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} class="external-link" target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish = "exampleSite/public"
33
command = "cd exampleSite && hugo --themesDir=../.. --baseURL $URL"
44

55
[build.environment]
6-
HUGO_VERSION = "0.79.1"
6+
HUGO_VERSION = "0.111.3"
77
HUGO_THEME = "repo"
88

99
[context.deploy-preview]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
body.colorscheme-dark {
2+
color: #dadada;
3+
background-color: #212121; }
4+
body.colorscheme-dark a {
5+
color: #42a5f5; }
6+
body.colorscheme-dark h1,
7+
body.colorscheme-dark h2,
8+
body.colorscheme-dark h3,
9+
body.colorscheme-dark h4,
10+
body.colorscheme-dark h5,
11+
body.colorscheme-dark h6 {
12+
color: #dadada; }
13+
body.colorscheme-dark h1:hover .heading-link,
14+
body.colorscheme-dark h2:hover .heading-link,
15+
body.colorscheme-dark h3:hover .heading-link,
16+
body.colorscheme-dark h4:hover .heading-link,
17+
body.colorscheme-dark h5:hover .heading-link,
18+
body.colorscheme-dark h6:hover .heading-link {
19+
visibility: visible; }
20+
body.colorscheme-dark h1 .heading-link,
21+
body.colorscheme-dark h2 .heading-link,
22+
body.colorscheme-dark h3 .heading-link,
23+
body.colorscheme-dark h4 .heading-link,
24+
body.colorscheme-dark h5 .heading-link,
25+
body.colorscheme-dark h6 .heading-link {
26+
color: #42a5f5;
27+
font-weight: inherit;
28+
text-decoration: none;
29+
font-size: 80%;
30+
visibility: hidden; }
31+
body.colorscheme-dark h1 .title-link,
32+
body.colorscheme-dark h2 .title-link,
33+
body.colorscheme-dark h3 .title-link,
34+
body.colorscheme-dark h4 .title-link,
35+
body.colorscheme-dark h5 .title-link,
36+
body.colorscheme-dark h6 .title-link {
37+
color: inherit;
38+
font-weight: inherit;
39+
text-decoration: none; }
40+
body.colorscheme-dark blockquote {
41+
border-left: 2px solid #424242; }
42+
body.colorscheme-dark th,
43+
body.colorscheme-dark td {
44+
padding: 1.6rem; }
45+
body.colorscheme-dark table {
46+
border-collapse: collapse; }
47+
body.colorscheme-dark table td,
48+
body.colorscheme-dark table th {
49+
border: 2px solid #dadada; }
50+
body.colorscheme-dark table tr:first-child th {
51+
border-top: 0; }
52+
body.colorscheme-dark table tr:last-child td {
53+
border-bottom: 0; }
54+
body.colorscheme-dark table tr td:first-child,
55+
body.colorscheme-dark table tr th:first-child {
56+
border-left: 0; }
57+
body.colorscheme-dark table tr td:last-child,
58+
body.colorscheme-dark table tr th:last-child {
59+
border-right: 0; }
60+
61+
@media (prefers-color-scheme: dark) {
62+
body.colorscheme-auto {
63+
color: #dadada;
64+
background-color: #212121; }
65+
body.colorscheme-auto a {
66+
color: #42a5f5; }
67+
body.colorscheme-auto h1,
68+
body.colorscheme-auto h2,
69+
body.colorscheme-auto h3,
70+
body.colorscheme-auto h4,
71+
body.colorscheme-auto h5,
72+
body.colorscheme-auto h6 {
73+
color: #dadada; }
74+
body.colorscheme-auto h1:hover .heading-link,
75+
body.colorscheme-auto h2:hover .heading-link,
76+
body.colorscheme-auto h3:hover .heading-link,
77+
body.colorscheme-auto h4:hover .heading-link,
78+
body.colorscheme-auto h5:hover .heading-link,
79+
body.colorscheme-auto h6:hover .heading-link {
80+
visibility: visible; }
81+
body.colorscheme-auto h1 .heading-link,
82+
body.colorscheme-auto h2 .heading-link,
83+
body.colorscheme-auto h3 .heading-link,
84+
body.colorscheme-auto h4 .heading-link,
85+
body.colorscheme-auto h5 .heading-link,
86+
body.colorscheme-auto h6 .heading-link {
87+
color: #42a5f5;
88+
font-weight: inherit;
89+
text-decoration: none;
90+
font-size: 80%;
91+
visibility: hidden; }
92+
body.colorscheme-auto h1 .title-link,
93+
body.colorscheme-auto h2 .title-link,
94+
body.colorscheme-auto h3 .title-link,
95+
body.colorscheme-auto h4 .title-link,
96+
body.colorscheme-auto h5 .title-link,
97+
body.colorscheme-auto h6 .title-link {
98+
color: inherit;
99+
font-weight: inherit;
100+
text-decoration: none; }
101+
body.colorscheme-auto blockquote {
102+
border-left: 2px solid #424242; }
103+
body.colorscheme-auto th,
104+
body.colorscheme-auto td {
105+
padding: 1.6rem; }
106+
body.colorscheme-auto table {
107+
border-collapse: collapse; }
108+
body.colorscheme-auto table td,
109+
body.colorscheme-auto table th {
110+
border: 2px solid #dadada; }
111+
body.colorscheme-auto table tr:first-child th {
112+
border-top: 0; }
113+
body.colorscheme-auto table tr:last-child td {
114+
border-bottom: 0; }
115+
body.colorscheme-auto table tr td:first-child,
116+
body.colorscheme-auto table tr th:first-child {
117+
border-left: 0; }
118+
body.colorscheme-auto table tr td:last-child,
119+
body.colorscheme-auto table tr th:last-child {
120+
border-right: 0; } }
121+
122+
body.colorscheme-dark .content .post .tags .tag {
123+
background-color: #424242; }
124+
body.colorscheme-dark .content .post .tags .tag a {
125+
color: #dadada; }
126+
body.colorscheme-dark .content .post .tags .tag a:active {
127+
color: #dadada; }
128+
129+
body.colorscheme-dark .content .list ul li .title {
130+
color: #dadada; }
131+
body.colorscheme-dark .content .list ul li .title:hover, body.colorscheme-dark .content .list ul li .title:focus {
132+
color: #42a5f5; }
133+
134+
body.colorscheme-dark .content .centered .about ul li a {
135+
color: #dadada; }
136+
body.colorscheme-dark .content .centered .about ul li a:hover, body.colorscheme-dark .content .centered .about ul li a:focus {
137+
color: #42a5f5; }
138+
139+
@media (prefers-color-scheme: dark) {
140+
body.colorscheme-auto .content .post .tags .tag {
141+
background-color: #424242; }
142+
body.colorscheme-auto .content .post .tags .tag a {
143+
color: #dadada; }
144+
body.colorscheme-auto .content .post .tags .tag a:active {
145+
color: #dadada; }
146+
body.colorscheme-auto .content .list ul li .title {
147+
color: #dadada; }
148+
body.colorscheme-auto .content .list ul li .title:hover, body.colorscheme-auto .content .list ul li .title:focus {
149+
color: #42a5f5; }
150+
body.colorscheme-auto .content .centered .about ul li a {
151+
color: #dadada; }
152+
body.colorscheme-auto .content .centered .about ul li a:hover, body.colorscheme-auto .content .centered .about ul li a:focus {
153+
color: #42a5f5; } }
154+
155+
body.colorscheme-dark .notice .notice-title {
156+
border-bottom: 1px solid #212121; }
157+
158+
@media (prefers-color-scheme: dark) {
159+
body.colorscheme-auto .notice .notice-title {
160+
border-bottom: 1px solid #212121; } }
161+
162+
body.colorscheme-dark .navigation a,
163+
body.colorscheme-dark .navigation span {
164+
color: #dadada; }
165+
166+
body.colorscheme-dark .navigation a:hover, body.colorscheme-dark .navigation a:focus {
167+
color: #42a5f5; }
168+
169+
@media only screen and (max-width: 768px) {
170+
body.colorscheme-dark .navigation .navigation-list {
171+
background-color: #212121;
172+
border-top: solid 2px #424242;
173+
border-bottom: solid 2px #424242; } }
174+
175+
@media only screen and (max-width: 768px) {
176+
body.colorscheme-dark .navigation .navigation-list .menu-separator {
177+
border-top: 2px solid #dadada; } }
178+
179+
@media only screen and (max-width: 768px) {
180+
body.colorscheme-dark .navigation #menu-toggle:checked + label > i {
181+
color: #424242; } }
182+
183+
body.colorscheme-dark .navigation i {
184+
color: #dadada; }
185+
body.colorscheme-dark .navigation i:hover, body.colorscheme-dark .navigation i:focus {
186+
color: #42a5f5; }
187+
188+
body.colorscheme-dark .navigation .menu-button i:hover, body.colorscheme-dark .navigation .menu-button i:focus {
189+
color: #dadada; }
190+
191+
@media (prefers-color-scheme: dark) {
192+
body.colorscheme-auto .navigation a,
193+
body.colorscheme-auto .navigation span {
194+
color: #dadada; }
195+
body.colorscheme-auto .navigation a:hover, body.colorscheme-auto .navigation a:focus {
196+
color: #42a5f5; } }
197+
198+
@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
199+
body.colorscheme-auto .navigation .navigation-list {
200+
background-color: #212121;
201+
border-top: solid 2px #424242;
202+
border-bottom: solid 2px #424242; } }
203+
204+
@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
205+
body.colorscheme-auto .navigation .navigation-list .menu-separator {
206+
border-top: 2px solid #dadada; } }
207+
208+
@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
209+
body.colorscheme-auto .navigation #menu-toggle:checked + label > i {
210+
color: #424242; } }
211+
212+
@media (prefers-color-scheme: dark) {
213+
body.colorscheme-auto .navigation i {
214+
color: #dadada; }
215+
body.colorscheme-auto .navigation i:hover, body.colorscheme-auto .navigation i:focus {
216+
color: #42a5f5; }
217+
body.colorscheme-auto .navigation .menu-button i:hover, body.colorscheme-auto .navigation .menu-button i:focus {
218+
color: #dadada; } }
219+
220+
body.colorscheme-dark .tabs label.tab-label {
221+
background-color: #424242;
222+
border-color: #4f4f4f; }
223+
224+
body.colorscheme-dark .tabs input.tab-input:checked + label.tab-label {
225+
background-color: #212121; }
226+
227+
body.colorscheme-dark .tabs .tab-content {
228+
background-color: #212121;
229+
border-color: #4f4f4f; }
230+
231+
@media (prefers-color-scheme: dark) {
232+
body.colorscheme-auto .tabs label.tab-label {
233+
background-color: #424242;
234+
border-color: #4f4f4f; }
235+
body.colorscheme-auto .tabs input.tab-input:checked + label.tab-label {
236+
background-color: #212121; }
237+
body.colorscheme-auto .tabs .tab-content {
238+
background-color: #212121;
239+
border-color: #4f4f4f; } }
240+
241+
body.colorscheme-dark .taxonomy-element {
242+
background-color: #424242; }
243+
body.colorscheme-dark .taxonomy-element a {
244+
color: #dadada; }
245+
body.colorscheme-dark .taxonomy-element a:active {
246+
color: #dadada; }
247+
248+
@media (prefers-color-scheme: dark) {
249+
body.colorscheme-auto .taxonomy-element {
250+
background-color: #424242; }
251+
body.colorscheme-auto .taxonomy-element a {
252+
color: #dadada; }
253+
body.colorscheme-auto .taxonomy-element a:active {
254+
color: #dadada; } }
255+
256+
body.colorscheme-dark .footer a {
257+
color: #42a5f5; }
258+
259+
@media (prefers-color-scheme: dark) {
260+
body.colorscheme-auto .footer a {
261+
color: #42a5f5; } }
262+
263+
body.colorscheme-dark .float-container a {
264+
color: #dadada;
265+
background-color: #424242; }
266+
body.colorscheme-dark .float-container a:hover, body.colorscheme-dark .float-container a:focus {
267+
color: #42a5f5; }
268+
@media only screen and (max-width: 768px) {
269+
body.colorscheme-dark .float-container a:hover, body.colorscheme-dark .float-container a:focus {
270+
color: #dadada; } }
271+
@media (prefers-color-scheme: dark) {
272+
body.colorscheme-auto .float-container a {
273+
color: #dadada;
274+
background-color: #424242; }
275+
body.colorscheme-auto .float-container a:hover, body.colorscheme-auto .float-container a:focus {
276+
color: #42a5f5; } }
277+
@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
278+
body.colorscheme-auto .float-container a:hover, body.colorscheme-auto .float-container a:focus {
279+
color: #dadada; } }
280+
281+
/*# sourceMappingURL=coder-dark.css.map */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Target":"css/coder-dark.css","MediaType":"text/css","Data":{}}

resources/_gen/assets/scss/scss/coder-dark.scss_9e20ccd2d8034c8e0fd83b11fb6e2bd5.content

-30
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,6 @@ body.colorscheme-dark {
3737
color: inherit;
3838
font-weight: inherit;
3939
text-decoration: none; }
40-
<<<<<<< HEAD
41-
body.colorscheme-dark code {
42-
background-color: #424242;
43-
color: #dadada; }
44-
body.colorscheme-dark .highlight pre {
45-
background-color: #424242;
46-
color: #212121; }
47-
body.colorscheme-dark .highlight pre code {
48-
background-color: inherit;
49-
color: inherit; }
50-
body.colorscheme-dark :not(.highlight) > pre code {
51-
background-color: inherit;
52-
color: inherit; }
53-
=======
54-
>>>>>>> 2bdf4f3 (Fix syntax highlight to be more configurable)
5540
body.colorscheme-dark blockquote {
5641
border-left: 2px solid #424242; }
5742
body.colorscheme-dark th,
@@ -113,21 +98,6 @@ body.colorscheme-dark {
11398
color: inherit;
11499
font-weight: inherit;
115100
text-decoration: none; }
116-
<<<<<<< HEAD
117-
body.colorscheme-auto code {
118-
background-color: #424242;
119-
color: #dadada; }
120-
body.colorscheme-auto .highlight pre {
121-
background-color: #424242;
122-
color: #212121; }
123-
body.colorscheme-auto .highlight pre code {
124-
background-color: inherit;
125-
color: inherit; }
126-
body.colorscheme-auto :not(.highlight) > pre code {
127-
background-color: inherit;
128-
color: inherit; }
129-
=======
130-
>>>>>>> 2bdf4f3 (Fix syntax highlight to be more configurable)
131101
body.colorscheme-auto blockquote {
132102
border-left: 2px solid #424242; }
133103
body.colorscheme-auto th,

0 commit comments

Comments
 (0)