Compare commits

...

4 Commits

Author SHA1 Message Date
Philipp Schmiedel 6088ed616c
Merge 169adb5b8f into 175059921f 2024-04-30 13:17:51 +07:00
Andrew D. Anderson 175059921f
add ethereum social icon (#1495) 2024-04-20 18:50:49 +05:30
Philipp Schmiedel 169adb5b8f
support site config for new parameter 2023-09-23 18:16:07 +02:00
Philipp Schmiedel c789423303
introduce editPost.appendQueryParam 2023-09-23 16:39:51 +02:00
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
{{- $fileUrlPath := path.Join .File.Path }}
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}}
<a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}" rel="noopener noreferrer" target="_blank">
<a href="{{ .Params.editPost.URL | default site.Params.editPost.URL }}{{ if .Params.editPost.appendFilePath | default ( site.Params.editPost.appendFilePath | default false ) }}/{{ $fileUrlPath }}{{ end }}{{ if .Params.editPost.appendQueryParam | default ( site.Params.editPost.appendQueryParam | default false )}}?{{ ( .Params.editPost.appendQueryParam | default site.Params.editPost.appendQueryParam ) | safeURL}}{{end}}" rel="noopener noreferrer" target="_blank">
{{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}}
</a>
{{- end }}

View File

@ -229,6 +229,10 @@
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>
{{- else if (eq $icon_name "ethereum") -}}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/>
</svg>
{{- else if (eq $icon_name "exercism") -}}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2230.4 1817.9" fill="currentColor" stroke-width="2" stroke="currentColor">
<path d="M0,905.1v-48.3c119-10.6,189.5-56.6,206.8-157.4c14.8-85.8-9.8-249.3-6.7-387.8c3.5-157,107.1-289.2,222.6-305.8