Added gallery site section and automatic directory scanning. Fixed some memory errors, removed obsolete logs
This commit is contained in:
6
static/gallery/album.html
Normal file
6
static/gallery/album.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<details>
|
||||
<summary title="Press to expand">
|
||||
<h2>%s</h2>
|
||||
</summary>
|
||||
<ul>%s</ul>
|
||||
</details>
|
3
static/gallery/image.html
Normal file
3
static/gallery/image.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<li>
|
||||
<a href="%s"><img src="%s"></a>
|
||||
</li>
|
@@ -12,11 +12,28 @@
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<a href="/" id="logo"><img src="./logo.png" alt="logo" /></a>
|
||||
<a id="modern" href="/modern"
|
||||
title="If you have modern browser, you can visit more fancy version of my site">Modernize</a>
|
||||
<a href="/" id="logo"><img src="/logo.png" alt="logo" /></a>
|
||||
<!-- <a id="modern" href="/modern"
|
||||
title="If you have modern browser, you can visit more fancy version of my site">Modernize</a> -->
|
||||
</header>
|
||||
<h1>Work in porgress</h1>
|
||||
<main>
|
||||
<p>Heare are some of my photos.</p>
|
||||
%s
|
||||
</main>
|
||||
<style>
|
||||
summary h2 {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
details>ul img {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
details>ul li {
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user