Commit 8c2188bb authored by Hugo Kerstens's avatar Hugo Kerstens
Browse files

Initial commit

parents
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
\ No newline at end of file
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Zesje
subtitle: online exam grading
description: Open-source online exam grading software for written exams
keywords:
author: The Zesje Team
author_url: https://gitlab.kwant-project.org/zesje/zesje/blob/master/AUTHORS.md
source_url: https://gitlab.kwant-project.org/zesje/zesje
language:
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://zesje.tudelft.nl
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: updates
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 4
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: zesje
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type:
This diff is collapsed.
{
"name": "zesje.tudelft.nl",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.8.0"
},
"dependencies": {
"bulma": "^0.7.4",
"hexo": "^3.8.0",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.1",
"hexo-renderer-marked": "^0.3.2",
"hexo-renderer-sass": "^0.4.0",
"hexo-renderer-stylus": "^0.3.3",
"hexo-server": "^0.3.3"
}
}
---
title: {{ title }}
tags:
---
---
title: {{ title }}
---
---
title: {{ title }}
date: {{ date }}
tags:
---
# Adapted from https://github.com/patrickbolle/bulma-hexo-theme
# Header
menu:
Updates: /updates
About: /about
Support: /support
# Read More text
excerpt_link: Read More
node_sass:
outputStyle: compressed
precision: 5
sourceComments: false
includePaths: ['./node_modules']
<div class="container post-excerpt">
<% if ( item.title ) { %>
<p class="title is-3">
<a href="<%- config.root %><%- item.path %>">
<%- item.title %>
</a>
</p>
<p class="subtitle is-5">
<%= item.date.format(config.date_format) %>
</p>
</a>
<% } %>
<%- item.excerpt || item.content %>
<% if(item.excerpt) { %>
<a class="button" href="<%- config.root %><%- item.path %>">
<%= theme.excerpt_link %>
</a>
<% } %>
<hr>
</div>
\ No newline at end of file
<div class="container">
<% if ( item.title ) { %>
<h1 class="title is-2">
<%- item.title %>
</h1>
<% } %>
<% if ( item.date ) { %>
<p class="subtitle is-4">
<%= item.date.format(config.date_format) %>
</p>
<% } %>
<hr>
<%- item.content %>
</div>
\ No newline at end of file
<footer class="footer">
<div class="container">
<hr>
<div class="content has-text-centered">
<p>
<strong>Built</strong> by <a href="<%= config.author_url %>">
<%= config.author %>
</a>
</p>
</div>
</div>
</footer>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Zesje</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<%- css('main.css') %>
</head>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="https://bulma.io">
<img src="https://bulma.io/images/bulma-logo.png" width="112" height="28">
</a>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false"
data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<% for (var i in theme.menu){ %>
<a class="navbar-item" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="button is-primary" href="https://gitlab.kwant-project.org/zesje/zesje">
<strong>Source</strong>
</a>
</div>
</div>
</div>
</div>
</nav>
\ No newline at end of file
<section class="hero is-info is-medium">
<div class="hero-head">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand is-size-3">
<a class="navbar-item" href="<%- url_for('/') %>">
<i class="fa fa-edit fa-2x is-size-3"></i>
<strong>Zesje</strong>
</a>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false"
data-target="navbarTop">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarTop" class="navbar-menu">
<div class="navbar-end is-size-5">
<% for (var i in theme.menu){ %>
<a class="navbar-item" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
<div class="navbar-item">
<div class="buttons">
<a class="button is-info is-outlined is-medium" href="<%= config.source_url %>">
<i class="fab fa-gitlab"></i>
<strong>Source</strong>
</a>
</div>
</div>
</div>
</div>
</div>
</nav>
</div>
<% if ( is_category('home') ) { %>
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">
<%= config.title %><small> <%= config.subtitle %></small>
</h1>
<h2 class="subtitle">
<%= config.description %>
</h2>
</div>
</div>
<% } %>
</section>
\ No newline at end of file
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<% if (page.prev) { %>
<a class="pagination-previous"
href="<%- url_for(page.prev_link) %>">
Previous
</a>
<% } else { %>
<a class="pagination-previous" disabled>Previous</a>
<% } %>
<% if (page.next) { %>
<a class="pagination-next"
href="<%- url_for(page.next_link) %>">
Next
</a>
<% } else { %>
<a class="pagination-next" disabled>Next</a>
<% } %>
<ul class="pagination-list">
<li class="pagination-link">Page <%- page.current + ' of ' + page.total %></li>
</ul>
</nav>
\ No newline at end of file
<script type="text/javascript">
// From https://bulma.io/documentation/components/navbar/#navbarJsExample
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
\ No newline at end of file
<div class="container">
<h1 class="title is-2">
Recent updates
<hr>
</h1>
<% page.posts.each(function(item){ %>
<%- partial('_partial/article-excerpt', {item: item}) %>
<% }); %>
<%- partial('_partial/pagination', {type: 'page'}) %>
</div>
\ No newline at end of file
<html>
<!-- Head tag -->
<%- partial('_partial/head') %>
<body>
<%- include('_partial/navbar') %>
<section class="section page-content">
<div class="container">
<div class="content">
<%- body %>
</div>
</div>
</section>
<%- partial('_partial/footer') %>
<%- partial('_partial/scripts') %>
</body>
</html>
\ No newline at end of file
<%- partial('_partial/article-full', {item: page}) %>
<%- partial('_partial/article-full', {item: page}) %>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment