mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
theme: print usage time for test #380
This commit is contained in:
parent
6ce46e1a2a
commit
8442cd54bb
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
@echo off
|
||||
set /p version=<..\layouts\partials\version.txt
|
||||
echo %version%>metrics.%version%.txt
|
||||
echo disableAssetsBusting=true>>config.toml
|
||||
echo disableGeneratorVersion=true>>config.toml
|
||||
hugo --templateMetrics --templateMetricsHints --cleanDestinationDir --destination public.%version% >> metrics.%version%.txt
|
||||
move /Y metrics.%version%.txt public.%version%\metrics.txt
|
||||
move /Y metrics.%version%.txt public.%version%\metrics.txt 2>&1 >NUL
|
||||
git restore config.toml
|
||||
For /F "UseBackQ Delims==" %%A In ("public.%version%\metrics.txt") Do Set "lastline=%%A"
|
||||
echo %lastline%
|
||||
|
|
Loading…
Reference in a new issue