Add new entry blog: Web Infra 1 (#3)
* Change blog entry style : titles font weight lighter->normal * Add tmpfs scripts for linux (dev only) Co-authored-by: Corentin <corentin-pro@mail.com> Co-authored-by: Jimmy Vargo <james@ayo.tokyo> Reviewed-on: ayo/website#3
This commit is contained in:
parent
bb2fd54e41
commit
6fdcf4f102
10 changed files with 41 additions and 37 deletions
|
|
@ -66,8 +66,8 @@ class BlogListingPlugin
|
|||
},
|
||||
(compilationAssets, callback) => {
|
||||
let content = []
|
||||
Object.keys(compilationAssets).forEach((file_path) => {
|
||||
if(file_path.startsWith('blog') && file_path.endsWith('.md'))
|
||||
Object.keys(compilationAssets).sort().reverse().forEach((file_path) => {
|
||||
if(file_path.startsWith('blog') && file_path.endsWith('.md') && !file_path.endsWith('_draft.md'))
|
||||
{
|
||||
const file_name = path.basename(file_path).slice(0, -3)
|
||||
const blog_info = path.basename(path.dirname(file_path)).split('_')
|
||||
|
|
@ -131,11 +131,7 @@ module.exports = {
|
|||
type: "asset/inline"
|
||||
},
|
||||
{
|
||||
test: /\.(png|jpg|jpeg|gif)$/,
|
||||
type: "asset/resource"
|
||||
},
|
||||
{
|
||||
test: /\.(ttf|otf)$/,
|
||||
test: /assets\/.*\.(png|jpg|jpeg|gif|ttf|otf)$/,
|
||||
type: "asset/resource"
|
||||
}
|
||||
]
|
||||
|
|
@ -147,18 +143,14 @@ module.exports = {
|
|||
{from: 'index.html'},
|
||||
{from: 'robot.txt'},
|
||||
{from: 'src/lang', to: 'lang'},
|
||||
{from: 'assets/blog', to: 'blog'},
|
||||
{from: 'assets/icons', to: 'assets/icons'},
|
||||
{from: 'assets/images', to: 'assets/images'},
|
||||
{from: 'assets/theme', to: 'assets/theme'},
|
||||
{from: 'assets/fonts', to: 'assets/fonts'}
|
||||
{from: 'assets', to: 'assets', globOptions: {ignore: '**/blog/**'}},
|
||||
{from: 'assets/blog', to: 'blog', globOptions: {ignore: '**/blog/draft_*/**'}}
|
||||
]})
|
||||
],
|
||||
output:
|
||||
{
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'public'),
|
||||
assetModuleFilename: 'assets/[query].[ext]',
|
||||
clean: true
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue