From 45d07ef87fb88161c08e2a8473251b95be45cfa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 24 Nov 2022 15:13:35 +0100 Subject: [PATCH] feat: using emojis instead of icon fonts --- src/_css/basic.css | 26 ++++++++++++++++++++++++++ src/_css/project.css | 21 --------------------- src/_layout/head.html | 2 -- src/_layout/head_icons.html | 3 --- src/config.md | 2 -- src/projects.md | 2 +- src/utils.jl | 6 +++--- 7 files changed, 30 insertions(+), 32 deletions(-) delete mode 100644 src/_css/project.css delete mode 100644 src/_layout/head_icons.html diff --git a/src/_css/basic.css b/src/_css/basic.css index d63545b..04ffe68 100644 --- a/src/_css/basic.css +++ b/src/_css/basic.css @@ -194,3 +194,29 @@ td { table tbody tr td { border: 1px solid lightgray; } + +/* ================================================================== + Custom +================================================================== */ + +.icons { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.icon { + display: flex; + align-items: center; +} + +.franklin-content h1 { + font-size: 2rem !important; +} + +.franklin-content img, +.franklin-content video { + width: 100% !important; + padding: 0 !important; + margin: 0 !important; +} diff --git a/src/_css/project.css b/src/_css/project.css deleted file mode 100644 index 29e5c9d..0000000 --- a/src/_css/project.css +++ /dev/null @@ -1,21 +0,0 @@ -.icons { - display: flex; - align-items: center; - gap: 0.5rem; -} - -.icon { - display: flex; - align-items: center; -} - -.franklin-content h1 { - font-size: 2rem !important; -} - -.franklin-content img, -.franklin-content video { - width: 100% !important; - padding: 0 !important; - margin: 0 !important; -} diff --git a/src/_layout/head.html b/src/_layout/head.html index fbd759d..8888b1b 100644 --- a/src/_layout/head.html +++ b/src/_layout/head.html @@ -5,11 +5,9 @@ {{if hasmath}} {{insert head_katex.html }} {{end}} {{if hascode}} {{insert head_highlight.html }} {{end}} - {{if hasicons}} {{insert head_icons.html }} {{end}} - {{isdef title}} {{fill title}} {{end}} diff --git a/src/_layout/head_icons.html b/src/_layout/head_icons.html deleted file mode 100644 index 0e95350..0000000 --- a/src/_layout/head_icons.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/config.md b/src/config.md index 3f5334b..a84d57d 100644 --- a/src/config.md +++ b/src/config.md @@ -4,8 +4,6 @@ mintoclevel = 2 ignore = ["node_modules/", "_data/"] -hasicons = false - generate_sitemap = true generate_rss = false +++ diff --git a/src/projects.md b/src/projects.md index a13fae6..42975f1 100644 --- a/src/projects.md +++ b/src/projects.md @@ -1,5 +1,5 @@ @def title = "Projects" -@def hasicons = true + Here is a non-exhaustive list of my projects. \ Most of them are in French 🇫🇷 🥖 🥐. diff --git a/src/utils.jl b/src/utils.jl index a39798a..1217ca8 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -8,9 +8,9 @@ function hfun_print_projects(yaml_files) html_string = "" for (project_name, project) in yaml description = Franklin.fd2html(project["description"], internal=true) - repository = haskey(project, "repository") ? """""" : "" - website = haskey(project, "website") ? """""" : "" - pdf = haskey(project, "pdf") ? """""" : "" + repository = haskey(project, "repository") ? """💾""" : "" + website = haskey(project, "website") ? """🌐""" : "" + pdf = haskey(project, "pdf") ? """📜""" : "" year = """$(project["year"])""" image = haskey(project, "image") ? """""" : "" video = haskey(project, "video") ? """""" : ""