Pull in my changes to pickles theme from my fork.
This commit is contained in:
parent
7fbcda8d2f
commit
8506c7dd45
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,4 +1,4 @@
|
|||
[submodule "themes/pickles"]
|
||||
path = themes/pickles
|
||||
url = https://github.com/mismith0227/hugo_theme_pickles
|
||||
branch = release
|
||||
url = git@github.com:annabunches/hugo_theme_pickles.git
|
||||
branch = develop
|
||||
|
|
6
Makefile
6
Makefile
|
@ -1,4 +1,5 @@
|
|||
DOCKER_IMAGE := cr.annabunch.es/annabunches-static
|
||||
DOCKER_TAG := latest
|
||||
|
||||
.PHONY: all build push
|
||||
|
||||
|
@ -8,7 +9,8 @@ serve:
|
|||
hugo serve -D --bind 0.0.0.0 -b http://${DEV_IP}:1313/
|
||||
|
||||
build:
|
||||
docker build -t ${DOCKER_IMAGE} .
|
||||
# TODO: figure out why this always uses the cache on the last step...
|
||||
docker build --no-cache -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
||||
|
||||
push:
|
||||
docker push ${DOCKER_IMAGE}
|
||||
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
<article class="c-article p-list-article">
|
||||
<header>
|
||||
<h2 class="c-title c-article__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<p class="c-article__meta">
|
||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</time>
|
||||
</p>
|
||||
</header>
|
||||
<div class="c-article__summary">
|
||||
{{ .Summary | plainify | safeHTML }}
|
||||
</div>
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .Permalink }}" class="c-article__btn p-list-article__btn">Read more</a>
|
||||
{{ end }}
|
||||
</article>
|
|
@ -1,57 +0,0 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
|
||||
<article class="p-article">
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div>
|
||||
<div class="c-time">
|
||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</time>
|
||||
</div>
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="c-tag">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
{{ with .Params.thumbnail }}
|
||||
<img src="{{ . }}" alt="thumbnail" class="p-article__thumbnail">
|
||||
{{ end }}
|
||||
<section id="js-article" class="p-article__body">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<footer>
|
||||
{{ with ($.Param "disqus") }}
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
var disqus_shortname = '{{ . }}';
|
||||
(function() {
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
{{ end }}
|
||||
<nav class="p-pagination c-pagination">
|
||||
<div class="c-pagination__ctrl">
|
||||
<div class="c-pagination__newer">
|
||||
{{ if .NextInSection }}
|
||||
<a href="{{ .NextInSection.Permalink }}">Newer</a>
|
||||
{{ else }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="c-pagination__older">
|
||||
{{ if .PrevInSection }}
|
||||
<a href="{{ .PrevInSection.Permalink }}">Older</a>
|
||||
{{ else }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{{ partial "related.html" . }}
|
||||
{{ partial "siteinfo.html" . }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ partial "footer.html" . }}
|
|
@ -1,20 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
<a href="#main" class="skip-link p-screen-reader-text">Skip to content</a>
|
||||
{{ partial "svgpack-sprite.html" . }}
|
||||
<header class="l-header">
|
||||
{{ if .IsPage }}
|
||||
<p class="c-title p-title"><a href="{{ .Site.BaseURL }}" class="p-title__link">{{ .Site.Title }}</a></p>
|
||||
{{ else }}
|
||||
<h1 class="c-title p-title"><a href="{{ .Site.BaseURL }}" class="p-title__link">{{ .Site.Title }}</a></h1>
|
||||
{{ end }}
|
||||
{{ with ($.Param "subtitle") }}
|
||||
<p class="p-subtitle">
|
||||
{{ . }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{- partial "header_custom.html" . }}
|
||||
<main id="main" class="l-main">
|
3
layouts/partials/timestamp.html
Normal file
3
layouts/partials/timestamp.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</time>
|
|
@ -1 +1 @@
|
|||
Subproject commit 2a618dda48359315eda03be2816dc52a901978d9
|
||||
Subproject commit 14773c1e234d4980647f1e38f4b3cb090b2d379f
|
Loading…
Reference in New Issue
Block a user