GithubHelp home page GithubHelp logo

theryx / osscameroon-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osscameroon/osscameroon-blog

0.0 0.0 0.0 2.62 MB

blog for osscameroon

Home Page: https://blog.osscameroon.com

License: GNU General Public License v3.0

HTML 69.76% JavaScript 20.62% SCSS 8.68% Shell 0.93%

osscameroon-blog's Introduction

osscameroon-blog

Oss cameroon blogging website

blog.osscameroon.com

Prerequisite

The blog is powered by the Hugo website generator, with the Chunky Poster theme and might require you to have a set of tools installed on your local machine such as :

  • The Hugo cli tool, follow this steps to install hugo
  • And a Markdown text editor (We can recommend you Typora)

*Learn more about Hugo here or read the documentation*

Run it locally

Once you have cloned this repository and installed Hugo as described here, you can run the server locally with this command

$> hugo serve -D

The command should output something similar to this

Start building sites …

                   | EN
-------------------+-----
  Pages            | 20
  Paginator pages  |  0
  Non-page files   |  1
  Static files     | 11
  Processed images |  4
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Built in 84 ms
Watching for changes in /Users/elhmn/Work/osscameroon-blog/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /Users/elhmn/Work/osscameroon-blog/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Open the blog locally

Now that your server is running open your web browser on the url displayed in your server output Web Server is available at http://localhost:1313/

How to add a blog post

To add a blog post make sure you are the root of the directory then run :

$> hugo new post/my_new_post.md
/Users/<repository_path>/osscameroon-blog/content/post/<my_new_post_name>.md created		

Now that your post has been added it should be visible on your local instance at http://localhost:1313

Add your blog post content

Open /osscameroon-blog/content/post/<my_new_post_name>.md in your text editor and add you blog content.

How to add an Author

You can add a new author to the website simply by running this command:

$> hugo new authors/<new_author_name>/_index.md
/Users/<repository_path>/osscameroon-blog/content/authors/<new_author_name>/_index.md created

The /content/authors/<new_author_name>/_index.md file was created and contains new author metadata as follow

---
name: "New Author Name"
images: []
twitter: ""
---
Add Twitter metadata

You can add the new author Twitter handle in twitter field in the /content/authors/<new_author_name>/_index.md file

Add images

Add images for the new author in the images field in the /content/authors/<new_author_name>/_index.md file, the first image will be used as a profile picture

Note The images must be added in the new author directory /content/authors/<new_author_name>/image.png the added in the _index.md as follow

---
name: "New Author Name"
images: ["image.png"]
twitter: ""
---

How to add a contributor

To add a new contributor run:

$> hugo new z_contributors/<new_contributor_name>.md
/Users/<repository_path>/osscameroon-blog/content/z_contributors/<new_contributor_name>.md created

Your new contributor <new_contributor_name>.md file hase been created now add something about him

How Deploy the blog

To deploy the blog run this command

cd ./scripts/ && ./deploy.sh

This command might not work due to missing credentials contact the project maintainers to get some help

Licence

The website is under the GPL-3.0 License license, but the blog post are the exclusive property of OssCameroon

osscameroon-blog's People

Contributors

elhmn avatar theryx avatar

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.