diff --git a/CHANGELOG.md b/CHANGELOG.md index 9614de1..559e1b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +> v0.9.0 + +- **Change the folder of high res images, now it's the root of the image folder.** +- Add a version to CSS to prevent bad caching +- Fix the images so absoluts paths are working even if the blog is in a subfolder + > v0.8.0 - Add a licensing page and a copyright in the footer if wanted (thx to [Hjdskes](https://github.com/Hjdskes)) diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index ac36e06..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,2 +0,0 @@ -+++ -+++ diff --git a/exampleSite/content/blog/example-of-an-article.md b/exampleSite/content/blog/example-of-an-article.md index e7692a0..0149b3b 100644 --- a/exampleSite/content/blog/example-of-an-article.md +++ b/exampleSite/content/blog/example-of-an-article.md @@ -13,7 +13,7 @@ best: true **This theme includes a tranparent way to defer images. This can be enabled/disabled in the `config.toml`.** -![image](../../img/startup.jpg) +![image](/img/startup.jpg) **You will just have to do two images : the normal, and a low resolution one.** diff --git a/exampleSite/static/img/high/startup.jpg b/exampleSite/static/img/startup.jpg similarity index 100% rename from exampleSite/static/img/high/startup.jpg rename to exampleSite/static/img/startup.jpg diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bd4d8a1..3731fc2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,11 +4,7 @@
{{ partial "page-heading.html" . }}
- {{ if .Site.Params.progressively }} - {{ .Content | replaceRE "(.*)" "
$3
" | safeHTML }} - {{ else }} - {{ .Content }} - {{ end }} + {{ partial "content" . }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html index e9f35de..f60a25a 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -13,11 +13,7 @@
- {{ if .Site.Params.progressively }} - {{ .Content | replaceRE "(.*)" "
$3
" | safeHTML }} - {{ else }} - {{ .Content }} - {{ end }} + {{ partial "content" . }}

Back to posts

diff --git a/layouts/partials/content.html b/layouts/partials/content.html new file mode 100644 index 0000000..10000f9 --- /dev/null +++ b/layouts/partials/content.html @@ -0,0 +1,6 @@ +{{ if .Site.Params.progressively }} + {{ $newImage := (print "
$3
") }} + {{ .Content | replaceRE "(.*)" $newImage | safeHTML }} +{{ else }} + {{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 85d703c..3f2377d 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -1,6 +1,6 @@ - + {{ if .Site.Params.highlightjs }} diff --git a/static/css/main.css b/static/css/main.v0.9.0.css similarity index 100% rename from static/css/main.css rename to static/css/main.v0.9.0.css