Skip to content

Commit

Permalink
switch to hugo + ox-hugo (#10)
Browse files Browse the repository at this point in the history
* switch to hugo + ox-hugo
  • Loading branch information
mtrsk authored Jul 5, 2024
1 parent 483b861 commit c9de75a
Show file tree
Hide file tree
Showing 65 changed files with 3,440 additions and 539 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
pull_request:
branches: [ master ]

workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v27

- name: Build website
run: nix develop .#ci -c just ci-build
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy

on:
push:
branches: [ master ]

workflow_dispatch:

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v27

- name: Build website
run: nix develop .#ci -c just ci-build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

37 changes: 0 additions & 37 deletions .github/workflows/docker-emacs.yml

This file was deleted.

20 changes: 16 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,22 @@ flycheck_*.el
# network security
/network-security.data

# Hugo
# Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json

# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux

# Temporary lock file while building
/.hugo_build.lock

# Extra
*.html
static
public
content/
*env*
*zip
*.idea
49 changes: 0 additions & 49 deletions Makefile

This file was deleted.

5 changes: 1 addition & 4 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ An Org-based personal page and blog.
** How to build this

#+BEGIN_SRC bash
touch .env
echo "ENVIRONMENT=development" > .env
make setup-fa
make publish
just public
#+END_SRC
52 changes: 52 additions & 0 deletions blog/home.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# metadata for [[https://www.freecodecamp.org/news/what-is-open-graph-and-how-can-i-use-it-for-my-website/][open graph]] metadata
#+begin_description
Marcos's blog description
#+end_description

Hello! I'm *Marcos Benevides*, a developer from São Luís, MA - Brazil. You're
going to find my posts, projects and tutorials here, and probably some random
rambling about byzantine history.

*** Interests

Here's a non-exaustive list of my current interests:

- Backend Development
- Infrastructure
- Functional Programming
- GNU/Linux & FOSS
- Logic
- Philosophy

#+CAPTION: btw, I use [[https://nixos.org/][NixOS]]...
#+NAME: fig:
#+ATTR_HTML: :width 25% :height 25%
[[../static/img/nixos.gif]]

*** Contact me

You may also find me elsewhere in cyberspace, under the following aliases:

#+BEGIN_export html
<div>
<table style="width:80%">
<tr>
<td>
<a href="https://github.com/mtrsk" title="My Github profile"><i class='bx bxl-github bx-lg'></i></a>
</td>
<td>
<a href="https://gitlab.com/mtrsk" title="My Gitlab profile"><i class='bx bxl-gitlab bx-lg' ></i></a>
</td>
<td>
<a href="https://www.linkedin.com/in/schonfinkel" title="My Linkedin profile"><i class='bx bxl-linkedin-square bx-lg' ></i></a>
</td>
<td>
<a href="mailto:marcos.schonfinkel@gmail.com" title="My personal email"><i class='bx bx-envelope bx-lg' ></i></a>
</td>
<td>
<a href="https://stackexchange.com/users/5858235/aristu"><img src="https://stackexchange.com/users/flair/5858235.png" alt="profile for Aristu on Stack Exchange, a network of free, community-driven Q&amp;A sites" title="profile for Aristu on Stack Exchange, a network of free, community-driven Q&amp;A sites" /></a>
</td>
</tr>
</table>
</div>
#+END_export
48 changes: 0 additions & 48 deletions blog/index.org

This file was deleted.

2 changes: 0 additions & 2 deletions blog/notes.org

This file was deleted.

6 changes: 0 additions & 6 deletions blog/posts.org

This file was deleted.

Loading

0 comments on commit c9de75a

Please sign in to comment.