mirror of https://github.com/onweru/compose.git

weru
10.13.2021 ec3ff11f4002257f42daba7bb8a8f5d268245808
update file
5 files modified
30 ■■■■ changed files
exampleSite/content/_index.md 13 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/clarity/customize.md 8 ●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/graphs-charts-tables.md 5 ●●●● patch | view | raw | blame | history
exampleSite/go.mod 2 ●●● patch | view | raw | blame | history
exampleSite/go.sum 2 ●●●●● patch | view | raw | blame | history
exampleSite/content/_index.md
@@ -28,11 +28,10 @@
![diy](/images/scribble.jpg)
{{< /column >}}
{{< /block >}}
{{< column "mt-2" >}}
### You can generate graphs, charts and tables from a csv, ~~or a json~~ dataset
{{< /column >}}
{{< grid "3" >}}
  {{< chart "data" "pie, bar, doughnut" >}}
{{< /grid >}}
{{< button "docs/compose/graphs-charts-tables/" "Learn more" "mt-2" >}}
{{< column "mt-2" >}}
### You can generate graphs, charts and tables from a csv, ~~or a json~~ dataset
{{< button "docs/compose/graphs-charts-tables/#show-a-pie-doughnut--bar-chart-at-once" "Learn more" >}}
{{< /column >}}
exampleSite/content/docs/clarity/customize.md
@@ -94,7 +94,9 @@
Please note that you cannot enforce both modes at the same time. It wouldn't make sense, would it?
> ⚠️ Please also note that the mode toggle UI will remain in place. That way, if a user prefers dark mode, they can have their way. The best of both worlds.
{{< tip "warning" >}}
> Please also note that the mode toggle UI will remain in place. That way, if a user prefers dark mode, they can have their way. The best of both worlds.
{{< /tip >}}
### I18N
@@ -124,6 +126,8 @@
Clarity supports Hugo built-in Disqus partial, you can enable Disqus simply by setting [`disqusShortname`](https://gohugo.io/templates/internal/#configure-disqus) in your configuration file.
> ⚠️ `disqusShortname` should be placed in root level of configuration.
{{< tip >}}
> `disqusShortname` should be placed in root level of configuration.
{{< /tip >}}
You can also create a file named `layouts/partials/comments.html` for customizing the comments, checkout [Comments Alternatives](https://gohugo.io/content-management/comments/#comments-alternatives) for details.
exampleSite/content/docs/compose/graphs-charts-tables.md
@@ -26,7 +26,7 @@
Firstly define the data you want to display from the front matter:
```toml
```markdown
# from front matter
...
[dataset1] # this key will in the chart shortcode
@@ -40,10 +40,7 @@
  bargraph = true
  title = "Projects"
  table = true # show table listing the chart data
...
```
```markdown
// from page content
...
{{</* grid " mt-2" */>}}
exampleSite/go.mod
@@ -2,4 +2,4 @@
go 1.15
require github.com/onweru/compose v0.0.0-20210209175519-8ce9375a3199 // indirect
require github.com/onweru/compose v0.0.0-20210210164857-d73ed631861a // indirect
exampleSite/go.sum
@@ -126,3 +126,5 @@
github.com/onweru/compose v0.0.0-20210204161300-a2d306fc5f5d/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
github.com/onweru/compose v0.0.0-20210209175519-8ce9375a3199 h1:AJDB9LlnRWD0Rx0nJeSpA7348igKzfAzOtXz5Cos80M=
github.com/onweru/compose v0.0.0-20210209175519-8ce9375a3199/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
github.com/onweru/compose v0.0.0-20210210164857-d73ed631861a h1:9kP8FJIwkC1NYkZ3hpU5i4wId6KAk0Ovc1JcyDl6vEs=
github.com/onweru/compose v0.0.0-20210210164857-d73ed631861a/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=