mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Regis Philibert
19.40.2021 6a9f6dc1f5aec9a1de0c736f01c246944c4ab026
We can settle with 0.64.0
2 files deleted
4 files modified
26 ■■■■ changed files
config.yaml 2 ●●● patch | view | raw | blame | history
data/webpack_assets.json 6 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 1 ●●●● patch | view | raw | blame | history
layouts/partials/site-scripts.html 5 ●●●●● patch | view | raw | blame | history
layouts/partials/site-style.html 10 ●●●●● patch | view | raw | blame | history
theme.toml 2 ●●● patch | view | raw | blame | history
config.yaml
@@ -1,3 +1,3 @@
module:
  hugoVersion:
    min: "0.79.0"
    min: "0.64.0"
data/webpack_assets.json
File was deleted
layouts/_default/baseof.html
@@ -46,6 +46,5 @@
      {{ block "main" . }}{{ end }}
    </main>
    {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
    {{ block "scripts" . }}{{ partialCached "site-scripts.html" . }}{{ end }}
  </body>
</html>
layouts/partials/site-scripts.html
File was deleted
layouts/partials/site-style.html
@@ -1,12 +1,22 @@
{{/* We only process CSS if below setting is true */}}
{{ if site.Params.ananke_process_css }}
  {{ with resources.Get "/ananke/css/main.css" }}
    {{/* We use ToCSS on non sass to make sure node_modules paths are included and imported
    Then we can run PostCSS on the resulting asset.
    `use` setting allow us to skip the postcss.config file.
     */}}
    {{ $options := (dict "targetPath" "/ananke/css/main.css" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }}
    {{ $style := . | resources.ToCSS $options | resources.PostCSS (dict "use" "postcss-cssnext") | minify }}
    {{/* We fingerprint in production to ensure cache busting */}}
    {{ if eq (getenv "HUGO_ENV") "production" }}
      {{ $style = . | fingerprint }}
    {{ end }}
    {{ with $style }}
      <link rel="stylesheet" href="{{ .RelPermalink }}" >
    {{ end }}
  {{ end }}
{{ else }}
  {{/* If processing is turned off, we use the assets/dist/main.?.css commited to the repo. */}}
  {{ with resources.GetMatch "/ananke/dist/main.*.css" }}
    <link rel="stylesheet" href="{{ .RelPermalink }}" >
  {{ end }}
theme.toml
@@ -8,7 +8,7 @@
homepage = "https://github.com/theNewDynamic/gohugo-theme-ananke"
tags = ["website", "starter", "responsive", "Disqus", "blog", "Tachyons", "Multilingual", "Stackbit"]
features = ["posts", "shortcodes", "related content", "comments"]
min_version = "0.79.0"
min_version = "0.64.0"
[author]
  name = "theNewDynamic"