-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a25a728
commit a939385
Showing
5 changed files
with
158 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Basic personal page generation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
fail-fast: true | ||
|
||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Build main homepage | ||
uses: docker://pandoc/core:3.2 | ||
with: | ||
args: >- | ||
--standalone | ||
--from commonmark_x+alerts | ||
--output=website/index.html | ||
--template=pandoc/template.html4 | ||
--css=style.css | ||
--toc | ||
--toc-depth=2 | ||
--resource-path=. | ||
index.md | ||
- name: Copy files | ||
run: | | ||
cp -R files files | ||
- name: Setup Pages | ||
if: github.ref_name == github.event.repository.default_branch | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
if: github.ref_name == github.event.repository.default_branch | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: 'website' | ||
- name: Deploy to GitHub Pages | ||
if: github.ref_name == github.event.repository.default_branch | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# basicpage.github.io | ||
Template for really basic academic page | ||
|
||
Template for a really basic academic page. | ||
In the style of | ||
[academicpages](https://github.com/academicpages/academicpages.github.io) | ||
but producing something much simpler. | ||
|
||
## Getting started | ||
|
||
- [Create a Github account if you don't have one.](https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home) | ||
- Click on [Use this template](https://github.com/new?owner=basicpage&template_name=basicpage.github.io&template_owner=basicpage) | ||
and then create a new repository called `[your username].github.io`, a bit | ||
like this repo is called `basicpage.github.io`. This will also be the address | ||
of your website. | ||
|
||
> [!NOTE] | ||
> If you don't have Github Pro (which you can get with the students programme) | ||
> then your repository must be public for it to work. | ||
- Now go to "Settings" then click "Pages" on the left and select | ||
"Github Actions" instead of "Deploy from a branch" for "Source". | ||
|
||
- Fill the contents of `index.md` to your liking and it should just work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width"> | ||
<meta name="generator" content="pandoc" /> | ||
$for(author-meta)$ | ||
<meta name="author" content="$author-meta$"> | ||
$endfor$ | ||
$if(date-meta)$ | ||
<meta name="date" content="$date-meta$"> | ||
$endif$ | ||
$if(keywords)$ | ||
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$"> | ||
$endif$ | ||
$if(description-meta)$ | ||
<meta name="description" content="$description-meta$"> | ||
$endif$ | ||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title> | ||
$for(css)$ | ||
<link rel="stylesheet" href="$css$"> | ||
$endfor$ | ||
$for(header-includes)$ | ||
$header-includes$ | ||
$endfor$ | ||
$if(math)$ | ||
$if(mathjax)$ | ||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> | ||
$endif$ | ||
$math$ | ||
$endif$ | ||
<!-- Favicon --> | ||
<link rel="icon" href="img/favicon.svg"> | ||
</head> | ||
<body> | ||
$for(include-before)$ | ||
$include-before$ | ||
$endfor$ | ||
$if(title)$ | ||
$if(subtitle)$ | ||
<h1 class="subtitle">$subtitle$</h1> | ||
$endif$ | ||
$for(author)$ | ||
<h2 class="author">$author$</h2> | ||
$endfor$ | ||
$if(date)$ | ||
<h3 class="date">$date$</h3> | ||
$endif$ | ||
$if(abstract)$ | ||
<div class="abstract"> | ||
<div class="abstract-title">$abstract-title$</div> | ||
$abstract$ | ||
</div> | ||
$endif$ | ||
</div> | ||
$endif$ | ||
$if(toc)$ | ||
<div id="$idprefix$TOC"> | ||
$if(toc-title)$ | ||
<h2 id="$idprefix$toc-title">$toc-title$</h2> | ||
$endif$ | ||
$table-of-contents$ | ||
</div> | ||
$endif$ | ||
$body$ | ||
$for(include-after)$ | ||
$include-after$ | ||
$endfor$ | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Template homepage | ||
--- | ||
|
||
# Super basic info | ||
|
||
TODO |