Skip to content

Commit

Permalink
Remove unwanted extra file
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed Aug 25, 2023
1 parent c30c0a4 commit e57edfc
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
authors = ["azzaare <jf@baffier.fr>"]
name = "StaticWebPages"
uuid = "5bf9d097-888b-4aa7-96b5-1bfe21b2dbad"
authors = ["azzaare <jf@baffier.fr>"]
version = "0.2.22"

[deps]
Bibliography = "f1be7e48-bf82-45af-a471-ae754a193061"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
FTPClient = "01fcc997-4f28-56b8-8a06-30002c134abb"
GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"

Expand Down
8 changes: 8 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -856,4 +856,12 @@ article-title {
height:400px;
align-self: center;
text-align: center;
}

.inline_list {
margin-left: 50px;
}

.inline_list_item {
text-align: left;
}
1 change: 1 addition & 0 deletions src/StaticWebPages.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module StaticWebPages

using DataStructures
using Dates
using FTPClient
using GitHub

Expand Down
12 changes: 12 additions & 0 deletions src/inline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ end
function email(address::String; content::String="contact", obfuscated::Bool=true)
return email(Email(address, content, obfuscated))
end

struct List
items::Vector{String}
ordered::Bool
end

function list(l::List)
lt = l.ordered ? "ol" : "ul"
return """<$lt class=inline_list>$(join(["<li><div class=inline_list_item>$(item)</div></li>" for item in l.items]))</$lt>"""
end

list(items; ordered = false) = list(List(items, ordered))
3 changes: 2 additions & 1 deletion src/items.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ include("items/git.jl")
include("items/publications.jl")
include("items/block.jl")
include("items/timeline.jl")
include("items/blog.jl")

Item = Union{Deck,GitRepo,Publications,Block,TimeLine}
Item = Union{Deck,GitRepo,Publications,Block,TimeLine,Blog}


"""
Expand Down
7 changes: 7 additions & 0 deletions src/items/blog.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
struct BlogArticle <: AbstractItem
title::String
creation::Date
last_update::Date
tags::Vector{String}
content::String
end

0 comments on commit e57edfc

Please sign in to comment.