ITADN

How to remove the blinking cursor (prompt) on top?

#49Closedrolfschr 创建于 2025-04-19
R
rolfschrcommented
Hi, thank you for sharing your theme. I'd like to get rid of the blinking cursor on top. Simply removing the class ... ```diff diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e5ce15d..90714d1 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -32,7 +32,7 @@ <div class="container"> <div class="terminal-nav"> <header class="terminal-logo"> - <div class="logo terminal-prompt"> + <div class="logo"> {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ $.Scratch.Add "path" .Site.BaseURL }} <a href="{{ .Site.BaseURL }}" class="no-style {{ with .Site.Params.TitleCutting }}site-name{{ end }}">{{ .Site.Title }}</a>:~# ``` removes the cursor ("prompt") but yields a line break that I did not intend: ![Image](https://github.com/user-attachments/assets/33b4d7dd-28e2-4872-b95b-3dd0438a2b98) I tried to remove the "path" by ```diff diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e5ce15d..4050f52 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -32,11 +32,9 @@ <div class="container"> <div class="terminal-nav"> <header class="terminal-logo"> - <div class="logo terminal-prompt"> - {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} - {{ $.Scratch.Add "path" .Site.BaseURL }} + <div class="logo"> <a href="{{ .Site.BaseURL }}" class="no-style {{ with .Site.Params.TitleCutting }}site-name{{ end }}">{{ .Site.Title }}</a>:~# - {{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" | absURL }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</div></header> + </div></header> <nav class="terminal-menu"> <ul vocab="https://schema.org/" typeof="BreadcrumbList"> {{ range $index, $element := .Site.Params.navlinks }} ``` but the line break persists: ![Image](https://github.com/user-attachments/assets/eb642065-85fd-4849-8da9-e00acce19a85)
关闭于 2025-04-19 2 条评论