diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-16 19:32:18 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-17 01:28:57 +0300 |
commit | 239d68f94c6250276850fbe95eaa6cdd5c38fb26 (patch) | |
tree | c576da169afc442f51eae6213ad0ff749ed86589 /themes/hugo-theme-stack/layouts/_default/_markup | |
parent | 8e79098193fd0a8b65305dd8054cf7c424c60bc5 (diff) |
Своя тема, полностью всё переделал
Diffstat (limited to 'themes/hugo-theme-stack/layouts/_default/_markup')
3 files changed, 0 insertions, 50 deletions
diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html deleted file mode 100644 index f79308a..0000000 --- a/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html +++ /dev/null @@ -1,6 +0,0 @@ -<h{{ .Level }} id="{{ .Anchor }}"> - {{- if site.Params.Article.HeadingAnchor -}} - <a href="#{{ .Anchor }}" class="header-anchor"></a> - {{- end -}} - {{ .Text | safeHTML }} -</h{{ .Level }}>
\ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html deleted file mode 100644 index 0ed5584..0000000 --- a/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1,41 +0,0 @@ -{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}} -{{- $Permalink := .Destination | relURL | safeURL -}} -{{- $alt := .PlainText | safeHTML -}} -{{- $Width := 0 -}} -{{- $Height := 0 -}} -{{- $Srcset := "" -}} - -{{/* SVG and external images won't work with gallery layout, because their width and height attributes are unknown */}} -{{- $galleryImage := false -}} - -{{- if $image -}} - {{- $notSVG := ne (path.Ext .Destination) ".svg" -}} - {{- $Permalink = $image.RelPermalink -}} - - {{- if $notSVG -}} - {{- $Width = $image.Width -}} - {{- $Height = $image.Height -}} - {{- $galleryImage = true -}} - - {{- if (default true .Page.Site.Params.imageProcessing.content.enabled) -}} - {{- $small := $image.Resize `480x` -}} - {{- $big := $image.Resize `1024x` -}} - {{- $Srcset = printf `%s 480w, %s 1024w` $small.RelPermalink $big.RelPermalink -}} - {{- end -}} - {{- end -}} -{{- end -}} - -<img src="{{ $Permalink }}" - {{ with $Width }}width="{{ . }}"{{ end }} - {{ with $Height }}height="{{ . }}"{{ end }} - {{ with $Srcset }}srcset="{{ . }}"{{ end }} - loading="lazy" - {{ with $alt }} - alt="{{ . }}" - {{ end }} - {{ if $galleryImage }} - class="gallery-image" - data-flex-grow="{{ div (mul $image.Width 100) $image.Height }}" - data-flex-basis="{{ div (mul $image.Width 240) $image.Height }}px" - {{ end }} ->
\ No newline at end of file diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html deleted file mode 100644 index 843854d..0000000 --- a/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html +++ /dev/null @@ -1,3 +0,0 @@ -<a class="link" href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" - {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener" - {{ end }}>{{ .Text | safeHTML }}</a>
\ No newline at end of file |