Skip to content

Commit

Permalink
Merge pull request #747 from okkur/v0.17
Browse files Browse the repository at this point in the history
Release v0.17.0
  • Loading branch information
stp-ip authored Apr 24, 2020
2 parents 8b10f68 + 014ac2b commit 7c0c985
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .seed-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project:
oneLiner: "Highly customizable open source theme for Hugo based static websites"
description: |
Create your next website with Syna.
version: "v0.16.2"
version: "v0.17.0"

vision:
type: "community"
Expand Down
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
# v0.17.0
_2018_
- [Downloads for v0.17.0](https://syna.okkur.org/releases//v0.17.0)
- [Downloads for v0.17.0](https://syna.okkur.org/releases/v0.17.0)
- [Changelog since v0.16.0](#changes-since-v016)
## Documentation for v0.17
Expand All @@ -15,6 +15,24 @@ _2018_
-->

# v0.17.0
_2020-04-24_
- [Downloads for v0.17.0](https://syna.okkur.org/releases/v0.17.0)
- [Changelog since v0.16.2](#changes-since-v0162)

## Documentation for v0.17
[Documentation](https://syna.okkur.org/docs) *Documentation defaults to latest release*

## Changes since v0.16.2
- Dutch translation (now supporting French, Dutch, English, German and Portuguese)

## Fixes since v0.16.2
- Fix date_format not being used [738](https://github.com/okkur/syna/pull/738)
- Remove relLangURL for assets [732](https://github.com/okkur/syna/pull/732)
- Fix list section path in exampleSite [726](https://github.com/okkur/syna/pull/726)

---

# v0.16.2

_2020-03-23_
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.16.2
v0.17.0
5 changes: 4 additions & 1 deletion exampleSite/config-dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ title = "Okkur - Syna"
theme = "syna"
themesDir = "../.."
enableGitInfo = true
version = "0.16.2"
version = "0.17.0"
disableKinds = ["RSS", "taxonomy", "taxonomyTerm"]

RelativeURLs = true
CanonifyURLs = true

# Google Analytics tracking
googleAnalytics = ""

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title = "Okkur - Syna"
theme = "syna"
themesDir = "../.."
enableGitInfo = true
version = "0.16.2"
version = "0.17.0"
disableKinds = ["RSS", "taxonomy", "taxonomyTerm"]
ignorefiles = [ "content/dev/.*" ]

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/content/docs/installation/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This way whenever you want to update the theme you can just pull the updates and
git submodule init # If you haven't initialized before
git submodule add https://git.okkur.org/syna themes/syna
cd themes/syna
git checkout v0.16 # Latest release as of now is v0.16.2
git checkout v0.17 # Latest release as of now is v0.17.0
```

*You can visit [Hugo's documentation](https://gohugo.io/themes/installing-and-using-themes/) on installing themes for more information.*
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-site",
"version": "0.16.2",
"version": "0.17.0",
"description": "Example Site for Syna theme for Hugo",
"main": "static-main/js/index.js",
"author": "Michael Grosser",
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- define "main" -}}
{{/* In some edge cases, .CurrentSection is not available. If it's not
available the build would break since we need .CurrentSection.File.Dir later on. */}}
{{- /* In some edge cases, .CurrentSection is not available. If it's not
available the build would break since we need .CurrentSection.File.Dir later on. */ -}}
{{- if .CurrentSection -}}
{{- $list_page := .Site.GetPage "page" (printf "%s%s" .CurrentSection.File.Dir "_index") -}}
{{/* real_page is the _index.md file which indicates the page that is
Expand Down
16 changes: 9 additions & 7 deletions layouts/partials/fragments/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
{{- partial "helpers/container.html" (dict "start" true "in_slot" .in_slot "bg" $bg "Name" .Name "Params" .Params) -}}
<div data-portal></div>
{{- partial "helpers/container.html" (dict "end" true "in_slot" .in_slot) -}}
<script>
(window.editors || (window.editors = [])).push({
ui: JSON.parse({{ readFile (printf "%s%s/ui.json" .page.File.Dir .Name) | safeHTML }}),
schema: JSON.parse({{ readFile (printf "%s%s/schema.json" .page.File.Dir .Name) | safeHTML }}),
container: {{ printf "#%s [data-portal]" .Name }}
});
</script>
{{- if .page.File.Dir -}}
<script>
(window.editors || (window.editors = [])).push({
ui: JSON.parse({{ readFile (printf "%s%s/ui.json" .page.File.Dir .Name) | safeHTML }}),
schema: JSON.parse({{ readFile (printf "%s%s/schema.json" .page.File.Dir .Name) | safeHTML }}),
container: {{ printf "#%s [data-portal]" .Name }}
});
</script>
{{- end -}}
16 changes: 9 additions & 7 deletions layouts/partials/fragments/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
<canvas id="{{ printf "chart-%s" .Name }}" width="400" height="400"></canvas>
</div>
{{- partial "helpers/container.html" (dict "end" true "in_slot" .in_slot) -}}
<script>
var fragmentName = "{{ .Name }}";
window.syna.api.register('graph', 'graph-' + fragmentName, {
selector: "{{ printf "#chart-%s" .Name }}",
config: JSON.parse({{ readFile (printf "%s%s/config.json" .page.File.Dir .Name) | safeHTML }}),
});
</script>
{{- if .page.File.Dir -}}
<script>
var fragmentName = "{{ .Name }}";
window.syna.api.register('graph', 'graph-' + fragmentName, {
selector: "{{ printf "#chart-%s" .Name }}",
config: JSON.parse({{ readFile (printf "%s%s/config.json" .page.File.Dir .Name) | safeHTML }}),
});
</script>
{{- end -}}
20 changes: 11 additions & 9 deletions layouts/partials/fragments/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,14 @@
</div>
</header>
{{- if .Params.particles }}
<script>
var fragmentName = "{{ .Name }}";
{{- $file_path := printf "%s%s/config.json" .page.File.Dir .Name -}}
window.syna.api.register("hero", "hero-" + fragmentName, {
selector: "{{ printf "%s-particles-js" .Name }}",
config: {{ if fileExists $file_path -}} JSON.parse({{ readFile $file_path | safeHTML }}) {{- else -}} null {{- end -}},
});
</script>
{{ end -}}
{{- if .page.File.Dir -}}
<script>
var fragmentName = "{{ .Name }}";
{{- $file_path := printf "%s%s/config.json" .page.File.Dir .Name -}}
window.syna.api.register("hero", "hero-" + fragmentName, {
selector: "{{ printf "%s-particles-js" .Name }}",
config: {{ if fileExists $file_path -}} JSON.parse({{ readFile $file_path | safeHTML }}) {{- else -}} null {{- end -}},
});
</script>
{{ end -}}
{{ end -}}
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- end -}}
<head>
<meta name="theme" content="Syna">
<meta name="theme-version" content="v0.16.2">
<meta name="theme-version" content="v0.17.0">
<meta name="theme-url" content="https://syna.okkur.org">
<meta name="theme-description" content="Highly customizable open source theme for Hugo based static websites">
<meta name="theme-author" content="Okkur Labs">
Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
command = "HUGO_THEME=repo DEMO_MODE=true hugo --config config-dev.toml -d ../public --minify"

[context.production.environment]
HUGO_VERSION = "0.68.3"
HUGO_VERSION = "0.69.2"
HUGO_ENV = "production"

[context.deploy-preview]
command = "HUGO_THEME=repo DEMO_MODE=true hugo --config config-dev.toml -d ../public --minify"

[context.deploy-preview.environment]
HUGO_VERSION = "0.68.3"
HUGO_VERSION = "0.69.2"

[context.branch-deploy]
command = "HUGO_THEME=repo DEMO_MODE=true hugo --config config-dev.toml -d ../public --minify"

[context.branch-deploy.environment]
HUGO_VERSION = "0.68.3"
HUGO_VERSION = "0.69.2"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "syna",
"version": "0.16.2",
"version": "0.17.0",
"description": "Highly customizable open source theme for Hugo based static websites",
"main": "static-main",
"repository": "https://git.okkur.org/syna",
Expand Down

0 comments on commit 7c0c985

Please sign in to comment.