Production deploy status:
Beta deploy status:
To add new post to our blog, first prepare local repository:
- Clone repository:
git clone [email protected]:3mdeb/news-and-ideas.git
- Change directory:
cd news-and-ideas
- Change branch to development:
git checkout develop
- Create new unique branch:
git checkout -b <unique_branch_name>
- Run and follow the script instructions:
./scripts/new-post.sh
- Check the name of the created file:
git status
- Edit post:
vim blog/content/post/<filename>.md
Some valuable information:
- Familiarize yourself with good practices section.
- Use Markdown to write your blog post.
- You can use local preview
- Finished blog post should get reviewed - please create Github Pull Request to
develop
branch as described here - If deployment to beta doesn't show any issues please ask maintainer for sync to master.
We have several categories you can choose from:
- Firmware
- IoT
- Miscellaneous
- OS Dev
- App Dev
- Security
- Manufacturing
Basically, there is a huge pool of tags we have, and you can add any tags you like.
- Remove
public
directory:rm -rf blog/public
- Generate blog:
docker run --rm -it -v $PWD/blog:/src -u hugo jguyomard/hugo-builder:0.54 hugo
- Generated files can be found in
blog/public
There is possibility to check whether new post is well formatted:
- Run local server:
docker run --rm -it -v $PWD/blog:/src -p 1313:1313 -u hugo jguyomard/hugo-builder:0.54 hugo server -w --bind=0.0.0.0
- Go to http://localhost:1313/ to view the changes.
Deployment on https://beta.3mdeb.com
-
Push commits with your blog post to your branch. There are no strict rules for branch naming. It should refer to the post title.
-
Create a Pull Request, targeting
develop
branch. -
Once your Pull Request gets merged to
develop
, the blog should be automatically deployed to the beta. You can check the deploy job status on the travis-ci.com
When the blog's status in beta is acceptable,
we can deploy to production. To do that, simply
create the Pull Request from develop
to master
. Once it gets merged, the
same version of blog should be deployed to
production. You can check the deploy job status on the
travis-ci.com
Employees and post authors profile pages are now implemented to our Hugo blog. To add new profile page, follow steps below:
- Add
_index.md
file toblog/content/authors/name-surname/
with the content about the author (look at other profile pages for template). - Add
name.surname.json
file toblog/data/authors/
with the content about the author for the post footer (look for other .json files for template) - Add
name.surname.png
image toblog/static/authors/
for profile image. - After rebuilding the site (locally), new profile should be visible in the authors list page: http://localhost:1313/authors/
Grammarly is a great, free tool for all bloggers and anyone who needs to write documentation in English. It will let you know if you skipped a coma or made a typo, as well, as it will check advanced grammar mistakes, too. Bear in mind, that the free version has its limits, so you need to keep an eye on it at all times and still, you are the one who distinguishes when to use a/an or the, as it only suggests changes.
Two versions of Grammarly are available: a plugin for Chrome/Chromium or online application. You need to create an account (it's for free) to be able to use Grammarly.
Visit the website Grammarly and create an account.
It is a MUST-HAVE application for anyone who writes posts or documentation, so feel obliged to use it.
There is on the internet a great tool for anyone writing posts, that is Markdown Cheatsheet. It is awesome because it is short and clear.
However, here are some most important commands:
- #, ##, ###, ####, #####, ###### - headers (just like in HTML
<h1><h2><h3>
etc.) - some text
- it is simply a list item for an unordered list. -<li>
in HTML1. some text
- an ordered list. Number does not matter, it will be ordered automatically.[Visible text](URL)
- a link- ` - inline code. Can be used as an inline quote
- ` x3 - block of code. You can write, next to it (connected) a programming language. Supported aliases for language highlighting are listed here
If your post includes any images, they must be located in blog/static/img
directory. To link them in file written in Markdown, use the format below:
![alt text](/img/image_name.jpg)
Remember about newlines before markdown tables, lists, quotes (>) and blocks of text (```).
I hope this will help. To see more, visit Markdown Cheatsheet
You can write attach inline HTML into Markdown and it will work!
<span style="color: blue">Some text</span>
In general, author meta-field MUST be strictly formatted (lowercase, non-polish letters):
author: name.surname
If post has multiple authors, author meta-field MUST be formatted as below:
author:
- name.surname
- name.surname
- Meta description - each post should have single-sentence description with proper keywords (try to add as many keywords as possible)
previously set in the Yoast SEO plugin [TBD - how to set them now]
-
Tags selection - use proper tags (good examples are tags for articles of our competition and results from the Google first site)
-
Graphic/image title - description with keywords related to whole article. All images uploaded to WordPress should be edited in terms of SEO (WP-admin panel in the
Media
tab). It is required to complete theCaption
field and add tags withMeta Tag manager
->Add Meta Tag
(at the bottom).
https://www.aminstitute.com/headline/
The free tool, which analyze headline to determine the Emotional Marketing Value (EMV) score. Headline is analyzed and scored based on the total number of EMV words it has in relation to the total number of words it contains. This will determine the EMV score of headline. Most professional copywriters' headlines will have 30%-40% EMV Words in their headlines, while the most gifted copywriters will have 50%-75% EMV words in headlines.