Skip to content

Commit

Permalink
Update style and generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MBunel committed May 21, 2024
1 parent d6cd5a2 commit 264f381
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
branches:
- main

env:
WEBLORG_ENV: prod

# Allows you to run this workflow maanually from the Actions tab
workflow_dispatch:

Expand Down
6 changes: 4 additions & 2 deletions publish.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
(require 'htmlize)
(setq org-html-htmlize-output-type 'css)

; IF PRODUCTION
(setq weblorg-default-url "https://mbunel.xyz")
;; Definie main url
(if (string= (getenv "WEBLORG_ENV") "prod")
(setq weblorg-default-url "https://mbunel.xyz")
(setq weblorg-default-url "http://localhost:8081"))

(weblorg-site
:theme nil
Expand Down
21 changes: 14 additions & 7 deletions theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:root {
/* Background */
--background: var(--base);
--on-background: var(--overlay);
--on-background: var(--overlay0);
--on-background-variant-subtle: var(--blue);
--on-background-variant-muted: var(--teal);
--on-background-variant-active: var(--green);
Expand Down Expand Up @@ -113,7 +113,7 @@

/* Layout */
html {
//line-height:1.15;
font-size: 14px;
}

header, footer {
Expand All @@ -127,13 +127,15 @@ header {
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
/* Margins */
margin-top: 1rem;
margin-bottom: 3rem;
/* Padding */
padding-top: 10px;
padding-bottom: 10px;
/* Font */
font-weight: bold;
/* Border */
border-bottom: 1px solid var(--on-background);
nav {

font-size: 125%;
ul {
margin: 0;
padding: 0;
Expand All @@ -142,6 +144,9 @@ header {
display: inline;
margin-left: 1em;
}
li:first-child {
margin-left:0;
}
}

}
Expand All @@ -153,8 +158,9 @@ header {
flex-wrap: wrap;
align-items: center;
h1 {
font-size: 175%;
font-size: 200%;
margin-left: 1em;
margin-right: 1em;
}

}
Expand All @@ -175,6 +181,7 @@ footer {
margin-top: 2rem;
font-size: small;
line-height: 1;
border-top: 1px solid var(--on-background);
}


Expand Down
4 changes: 2 additions & 2 deletions theme/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ <h1>
{% endblock %}

{# Probably where most of the action will happen #}
<main id="main">
<main>
{% block main %}{% endblock %}
</main>

{# Links, copyright notice, etc #}
{% block footer %}
<footer>
<p>Mattia Bunel, <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">CC-BY-SA</a>, 2024.</p>
<p>Fabriqué à coups de <kbd>M-x</kbd> avec <a href="https://emacs.love/weblorg" target="_blank">Weblorg</a> et <a href="https://guix.gnu.org/" target="_blank">Guix</a></p>
<p>Fabriqué le {{ now() | strftime("%d %b %Y") }}, à coups de <kbd>M-x</kbd> avec <a href="https://emacs.love/weblorg" target="_blank">Weblorg</a> et <a href="https://guix.gnu.org/" target="_blank">Guix</a>.</p>
</footer>
{% endblock %}
</body>
Expand Down

0 comments on commit 264f381

Please sign in to comment.