> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/vi/cau-hinh/overleaf-toolkit/branding.md).

# Thương hiệu

### Tiêu đề <a href="#header" id="header"></a>

Trong phần này, chúng tôi sẽ đề cập cách cá nhân hóa các thành phần chính của phiên bản cài đặt tại chỗ của bạn. Bạn có thể tùy chỉnh tiêu đề trang web, các liên kết điều hướng, tiêu đề, chân trang và logo theo sở thích của mình.

### Tiêu đề trang web <a href="#site-title" id="site-title"></a>

Tiêu đề thanh điều hướng có thể được tùy chỉnh bằng `OVERLEAF_NAV_TITLE` biến môi trường này, văn bản này được dùng ở góc trên bên trái của thanh điều hướng nếu chưa đặt logo.

```bash
# thêm vào config/variables.env
OVERLEAF_NAV_TITLE=Phiên bản Overleaf của chúng tôi
```

## Logo

Bạn có thể thêm logo tùy chỉnh thay vì dùng văn bản bằng cách đặt biến môi trường `OVERLEAF_HEADER_IMAGE_URL`. Giá trị này պետք phải trỏ đến một tệp hình ảnh được lưu trữ bên ngoài.

Thêm vào config/variables.env:

{% code title="config/variables.env" %}

```bash
# thêm vào config/variables.env
OVERLEAF_HEADER_IMAGE_URL=https://mysite.somewhere.com/img/logo.png
```

{% endcode %}

## Liên kết điều hướng của tiêu đề

Có thể thêm các mục điều hướng bổ sung vào phần đầu điều hướng bằng cách đặt `OVERLEAF_HEADER_EXTRAS` biến môi trường thành một mảng JSON các đối tượng. Ví dụ:

{% code overflow="wrap" %}

```json
[\
  {\
    "text": "Một liên kết",\
    "url": "http://example.com/somelink",\
    "class": "subdued",\
    "only_when_logged_out": true\
  },\
  {\
    "text": "Trợ giúp",\
    "class": "subdued",\
    "dropdown": [\
      {\
        "text": "Tài liệu",\
        "url": "/learn"\
      },\
      {\
        "text": "Liên hệ quản trị viên",\
        "url": "http://example.com/contact"\
      }\
    ]\
  }\
]
```

{% endcode %}

Thêm dạng JSON đã thoát vào toolkit/variables.env:

{% code title="toolkit/variables.env" overflow="wrap" %}

```bash
# thêm vào toolkit/variables.env
OVERLEAF_HEADER_EXTRAS=[{"text":"Một liên kết","url":"http://example.com/somelink","class":"subdued","only_when_logged_out":true},{"text":"Trợ giúp","class":"subdued","dropdown":[{"text":"Tài liệu","url":"/learn"},{"text":"Liên hệ quản trị viên","url":"http://example.com/contact"}]}]
```

{% endcode %}

## Chân trang

Có thể tùy chỉnh cả chân trang bên trái và chân trang nhỏ hơn bên phải (xuất hiện trên các trang như `/project`) bằng cách sử dụng các biến môi trường `OVERLEAF_LEFT_FOOTER` và `OVERLEAF_RIGHT_FOOTER`. Cả hai đều mong đợi một mảng các đối tượng JSON sẽ được chèn vào.

Cả hai đều mong đợi một mảng JSON sẽ được chèn vào.

```json
[\
  {\
    "text": "Đây là một mục chân trang văn bản ví dụ!"\
  },\
  {\
    "text": "Đây là một liên kết chân trang URL ví dụ!", "url" : "/my-first-link.htm"\
  }\
]
```

{% hint style="info" %}
Khi sử dụng `văn bản` chỉ, nó không được chứa HTML vì giá trị sẽ được hiển thị dưới dạng văn bản thuần.
{% endhint %}

Dữ liệu này cần là JSON hợp lệ để hoạt động, với dấu ngoặc kép được thoát khi truyền qua biến môi trường.

{% code title="config/variables.env" overflow="wrap" %}

```bash
# thêm vào config/variables.env
OVERLEAF_LEFT_FOOTER=[{"text": "Đây là một mục chân trang văn bản ví dụ!"}]
OVERLEAF_RIGHT_FOOTER=["text": "Đây là một liên kết chân trang URL ví dụ!", "url" : "/my-first-link.htm"]
```

{% endcode %}

{% hint style="info" %}
Ngoài `văn bản` và `url`, đối tượng JSON cũng chấp nhận các thuộc tính `class` và `nhãn` để tùy chỉnh thêm.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/vi/cau-hinh/overleaf-toolkit/branding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
