Skip to content
Permalink
Browse files
Fix arrow extra space and tweet warning (#785)
Remove the extra `\n` that was adding an extra space after the link
arrow.
Also fix the tweet shortcode warning.
  • Loading branch information
luizdepra committed Mar 12, 2023
1 parent 3c5a33d commit 5ad4522
Show file tree
Hide file tree
Showing 14 changed files with 3,992 additions and 41 deletions.
@@ -21,9 +21,9 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme

---

## Twitter Simple Shortcode
## Twitter Shortcode

{{< twitter_simple 1085870671291310081 >}}
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}

<br>

@@ -21,9 +21,9 @@ O Hugo vem com vários [Shortcodes Internos](https://gohugo.io/content-managemen

---

## Shortcode simples do Twitter
## Shortcode do Twitter

{{< twitter_simple 1085870671291310081 >}}
{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}}

<br>

@@ -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>
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} class="external-link" target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
@@ -3,7 +3,7 @@ publish = "exampleSite/public"
command = "cd exampleSite && hugo --themesDir=../.. --baseURL $URL"

[build.environment]
HUGO_VERSION = "0.79.1"
HUGO_VERSION = "0.111.3"
HUGO_THEME = "repo"

[context.deploy-preview]
@@ -0,0 +1,281 @@
body.colorscheme-dark {
color: #dadada;
background-color: #212121; }
body.colorscheme-dark a {
color: #42a5f5; }
body.colorscheme-dark h1,
body.colorscheme-dark h2,
body.colorscheme-dark h3,
body.colorscheme-dark h4,
body.colorscheme-dark h5,
body.colorscheme-dark h6 {
color: #dadada; }
body.colorscheme-dark h1:hover .heading-link,
body.colorscheme-dark h2:hover .heading-link,
body.colorscheme-dark h3:hover .heading-link,
body.colorscheme-dark h4:hover .heading-link,
body.colorscheme-dark h5:hover .heading-link,
body.colorscheme-dark h6:hover .heading-link {
visibility: visible; }
body.colorscheme-dark h1 .heading-link,
body.colorscheme-dark h2 .heading-link,
body.colorscheme-dark h3 .heading-link,
body.colorscheme-dark h4 .heading-link,
body.colorscheme-dark h5 .heading-link,
body.colorscheme-dark h6 .heading-link {
color: #42a5f5;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden; }
body.colorscheme-dark h1 .title-link,
body.colorscheme-dark h2 .title-link,
body.colorscheme-dark h3 .title-link,
body.colorscheme-dark h4 .title-link,
body.colorscheme-dark h5 .title-link,
body.colorscheme-dark h6 .title-link {
color: inherit;
font-weight: inherit;
text-decoration: none; }
body.colorscheme-dark blockquote {
border-left: 2px solid #424242; }
body.colorscheme-dark th,
body.colorscheme-dark td {
padding: 1.6rem; }
body.colorscheme-dark table {
border-collapse: collapse; }
body.colorscheme-dark table td,
body.colorscheme-dark table th {
border: 2px solid #dadada; }
body.colorscheme-dark table tr:first-child th {
border-top: 0; }
body.colorscheme-dark table tr:last-child td {
border-bottom: 0; }
body.colorscheme-dark table tr td:first-child,
body.colorscheme-dark table tr th:first-child {
border-left: 0; }
body.colorscheme-dark table tr td:last-child,
body.colorscheme-dark table tr th:last-child {
border-right: 0; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto {
color: #dadada;
background-color: #212121; }
body.colorscheme-auto a {
color: #42a5f5; }
body.colorscheme-auto h1,
body.colorscheme-auto h2,
body.colorscheme-auto h3,
body.colorscheme-auto h4,
body.colorscheme-auto h5,
body.colorscheme-auto h6 {
color: #dadada; }
body.colorscheme-auto h1:hover .heading-link,
body.colorscheme-auto h2:hover .heading-link,
body.colorscheme-auto h3:hover .heading-link,
body.colorscheme-auto h4:hover .heading-link,
body.colorscheme-auto h5:hover .heading-link,
body.colorscheme-auto h6:hover .heading-link {
visibility: visible; }
body.colorscheme-auto h1 .heading-link,
body.colorscheme-auto h2 .heading-link,
body.colorscheme-auto h3 .heading-link,
body.colorscheme-auto h4 .heading-link,
body.colorscheme-auto h5 .heading-link,
body.colorscheme-auto h6 .heading-link {
color: #42a5f5;
font-weight: inherit;
text-decoration: none;
font-size: 80%;
visibility: hidden; }
body.colorscheme-auto h1 .title-link,
body.colorscheme-auto h2 .title-link,
body.colorscheme-auto h3 .title-link,
body.colorscheme-auto h4 .title-link,
body.colorscheme-auto h5 .title-link,
body.colorscheme-auto h6 .title-link {
color: inherit;
font-weight: inherit;
text-decoration: none; }
body.colorscheme-auto blockquote {
border-left: 2px solid #424242; }
body.colorscheme-auto th,
body.colorscheme-auto td {
padding: 1.6rem; }
body.colorscheme-auto table {
border-collapse: collapse; }
body.colorscheme-auto table td,
body.colorscheme-auto table th {
border: 2px solid #dadada; }
body.colorscheme-auto table tr:first-child th {
border-top: 0; }
body.colorscheme-auto table tr:last-child td {
border-bottom: 0; }
body.colorscheme-auto table tr td:first-child,
body.colorscheme-auto table tr th:first-child {
border-left: 0; }
body.colorscheme-auto table tr td:last-child,
body.colorscheme-auto table tr th:last-child {
border-right: 0; } }

body.colorscheme-dark .content .post .tags .tag {
background-color: #424242; }
body.colorscheme-dark .content .post .tags .tag a {
color: #dadada; }
body.colorscheme-dark .content .post .tags .tag a:active {
color: #dadada; }

body.colorscheme-dark .content .list ul li .title {
color: #dadada; }
body.colorscheme-dark .content .list ul li .title:hover, body.colorscheme-dark .content .list ul li .title:focus {
color: #42a5f5; }

body.colorscheme-dark .content .centered .about ul li a {
color: #dadada; }
body.colorscheme-dark .content .centered .about ul li a:hover, body.colorscheme-dark .content .centered .about ul li a:focus {
color: #42a5f5; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .content .post .tags .tag {
background-color: #424242; }
body.colorscheme-auto .content .post .tags .tag a {
color: #dadada; }
body.colorscheme-auto .content .post .tags .tag a:active {
color: #dadada; }
body.colorscheme-auto .content .list ul li .title {
color: #dadada; }
body.colorscheme-auto .content .list ul li .title:hover, body.colorscheme-auto .content .list ul li .title:focus {
color: #42a5f5; }
body.colorscheme-auto .content .centered .about ul li a {
color: #dadada; }
body.colorscheme-auto .content .centered .about ul li a:hover, body.colorscheme-auto .content .centered .about ul li a:focus {
color: #42a5f5; } }

body.colorscheme-dark .notice .notice-title {
border-bottom: 1px solid #212121; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .notice .notice-title {
border-bottom: 1px solid #212121; } }

body.colorscheme-dark .navigation a,
body.colorscheme-dark .navigation span {
color: #dadada; }

body.colorscheme-dark .navigation a:hover, body.colorscheme-dark .navigation a:focus {
color: #42a5f5; }

@media only screen and (max-width: 768px) {
body.colorscheme-dark .navigation .navigation-list {
background-color: #212121;
border-top: solid 2px #424242;
border-bottom: solid 2px #424242; } }

@media only screen and (max-width: 768px) {
body.colorscheme-dark .navigation .navigation-list .menu-separator {
border-top: 2px solid #dadada; } }

@media only screen and (max-width: 768px) {
body.colorscheme-dark .navigation #menu-toggle:checked + label > i {
color: #424242; } }

body.colorscheme-dark .navigation i {
color: #dadada; }
body.colorscheme-dark .navigation i:hover, body.colorscheme-dark .navigation i:focus {
color: #42a5f5; }

body.colorscheme-dark .navigation .menu-button i:hover, body.colorscheme-dark .navigation .menu-button i:focus {
color: #dadada; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .navigation a,
body.colorscheme-auto .navigation span {
color: #dadada; }
body.colorscheme-auto .navigation a:hover, body.colorscheme-auto .navigation a:focus {
color: #42a5f5; } }

@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
body.colorscheme-auto .navigation .navigation-list {
background-color: #212121;
border-top: solid 2px #424242;
border-bottom: solid 2px #424242; } }

@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
body.colorscheme-auto .navigation .navigation-list .menu-separator {
border-top: 2px solid #dadada; } }

@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
body.colorscheme-auto .navigation #menu-toggle:checked + label > i {
color: #424242; } }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .navigation i {
color: #dadada; }
body.colorscheme-auto .navigation i:hover, body.colorscheme-auto .navigation i:focus {
color: #42a5f5; }
body.colorscheme-auto .navigation .menu-button i:hover, body.colorscheme-auto .navigation .menu-button i:focus {
color: #dadada; } }

body.colorscheme-dark .tabs label.tab-label {
background-color: #424242;
border-color: #4f4f4f; }

body.colorscheme-dark .tabs input.tab-input:checked + label.tab-label {
background-color: #212121; }

body.colorscheme-dark .tabs .tab-content {
background-color: #212121;
border-color: #4f4f4f; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .tabs label.tab-label {
background-color: #424242;
border-color: #4f4f4f; }
body.colorscheme-auto .tabs input.tab-input:checked + label.tab-label {
background-color: #212121; }
body.colorscheme-auto .tabs .tab-content {
background-color: #212121;
border-color: #4f4f4f; } }

body.colorscheme-dark .taxonomy-element {
background-color: #424242; }
body.colorscheme-dark .taxonomy-element a {
color: #dadada; }
body.colorscheme-dark .taxonomy-element a:active {
color: #dadada; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .taxonomy-element {
background-color: #424242; }
body.colorscheme-auto .taxonomy-element a {
color: #dadada; }
body.colorscheme-auto .taxonomy-element a:active {
color: #dadada; } }

body.colorscheme-dark .footer a {
color: #42a5f5; }

@media (prefers-color-scheme: dark) {
body.colorscheme-auto .footer a {
color: #42a5f5; } }

body.colorscheme-dark .float-container a {
color: #dadada;
background-color: #424242; }
body.colorscheme-dark .float-container a:hover, body.colorscheme-dark .float-container a:focus {
color: #42a5f5; }
@media only screen and (max-width: 768px) {
body.colorscheme-dark .float-container a:hover, body.colorscheme-dark .float-container a:focus {
color: #dadada; } }
@media (prefers-color-scheme: dark) {
body.colorscheme-auto .float-container a {
color: #dadada;
background-color: #424242; }
body.colorscheme-auto .float-container a:hover, body.colorscheme-auto .float-container a:focus {
color: #42a5f5; } }
@media only screen and (prefers-color-scheme: dark) and (max-width: 768px) {
body.colorscheme-auto .float-container a:hover, body.colorscheme-auto .float-container a:focus {
color: #dadada; } }

/*# sourceMappingURL=coder-dark.css.map */
@@ -0,0 +1 @@
{"Target":"css/coder-dark.css","MediaType":"text/css","Data":{}}
@@ -37,21 +37,6 @@ body.colorscheme-dark {
color: inherit;
font-weight: inherit;
text-decoration: none; }
<<<<<<< HEAD
body.colorscheme-dark code {
background-color: #424242;
color: #dadada; }
body.colorscheme-dark .highlight pre {
background-color: #424242;
color: #212121; }
body.colorscheme-dark .highlight pre code {
background-color: inherit;
color: inherit; }
body.colorscheme-dark :not(.highlight) > pre code {
background-color: inherit;
color: inherit; }
=======
>>>>>>> 2bdf4f3 (Fix syntax highlight to be more configurable)
body.colorscheme-dark blockquote {
border-left: 2px solid #424242; }
body.colorscheme-dark th,
@@ -113,21 +98,6 @@ body.colorscheme-dark {
color: inherit;
font-weight: inherit;
text-decoration: none; }
<<<<<<< HEAD
body.colorscheme-auto code {
background-color: #424242;
color: #dadada; }
body.colorscheme-auto .highlight pre {
background-color: #424242;
color: #212121; }
body.colorscheme-auto .highlight pre code {
background-color: inherit;
color: inherit; }
body.colorscheme-auto :not(.highlight) > pre code {
background-color: inherit;
color: inherit; }
=======
>>>>>>> 2bdf4f3 (Fix syntax highlight to be more configurable)
body.colorscheme-auto blockquote {
border-left: 2px solid #424242; }
body.colorscheme-auto th,

0 comments on commit 5ad4522

Please sign in to comment.