Hello World
First post on the new blog. Testing code blocks and syntax highlighting.
Python Example#
def greet(name: str) -> str:
"""A simple greeting function."""
return f"Hello, {name}!"
if __name__ == "__main__":
print(greet("world"))
JavaScript Example#
const fetchData = async (url) => {
try {
const response = await fetch(url);
return await response.json();
} catch (error) {
console.error('Failed to fetch:', error);
}
};
Shell Commands#
# Install dependencies
npm install
# Run dev server
hugo server -D
That’s it for now.