Code Monkey home page Code Monkey logo

suabochica-blog's Introduction

πŸ“ Suabochica Blog

TODO

[ ] Check how to compile theme changes

🧰 Tech Stack

  • hugo, a go framework for build websites.

πŸ—‚ Workflow

In this blog I have to types of exports:

  • Blog posts
  • Slides with RevealJS

Both, have the same source; the ORG mode of emacs. I'm using Doom Emacs as a framework configuraton network.

To export blog post from .org to markdown (.md) I use the ox-hugo

  1. Use ORG mode to create drafts.
  2. Export ORG to markdown using the SPC m e m m keybindings.
  3. Add tags in the exported markdown file

To export a slide from .org to RevealJS I use the org-reveal

  1. Use ORG mode to create drafts.
  2. Export ORG to RevealJS using the SPC m e R R keybindings.
  3. Open in your browser the exported file

πŸš€ Build

Command to run the hugo server

hugo server

Command to build the page

hugo

πŸ“ Folder structure

From these folder structure, below I list the relevant ones:

  • content/images: folder with all the local images
  • content/post: folder with all posts. They should be in markdown
  • src/: folder with in progress posts. They write in .org and should exported to markdown
  • themes/m10c: folder with the hugo themes for the blog.

πŸ‘οΈβ€ Overview

  • filenames that start with the *** prefix are in progress posts.
  • filenames that start with the * prefix are not published posts.
  • filenames has a timestamp after prefix.
  • filenames that has an en in the name, mean that the post is in English.
  • filenames that has an es in the name, mean that the post is in Spanish.
  • themes/m10c: folder with hugo themes

πŸ”– Adding tags

To add tags to the posts, at the beginning of each file we have to set the tags property with an array of the relevant tags. Below it I share an example.

+++
title = "Capricornio 26"
description = "Proyecto mobiliario sobre licorera bogotana"
date = 2011-06-21T02:13:50Z
author = "Sergio BenΓ­tez"
tags = [
    "design",
    "furniture",
]

# What is this?

categories = [ 
    "development",
    "golang",
]
+++

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.