jgdr/content/article/int-conventions.md

70 lines
2 KiB
Markdown
Raw Normal View History

---
title: "Conventions 🧾"
date: "2023-06-29T23:38:56+03:00"
author: "editor-put-your-name-here"
contributors:
2023-07-12 02:10:05 +03:00
draft: false
keywords:
- internal
abstract: |
2023-08-14 17:50:50 +03:00
List of conventions to follow.
Leave `draft: true`
---
2023-08-14 17:50:50 +03:00
# Date format
> DD.MM.YYYY
2023-08-14 17:50:50 +03:00
as in 13.05.1998.
2023-08-14 17:50:50 +03:00
# File naming conventions
For file-naming conventions see ![Content creation instructions](article:int-content).
<!--
# File naming conventions
- All **lowercase**
- Use **dash as separator**
- No spaces
- No underscores
| Type | Filename convention | Creation command |
|-|-|-|
| contributor | name-surname.md | `hugo new contributor/name-surname.md`|
| editor | name-surname.md | `hugo new editor/name-surname.md` |
2023-08-14 17:50:50 +03:00
| issue | issue-x.md* | `hugo new issue/issue-x.md` |
| article | article-short-title.md | `hugo new article/article-short-title.md` |
2023-08-14 17:50:50 +03:00
| print (issue)\** | p-issue-x.md | `hugo new print/p-issue-x.md` |
| print (article)\*\* | p-article-short-title.md | `hugo new print/p-article-short-title.md` |
\* where x is issue number
2023-08-14 17:50:50 +03:00
\*\* creating a new print file can break the site if (a) the `print: ` target points to an inexistent file, or if (b) a public print item points to a non-published target.
-->
# 'int-' prefix for files intended for *Internal* use
Files purposed to be for internal use, and are *not public facing*:
- start with `int-` , like this file `int-conventions.md`
Their header file:
- features the keyword `internal`
- the draft flag is set to true, as in `draft: true`
2023-08-14 17:50:50 +03:00
- suffix the abstract with: Leave `draft: true`
# Images and attachments
2023-08-14 17:50:50 +03:00
Place images or other attachments related to a specific article in the appropriate subdirectory inside the `root/static/` folder as in:
2023-08-14 17:50:50 +03:00
```
static/issue-x/author/image.png
```
2023-08-14 17:50:50 +03:00
So that it can be referenced from an article like so:
2023-08-14 17:50:50 +03:00
```
![Image caption](/issue-x/author/image.png "optional mouse over/alt text")
```
2023-08-14 17:50:50 +03:00
*Note: When refencing an image or file provide a file path starting with a slash (`/`), and omit `static`.*