Available Template Fields
primary
: String - Primary text color
secondary
: String - Background color
thirdly
: String - Accent color
border
: String - Muted color for borders, text, and dividers
name
: String - Username
current_nickname
: Object
word
: String - Current nickname
pronounce
: String - Nickname pronunciation
previous_nicknames
: Array[Object]
word
: String - Previous nickname
pronounce
: String - Previous nickname pronunciation
specifications
: Array[String] - List of specializations/roles
about
: String - Description text
repos
: Array[Object]
name
: String - Repository name
link
: Object
provider
: Enum(Github|LinkedIn|Telegram)
url
: String - Repository URL
socials
: Array[Object]
provider
: Enum(Github|LinkedIn|Telegram)
url
: String - Social network URL
skills
: Array[Object]
skill
: String - Skill name
main
: Boolean - Is it a main skill
since
: Object
start
: Number - Start year
end
: Number - End year (0 = "present")
repo_link
: Object
provider
: Enum(Github|LinkedIn|Telegram)
url
: String - Related repository URL
projects
: Array[Object]
name
: String - Project name
link
: Object
provider
: Enum(Github|LinkedIn|Telegram)
url
: String - Project URL
get_svg(provider: Enum)
: Function - Returns SVG icon for specified provider
Tera Template Constructions
# Simple variable insertion
{{ secondary }}
# Nested value insertion
{{ current_nickname.word }}
{{ current_nickname.pronounce }}
# Insertion in CSS classes
class="text-[{{ primary }}]"
class="bg-[{{ secondary }}]"
# Simple array loop
{% for spec in specifications %}
<span>{{ spec }}</span>
{% endfor %}
# Loop through array of objects
{% for repo in repos %}
<a href="{{ repo.link.link }}">
{{ repo.name }}
</a>
{% endfor %}
3. Conditional Statements (If)
# Simple condition
{% if skill.main %}
{% set opacity = 100 %}
{% else %}
{% set opacity = 80 %}
{% endif %}
# Inline condition
{{ skill.since.end != 0 ? skill.since.end : "today" }}
# Condition with multiple checks
{% if skill.main and skill.since.end == 0 %}
// content
{% endif %}
5. Function Calls with Filters
# Function call with parameter and safe filter
{{ get_svg(provider=repo.link.provider) | safe }}
6. Comments
{# This is a comment in Tera #}
7. Nested Conditions Inside Loops
{% for skill in skills %}
{% if skill.main %}
{% set opacity = 100 %}
{% else %}
{% set opacity = 80 %}
{% endif %}
<div class="opacity-{{ opacity }}">
{{ skill.name }}
</div>
{% endfor %}
8. Accessing Nested Structures
# Two-level nesting
{{ skill.since.start }}
# Condition with nested field
{% if skill.since.end != 0 %}
{{ skill.since.end }}
{% else %}
today
{% endif %}