Basic syntax highlighting
This commit is contained in:
parent
2c38910ccd
commit
37e92392ca
4 changed files with 87 additions and 3 deletions
|
@ -5,13 +5,17 @@ use DB::BlogMeta;
|
|||
|
||||
unit class Config;
|
||||
|
||||
|
||||
method generate-post(Str:D $title, Str:D $content, BlogMeta:D $meta) {
|
||||
my $head =
|
||||
head [
|
||||
my $head = head [
|
||||
meta :charset<utf-8>;
|
||||
meta :name<viewport>, :content<width=device-width, initial-scale=1>;
|
||||
title "{$meta.title} — $title";
|
||||
# TODO: Add style sheets
|
||||
# Use Iosevka Alie as the monospace font
|
||||
link :rel<stylesheet>,
|
||||
:href<https://static.stranger.systems/fonts/IosevkaAlie/IosevkaAile.css>;
|
||||
style %?RESOURCES<code.css>.slurp;
|
||||
# TODO: Add description
|
||||
# TODO: Add header links
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue