Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-03-10 10:33:46 +0300
committerGitHub <noreply@github.com>2020-03-10 10:33:46 +0300
commit9f6fe226a6bd255c28b5724c13035330a70e7d9a (patch)
tree07c50a4989a109be0305feefcca611331ee6a936
parentd42f15b058d3af8e02fbd2f312a4907dda662440 (diff)
parent12eb08427d9021ed6e63d85f66fbca41f07bad02 (diff)
Merge pull request #136 from dillonzq/fix/select_label
fix(header): fix select label
-rw-r--r--exampleSite/content/posts/theme-documentation-shortcodes.zh-cn.md2
-rw-r--r--layouts/partials/header.html52
2 files changed, 25 insertions, 29 deletions
diff --git a/exampleSite/content/posts/theme-documentation-shortcodes.zh-cn.md b/exampleSite/content/posts/theme-documentation-shortcodes.zh-cn.md
index 35cd884..9545ed3 100644
--- a/exampleSite/content/posts/theme-documentation-shortcodes.zh-cn.md
+++ b/exampleSite/content/posts/theme-documentation-shortcodes.zh-cn.md
@@ -598,7 +598,7 @@ pie
ECharts 提供了常规的 [折线图](https://echarts.apache.org/zh/option.html#series-line), [柱状图](https://echarts.apache.org/zh/option.html#series-line), [散点图](https://echarts.apache.org/zh/option.html#series-scatter), [饼图](https://echarts.apache.org/zh/option.html#series-pie), [K线图](https://echarts.apache.org/zh/option.html#series-candlestick), 用于统计的 [盒形图](https://echarts.apache.org/zh/option.html#series-boxplot), 用于地理数据可视化的 [地图](https://echarts.apache.org/zh/option.html#series-map), [热力图](https://echarts.apache.org/zh/option.html#series-heatmap), [线图](https://echarts.apache.org/zh/option.html#series-lines), 用于关系数据可视化的 [关系图](https://echarts.apache.org/zh/option.html#series-graph), [treemap](https://echarts.apache.org/zh/option.html#series-treemap), [旭日图](https://echarts.apache.org/zh/option.html#series-sunburst), 多维数据可视化的 [平行坐标](https://echarts.apache.org/zh/option.html#series-parallel), 还有用于 BI 的 [漏斗图](https://echarts.apache.org/zh/option.html#series-funnel), [仪表盘](https://echarts.apache.org/zh/option.html#series-gauge), 并且支持图与图之间的混搭.
-只需在 `echarts` shortcode 中以 `JSON`/`YAML`/`TO ML`格式插入 ECharts 选项即可.
+只需在 `echarts` shortcode 中以 `JSON`/`YAML`/`TOML`格式插入 ECharts 选项即可.
一个 `JSON` 格式的 `echarts` 示例:
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3062cf5..0c8d9c9 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -15,23 +15,21 @@
{{- if .Site.IsMultiLingual -}}
&nbsp;|&nbsp;
<a href="javascript:void(0);" class="menu-item" title="{{ T "selectLanguage" }}">
- <label for="language-select-desktop">
- <i class="fas fa-language fa-fw"></i>&nbsp;
- <select class="language-select" id="language-select-desktop" onchange="location = this.value;">
- {{- range .Page.AllTranslations -}}
- {{- $translation := . -}}
- {{- range $.Site.Languages -}}
- {{- if eq $translation.Lang .Lang -}}
- {{- if eq $.Page.Lang .Lang -}}
- <option value="{{ $translation.RelPermalink }}" selected>{{ .LanguageName }}</option>
- {{- else -}}
- <option value="{{ $translation.RelPermalink }}">{{ .LanguageName }}</option>
- {{- end -}}
+ <i class="fas fa-language fa-fw"></i>&nbsp;
+ <select class="language-select" onchange="location = this.value;">
+ {{- range .Page.AllTranslations -}}
+ {{- $translation := . -}}
+ {{- range $.Site.Languages -}}
+ {{- if eq $translation.Lang .Lang -}}
+ {{- if eq $.Page.Lang .Lang -}}
+ <option value="{{ $translation.RelPermalink }}" selected>{{ .LanguageName }}</option>
+ {{- else -}}
+ <option value="{{ $translation.RelPermalink }}">{{ .LanguageName }}</option>
{{- end -}}
{{- end -}}
{{- end -}}
- </select>
- </label>
+ {{- end -}}
+ </select>
</a>
{{- end -}}
<a href="javascript:void(0);" class="theme-switch" title="{{ T "switchTheme" }}">
@@ -63,23 +61,21 @@
{{- end -}}
{{- if .Site.IsMultiLingual -}}
<a href="javascript:void(0);" class="menu-item" title="{{ T "selectLanguage" }}">
- <label for="language-select-mobile">
- <i class="fas fa-language fa-fw"></i>&nbsp;
- <select class="language-select" id="language-select-mobile" onchange="location = this.value;">
- {{- range .Page.AllTranslations -}}
- {{- $translation := . -}}
- {{- range $.Site.Languages -}}
- {{- if eq $translation.Lang .Lang -}}
- {{- if eq $.Page.Lang .Lang -}}
- <option value="{{ $translation.RelPermalink }}" selected>{{ .LanguageName }}</option>
- {{- else -}}
- <option value="{{ $translation.RelPermalink }}">{{ .LanguageName }}</option>
- {{- end -}}
+ <i class="fas fa-language fa-fw"></i>&nbsp;
+ <select class="language-select" onchange="location = this.value;">
+ {{- range .Page.AllTranslations -}}
+ {{- $translation := . -}}
+ {{- range $.Site.Languages -}}
+ {{- if eq $translation.Lang .Lang -}}
+ {{- if eq $.Page.Lang .Lang -}}
+ <option value="{{ $translation.RelPermalink }}" selected>{{ .LanguageName }}</option>
+ {{- else -}}
+ <option value="{{ $translation.RelPermalink }}">{{ .LanguageName }}</option>
{{- end -}}
{{- end -}}
{{- end -}}
- </select>
- </label>
+ {{- end -}}
+ </select>
</a>
{{- end -}}
<a href="javascript:void(0);" class="theme-switch" title="{{ T "switchTheme" }}">