droppable?
All checks were successful
deploy to neocities / Build and deploy Jekyll site (push) Successful in 1m9s
All checks were successful
deploy to neocities / Build and deploy Jekyll site (push) Successful in 1m9s
This commit is contained in:
@@ -6,9 +6,11 @@
|
||||
<p><a href="https://letterboxd.com/beppev/">letterboxd</a></p>
|
||||
<p><a href="https://myanimelist.net/profile/BeppeV">myanimelist</a></p>
|
||||
<p><a href="https://git.beppe.online/beppe">gitea</a></p>
|
||||
<a href="#" onclick="toggle(1);" >blogposts</a>
|
||||
<ul class="submenu">
|
||||
{% for post in site.posts %}
|
||||
<p><a href="{{ post.url }}">{{ post.title }}</a></p>
|
||||
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
Binary file not shown.
@@ -4,6 +4,7 @@
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<script src="js/main.js"></script>
|
||||
<title>{{ page.title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
7
_layouts/post.html
Normal file
7
_layouts/post.html
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.date | date_to_string }} - {{ page.author }}</p>
|
||||
|
||||
{{ content }}
|
11
js/main.js
Normal file
11
js/main.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function toggle(n) {
|
||||
var menus = document.getElementsByClassName("submenu");
|
||||
for(var i=0;i<menus.length;i++){
|
||||
if((i == (n-1)) && (menus[i].style.display != "block")){
|
||||
menus[i].style.display = "block";
|
||||
}else{
|
||||
menus[i].style.display = "none";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user