mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 10:15:22 +00:00
Markdownify the interests list and talk abstracts (Close #297)
* About widget interests list * Talk abstracts * Breaking change: math in talk abstracts may require extra escaping * Contact widget: support multiline address * Talk page: Add noopener to _blank link target
This commit is contained in:
1 parent
b1c975fa4c
commit
5c2824fabf
4 files changed
+6
-6
No files matched your search
@@ -32,9 +32,9 @@
|
||||
|
||||
<div class="talk-abstract" itemprop="text">
|
||||
{{ if .Params.abstract_short }}
|
||||
{{ .Params.abstract_short }}
|
||||
{{ .Params.abstract_short | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Params.abstract }}
|
||||
{{ .Params.abstract | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<div class="col-sm-5">
|
||||
<h3>{{ i18n "interests" | markdownify }}</h3>
|
||||
<ul class="ul-interests">
|
||||
{{ range .interests }}
|
||||
{{ range .interests | markdownify }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
{{ with $.Site.Params.address }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-map-marker fa-2x" aria-hidden="true"></i>
|
||||
<span id="person-address" itemprop="address">{{ . }}</span>
|
||||
<span id="person-address" itemprop="address">{{ replace . "\n" "<br>" | safeHTML }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
{{ if .Params.abstract }}
|
||||
<h3>{{ i18n "abstract" }}</h3>
|
||||
<p class="pub-abstract" itemprop="text">{{ .Params.abstract }}</p>
|
||||
<p class="pub-abstract" itemprop="text">{{ .Params.abstract | markdownify }}</p>
|
||||
{{ else }}
|
||||
<br>
|
||||
{{ end }}
|
||||
@@ -45,7 +45,7 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading">{{ i18n "event" }}</div>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
{{ with .Params.event_url }}<a href="{{ . }}" target="_blank">{{ end }}
|
||||
{{ with .Params.event_url }}<a href="{{ . }}" target="_blank" rel="noopener">{{ end }}
|
||||
{{ .Params.event | markdownify }}
|
||||
{{ if .Params.event_url }}</a>{{ end }}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user