File tree Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Expand file tree Collapse file tree 5 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD 17)
5
5
6
6
if (NOT CMAKE_BUILD_TYPE MATCHES Debug )
7
7
# Wasm files directory
8
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /web/static/wasm )
8
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /web/static/assets/ wasm )
9
9
endif ()
10
10
11
11
# Add nn directory to the build
@@ -36,7 +36,7 @@ else ()
36
36
target_link_libraries (main_executable nn_lib )
37
37
38
38
# Set output name
39
- set_target_properties (main_executable PROPERTIES OUTPUT_NAME "wasm " )
39
+ set_target_properties (main_executable PROPERTIES OUTPUT_NAME "main " )
40
40
41
41
# Release flags
42
42
target_link_options (main_executable PRIVATE "SHELL:-s NO_EXIT_RUNTIME=1" )
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ To get started with development:
94
94
2 . ** Configure Build Profiles** :
95
95
- ** Release Profile** : For building the final WebAssembly version of the project, use the Release profile. This
96
96
includes Emscripten's toolchain for WebAssembly compilation. Compiled wasm files will be located
97
- at ` /web/static/wasm `
97
+ at ` /web/static/assets/ wasm `
98
98
afterward to be used by hugo server.
99
99
``` sh
100
100
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=path/to/emscripten/cmake/Modules/Platform/Emscripten.cmake -B build/release -S .
@@ -120,4 +120,4 @@ To get started with development:
120
120
5. ** Web Integration** (Release profile only):
121
121
- For the Release profile, include the generated JavaScript and WebAssembly files in your web project. Use the
122
122
Emscripten Module API for interaction with the compiled code.
123
- - All wasm files are generated at ` /web/static/wasm` . ` web/static` directory is served ' as is ' by hugo server.
123
+ - All wasm files are generated at ` /web/static/wasm` . ` web/static` directory is served as-is by hugo server.
Original file line number Diff line number Diff line change 30
30
< script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js "
31
31
integrity ="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL "
32
32
crossorigin ="anonymous "> </ script >
33
- < script src ="{{ site.BaseURL }}/wasm/wasm .js " async > </ script >
33
+ < script src ="{{ site.BaseURL }}/wasm.js " async > </ script >
34
34
</ body >
35
35
</ html >
Original file line number Diff line number Diff line change
1
+ {{ define "main" }}
2
+ < h1 > {{ .Title }}</ h1 >
3
+ {{ .Content }}
4
+ {{ range .Pages }}
5
+ < h2 > < a href ="{{ .RelPermalink }} "> {{ .LinkTitle }}</ a > </ h2 >
6
+ {{ .Summary }}
7
+ {{ end }}
8
+ {{ end }}
Original file line number Diff line number Diff line change
1
+ {{ define "main" }}
2
+ < h1 > {{ .Title }}</ h1 >
3
+
4
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
5
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
6
+ < time datetime ="{{ $dateMachine }} "> {{ $dateHuman }}</ time >
7
+
8
+ {{ .Content }}
9
+ {{ end }}
You can’t perform that action at this time.
0 commit comments