mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
14fdafebe4
* Created site files are now placed in an output directory `dist` * Added a ton of comments in build.js * Made functions in build.js use bluebird promises * Themes are now in the assets/templates folder instead as magic strings in the source code * Any number of custom themes (not just light and dark) can be used by creating a [theme].css file and putting it in assets/themes * CSS themes are rendered with Handlebars * CSS themes now rely on Handlebars for specifying the background * Restored config.json to template file * Changes to the blogging * Moved blog templates and config files to assets/blog * Created blog pages now go to dist/blog/ * Updated blogTemplate * Updated the README to reflect the changes made by this pull request * Added link to demo site in README * Added sorting and ordering
70 lines
No EOL
2.6 KiB
HTML
70 lines
No EOL
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title></title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="index.css">
|
|
</head>
|
|
<body>
|
|
<div id="loading">
|
|
<div id="spinner"></div>
|
|
</div>
|
|
<div id="profile">
|
|
<nav id="navbar"></nav>
|
|
<div id="profile_img"></div>
|
|
<div id="username">
|
|
<div id="fullname"></div>
|
|
</div>
|
|
<div id="userbio"></div>
|
|
<div id="about"></div>
|
|
</div>
|
|
<div id="display">
|
|
<div id="work">
|
|
<h1>Work</h1>
|
|
</div>
|
|
<div id="blog_section">
|
|
<h1>Blog.</h1>
|
|
<div id="blogs"></div>
|
|
</div>
|
|
<div id="footer">
|
|
<a href="https://github.com/imfunniee" target="_blank">made on earth by a human</a>
|
|
</div>
|
|
</div>
|
|
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
|
|
<script type="text/javascript">
|
|
setTimeout(function(){
|
|
document.getElementById("loading").classList.add("animated");
|
|
document.getElementById("loading").classList.add("fadeOut");
|
|
setTimeout(function(){
|
|
document.getElementById("loading").classList.remove("animated");
|
|
document.getElementById("loading").classList.remove("fadeOut");
|
|
document.getElementById("loading").style.display = "none";
|
|
},800);
|
|
},1500);
|
|
$.getJSON("blog.json", function(blog){
|
|
if(blog.length == 0){
|
|
return document.getElementById("blog_section").style.display = "none";
|
|
}
|
|
for(var i = 0; i < blog.length; i++){
|
|
$("#blogs").append(`
|
|
<a href="./blog/${blog[i].url_title}/" target="_blank">
|
|
<section>
|
|
<img src="${blog[i].top_image}">
|
|
<div class="blog_container">
|
|
<div class="section_title">${blog[i].title}</div>
|
|
<div class="about_section">
|
|
${blog[i].sub_title}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</a>
|
|
`);
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |