You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/v1/assets/reference_default-theme-las...

6 lines
3.0 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

import{_ as a,c as t,ag as s,o as i}from"./chunks/framework.C1C4sYC0.js";const k=JSON.parse('{"title":"Last Updated","description":"","frontmatter":{},"headers":[],"relativePath":"reference/default-theme-last-updated.md","filePath":"en/reference/default-theme-last-updated.md","lastUpdated":1719560776000}'),l={name:"reference/default-theme-last-updated.md"};function n(d,e,p,o,r,h){return i(),t("div",null,e[0]||(e[0]=[s(`<h1 id="last-updated" tabindex="-1">Last Updated <a class="header-anchor" href="#last-updated" aria-label="Permalink to &quot;Last Updated&quot;"></a></h1><p>The update time of the last content will be displayed in the lower right corner of the page. To enable it, add <code>lastUpdated</code> options to your config.</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>You need to commit the markdown file to see the updated time.</p></div><h2 id="site-level-config" tabindex="-1">Site-Level Config <a class="header-anchor" href="#site-level-config" aria-label="Permalink to &quot;Site-Level Config&quot;"></a></h2><div class="language-js vp-adaptive-theme"><button title="Copy code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> lastUpdated: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="frontmatter-config" tabindex="-1">Frontmatter Config <a class="header-anchor" href="#frontmatter-config" aria-label="Permalink to &quot;Frontmatter Config&quot;"></a></h2><p>This can be disabled per-page using the <code>lastUpdated</code> option on frontmatter:</p><div class="language-yaml vp-adaptive-theme"><button title="Copy code" class="copy"></button><span class="lang">yaml</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">---</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">lastUpdated</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">---</span></span></code></pre></div><p>Also refer <a href="./default-theme-config#lastupdated">Default Theme: Last Updated</a> for more details. Any truthy value at theme-level will also enable the feature unless explicitly disabled at site or page level.</p>`,9)]))}const u=a(l,[["render",n]]);export{k as __pageData,u as default};