Skip to content

Commit abcd6ad

Browse files
committed
some styling
1 parent 9052a42 commit abcd6ad

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LiveServer"
22
uuid = "16fef848-5104-11e9-1b77-fb7a48bbb589"
33
authors = ["Jonas Asprion <jonas.asprion@gmx.ch", "Thibaut Lienart <tlienart@me.com>"]
4-
version = "0.8.2"
4+
version = "0.8.3"
55

66
[deps]
77
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"

src/server.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function get_dir_list(dir::AbstractString)
130130
io = IOBuffer()
131131
predir = ifelse(isempty(CONTENT_DIR[]), "", "[$(append_slash(CONTENT_DIR[]))]")
132132
sdir = predir * lstrip_cdir(dir)
133-
133+
134134
write(io, """
135135
<!DOCTYPE HTML>
136136
<html>
@@ -147,13 +147,10 @@ function get_dir_list(dir::AbstractString)
147147
<h1 style='margin-top: 1em;'>
148148
Directory listing
149149
</h1>
150-
<h2>
151-
<code style='color:gray;'>$(sdir)</code>
152-
<br>
153-
<a href="/">🏠 root</a>
154-
<br>
155-
<a href="/$(dirname(dir))">.. </a>
150+
<h3>
151+
<a href="/" alt="root">🏠</a> <a href="/$(dirname(dir))" alt="parent dir">⬆️</a> &nbsp; path: <code style='color:gray;'>$(sdir)</code>
156152
</h2>
153+
157154
<hr>
158155
<ul>
159156
"""
@@ -183,7 +180,7 @@ function get_dir_list(dir::AbstractString)
183180
end
184181
write(io, """
185182
</ul>
186-
<hr>
183+
<hr>
187184
<a href="https://github.com/tlienart/LiveServer.jl">💻 LiveServer.jl</a>
188185
</body>
189186
</html>

0 commit comments

Comments
 (0)