style: fix category icon spacing when --minify used

Fix #1219
This commit is contained in:
George Cushen committed 2019-07-23 21:57:42 +01:00
1 parent 29bd98eece
commit 310357e346
3 files changed
+18 -5

No files matched your search

@@ -6,7 +6,8 @@ authors:
- admin
tags:
- Academic
categories: []
categories:
- Demo
date: "2016-04-20T00:00:00Z"
lastmod: "2019-04-17T00:00:00Z"
featured: false
@@ -41,7 +41,7 @@ Academic supports a Markdown extension for $\LaTeX$ math. You can enable this fe
To render *inline* or *block* math, wrap your LaTeX math with `$$...$$`.
Example math block:
Example **math block**:
```tex
$$\gamma_{n} = \frac{
@@ -54,7 +54,19 @@ renders as
$$\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}$$
Example inline math `$$\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2$$` renders as $$\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2$$ .
Example **inline math** `$$\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2$$` renders as $$\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2$$ .
Example **multi-line math** using the `\\` math linebreak:
```tex
$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\
1-p_0^* & \text {if }k=0.\end{cases}$$
```
renders as
$$f(k;p_0^*) = \begin{cases} p_0^* & \text{if }k=1, \\
1-p_0^* & \text {if }k=0.\end{cases}$$
### Diagrams
+2 -2
View File
@@ -61,8 +61,8 @@
{{ with $page.Param $taxonomy }}
<span class="middot-divider"></span>
<span class="article-categories">
<i class="fas fa-folder"></i>
{{ range $index, $value := . -}}
<i class="fas fa-folder mr-1"></i>
{{- range $index, $value := . -}}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ (site.GetPage (printf "/%s/%s" $taxonomy (. | urlize))).RelPermalink }}">{{ . }}</a>
{{- end -}}