Merge branch 'master' of github.com:jakewies/hugo-theme-codex into src

* 'master' of github.com:jakewies/hugo-theme-codex:
  fix: toc overflow caused by improper css solution
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  Extract favicon into a partial
  Add rel-me to social links
  Fix browse-by-tag link
  layouts: Add markdown render hook to open links in new tab
  Update post-pagination.html
This commit is contained in:
Harsh Shandilya 2020-10-19 00:40:08 +05:30
commit 7552259973
11 changed files with 54 additions and 11 deletions

View File

@ -150,6 +150,42 @@
"contributions": [
"code"
]
},
{
"login": "wilsonehusin",
"name": "Wilson E. Husin",
"avatar_url": "https://avatars1.githubusercontent.com/u/14004487?v=4",
"profile": "http://wilsonehusin.com",
"contributions": [
"code"
]
},
{
"login": "tommorris",
"name": "Tom Morris",
"avatar_url": "https://avatars0.githubusercontent.com/u/175?v=4",
"profile": "https://tommorris.org/",
"contributions": [
"code"
]
},
{
"login": "sdil",
"name": "Mohamad Fadhil",
"avatar_url": "https://avatars0.githubusercontent.com/u/461537?v=4",
"profile": "http://twitter.com/sdil",
"contributions": [
"code"
]
},
{
"login": "skvale",
"name": "Sam Kvale",
"avatar_url": "https://avatars0.githubusercontent.com/u/5314713?v=4",
"profile": "https://github.com/skvale",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,

View File

@ -210,7 +210,7 @@ Check out the [CONTRIBUTORS.md file](https://github.com/jakewies/hugo-theme-code
## Contributors ✨
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
@ -239,6 +239,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
</tr>
<tr>
<td align="center"><a href="https://github.com/jdl031"><img src="https://avatars3.githubusercontent.com/u/1720477?v=4" width="100px;" alt=""/><br /><sub><b>James Lloyd</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=jdl031" title="Code">💻</a></td>
<td align="center"><a href="http://wilsonehusin.com"><img src="https://avatars1.githubusercontent.com/u/14004487?v=4" width="100px;" alt=""/><br /><sub><b>Wilson E. Husin</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=wilsonehusin" title="Code">💻</a></td>
<td align="center"><a href="https://tommorris.org/"><img src="https://avatars0.githubusercontent.com/u/175?v=4" width="100px;" alt=""/><br /><sub><b>Tom Morris</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=tommorris" title="Code">💻</a></td>
<td align="center"><a href="http://twitter.com/sdil"><img src="https://avatars0.githubusercontent.com/u/461537?v=4" width="100px;" alt=""/><br /><sub><b>Mohamad Fadhil</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=sdil" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/skvale"><img src="https://avatars0.githubusercontent.com/u/5314713?v=4" width="100px;" alt=""/><br /><sub><b>Sam Kvale</b></sub></a><br /><a href="https://github.com/jakewies/hugo-theme-codex/commits?author=skvale" title="Code">💻</a></td>
</tr>
</table>

View File

@ -24,7 +24,7 @@ $tocBreakpoint: 1024px;
padding-top: 10px;
.anchor {
top: .5rem;
top: 0.5rem;
text-decoration: none;
position: absolute;
left: -1rem;
@ -78,9 +78,7 @@ $tocBreakpoint: 1024px;
max-width: 350px;
@media screen and (max-width: $tocBreakpoint) {
visibility: hidden;
width: 0;
margin: 0;
display: none;
}
}

View File

@ -1 +1 @@
{"Target":"css/post.min.2cb93c91050d1853bf971cc31e00122edd6e0f405aa1de3b7f8ef67ea3b5a79a.css","MediaType":"text/css","Data":{"Integrity":"sha256-LLk8kQUNGFO/lxzDHgASLt1uD0Baod47f472fqO1p5o="}}
{"Target":"css/post.min.b60e0932fe1c50c3d7c5b4f83ee9e4592363654d0f2abf05bbd0678d5b8a214c.css","MediaType":"text/css","Data":{"Integrity":"sha256-tg4JMv4cUMPXxbT4PunkWSNjZU0PKr8Fu9BnjVuKIUw="}}

View File

@ -0,0 +1,4 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" {{ end }}
{{ if strings.HasPrefix .Destination "mailto" }} target="_blank" {{ end }}
{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener" {{ end }}
>{{ .Text | safeHTML }}</a>

View File

@ -21,7 +21,7 @@
<meta name="twitter:creator" content="{{ .Site.Params.twitterCreator | default .Site.Params.twitter }}" />
{{ end }}
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
{{ partial "favicon.html" }}
<!-- Styles -->
{{ block "styles" . }} {{ end }} <!-- Get "style_opts" variable from "styles" block -->

View File

@ -1,7 +1,7 @@
<ul class="tags__list">
{{ range $tag, $value := $.Site.Taxonomies.tags }}
<li class="tag__item">
<a class="tag__link" href="{{ "/tags/" | relLangURL}}{{ $tag | urlize }}">{{ $tag | urlize }} ({{ len $value }})</a>
<a class="tag__link" href="{{ "/tags/" | relLangURL}}{{ $tag | urlize }}/">{{ $tag | urlize }} ({{ len $value }})</a>
</li>
{{ end }}
</ul>

View File

@ -0,0 +1 @@
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />

View File

@ -9,7 +9,7 @@
{{if .NextInSection}}
<a class="pagination__item" href="{{.NextInSection.Permalink}}">
<span class="pagination__label">Next Post</span>
<span class="pagination__title" >{{.NextInSection.Title}}</a>
<span class="pagination__title" >{{.NextInSection.Title}}</span>
</a>
{{end}}
</div>

View File

@ -5,7 +5,7 @@
{{ range $icons }}
{{ $icon := anchorize . }}
{{ if isset $currentPage.Site.Params $icon }}
<a class="social-icons__link" title="{{ . }}"
<a class="social-icons__link" rel="me" title="{{ . }}"
href="{{ index $currentPage.Site.Params $icon }}"
target="_blank" rel="noopener">
<div class="social-icons__icon" style="background-image: url('{{print "svg/" $icon ".svg" | absURL}}')"></div>